|
楼主 |
发表于 2011-11-27 17:51:25
|
显示全部楼层
获取武将名称地址(反汇编代码):: O C6 h4 _; R4 p" A! [+ m( a
有些深奥哦,看不懂就不要强看,不过你看懂了,就入门了。# t, V3 Z( }* _ I
' A3 K4 e* i, O. I8 V! y- {=============================================================================
0 ]& _4 k' r: a* L5 G5 F004755DA . 6A 00 PUSH 07 u$ O( i1 K* _( S; {
004755DC . 68 F8000000 PUSH 0F8
% v6 r8 Q6 l& _; V4 \004755E1 . E8 FAC50300 CALL TAIK2W95.004B1BE0+ P. |# v" [ C
004755E6 . 8BCF MOV ECX,EDI
1 j- Y9 f R' b) M1 M: E004755E8 . E8 C36C0200 CALL TAIK2W95.0049C2B0 ;------- 取姓氏地址 N8 Z( f& _3 r/ ~3 S+ D( N9 T
004755ED . 50 PUSH EAX* l. p0 p# Y0 f. B' [4 D5 [( v+ ^
004755EE . E8 4D9A0200 CALL TAIK2W95.0049F040 ;------- 取姓氏" a3 X, B) j$ N& _
004755F3 . 83C4 04 ADD ESP,4* v7 }2 }8 ]$ d5 z1 W
004755F6 . 68 A8965100 PUSH TAIK2W95.005196A8 D" e, }5 J: S/ f
004755FB . E8 C0690700 CALL TAIK2W95.004EBFC0; K& ]# Y0 M- \6 i7 x, [ j8 J! t
00475600 . 83C4 04 ADD ESP,44 D D0 p2 _6 G9 g( r5 ^6 I. _
00475603 . 8BCF MOV ECX,EDI
7 _, D0 z! m) e( t; D, K. Y00475605 . E8 066D0200 CALL TAIK2W95.0049C310 ;------- 取名字地址
) ~) i$ e! n: F- A2 `0047560A . 50 PUSH EAX$ ?5 x! p9 f8 R9 n/ T
0047560B . E8 609A0200 CALL TAIK2W95.0049F070 ;------- 取名字
: {$ l/ H0 m( a) t3 f. B* y: S2 w; O, k- v. c) S# S
=============================================================================
! ]5 T; ~2 c4 x;------- 取姓氏地址
! ~% g- S! ]9 M1 L" v* p# u0049C2B0 /$ 66:8B01 MOV AX,WORD PTR DS:[ECX]
0 k1 L6 h6 b% H; I, u2 O0049C2B3 |. 66:3D E803 CMP AX,3E8 ;< $3E8 历史人物 $00521AA8 + dwID * 7* r6 w% \6 ]2 z+ |
0049C2B7 |. 73 12 JNB SHORT TAIK2W95.0049C2CB
0 E) A$ W5 ?( U) G' Q0049C2B9 |. 25 FFFF0000 AND EAX,0FFFF
- ~. \, s6 B* M3 _0049C2BE |. 8BC8 MOV ECX,EAX
! J9 }) z2 Y9 c: {* Z0049C2C0 |. C1E0 03 SHL EAX,3
8 I7 H! F1 l( L0 }1 s4 O/ F* q, v0049C2C3 |. 2BC1 SUB EAX,ECX; P( V% v% H; ?4 i$ `$ S
0049C2C5 |. 05 A81A5200 ADD EAX,TAIK2W95.00521AA8
3 R+ z- v! T+ }: D' A$ m, T9 p. v+ E0049C2CA |. C3 RETN
( r: E( m) X$ y0 q% x0049C2CB |> 66:3D D007 CMP AX,7D0 ;(>= $3E8 and < $7D0) 特殊人物 $005077B0 + (dwID - $3E8) * 7
# k3 f, X. C; M3 l; w+ @+ w0049C2CF |. 73 17 JNB SHORT TAIK2W95.0049C2E8$ f! u. E7 I) U6 X. N
0049C2D1 |. 25 FFFF0000 AND EAX,0FFFF
' M# m8 }1 z3 a) G8 x$ Q6 G0049C2D6 |. 2D E8030000 SUB EAX,3E8- X) M! ^/ h, N( ^/ L
0049C2DB |. 8BC8 MOV ECX,EAX+ @! F: k* V% b9 Y
0049C2DD |. C1E0 03 SHL EAX,3
( K5 F# E8 A1 i5 u; Y6 N( [0049C2E0 |. 2BC1 SUB EAX,ECX9 Q6 D5 I; C1 a
0049C2E2 |. 05 B0775000 ADD EAX,TAIK2W95.005077B0
, ~8 m: p m% A0 V) \, a0049C2E7 |. C3 RETN: {8 x7 I/ g) h9 t! `% Q% T0 r
0049C2E8 |> 66:3D B80B CMP AX,0BB8 ;(>= $7D0 and < $BB8) $00506C548 b" {( [" Z5 u& ^9 J; X/ ]* H
0049C2EC |. 73 06 JNB SHORT TAIK2W95.0049C2F49 R4 Q6 o; x$ L2 f
0049C2EE |. A1 546C5000 MOV EAX,DWORD PTR DS:[506C54]
; N1 W% T" _6 E9 {0049C2F3 |. C3 RETN8 u3 O+ } @* d1 a+ V
0049C2F4 |> 25 FFFF0000 AND EAX,0FFFF ;(>= $BB8) NPC $00507978 + (dwID - $BB8) * 7
0 ^" R: t: M& i1 f0049C2F9 |. 2D B80B0000 SUB EAX,0BB8
. u( e# u' t. Z/ j7 H: a5 ?% h0049C2FE |. 8BC8 MOV ECX,EAX2 r2 C+ Y" F0 K) H4 f* M, i8 p
0049C300 |. C1E0 03 SHL EAX,3+ n: R- W" t5 I9 E, x& S6 D- J
0049C303 |. 2BC1 SUB EAX,ECX
" b: @- A% j# P! I' x9 x5 U0049C305 |. 05 78795000 ADD EAX,TAIK2W95.00507978
2 {9 T7 z8 p! Z* `" h d* ^* e0049C30A \. C3 RETN
5 o% J: k% N! L& O+ P( H=============================================================================
. a" I% `5 g9 X$ `;------- 取名字地址% L! g. h% M4 e+ F
0049C310 /$ 66:8B01 MOV AX,WORD PTR DS:[ECX]4 P6 r f. u {; t9 A! {
0049C313 |. 66:3D E803 CMP AX,3E8 ;< $3E8 历史人物 $00520660 + dwID * 7: D' K" |# v, P
0049C317 |. 73 12 JNB SHORT TAIK2W95.0049C32B
f$ X, i4 g' Q8 s$ {0049C319 |. 25 FFFF0000 AND EAX,0FFFF* w$ G7 H3 W: r7 S& r6 N6 u
0049C31E |. 8BC8 MOV ECX,EAX+ `4 n! t, F2 Q
0049C320 |. C1E0 03 SHL EAX,3
: j" ]) h5 V6 |+ O8 W8 E/ I. x0049C323 |. 2BC1 SUB EAX,ECX6 g6 f0 g/ m, s+ p
0049C325 |. 05 60065200 ADD EAX,TAIK2W95.00520660
{% X+ f; E, V- V4 L7 T0049C32A |. C3 RETN$ L" r& I# B/ n
0049C32B |> 66:3D D007 CMP AX,7D0 ;(>= $3E8 and < $7D0) 特殊人物 $00507888 + (dwID - $3E8) * 7
0 `7 z4 r( p, V) z6 _0049C32F |. 73 17 JNB SHORT TAIK2W95.0049C3481 [) O! I, ]; m
0049C331 |. 25 FFFF0000 AND EAX,0FFFF* k0 j K, i$ Q2 P" t2 ^% d
0049C336 |. 2D E8030000 SUB EAX,3E8
8 F, J( E- h+ x0049C33B |. 8BC8 MOV ECX,EAX
9 @' d4 z3 \* @3 @: K5 h6 I0049C33D |. C1E0 03 SHL EAX,3) K, f: |5 B/ u' j# w
0049C340 |. 2BC1 SUB EAX,ECX |5 R7 b4 U, z' [ x
0049C342 |. 05 88785000 ADD EAX,TAIK2W95.00507888
7 y' ?+ N9 m& z+ K1 Q! N0049C347 |. C3 RETN' z2 S( t% O$ R3 L
0049C348 |> 66:3D B80B CMP AX,0BB8 ;(>= $7D0 and < $BB8) 姬 $00507960 + (dwID - $7D0) * 5* a" W( k2 o& w8 R4 n E0 q: L1 B
0049C34C |. 73 12 JNB SHORT TAIK2W95.0049C360
0 z9 O) S6 F0 C! u6 r T0049C34E |. 25 FFFF0000 AND EAX,0FFFF
( w8 ^0 {9 j1 @' s0049C353 |. 2D D0070000 SUB EAX,7D0! }. @, e$ F5 ?6 t( m8 ~/ e
0049C358 |. 8D8480 6079500>LEA EAX,DWORD PTR DS:[EAX+EAX*4+507960]
1 I8 I) z$ l$ a: C% W& O0049C35F |. C3 RETN
) p8 P9 D4 r( f K0049C360 |> 25 FFFF0000 AND EAX,0FFFF ;(>= $BB8)
9 w" f, R: \% T, ^2 q8 _2 \0049C365 |. 3D B80B0000 CMP EAX,0BB8 ;(= $BB8) 6 [9 X6 R( G4 e: e6 A6 M
0049C36A |. 74 1A JE SHORT TAIK2W95.0049C386
# M* a& ]3 G2 Y0049C36C |. 3D B90B0000 CMP EAX,0BB9 ;(<= $BB9)* R& I: o h9 B+ c
0049C371 |. 7E 0D JLE SHORT TAIK2W95.0049C3802 W4 {" W7 ?+ j# r* p) [. Q+ Y
0049C373 |. 3D BB0B0000 CMP EAX,0BBB ;(> $BBB)* N2 n& `4 \3 f4 t z
0049C378 |. 7F 06 JG SHORT TAIK2W95.0049C380
* U7 u8 K, T$ \7 m1 y0049C37A |. B8 B8BD5000 MOV EAX,TAIK2W95.0050BDB8 ;(= $BBA or = $BBB) 主人 $0050BDB8
; i: B$ t3 m3 [0 d2 o0 R0049C37F |. C3 RETN
$ {* \9 r! B U. H- u1 x% r9 \/ s0049C380 |> A1 546C5000 MOV EAX,DWORD PTR DS:[506C54] ;(<= $BB9 or > $BBB) NPC $00506C54
% a' u# w6 U" }# ?, T0049C385 |. C3 RETN
8 f7 V/ I1 s3 I/ W& b- @* Z1 b2 n( m0049C386 |> B8 B0BD5000 MOV EAX,TAIK2W95.0050BDB0 ;(= $BB8) 老板娘 $0050BDB0
6 \# [0 t1 [2 R! n& v, t# V3 `# j0049C38B \. C3 RETN |
|