|
楼主 |
发表于 2011-11-27 17:51:25
|
显示全部楼层
获取武将名称地址(反汇编代码):
. Z9 F+ f; }2 a' k" ]- ~+ i9 x有些深奥哦,看不懂就不要强看,不过你看懂了,就入门了。) z& Z7 v8 [; M
/ {. \5 o, ^2 T% Z+ b& T=============================================================================
$ h/ c% h o" U/ e |004755DA . 6A 00 PUSH 0
, a' Z0 T; x& H/ R004755DC . 68 F8000000 PUSH 0F80 B0 L9 n: J# x2 ^% y4 M
004755E1 . E8 FAC50300 CALL TAIK2W95.004B1BE0) P% I$ N+ X0 v8 |+ g
004755E6 . 8BCF MOV ECX,EDI4 {' g$ |8 v2 i2 w
004755E8 . E8 C36C0200 CALL TAIK2W95.0049C2B0 ;------- 取姓氏地址- I: k- Q5 ?* T% [9 I! D
004755ED . 50 PUSH EAX( G+ C5 P; t: F
004755EE . E8 4D9A0200 CALL TAIK2W95.0049F040 ;------- 取姓氏$ J2 A+ }7 J0 W! R
004755F3 . 83C4 04 ADD ESP,4
% z+ e- H# A5 v$ W4 i" E004755F6 . 68 A8965100 PUSH TAIK2W95.005196A83 K |2 v/ H1 w' J, i' }% J& H5 M
004755FB . E8 C0690700 CALL TAIK2W95.004EBFC0' O7 [' {( ~% I/ n. |4 g
00475600 . 83C4 04 ADD ESP,4* C- W$ n6 F2 f, r
00475603 . 8BCF MOV ECX,EDI& ~5 d- E) n+ J
00475605 . E8 066D0200 CALL TAIK2W95.0049C310 ;------- 取名字地址7 o+ W8 k$ G0 k
0047560A . 50 PUSH EAX
" q* h8 P, L( R/ I$ _& T7 c; m0047560B . E8 609A0200 CALL TAIK2W95.0049F070 ;------- 取名字. ?' P" w5 o7 l$ Q
" |% b. r/ H+ J8 s4 M=============================================================================
- h3 [' o& x3 };------- 取姓氏地址8 e6 M9 }3 E/ L8 H( F+ Q& \0 B$ U
0049C2B0 /$ 66:8B01 MOV AX,WORD PTR DS:[ECX]; p% j! t' p; x9 @9 m
0049C2B3 |. 66:3D E803 CMP AX,3E8 ;< $3E8 历史人物 $00521AA8 + dwID * 7" ~ z1 V# }6 G. o3 p: ^
0049C2B7 |. 73 12 JNB SHORT TAIK2W95.0049C2CB4 s* L) @ p: [8 l. a# x
0049C2B9 |. 25 FFFF0000 AND EAX,0FFFF
2 \% Z8 C/ e) @0 o" k0 X& k& p0049C2BE |. 8BC8 MOV ECX,EAX1 y0 |) F# S) o9 Q
0049C2C0 |. C1E0 03 SHL EAX,3% X" }6 o' R( X" F- a
0049C2C3 |. 2BC1 SUB EAX,ECX
! ~& U$ ]! @( b' ?" |& F0 h: z2 F0049C2C5 |. 05 A81A5200 ADD EAX,TAIK2W95.00521AA8
* i+ ?% N! C; `% u3 t0049C2CA |. C3 RETN
8 F2 o, h! H& c# B* o# n; k& n0049C2CB |> 66:3D D007 CMP AX,7D0 ;(>= $3E8 and < $7D0) 特殊人物 $005077B0 + (dwID - $3E8) * 7+ a1 n' `, A9 ]) L- Q
0049C2CF |. 73 17 JNB SHORT TAIK2W95.0049C2E8
1 T. X: ?+ L5 v% Q! l' g1 E( ?0049C2D1 |. 25 FFFF0000 AND EAX,0FFFF6 n. F7 ]) h$ D+ R: r3 J
0049C2D6 |. 2D E8030000 SUB EAX,3E8
* @* }8 m( Y( M" D, y: L" T3 s0049C2DB |. 8BC8 MOV ECX,EAX( D+ j; k* ?1 [% G* b
0049C2DD |. C1E0 03 SHL EAX,3. t# |0 }, _, P0 O: C$ A( m
0049C2E0 |. 2BC1 SUB EAX,ECX
/ a+ v$ ^: E+ M, [5 W- Q0049C2E2 |. 05 B0775000 ADD EAX,TAIK2W95.005077B0, p; S1 K) Z7 J! U$ k
0049C2E7 |. C3 RETN& s' {1 J% V1 m9 `3 O
0049C2E8 |> 66:3D B80B CMP AX,0BB8 ;(>= $7D0 and < $BB8) $00506C546 _# W( X8 k7 j2 U% i
0049C2EC |. 73 06 JNB SHORT TAIK2W95.0049C2F4
- e6 T( s# U% y8 { Q9 c0049C2EE |. A1 546C5000 MOV EAX,DWORD PTR DS:[506C54]. a0 Z) t6 i/ q9 K2 A
0049C2F3 |. C3 RETN8 f" E: i" L! E2 l) D
0049C2F4 |> 25 FFFF0000 AND EAX,0FFFF ;(>= $BB8) NPC $00507978 + (dwID - $BB8) * 7. J( j: A2 B* M- x( d
0049C2F9 |. 2D B80B0000 SUB EAX,0BB8, R1 H+ m! ^& B7 M1 q2 J+ o
0049C2FE |. 8BC8 MOV ECX,EAX
" d0 c% e0 u, W$ x6 ?0049C300 |. C1E0 03 SHL EAX,3
& T8 C9 f, ` H# I5 s0049C303 |. 2BC1 SUB EAX,ECX
* w, f7 s2 G3 u+ i0049C305 |. 05 78795000 ADD EAX,TAIK2W95.00507978' \" P( E% ~. K* `
0049C30A \. C3 RETN
3 N; C7 A' K9 i. t4 P=============================================================================" y* r- V& L( f1 i- @" a
;------- 取名字地址: k( u5 e/ t- l2 ]/ `( k9 n9 [
0049C310 /$ 66:8B01 MOV AX,WORD PTR DS:[ECX]% ?# u! p. }7 g( k A- I$ P0 k" ?
0049C313 |. 66:3D E803 CMP AX,3E8 ;< $3E8 历史人物 $00520660 + dwID * 7% O. N5 W9 G2 z. @) b0 b) b
0049C317 |. 73 12 JNB SHORT TAIK2W95.0049C32B
8 v6 n. W, \# M: e0049C319 |. 25 FFFF0000 AND EAX,0FFFF
9 o ?1 |3 ^! D+ n: L0049C31E |. 8BC8 MOV ECX,EAX/ a0 z8 R0 O6 C+ L9 i
0049C320 |. C1E0 03 SHL EAX,35 Y5 B4 p0 p x- l- [- @
0049C323 |. 2BC1 SUB EAX,ECX
( A/ g8 j! o C& P+ c$ V0049C325 |. 05 60065200 ADD EAX,TAIK2W95.00520660! `* n, v* i5 q
0049C32A |. C3 RETN
- e3 a- B! A3 e3 e. |3 c4 }0049C32B |> 66:3D D007 CMP AX,7D0 ;(>= $3E8 and < $7D0) 特殊人物 $00507888 + (dwID - $3E8) * 7" }, Q: ?; O: n" o; {
0049C32F |. 73 17 JNB SHORT TAIK2W95.0049C348: B4 @6 {; |# r( f4 K" ^0 \ `
0049C331 |. 25 FFFF0000 AND EAX,0FFFF- i) O; w% E+ `8 ?/ V3 t5 A
0049C336 |. 2D E8030000 SUB EAX,3E83 C$ ?; A* v2 V! z7 R8 z. N5 s
0049C33B |. 8BC8 MOV ECX,EAX
+ M3 s3 |8 B: P' ^, s0 o0049C33D |. C1E0 03 SHL EAX,3
9 S/ b- |, b0 W7 J+ K0 J/ U4 [0049C340 |. 2BC1 SUB EAX,ECX
: R- P( Y1 [8 l/ F0049C342 |. 05 88785000 ADD EAX,TAIK2W95.00507888
- T9 T" U) L& V( ~0049C347 |. C3 RETN
# B; F" d3 R4 m: \* O0049C348 |> 66:3D B80B CMP AX,0BB8 ;(>= $7D0 and < $BB8) 姬 $00507960 + (dwID - $7D0) * 5( l% H* d6 {9 J$ t, `* f- ~
0049C34C |. 73 12 JNB SHORT TAIK2W95.0049C360
- X% w# ?$ a# t E# }1 N0049C34E |. 25 FFFF0000 AND EAX,0FFFF! j: c7 \, ?6 D R. J+ h
0049C353 |. 2D D0070000 SUB EAX,7D05 M. ?! k' [2 e9 |* n4 t5 l# h
0049C358 |. 8D8480 6079500>LEA EAX,DWORD PTR DS:[EAX+EAX*4+507960]- ]" x' D2 C2 m' l
0049C35F |. C3 RETN
: F; }, G6 l' P/ D6 ~& s9 l: `0049C360 |> 25 FFFF0000 AND EAX,0FFFF ;(>= $BB8)
) M4 Z' k% V" ^5 f* m9 G0049C365 |. 3D B80B0000 CMP EAX,0BB8 ;(= $BB8)
' H6 I' A. w8 D% w7 L; K# P0049C36A |. 74 1A JE SHORT TAIK2W95.0049C3868 t7 o8 p7 }& }9 t+ s, q
0049C36C |. 3D B90B0000 CMP EAX,0BB9 ;(<= $BB9)( N* M4 I9 I+ g- J
0049C371 |. 7E 0D JLE SHORT TAIK2W95.0049C3803 {0 Q* T! Q9 m
0049C373 |. 3D BB0B0000 CMP EAX,0BBB ;(> $BBB)
: h" ]9 |4 m! M, z X0049C378 |. 7F 06 JG SHORT TAIK2W95.0049C380
& K9 c* p3 f% N2 m0049C37A |. B8 B8BD5000 MOV EAX,TAIK2W95.0050BDB8 ;(= $BBA or = $BBB) 主人 $0050BDB8* i! \6 w. _# U" a: m
0049C37F |. C3 RETN+ g: x! S/ m0 s3 G
0049C380 |> A1 546C5000 MOV EAX,DWORD PTR DS:[506C54] ;(<= $BB9 or > $BBB) NPC $00506C54" K0 R9 g7 J) Q7 W7 T/ z
0049C385 |. C3 RETN
! R' M/ d& M& S) B ~7 G0049C386 |> B8 B0BD5000 MOV EAX,TAIK2W95.0050BDB0 ;(= $BB8) 老板娘 $0050BDB0! |- m% N7 n5 u6 w, y" Y; H" @
0049C38B \. C3 RETN |
|