|
楼主 |
发表于 2011-11-27 17:51:25
|
显示全部楼层
获取武将名称地址(反汇编代码):2 c5 ~* }+ ?3 L' L, E9 }
有些深奥哦,看不懂就不要强看,不过你看懂了,就入门了。, ?1 E+ P A3 D! g
6 V" V2 X4 l# L: W
=============================================================================
' M r- c) A( V c9 S9 [ J* Q1 F004755DA . 6A 00 PUSH 0
9 o. Y% ~8 R& I, m* m" k8 D0 ]004755DC . 68 F8000000 PUSH 0F8
3 V: P" y) h2 @( @# m$ W2 L6 |004755E1 . E8 FAC50300 CALL TAIK2W95.004B1BE0; [. y1 T7 |, P2 ^3 d6 J9 w
004755E6 . 8BCF MOV ECX,EDI
% g; i' \( }% c- G+ J# v004755E8 . E8 C36C0200 CALL TAIK2W95.0049C2B0 ;------- 取姓氏地址
6 w. F/ }4 ?$ g- } D* F2 ]3 _2 ~004755ED . 50 PUSH EAX+ ^4 }7 ]. s0 A n/ S6 v$ p
004755EE . E8 4D9A0200 CALL TAIK2W95.0049F040 ;------- 取姓氏& b& B0 n0 C* \
004755F3 . 83C4 04 ADD ESP,48 q' z9 g e4 x: G
004755F6 . 68 A8965100 PUSH TAIK2W95.005196A8' _# P6 s, _, i. T
004755FB . E8 C0690700 CALL TAIK2W95.004EBFC0# A; n, ~! l. @0 p$ p/ ~0 x, J: O. j# r3 G5 n
00475600 . 83C4 04 ADD ESP,4
. a( n; Y- w- D- q% g4 y00475603 . 8BCF MOV ECX,EDI
: b% b) W+ x$ @0 P00475605 . E8 066D0200 CALL TAIK2W95.0049C310 ;------- 取名字地址
( x) T O& O/ s1 s0047560A . 50 PUSH EAX
" X1 G1 j2 w/ V. A/ R0047560B . E8 609A0200 CALL TAIK2W95.0049F070 ;------- 取名字% ^# L" J$ u7 h
9 b, L: w8 @4 P6 ~! q2 u=============================================================================
& s/ z- j( G/ q! A9 Z% a) \- Y;------- 取姓氏地址" `" A2 V% ]5 S$ `: V2 |$ V
0049C2B0 /$ 66:8B01 MOV AX,WORD PTR DS:[ECX]7 A4 C3 p' A4 [& l, Q+ M7 C
0049C2B3 |. 66:3D E803 CMP AX,3E8 ;< $3E8 历史人物 $00521AA8 + dwID * 7. ~' M9 `$ w s* u1 j
0049C2B7 |. 73 12 JNB SHORT TAIK2W95.0049C2CB6 x" l3 B; `9 v2 |3 g7 ^9 L
0049C2B9 |. 25 FFFF0000 AND EAX,0FFFF. w1 S5 W) k7 f( T0 Z! V$ v# V) ~
0049C2BE |. 8BC8 MOV ECX,EAX( Z# l+ ^/ A+ a; I" f+ H; S
0049C2C0 |. C1E0 03 SHL EAX,37 d. B/ ^2 Z; x) A, _; w* x
0049C2C3 |. 2BC1 SUB EAX,ECX
3 Y+ w+ W# m; m) V( X+ u7 l0049C2C5 |. 05 A81A5200 ADD EAX,TAIK2W95.00521AA82 t8 e: a- P9 Z& g
0049C2CA |. C3 RETN) y: t$ I+ m, x8 Z
0049C2CB |> 66:3D D007 CMP AX,7D0 ;(>= $3E8 and < $7D0) 特殊人物 $005077B0 + (dwID - $3E8) * 7. o/ U& X" I0 U* X+ ]
0049C2CF |. 73 17 JNB SHORT TAIK2W95.0049C2E8
: O5 m7 B% J% l5 Y. N ^: ^0049C2D1 |. 25 FFFF0000 AND EAX,0FFFF( H+ _6 d% W1 }0 v- K
0049C2D6 |. 2D E8030000 SUB EAX,3E8/ K) ]9 I% F$ |
0049C2DB |. 8BC8 MOV ECX,EAX$ M( z; A( q7 c, i- ]0 X
0049C2DD |. C1E0 03 SHL EAX,3" a. C+ @. x, h" K" H
0049C2E0 |. 2BC1 SUB EAX,ECX
6 T6 s, Z( h/ L5 K9 K$ d0049C2E2 |. 05 B0775000 ADD EAX,TAIK2W95.005077B04 ^5 L( n/ Y+ G& \6 `* Y6 p8 x
0049C2E7 |. C3 RETN
; I9 L4 `# x! D/ j9 j7 z E) [0049C2E8 |> 66:3D B80B CMP AX,0BB8 ;(>= $7D0 and < $BB8) $00506C54
, D$ U c+ J) M- v% e1 e0049C2EC |. 73 06 JNB SHORT TAIK2W95.0049C2F4: _7 B1 f; M4 }7 @: T2 i
0049C2EE |. A1 546C5000 MOV EAX,DWORD PTR DS:[506C54]
9 q5 M. E% _+ o7 _7 @0049C2F3 |. C3 RETN- C8 \/ @; a5 Y
0049C2F4 |> 25 FFFF0000 AND EAX,0FFFF ;(>= $BB8) NPC $00507978 + (dwID - $BB8) * 7; q8 q: Z+ }. z
0049C2F9 |. 2D B80B0000 SUB EAX,0BB8
9 g% Y: G; \! l. o4 ^ [% v0049C2FE |. 8BC8 MOV ECX,EAX
3 c$ z [& j# e4 J9 b0049C300 |. C1E0 03 SHL EAX,3
) T+ e( U: ^8 R2 P4 ?0049C303 |. 2BC1 SUB EAX,ECX9 F$ f# A5 w2 J. N5 f% q; {, L
0049C305 |. 05 78795000 ADD EAX,TAIK2W95.00507978* d- q- X" V* k: q$ A A
0049C30A \. C3 RETN# w9 X" U! }; b) L7 w* X
=============================================================================2 L: Q0 v. p4 f: m+ I2 ~) J
;------- 取名字地址 I; @7 p' E# K
0049C310 /$ 66:8B01 MOV AX,WORD PTR DS:[ECX]
- N. U: z7 }4 R k0049C313 |. 66:3D E803 CMP AX,3E8 ;< $3E8 历史人物 $00520660 + dwID * 7: X7 e4 R% y" W. P* q* w$ l. s
0049C317 |. 73 12 JNB SHORT TAIK2W95.0049C32B
8 K! G; L5 w M6 r* ?0049C319 |. 25 FFFF0000 AND EAX,0FFFF/ e$ M8 L4 N" }
0049C31E |. 8BC8 MOV ECX,EAX/ }) L0 `$ {# v' `8 J
0049C320 |. C1E0 03 SHL EAX,3
# z; E0 w* b: T: }, v5 M! H. l0049C323 |. 2BC1 SUB EAX,ECX
' [5 S G/ r1 A; Q0049C325 |. 05 60065200 ADD EAX,TAIK2W95.00520660' A$ a+ @7 ^5 T1 S: k' z& m& I9 e6 k
0049C32A |. C3 RETN5 r5 L/ K1 Q7 [, H2 D
0049C32B |> 66:3D D007 CMP AX,7D0 ;(>= $3E8 and < $7D0) 特殊人物 $00507888 + (dwID - $3E8) * 7
, N4 z7 h3 e K8 y6 X% n0049C32F |. 73 17 JNB SHORT TAIK2W95.0049C348: A& h: ?. p: r( ?- e, ?
0049C331 |. 25 FFFF0000 AND EAX,0FFFF5 X# U9 s- D# G% [2 b
0049C336 |. 2D E8030000 SUB EAX,3E8
/ N8 e* y. L8 E2 _7 N9 X0049C33B |. 8BC8 MOV ECX,EAX% T3 B o O) T6 U# K Z
0049C33D |. C1E0 03 SHL EAX,33 W% [" {4 e# C/ I/ u! o+ x
0049C340 |. 2BC1 SUB EAX,ECX
( H% [) z6 a, z0049C342 |. 05 88785000 ADD EAX,TAIK2W95.00507888+ P3 I& ~; y* N6 B2 ?% U& X
0049C347 |. C3 RETN( ~0 e( d. l# K
0049C348 |> 66:3D B80B CMP AX,0BB8 ;(>= $7D0 and < $BB8) 姬 $00507960 + (dwID - $7D0) * 5
. c, S. ^$ m" |0049C34C |. 73 12 JNB SHORT TAIK2W95.0049C3607 C8 y2 |7 Z" O d& \6 `
0049C34E |. 25 FFFF0000 AND EAX,0FFFF
# @ c8 m) t/ @" ?# X. i0049C353 |. 2D D0070000 SUB EAX,7D0
[! X1 p- V% f" k, Q/ ?0049C358 |. 8D8480 6079500>LEA EAX,DWORD PTR DS:[EAX+EAX*4+507960]! H0 a) s% g0 K
0049C35F |. C3 RETN
: |" g! P4 W4 K5 h" ?# P& a0049C360 |> 25 FFFF0000 AND EAX,0FFFF ;(>= $BB8)
1 m4 S/ R* Q$ o* F& O0 V1 m W7 E0049C365 |. 3D B80B0000 CMP EAX,0BB8 ;(= $BB8)
$ z; S6 c/ _6 c( r# K. u0049C36A |. 74 1A JE SHORT TAIK2W95.0049C386
2 l2 }1 O! x, K" o6 v; [7 G0049C36C |. 3D B90B0000 CMP EAX,0BB9 ;(<= $BB9)
* k$ m0 d- L0 y! Y0049C371 |. 7E 0D JLE SHORT TAIK2W95.0049C3802 ?* | K/ l! W7 y3 w2 ]+ N
0049C373 |. 3D BB0B0000 CMP EAX,0BBB ;(> $BBB), i4 P; F) x$ Q! d5 R: G! V& L
0049C378 |. 7F 06 JG SHORT TAIK2W95.0049C380
" X) D! h ~2 f2 @; N0049C37A |. B8 B8BD5000 MOV EAX,TAIK2W95.0050BDB8 ;(= $BBA or = $BBB) 主人 $0050BDB8
( A( b. W; S$ P( Y T0049C37F |. C3 RETN+ y8 E3 ]4 M& x3 U
0049C380 |> A1 546C5000 MOV EAX,DWORD PTR DS:[506C54] ;(<= $BB9 or > $BBB) NPC $00506C54# A. Z( G0 p' ^2 f
0049C385 |. C3 RETN
6 H/ E1 X: |3 f1 Q" W9 @2 i! y0049C386 |> B8 B0BD5000 MOV EAX,TAIK2W95.0050BDB0 ;(= $BB8) 老板娘 $0050BDB0& I3 e: G2 h9 s% }
0049C38B \. C3 RETN |
|