|
楼主 |
发表于 2011-11-27 17:51:25
|
显示全部楼层
获取武将名称地址(反汇编代码):# n; M9 n( h* m e. |
有些深奥哦,看不懂就不要强看,不过你看懂了,就入门了。, `" |3 {2 ^ `7 s W/ e/ ?: \
$ e# P) _3 B4 y, u; l
=============================================================================3 Q! g8 o& w2 w, ?- y
004755DA . 6A 00 PUSH 0
F& d: N6 T3 V- v2 e0 x# B004755DC . 68 F8000000 PUSH 0F8
7 f+ U2 t9 T" B1 E- m8 r8 X' v4 J004755E1 . E8 FAC50300 CALL TAIK2W95.004B1BE04 i2 g4 c( x- p+ s
004755E6 . 8BCF MOV ECX,EDI
) g$ P0 X! q" N1 N3 X4 e004755E8 . E8 C36C0200 CALL TAIK2W95.0049C2B0 ;------- 取姓氏地址( u: B% \4 `0 _, ^- p+ a3 _
004755ED . 50 PUSH EAX4 t. \7 ^9 l/ ~7 g# U5 `
004755EE . E8 4D9A0200 CALL TAIK2W95.0049F040 ;------- 取姓氏4 Z$ S0 i2 y; N, [' M+ [/ l9 M
004755F3 . 83C4 04 ADD ESP,4
" H6 ~& I5 C: ~; ` [004755F6 . 68 A8965100 PUSH TAIK2W95.005196A8
8 k V" U8 q X6 P, N004755FB . E8 C0690700 CALL TAIK2W95.004EBFC04 L& C& X* k: O& J6 {
00475600 . 83C4 04 ADD ESP,42 E; w1 d# _" ]
00475603 . 8BCF MOV ECX,EDI
* I' D7 w! X' o+ ]6 |# H) _00475605 . E8 066D0200 CALL TAIK2W95.0049C310 ;------- 取名字地址
/ H: w4 W' T8 j! s# \: L7 F) I x l2 n0047560A . 50 PUSH EAX/ B/ U4 o; n6 o m" E
0047560B . E8 609A0200 CALL TAIK2W95.0049F070 ;------- 取名字" W2 p! ]! X% P; d( E! j' X \3 Y
: v1 v$ ]3 m& @* l& T. T" B! r=============================================================================
+ J( }8 L/ r/ c8 I4 e( r;------- 取姓氏地址
6 J+ m- ~$ M2 t" u6 v$ j% z, A2 o0049C2B0 /$ 66:8B01 MOV AX,WORD PTR DS:[ECX]3 i! F, S+ p' `9 `; x
0049C2B3 |. 66:3D E803 CMP AX,3E8 ;< $3E8 历史人物 $00521AA8 + dwID * 7' o4 [! z9 L, f' z3 Q3 o
0049C2B7 |. 73 12 JNB SHORT TAIK2W95.0049C2CB
8 k' |- Y; e& d0 ?' l8 v3 Y0049C2B9 |. 25 FFFF0000 AND EAX,0FFFF
" c5 O) `) l) c, r! ?0049C2BE |. 8BC8 MOV ECX,EAX/ g P: q4 f( i$ n
0049C2C0 |. C1E0 03 SHL EAX,3
% Y' v5 `6 h7 _/ H; ?0049C2C3 |. 2BC1 SUB EAX,ECX
+ ~$ ^3 ?1 m4 g% o0 t0049C2C5 |. 05 A81A5200 ADD EAX,TAIK2W95.00521AA8 R3 @; y+ A1 ^3 |- W# a
0049C2CA |. C3 RETN3 G6 Q: j1 _" D: X
0049C2CB |> 66:3D D007 CMP AX,7D0 ;(>= $3E8 and < $7D0) 特殊人物 $005077B0 + (dwID - $3E8) * 7! U% p) _, I, l
0049C2CF |. 73 17 JNB SHORT TAIK2W95.0049C2E8% y4 v# g) \7 y' h& }8 g. }+ ~
0049C2D1 |. 25 FFFF0000 AND EAX,0FFFF9 l& B/ c, o& Q! Y/ u; \
0049C2D6 |. 2D E8030000 SUB EAX,3E8
0 \& E6 Q4 _: \* Y4 P. {0049C2DB |. 8BC8 MOV ECX,EAX4 z( \- N' Y1 }4 u: j
0049C2DD |. C1E0 03 SHL EAX,3
% B) F% I1 y& p C0049C2E0 |. 2BC1 SUB EAX,ECX! `/ j0 E+ C' H2 I5 Z
0049C2E2 |. 05 B0775000 ADD EAX,TAIK2W95.005077B0* ^7 {, I/ k+ V$ d4 v! ?; w8 H
0049C2E7 |. C3 RETN
5 n2 T9 m! d. S) }/ c0049C2E8 |> 66:3D B80B CMP AX,0BB8 ;(>= $7D0 and < $BB8) $00506C544 J5 w8 C. H4 c. C! v1 L
0049C2EC |. 73 06 JNB SHORT TAIK2W95.0049C2F47 W6 S$ T* A4 n) Q- G" P& i+ I# ^# @
0049C2EE |. A1 546C5000 MOV EAX,DWORD PTR DS:[506C54], [6 G) ^! E, r8 b( p/ X1 R
0049C2F3 |. C3 RETN
& A# a, R- y5 |! O9 g/ w: W0049C2F4 |> 25 FFFF0000 AND EAX,0FFFF ;(>= $BB8) NPC $00507978 + (dwID - $BB8) * 7
' I) K& [! i/ Y1 p+ p0049C2F9 |. 2D B80B0000 SUB EAX,0BB8
3 Q, O, m) ^/ T0049C2FE |. 8BC8 MOV ECX,EAX( H- Y6 I' ]! e% d) S
0049C300 |. C1E0 03 SHL EAX,3- t" t& Q! H9 d+ g2 C+ k
0049C303 |. 2BC1 SUB EAX,ECX
0 ?3 D3 k9 @# b( n0049C305 |. 05 78795000 ADD EAX,TAIK2W95.00507978) A( {) j+ ^* n$ U7 D, O& \
0049C30A \. C3 RETN# j( X# |% d/ B) L0 n8 v1 n; f/ R o" `
=============================================================================
5 C# @& }* n0 l0 l' C/ R$ w;------- 取名字地址
' k! e4 C" H6 i c9 Y0 t/ O+ L0049C310 /$ 66:8B01 MOV AX,WORD PTR DS:[ECX]/ j: Y0 J( \7 c! [$ Z, @+ W
0049C313 |. 66:3D E803 CMP AX,3E8 ;< $3E8 历史人物 $00520660 + dwID * 79 m! V/ c6 V. p6 T2 V9 t1 \& ^& I0 u
0049C317 |. 73 12 JNB SHORT TAIK2W95.0049C32B3 ], K( x5 t! r& }- l
0049C319 |. 25 FFFF0000 AND EAX,0FFFF! o( B+ O( q9 K. x4 I p
0049C31E |. 8BC8 MOV ECX,EAX
# m2 k3 D" U9 k0 o% G' c0049C320 |. C1E0 03 SHL EAX,31 U5 [5 j* j) v n5 D5 q# N! f
0049C323 |. 2BC1 SUB EAX,ECX; i1 h: i- C/ d6 O3 T
0049C325 |. 05 60065200 ADD EAX,TAIK2W95.00520660; |& k8 w5 f4 L
0049C32A |. C3 RETN
" h( E; Y1 J/ M0 j- C1 w0049C32B |> 66:3D D007 CMP AX,7D0 ;(>= $3E8 and < $7D0) 特殊人物 $00507888 + (dwID - $3E8) * 7( w0 z1 m; R% |. `( _8 C3 x+ K
0049C32F |. 73 17 JNB SHORT TAIK2W95.0049C348* }0 J: k9 t0 p4 j; k" O
0049C331 |. 25 FFFF0000 AND EAX,0FFFF* h- e8 W9 N$ P" W
0049C336 |. 2D E8030000 SUB EAX,3E8
! L: v4 k$ K S4 l: Q3 F0049C33B |. 8BC8 MOV ECX,EAX& T1 B4 R3 y0 L- p( @
0049C33D |. C1E0 03 SHL EAX,3% X; D) A$ G! V c& f" E& E
0049C340 |. 2BC1 SUB EAX,ECX
: Q* {2 o+ {7 e+ V: Q0049C342 |. 05 88785000 ADD EAX,TAIK2W95.005078881 U" c7 T0 A6 r! {" T
0049C347 |. C3 RETN: G p. c: Y) R3 W: W! }: O
0049C348 |> 66:3D B80B CMP AX,0BB8 ;(>= $7D0 and < $BB8) 姬 $00507960 + (dwID - $7D0) * 5
' A5 s$ e3 k! {7 r( {0049C34C |. 73 12 JNB SHORT TAIK2W95.0049C360
& I2 W8 {9 ^0 i- b0049C34E |. 25 FFFF0000 AND EAX,0FFFF
5 M/ ^6 Y+ l, f3 y0 ^& @( \% M0049C353 |. 2D D0070000 SUB EAX,7D07 U9 e$ J$ Q" S3 i5 l
0049C358 |. 8D8480 6079500>LEA EAX,DWORD PTR DS:[EAX+EAX*4+507960]. }0 j" M* a- [; @( w. P
0049C35F |. C3 RETN
- T6 ^8 T) Y: L+ T0049C360 |> 25 FFFF0000 AND EAX,0FFFF ;(>= $BB8)
8 T" M' c. f6 B- F' F, I0049C365 |. 3D B80B0000 CMP EAX,0BB8 ;(= $BB8)
- S3 s; d' M* D2 |0049C36A |. 74 1A JE SHORT TAIK2W95.0049C3861 G1 F! t$ E Y3 }; n. A
0049C36C |. 3D B90B0000 CMP EAX,0BB9 ;(<= $BB9) Y0 L, d/ H/ d# Y c$ g; b! W' ]
0049C371 |. 7E 0D JLE SHORT TAIK2W95.0049C380
1 `5 }3 y) m# {& D4 i0049C373 |. 3D BB0B0000 CMP EAX,0BBB ;(> $BBB)
2 m$ x4 a: z Z7 c- _3 p) P0 a0049C378 |. 7F 06 JG SHORT TAIK2W95.0049C380" K/ _/ h. q5 ^ W8 y) O7 m
0049C37A |. B8 B8BD5000 MOV EAX,TAIK2W95.0050BDB8 ;(= $BBA or = $BBB) 主人 $0050BDB8. q! |! `8 ~# ?2 T) F! ^+ ~
0049C37F |. C3 RETN
+ s& K2 X7 a& s3 k z+ b0049C380 |> A1 546C5000 MOV EAX,DWORD PTR DS:[506C54] ;(<= $BB9 or > $BBB) NPC $00506C54
3 s* ?. ~6 z2 a: p4 M: ^8 M0049C385 |. C3 RETN3 D! L6 ?0 q: ?
0049C386 |> B8 B0BD5000 MOV EAX,TAIK2W95.0050BDB0 ;(= $BB8) 老板娘 $0050BDB03 X, s; n: k6 Q/ L' F3 D
0049C38B \. C3 RETN |
|