|
楼主 |
发表于 2011-11-27 17:51:25
|
显示全部楼层
获取武将名称地址(反汇编代码):
8 q* Q( ~* u# W8 V有些深奥哦,看不懂就不要强看,不过你看懂了,就入门了。( [8 V8 J( n/ k/ F: @
* k& b6 z" c- t) G5 H+ r=============================================================================
) o# J! g! S/ s- w+ z8 w004755DA . 6A 00 PUSH 0
; q) M, `& i' K# E; o" |004755DC . 68 F8000000 PUSH 0F8% ]$ ~8 n. e9 B9 U% x3 r
004755E1 . E8 FAC50300 CALL TAIK2W95.004B1BE0! M" l1 d7 {+ d1 U/ ?
004755E6 . 8BCF MOV ECX,EDI/ t% S) {& ^( c# ^
004755E8 . E8 C36C0200 CALL TAIK2W95.0049C2B0 ;------- 取姓氏地址$ i9 F/ m7 V! O+ p/ W2 Y8 R! F
004755ED . 50 PUSH EAX
8 V! e4 h; U" H6 H004755EE . E8 4D9A0200 CALL TAIK2W95.0049F040 ;------- 取姓氏
+ e, g( k4 u' v- g004755F3 . 83C4 04 ADD ESP,44 m ]% H) W, X4 o
004755F6 . 68 A8965100 PUSH TAIK2W95.005196A8
: f' d" {+ D, N7 ?) Q2 a004755FB . E8 C0690700 CALL TAIK2W95.004EBFC07 E8 d# S) n2 Z/ ^+ Q5 V1 R
00475600 . 83C4 04 ADD ESP,4
; M% d3 x$ ]4 X& r( d6 Y* ?1 O00475603 . 8BCF MOV ECX,EDI& b' n4 ~2 _7 [
00475605 . E8 066D0200 CALL TAIK2W95.0049C310 ;------- 取名字地址
; b% I' g6 B) x5 W0047560A . 50 PUSH EAX
# B' @! |& u5 i( F; B0047560B . E8 609A0200 CALL TAIK2W95.0049F070 ;------- 取名字7 a, u7 j- N; s/ A( v
3 L1 z9 ~7 {. B& ?6 z R' e=============================================================================) I* @# G& T% W: [( L. R$ f
;------- 取姓氏地址5 K2 `7 Q; N$ Q% b9 k0 {' K- @6 `' B
0049C2B0 /$ 66:8B01 MOV AX,WORD PTR DS:[ECX]
& Q/ ?! b, q- l/ ^/ _0049C2B3 |. 66:3D E803 CMP AX,3E8 ;< $3E8 历史人物 $00521AA8 + dwID * 7
9 T# t: n/ s, `; O# r0049C2B7 |. 73 12 JNB SHORT TAIK2W95.0049C2CB
% j1 d( ]# T# i6 a0049C2B9 |. 25 FFFF0000 AND EAX,0FFFF! S h/ G. |5 Y
0049C2BE |. 8BC8 MOV ECX,EAX& g1 `4 ~; Q+ Z
0049C2C0 |. C1E0 03 SHL EAX,3
2 l9 Y' p$ K5 T; i1 [% ^0049C2C3 |. 2BC1 SUB EAX,ECX
! A/ ~: d1 ^8 f' Z; }0049C2C5 |. 05 A81A5200 ADD EAX,TAIK2W95.00521AA8' R& c! i e& I2 L
0049C2CA |. C3 RETN& p3 ]3 i' }4 r7 p9 ~
0049C2CB |> 66:3D D007 CMP AX,7D0 ;(>= $3E8 and < $7D0) 特殊人物 $005077B0 + (dwID - $3E8) * 7
- H; m0 t, {5 Y* G0049C2CF |. 73 17 JNB SHORT TAIK2W95.0049C2E82 p" b& E9 v5 L2 q/ Y
0049C2D1 |. 25 FFFF0000 AND EAX,0FFFF
: A; S1 [- f. \. @9 R5 O- y0049C2D6 |. 2D E8030000 SUB EAX,3E8
1 J/ i. D% }1 t& n0049C2DB |. 8BC8 MOV ECX,EAX
3 h5 d" \& t. t9 `8 p; Q0049C2DD |. C1E0 03 SHL EAX,3
+ r% e* S8 y2 S- i8 |0049C2E0 |. 2BC1 SUB EAX,ECX* |! I9 H+ Y1 ], n' x7 D q. U
0049C2E2 |. 05 B0775000 ADD EAX,TAIK2W95.005077B02 t' _3 R9 ?% h9 X0 |! H
0049C2E7 |. C3 RETN
5 X* X4 y& O: Y0049C2E8 |> 66:3D B80B CMP AX,0BB8 ;(>= $7D0 and < $BB8) $00506C54
1 v6 k5 |9 u- N& d0049C2EC |. 73 06 JNB SHORT TAIK2W95.0049C2F46 p1 v6 e, k4 ?* i: y; I. f, J% E
0049C2EE |. A1 546C5000 MOV EAX,DWORD PTR DS:[506C54]7 g. ]* O+ z) B0 t! H3 [0 I7 ^
0049C2F3 |. C3 RETN
8 z |4 `! w1 ]# L% _0049C2F4 |> 25 FFFF0000 AND EAX,0FFFF ;(>= $BB8) NPC $00507978 + (dwID - $BB8) * 7$ r1 \: k+ _$ |1 p# |" P M$ j
0049C2F9 |. 2D B80B0000 SUB EAX,0BB83 I3 P0 ]3 f* \% I6 c$ R( w0 b8 E
0049C2FE |. 8BC8 MOV ECX,EAX
% M" Q N6 u! t9 O+ A0 Q9 G8 i! c- t0049C300 |. C1E0 03 SHL EAX,3
8 G3 j1 l# C. u# q2 f0049C303 |. 2BC1 SUB EAX,ECX1 f. U n# d, u' H- [& ^
0049C305 |. 05 78795000 ADD EAX,TAIK2W95.00507978
8 D$ h* ^: W& r+ L0049C30A \. C3 RETN
: [- w; T; x7 Z( c5 B=============================================================================
2 ]) k- F/ i1 N7 p( x; p;------- 取名字地址) \$ n2 s! ^, c! Y/ b5 W' F
0049C310 /$ 66:8B01 MOV AX,WORD PTR DS:[ECX]& X9 S7 G/ q2 M9 [. [- {( N) f
0049C313 |. 66:3D E803 CMP AX,3E8 ;< $3E8 历史人物 $00520660 + dwID * 7
$ [4 F, _6 ~) g; Y2 q0049C317 |. 73 12 JNB SHORT TAIK2W95.0049C32B
1 i" X+ S; |% X$ o1 d4 u2 U0049C319 |. 25 FFFF0000 AND EAX,0FFFF
; ~) V9 S- D4 `1 T0049C31E |. 8BC8 MOV ECX,EAX
2 i3 R0 b* O: H$ p0049C320 |. C1E0 03 SHL EAX,3
: {( u+ I. E' m K5 ?. Z0049C323 |. 2BC1 SUB EAX,ECX
9 c, m7 m& j0 Q3 n2 S8 O. t0049C325 |. 05 60065200 ADD EAX,TAIK2W95.00520660
+ z/ {6 z. X& M, G: W6 v0049C32A |. C3 RETN
$ b8 \! I! b7 D0 P0049C32B |> 66:3D D007 CMP AX,7D0 ;(>= $3E8 and < $7D0) 特殊人物 $00507888 + (dwID - $3E8) * 7
% s+ F7 ]) p7 s# W7 J& e0049C32F |. 73 17 JNB SHORT TAIK2W95.0049C348
- T8 d9 a% E3 E# M0049C331 |. 25 FFFF0000 AND EAX,0FFFF& w4 U! G3 I' V1 ~
0049C336 |. 2D E8030000 SUB EAX,3E8% Y: Y( H& z) A9 [- E
0049C33B |. 8BC8 MOV ECX,EAX
1 Y h9 B: a5 ~9 A8 N. O0049C33D |. C1E0 03 SHL EAX,3
& V$ L+ w- `' z+ W" z0 Z4 e- q1 Z1 v0049C340 |. 2BC1 SUB EAX,ECX7 o( G4 x' t. y9 o0 z; I
0049C342 |. 05 88785000 ADD EAX,TAIK2W95.00507888% d, h! {6 j c
0049C347 |. C3 RETN
* y; x$ l9 e' E0049C348 |> 66:3D B80B CMP AX,0BB8 ;(>= $7D0 and < $BB8) 姬 $00507960 + (dwID - $7D0) * 5
z+ Q( p! v5 @5 C$ R0049C34C |. 73 12 JNB SHORT TAIK2W95.0049C360$ @$ _' o/ Y2 u
0049C34E |. 25 FFFF0000 AND EAX,0FFFF
: y+ |3 }, ~) t1 i+ |' U' N0049C353 |. 2D D0070000 SUB EAX,7D0" ~9 v5 E, H. V$ u& Q, B N: x
0049C358 |. 8D8480 6079500>LEA EAX,DWORD PTR DS:[EAX+EAX*4+507960]1 s3 {) i* k+ n. S3 M1 S6 n
0049C35F |. C3 RETN+ p% x J: G L7 x" o3 N! x% ~
0049C360 |> 25 FFFF0000 AND EAX,0FFFF ;(>= $BB8)
. n) V$ X" V9 x. w* {0049C365 |. 3D B80B0000 CMP EAX,0BB8 ;(= $BB8)
5 u1 a4 h* g k# |7 I' T2 j0049C36A |. 74 1A JE SHORT TAIK2W95.0049C386: N( G* H; Q. Y) c; O
0049C36C |. 3D B90B0000 CMP EAX,0BB9 ;(<= $BB9)
+ L e& Y# q9 k: P2 ] _* a0049C371 |. 7E 0D JLE SHORT TAIK2W95.0049C380# @3 ?! i" v& ^2 D
0049C373 |. 3D BB0B0000 CMP EAX,0BBB ;(> $BBB)
+ A7 m$ p0 f+ X4 \# J0049C378 |. 7F 06 JG SHORT TAIK2W95.0049C380
, P% k) r j+ J2 O7 T+ W& i2 F {0049C37A |. B8 B8BD5000 MOV EAX,TAIK2W95.0050BDB8 ;(= $BBA or = $BBB) 主人 $0050BDB8* l$ Q* `8 T! s6 y+ A! Q$ d" g) c
0049C37F |. C3 RETN8 n/ ]1 f3 @9 e8 R
0049C380 |> A1 546C5000 MOV EAX,DWORD PTR DS:[506C54] ;(<= $BB9 or > $BBB) NPC $00506C54, ?7 Z5 F: d# x2 e% l [
0049C385 |. C3 RETN
& f" C7 P; u& a$ ~4 A% m0049C386 |> B8 B0BD5000 MOV EAX,TAIK2W95.0050BDB0 ;(= $BB8) 老板娘 $0050BDB0
% R; L. |( G) G2 _0049C38B \. C3 RETN |
|