|
楼主 |
发表于 2011-11-27 17:51:25
|
显示全部楼层
获取武将名称地址(反汇编代码):
. g3 q* `1 t' s" ~' e, d4 Q有些深奥哦,看不懂就不要强看,不过你看懂了,就入门了。
5 r' I* x+ B/ v0 g% N+ g* a& h% Q+ p0 C+ |, x; S- N J
=============================================================================+ b2 V+ l# Z4 S2 Z. _+ n+ \
004755DA . 6A 00 PUSH 0
; f7 @9 @- K! `# ?: ]004755DC . 68 F8000000 PUSH 0F8
2 e+ k/ g. Z- S+ q+ y4 C6 {7 r* Z004755E1 . E8 FAC50300 CALL TAIK2W95.004B1BE02 h: C; H) ~/ c& G
004755E6 . 8BCF MOV ECX,EDI
* t0 i5 z0 N. H. H004755E8 . E8 C36C0200 CALL TAIK2W95.0049C2B0 ;------- 取姓氏地址
) l* u7 T- A9 M, _004755ED . 50 PUSH EAX
. O3 B- J6 g, ?3 n, b004755EE . E8 4D9A0200 CALL TAIK2W95.0049F040 ;------- 取姓氏
" N: ^0 O1 \. w1 O* \ ?004755F3 . 83C4 04 ADD ESP,4! b- C" _, ?7 M
004755F6 . 68 A8965100 PUSH TAIK2W95.005196A89 i( r$ h% B/ X8 |/ _3 m
004755FB . E8 C0690700 CALL TAIK2W95.004EBFC0
, F$ B& F& R2 J- a00475600 . 83C4 04 ADD ESP,4+ n" w$ e% d6 i
00475603 . 8BCF MOV ECX,EDI
1 s& g" K( L3 q5 }3 u. `00475605 . E8 066D0200 CALL TAIK2W95.0049C310 ;------- 取名字地址! A4 F: ?* r9 F/ N' w; t* H
0047560A . 50 PUSH EAX
; Z5 u" h" i9 u$ n( \0047560B . E8 609A0200 CALL TAIK2W95.0049F070 ;------- 取名字 t, x0 B, T* Z9 @" _/ ]2 b
& J! l+ P e+ b1 D% z+ g# h2 w4 b7 ]=============================================================================( D) T1 k% H8 l7 m8 g1 d
;------- 取姓氏地址8 K `- I. U/ @/ Q9 r
0049C2B0 /$ 66:8B01 MOV AX,WORD PTR DS:[ECX]9 g- a/ x/ U) R- b4 u& {. v
0049C2B3 |. 66:3D E803 CMP AX,3E8 ;< $3E8 历史人物 $00521AA8 + dwID * 7
+ e3 I: X# d1 b1 J0049C2B7 |. 73 12 JNB SHORT TAIK2W95.0049C2CB
$ e. x) y; F5 J7 _5 r* ?) @- p# }0049C2B9 |. 25 FFFF0000 AND EAX,0FFFF
) i1 A5 I% c3 m) ~0049C2BE |. 8BC8 MOV ECX,EAX
$ \4 Z5 {7 N6 `6 b0049C2C0 |. C1E0 03 SHL EAX,3
- W, E1 Z& N# n) y5 d0049C2C3 |. 2BC1 SUB EAX,ECX
; S9 X6 u$ |2 |! c2 z/ I3 N) ^0049C2C5 |. 05 A81A5200 ADD EAX,TAIK2W95.00521AA8
* y) A! r3 J7 L- O& U( |! a+ \- |% J0049C2CA |. C3 RETN
( n6 E! ?" m) B* j7 z6 L6 ~9 E, i0049C2CB |> 66:3D D007 CMP AX,7D0 ;(>= $3E8 and < $7D0) 特殊人物 $005077B0 + (dwID - $3E8) * 76 @( m# j1 u! W* [; m
0049C2CF |. 73 17 JNB SHORT TAIK2W95.0049C2E8
0 O9 s! R6 B) S' \7 F0049C2D1 |. 25 FFFF0000 AND EAX,0FFFF
2 J: I$ r1 }/ q$ e0 z% {! M0049C2D6 |. 2D E8030000 SUB EAX,3E81 k$ ]: i$ s- p4 i& F
0049C2DB |. 8BC8 MOV ECX,EAX
/ R: y+ I4 @. w6 z" p) h$ [0049C2DD |. C1E0 03 SHL EAX,32 J$ C+ B1 M/ S4 N, t0 _+ K
0049C2E0 |. 2BC1 SUB EAX,ECX
, K6 G' [/ }% _0 K2 [ P0049C2E2 |. 05 B0775000 ADD EAX,TAIK2W95.005077B0
- \# M+ ~: I) j8 R0049C2E7 |. C3 RETN% m/ [8 l9 }- s7 p* @. g9 F
0049C2E8 |> 66:3D B80B CMP AX,0BB8 ;(>= $7D0 and < $BB8) $00506C54
: ~# s( l; [' s6 [; k8 C2 }9 `0049C2EC |. 73 06 JNB SHORT TAIK2W95.0049C2F4
8 x( l" V7 ~6 ?- X% I7 N0049C2EE |. A1 546C5000 MOV EAX,DWORD PTR DS:[506C54]2 a8 A5 w2 c) W7 ~1 k$ a) W$ _1 |
0049C2F3 |. C3 RETN
! X, w3 _9 I2 R6 F0049C2F4 |> 25 FFFF0000 AND EAX,0FFFF ;(>= $BB8) NPC $00507978 + (dwID - $BB8) * 7
2 V, i6 L1 E* L, X4 `. R0049C2F9 |. 2D B80B0000 SUB EAX,0BB8
' e6 C8 r* }8 h' ]0049C2FE |. 8BC8 MOV ECX,EAX% _7 Y7 h% H: p4 R V
0049C300 |. C1E0 03 SHL EAX,3" K2 D0 U9 G- a" |; @% f' r
0049C303 |. 2BC1 SUB EAX,ECX4 e2 _% J/ r/ T- ^4 G
0049C305 |. 05 78795000 ADD EAX,TAIK2W95.00507978
* O" `5 i L/ c8 d0049C30A \. C3 RETN8 [7 P/ Q7 l! u0 A, ?
=============================================================================! q9 k* \4 v5 ~* u2 Y0 f( I
;------- 取名字地址
8 J- [6 A7 `' T1 R# b. M6 m0049C310 /$ 66:8B01 MOV AX,WORD PTR DS:[ECX]/ _8 _8 P9 J! o2 b- z
0049C313 |. 66:3D E803 CMP AX,3E8 ;< $3E8 历史人物 $00520660 + dwID * 7
2 |$ z h# u$ |1 u( ~; s' w+ i0049C317 |. 73 12 JNB SHORT TAIK2W95.0049C32B/ r9 X3 z4 U& _: ^+ e# g
0049C319 |. 25 FFFF0000 AND EAX,0FFFF
# d9 K r3 v* M' R7 r1 d/ E0049C31E |. 8BC8 MOV ECX,EAX
- t) ^' K4 n5 r2 D* @9 _; P1 Z2 ?9 B# A: f0049C320 |. C1E0 03 SHL EAX,3
. b* R! C: N& _; B9 A) e: q: @' v1 V0049C323 |. 2BC1 SUB EAX,ECX) `, ~) a! ]- _+ T' @4 M
0049C325 |. 05 60065200 ADD EAX,TAIK2W95.00520660
7 |8 S6 C/ G4 G. h0049C32A |. C3 RETN
9 c9 z- ]7 `* f$ e0049C32B |> 66:3D D007 CMP AX,7D0 ;(>= $3E8 and < $7D0) 特殊人物 $00507888 + (dwID - $3E8) * 77 u2 y) x2 S0 E8 C! ~% }0 [+ s
0049C32F |. 73 17 JNB SHORT TAIK2W95.0049C348
% N& @- Z* d* K9 [6 I. g' P0049C331 |. 25 FFFF0000 AND EAX,0FFFF2 v3 G7 y3 b p7 f% @
0049C336 |. 2D E8030000 SUB EAX,3E85 c: x2 x5 C$ H% u# i: }# t
0049C33B |. 8BC8 MOV ECX,EAX
2 t g6 _5 Y, k! K6 L0049C33D |. C1E0 03 SHL EAX,3
# e% o" ], O X2 ^ D3 v. V7 B+ q* n0049C340 |. 2BC1 SUB EAX,ECX
& R& T3 z! r7 x$ l7 `9 v. p0049C342 |. 05 88785000 ADD EAX,TAIK2W95.005078886 B9 B u6 C- }1 e N- M
0049C347 |. C3 RETN; m$ w5 Z' j0 B w, O2 s; g
0049C348 |> 66:3D B80B CMP AX,0BB8 ;(>= $7D0 and < $BB8) 姬 $00507960 + (dwID - $7D0) * 5& R2 S. ]/ x2 s, h- ?$ T; S4 q4 O
0049C34C |. 73 12 JNB SHORT TAIK2W95.0049C360
; l6 N7 d/ }4 T' H/ v: b1 F0049C34E |. 25 FFFF0000 AND EAX,0FFFF1 r9 y2 N6 `: b7 g1 Q
0049C353 |. 2D D0070000 SUB EAX,7D0
) N. }* i( I) U) l8 V0049C358 |. 8D8480 6079500>LEA EAX,DWORD PTR DS:[EAX+EAX*4+507960]
. E/ f& k8 |/ ]. Y3 j: }$ `: i2 U0049C35F |. C3 RETN- \# ~0 y& e4 F+ G0 @/ ?( j) s1 i u
0049C360 |> 25 FFFF0000 AND EAX,0FFFF ;(>= $BB8)
% Z3 y3 ^4 m- A, T0049C365 |. 3D B80B0000 CMP EAX,0BB8 ;(= $BB8)
: Q: f! X: S$ D9 u. @0049C36A |. 74 1A JE SHORT TAIK2W95.0049C386
& g1 f$ r6 N1 R+ D7 k0049C36C |. 3D B90B0000 CMP EAX,0BB9 ;(<= $BB9)
0 m3 n0 E0 K% \. k0049C371 |. 7E 0D JLE SHORT TAIK2W95.0049C380
4 ]# \, N/ ^0 F2 Q0049C373 |. 3D BB0B0000 CMP EAX,0BBB ;(> $BBB)% w8 _; u& Z! t$ L
0049C378 |. 7F 06 JG SHORT TAIK2W95.0049C380
* f# d Q! i4 b. }0049C37A |. B8 B8BD5000 MOV EAX,TAIK2W95.0050BDB8 ;(= $BBA or = $BBB) 主人 $0050BDB8' A$ C7 x& {' W. I/ i
0049C37F |. C3 RETN
0 C A1 f% d& W/ _5 x- J0049C380 |> A1 546C5000 MOV EAX,DWORD PTR DS:[506C54] ;(<= $BB9 or > $BBB) NPC $00506C54! ~4 ^7 \* L) a) P( m
0049C385 |. C3 RETN2 m, R& W ]. v1 k* U. `! d' R5 f
0049C386 |> B8 B0BD5000 MOV EAX,TAIK2W95.0050BDB0 ;(= $BB8) 老板娘 $0050BDB0
% A9 l# Q. c' ]0049C38B \. C3 RETN |
|