|
楼主 |
发表于 2011-11-27 17:51:25
|
显示全部楼层
获取武将名称地址(反汇编代码):
, N/ c& I- x# r* G有些深奥哦,看不懂就不要强看,不过你看懂了,就入门了。
& U$ k5 N1 Y' a% _0 a& o0 ~% X w+ D- l
+ z2 H3 l% I5 M+ \=============================================================================
# R5 T+ D; e8 _ }- }, R9 W/ [9 z- t004755DA . 6A 00 PUSH 0
! l0 l+ j7 K3 B) w- P7 O004755DC . 68 F8000000 PUSH 0F8
' n+ Q' m; h4 J1 V. k0 `! B' g004755E1 . E8 FAC50300 CALL TAIK2W95.004B1BE0# s! J H. x2 \9 e, I
004755E6 . 8BCF MOV ECX,EDI6 [/ ]& q1 y6 }) O) b3 P e0 V' D
004755E8 . E8 C36C0200 CALL TAIK2W95.0049C2B0 ;------- 取姓氏地址
r( T l2 V! z7 A004755ED . 50 PUSH EAX- m5 m& w% _& b; u7 r
004755EE . E8 4D9A0200 CALL TAIK2W95.0049F040 ;------- 取姓氏& Z% G/ g: H7 }/ A, R7 r
004755F3 . 83C4 04 ADD ESP,4
' W* j( X7 N0 |004755F6 . 68 A8965100 PUSH TAIK2W95.005196A8
$ l3 a. d# _9 i- i; t' |, [1 E4 z004755FB . E8 C0690700 CALL TAIK2W95.004EBFC0
& Z+ g1 T) B! p0 i Z" P# m, a00475600 . 83C4 04 ADD ESP,4, q9 A$ I3 ^5 J6 m6 z; U
00475603 . 8BCF MOV ECX,EDI
7 e8 m" s; P' I4 a' D; @2 i/ P$ T( s00475605 . E8 066D0200 CALL TAIK2W95.0049C310 ;------- 取名字地址
7 y. H2 h& M% H( r0047560A . 50 PUSH EAX+ m2 E1 h7 z+ C$ r4 `# c# P- V, }
0047560B . E8 609A0200 CALL TAIK2W95.0049F070 ;------- 取名字
- x4 R+ x" @1 B R, }
# ?8 ^; o' A8 o- \3 y0 r=============================================================================
5 R9 T+ }/ W. M/ e2 A6 l1 }1 O$ X;------- 取姓氏地址" A q( L% {- R/ C
0049C2B0 /$ 66:8B01 MOV AX,WORD PTR DS:[ECX]
; |* A: \/ a. A4 ^$ @4 X! ~0049C2B3 |. 66:3D E803 CMP AX,3E8 ;< $3E8 历史人物 $00521AA8 + dwID * 7
6 w9 ~3 {% T4 L5 D2 Z0049C2B7 |. 73 12 JNB SHORT TAIK2W95.0049C2CB
: N; c3 _: p% _6 T) ?$ l0049C2B9 |. 25 FFFF0000 AND EAX,0FFFF
. z& ?6 H$ e2 T1 z1 a+ G2 e0049C2BE |. 8BC8 MOV ECX,EAX0 | @4 S) x- J0 W# D. s1 T
0049C2C0 |. C1E0 03 SHL EAX,37 Q7 I* ]: v3 t H
0049C2C3 |. 2BC1 SUB EAX,ECX
2 t* | I6 [0 p3 Q3 `1 T# S( S0049C2C5 |. 05 A81A5200 ADD EAX,TAIK2W95.00521AA8
) e; H+ j- p' t7 M0049C2CA |. C3 RETN
r o7 l; z5 z z7 o0049C2CB |> 66:3D D007 CMP AX,7D0 ;(>= $3E8 and < $7D0) 特殊人物 $005077B0 + (dwID - $3E8) * 75 J" |. [. L- H
0049C2CF |. 73 17 JNB SHORT TAIK2W95.0049C2E8
8 `1 j1 W) U F0049C2D1 |. 25 FFFF0000 AND EAX,0FFFF
* m7 W- {, ?8 X8 Q, c% g0049C2D6 |. 2D E8030000 SUB EAX,3E8& g1 U( g2 H9 O( ~0 b* y8 I
0049C2DB |. 8BC8 MOV ECX,EAX
, C4 K- @6 c: j S/ l# x0049C2DD |. C1E0 03 SHL EAX,3
! Q1 d* |( X, N" {0 ^/ {# f: y0049C2E0 |. 2BC1 SUB EAX,ECX
; ]& O3 n) x% o( S. L0049C2E2 |. 05 B0775000 ADD EAX,TAIK2W95.005077B0
5 j4 _5 q' _: W% T* P0049C2E7 |. C3 RETN
" s. E+ {! j. ^! m/ E9 @/ k0 K0049C2E8 |> 66:3D B80B CMP AX,0BB8 ;(>= $7D0 and < $BB8) $00506C542 D0 C$ N) [, y( a
0049C2EC |. 73 06 JNB SHORT TAIK2W95.0049C2F4
3 y8 y( G8 U; x$ ~3 h6 O0049C2EE |. A1 546C5000 MOV EAX,DWORD PTR DS:[506C54]+ r: e; e' [/ D4 ?
0049C2F3 |. C3 RETN7 F! {) b `7 r! W4 d" f
0049C2F4 |> 25 FFFF0000 AND EAX,0FFFF ;(>= $BB8) NPC $00507978 + (dwID - $BB8) * 75 A* k1 b; n, y+ }, k
0049C2F9 |. 2D B80B0000 SUB EAX,0BB8# V7 a1 H; G9 s, j* T& S8 {
0049C2FE |. 8BC8 MOV ECX,EAX/ h# K+ b% i. z6 c
0049C300 |. C1E0 03 SHL EAX,3
! P+ B) _* P0 s E* d) A- o0049C303 |. 2BC1 SUB EAX,ECX
& G; i+ i0 {' Q8 @/ I9 L2 Q8 V' Q0049C305 |. 05 78795000 ADD EAX,TAIK2W95.005079788 x( e$ B- B* F
0049C30A \. C3 RETN
* g& h5 \/ [- n( t! q+ C0 h=============================================================================
' g3 z0 Q; L9 H' y$ V1 j;------- 取名字地址/ R* b3 h l* F0 o. ^- Z( c2 ~
0049C310 /$ 66:8B01 MOV AX,WORD PTR DS:[ECX]! V3 u3 [- s5 I* o u
0049C313 |. 66:3D E803 CMP AX,3E8 ;< $3E8 历史人物 $00520660 + dwID * 7
* S1 E( N$ W: ~$ z0 ]0049C317 |. 73 12 JNB SHORT TAIK2W95.0049C32B. B5 T) v" P0 |8 |1 m
0049C319 |. 25 FFFF0000 AND EAX,0FFFF
9 Q X) ]- h2 f0049C31E |. 8BC8 MOV ECX,EAX, H$ |4 b* K3 T9 Z; }1 x
0049C320 |. C1E0 03 SHL EAX,35 k) W5 D7 I9 h0 p
0049C323 |. 2BC1 SUB EAX,ECX
- Q4 } X$ P: T0049C325 |. 05 60065200 ADD EAX,TAIK2W95.00520660
0 b* \: j( Q7 ^$ i2 [- f/ c0049C32A |. C3 RETN
: x' z" b, x- y. w/ W" S0049C32B |> 66:3D D007 CMP AX,7D0 ;(>= $3E8 and < $7D0) 特殊人物 $00507888 + (dwID - $3E8) * 7
& |' `1 ~' S, `5 X; L0049C32F |. 73 17 JNB SHORT TAIK2W95.0049C348
/ k3 H* t* f s% g# x0049C331 |. 25 FFFF0000 AND EAX,0FFFF
/ Q& H1 z+ v# V# H, d# L0049C336 |. 2D E8030000 SUB EAX,3E8+ F3 R0 ^. q/ |5 T( s" q
0049C33B |. 8BC8 MOV ECX,EAX" ]0 e5 W& [$ M" e7 i
0049C33D |. C1E0 03 SHL EAX,3, @8 m* T$ }& N# v% Y8 \
0049C340 |. 2BC1 SUB EAX,ECX
7 D! K+ V; j4 G3 b8 k0049C342 |. 05 88785000 ADD EAX,TAIK2W95.00507888
; Y3 C. }/ y# @: z. c8 r; i0049C347 |. C3 RETN
1 o E$ @6 @' R3 R) n, @4 E0049C348 |> 66:3D B80B CMP AX,0BB8 ;(>= $7D0 and < $BB8) 姬 $00507960 + (dwID - $7D0) * 5
" T+ w& F6 T/ O! j& ~1 c, @0049C34C |. 73 12 JNB SHORT TAIK2W95.0049C360
+ D4 ]3 Q8 X6 z% x" i, n8 p0049C34E |. 25 FFFF0000 AND EAX,0FFFF
1 I% M$ o7 m9 e% F0049C353 |. 2D D0070000 SUB EAX,7D0' a& M! t; P3 d. T# V3 L1 |- j
0049C358 |. 8D8480 6079500>LEA EAX,DWORD PTR DS:[EAX+EAX*4+507960]
( @. I1 F8 N) U4 Q C0 F5 @0 v d0049C35F |. C3 RETN
+ G- L% ?$ i% I/ l0049C360 |> 25 FFFF0000 AND EAX,0FFFF ;(>= $BB8) 3 l( d6 v& \: b) ^9 Y. P0 X
0049C365 |. 3D B80B0000 CMP EAX,0BB8 ;(= $BB8) ' p; m5 P8 c+ Q* y6 m9 g6 m1 r
0049C36A |. 74 1A JE SHORT TAIK2W95.0049C386
& x3 o2 [- r W$ w: g" h* I5 I0049C36C |. 3D B90B0000 CMP EAX,0BB9 ;(<= $BB9)
7 ~+ d9 r- l: p% e0 G0049C371 |. 7E 0D JLE SHORT TAIK2W95.0049C380; Y* z5 `7 a2 v: C
0049C373 |. 3D BB0B0000 CMP EAX,0BBB ;(> $BBB)
- ?6 v) @0 k, D5 o5 Q0049C378 |. 7F 06 JG SHORT TAIK2W95.0049C380
, ^( J g& J# [$ m% g! Y' g0 B$ {0049C37A |. B8 B8BD5000 MOV EAX,TAIK2W95.0050BDB8 ;(= $BBA or = $BBB) 主人 $0050BDB8
& U$ \: i: m/ X! d% d0049C37F |. C3 RETN
4 t8 `3 n$ r' a/ e' Y0 v2 v' O3 f P9 `0049C380 |> A1 546C5000 MOV EAX,DWORD PTR DS:[506C54] ;(<= $BB9 or > $BBB) NPC $00506C54
6 W( H: \9 Z5 V- P! P0049C385 |. C3 RETN
8 E* ~, W$ M5 p7 M% y" P- d0049C386 |> B8 B0BD5000 MOV EAX,TAIK2W95.0050BDB0 ;(= $BB8) 老板娘 $0050BDB03 C- s) r5 e# V( t! v
0049C38B \. C3 RETN |
|