参数表
# X6 M C! ?, @% ]6 Xarg1:[arg1+10]+[arg1+C]*arg3+arg2*2存放缓冲区(应该就是屏幕显示区在内存的映像)基地址
3 P( [' ^2 ~" ?: [( ^arg2:字符串宽度 x" ~& y, S; |* B6 U9 X
arg3:y
# D; g7 z& W* X" Q5 o ^arg4:颜色$ H8 x+ u; F, u3 L7 Z
arg5:与颜色深度有关9 \- g6 f2 ^1 x- X- U P4 m
arg6:与颜色深度有关7 | b) ~6 |1 P) |; ~- y
ecx:字符的编码基地址
3 ^1 |) B# `' l2 q1 B9 ~8 M* e3 `3 W$ [6 C+ r, ?
0071B820 /$ 83EC 54 sub esp,54) r) q, T1 R) ~. G
0071B823 |. 53 push ebx
* R3 ?. [6 B( q( }7 }0071B824 |. 8B5C24 5C mov ebx,dword ptr ss:[esp+5C]: x3 F$ ^" f$ d+ _, H# X0 ]4 l
0071B828 |. 55 push ebp; m8 }+ S- h' v6 G( a9 c
0071B829 |. 56 push esi' G+ z( |3 Z" z7 O4 F
0071B82A |. 8B43 08 mov eax,dword ptr ds:[ebx+8]
! r3 h0 _5 u; R0 I% A# j. O$ |3 C0071B82D |. 8BF1 mov esi,ecx
2 C& C; s# a0 o8 h; g3 l0071B82F |. 8B4B 04 mov ecx,dword ptr ds:[ebx+4]) a# e6 G6 R$ S0 o
0071B832 |. 57 push edi5 p7 G- J& |. s" Y
0071B833 |. 50 push eax% F/ z `0 A* I3 L" B6 F0 z
0071B834 |. 51 push ecx j9 O) x2 J( `
0071B835 |. 6A 00 push 05 U4 w& e0 y; ?! g$ M2 m
0071B837 |. 6A 00 push 0$ J% N) A. m P6 z# m7 t
0071B839 |. 8D4C24 54 lea ecx,dword ptr ss:[esp+54]% s- Y7 k2 b3 f1 H" x
0071B83D |. 897424 20 mov dword ptr ss:[esp+20],esi
" h/ S1 o3 p* {6 D$ P% C: f, j0071B841 |. E8 6ABCCEFF call heroes4.004074B0( y2 F2 W$ V- N! q/ k" ~; ~0 ^6 B
0071B846 |. 8B56 08 mov edx,dword ptr ds:[esi+8]' F. }( A+ C* b0 Q( A% j" |1 W
0071B849 |. 8B46 04 mov eax,dword ptr ds:[esi+4]) N2 w8 y/ b ?2 R( f; p* x" u
0071B84C |. 52 push edx
3 \2 q# g+ C5 }1 F/ d: ]9 p0071B84D |. 50 push eax6 E# K. t; i# C/ u& G
0071B84E |. 6A 00 push 0
3 j. J9 s( @8 K/ I0071B850 |. 6A 00 push 07 q3 M8 N# n5 E$ M/ i& L
0071B852 |. 8D4C24 44 lea ecx,dword ptr ss:[esp+44]# j# y) q- g: O- L) V/ s
0071B856 |. E8 55BCCEFF call heroes4.004074B0 U, F, c; M* c5 K* H% T% r/ T
0071B85B |. 8B4C24 34 mov ecx,dword ptr ss:[esp+34]
. G, p! A z, m. I0071B85F |. 8B5424 38 mov edx,dword ptr ss:[esp+38]7 W9 T3 j4 D& K( b2 I5 d
0071B863 |. 8B4424 3C mov eax,dword ptr ss:[esp+3C]$ q! ~) O* c0 o
0071B867 |. 894C24 24 mov dword ptr ss:[esp+24],ecx
?$ m# u1 N3 n+ c" N3 r0071B86B |. 8B4C24 40 mov ecx,dword ptr ss:[esp+40]- g; C5 Z# c( v' f
0071B86F |. 895424 28 mov dword ptr ss:[esp+28],edx
, i& ]! S* a& x$ F5 n" f0071B873 |. 8D5424 6C lea edx,dword ptr ss:[esp+6C]
/ {; j( d7 }- s; u+ h, c% M0071B877 |. 894C24 30 mov dword ptr ss:[esp+30],ecx
f0 C5 A/ S6 [7 g. i) z0071B87B |. 52 push edx
2 b8 Z- a {( y% L4 l0071B87C |. 8D4C24 28 lea ecx,dword ptr ss:[esp+28]
. ]! ^8 i+ a5 Y5 O+ O2 g+ P$ M0071B880 |. 894424 30 mov dword ptr ss:[esp+30],eax b" F$ n1 K' r4 q$ Q A# M$ K
0071B884 |. E8 47BCCEFF call heroes4.004074D09 m& E, a* j' L8 J5 m. R
0071B889 |. 8B4424 30 mov eax,dword ptr ss:[esp+30]
* v' H- T% G; H e6 i3 k' |0071B88D |. 8B4C24 50 mov ecx,dword ptr ss:[esp+50]
& [( F/ k' `6 I# r: V0071B891 |. 3BC1 cmp eax,ecx9 t3 ~1 s# @: I; I; u7 \1 R: ~
0071B893 |. 8BF8 mov edi,eax8 h- p. n% t* z9 L) J. Q4 w
0071B895 |. 7C 02 jl short heroes4.0071B899/ U. q0 Z- P: }/ J V0 v
0071B897 |. 8BF9 mov edi,ecx
" s$ f" {- C* R0 g0071B899 |> 8B4424 2C mov eax,dword ptr ss:[esp+2C]
# O5 s' @7 `9 r0071B89D |. 8B5424 4C mov edx,dword ptr ss:[esp+4C]1 x; p8 h0 V. M% G7 `# }' v* I
0071B8A1 |. 3BC2 cmp eax,edx. |& x! b- i7 w7 v* U8 \- b) n
0071B8A3 |. 7D 02 jge short heroes4.0071B8A7
! P) f/ D. Z' `) l5 H/ b0071B8A5 |. 8BD0 mov edx,eax
* e% F# q5 k9 s* @$ s* a. E* T0071B8A7 |> 8B4424 28 mov eax,dword ptr ss:[esp+28]! a4 B/ c8 W! l" E& J- V3 C8 _: C8 ?
0071B8AB |. 8B4C24 48 mov ecx,dword ptr ss:[esp+48]8 L4 \* L& Z+ H, }8 u" v1 @
0071B8AF |. 3BC1 cmp eax,ecx
& B5 E, {; S, b! Z- S1 n' {; D0071B8B1 |. 7E 02 jle short heroes4.0071B8B5) K, H, I: ` b% X. \8 r
0071B8B3 |. 8BC8 mov ecx,eax
w, e) |2 `8 `0071B8B5 |> 8B4424 24 mov eax,dword ptr ss:[esp+24]
, r Q' Q" x5 n3 ~8 t0071B8B9 |. 8B7424 44 mov esi,dword ptr ss:[esp+44]
! F% H0 m w) ~6 p% U0071B8BD |. 3BC6 cmp eax,esi% E( ^% K+ G- U# X7 Y% B$ W) {
0071B8BF |. 7F 02 jg short heroes4.0071B8C3: a% a6 J. E4 Q- _8 X! \
0071B8C1 |. 8BC6 mov eax,esi( l. I) q- L( c) f9 j* k" `
0071B8C3 |> 57 push edi
0 Q% q( Q0 T4 H/ V; b1 S9 ?2 u0071B8C4 |. 52 push edx
' C: i! Q: Z$ M: i7 f0071B8C5 |. 51 push ecx
4 R4 K" @# Z$ u0071B8C6 |. 50 push eax% P) D: H6 t I8 K( b
0071B8C7 |. 8D4C24 64 lea ecx,dword ptr ss:[esp+64]
+ v; T" W9 d: ~, m0071B8CB |. E8 E0BBCEFF call heroes4.004074B0
: |. N# P& [- e7 E1 Q' N& @- m0071B8D0 |. 8B4424 60 mov eax,dword ptr ss:[esp+60]& z5 `7 t0 G# d( [! n. Z: g
0071B8D4 |. 8B7424 58 mov esi,dword ptr ss:[esp+58]4 k* o/ v' D$ D& {* S) Z! ]
0071B8D8 |. 2BC6 sub eax,esi
- ]4 V$ [! P( r- N" x0071B8DA |. 85C0 test eax,eax# I" d: M1 D6 _
0071B8DC |. 894424 18 mov dword ptr ss:[esp+18],eax7 x9 e* u* a$ S5 K4 ]3 J8 k9 L( U
0071B8E0 |. 0F8E B0010000 jle heroes4.0071BA967 e* T+ X6 n& X: y4 o
0071B8E6 |. 8B6C24 5C mov ebp,dword ptr ss:[esp+5C]6 x w" Q) }, N/ c
0071B8EA |. 8B4C24 54 mov ecx,dword ptr ss:[esp+54] ; 数值上等于arg2
4 [, L, E% Q1 a5 L/ c0071B8EE |. 2BE9 sub ebp,ecx6 U [3 @1 R7 T# h/ {, B
0071B8F0 |. 85ED test ebp,ebp
- j/ S* j. Q% V& Y* C8 ?0071B8F2 |. 896C24 1C mov dword ptr ss:[esp+1C],ebp8 T$ m, J, } h& Z
0071B8F6 |. 0F8E 9A010000 jle heroes4.0071BA96
8 G2 H' [5 m* v2 h6 m0071B8FC |. 8B4424 6C mov eax,dword ptr ss:[esp+6C] ; arg23 l, v: Z' e# ^" x8 }: A2 ?( W
0071B900 |. 8BF9 mov edi,ecx% G! V3 p6 b7 w. ]" L- v
0071B902 |. 2BF8 sub edi,eax% B( b; \7 z9 g
0071B904 |. 8B4424 70 mov eax,dword ptr ss:[esp+70] ; arg3+ @! ~& L2 e& B& Z* C
0071B908 |. 8BD6 mov edx,esi$ a- R" }3 }- C( j/ |0 I. j
0071B90A |. 894C24 24 mov dword ptr ss:[esp+24],ecx
' q+ {) D" \( B) `. W! M0071B90E |. 2BD0 sub edx,eax3 l+ b* ]7 K0 \7 E: i, l% w
0071B910 |. 8B43 0C mov eax,dword ptr ds:[ebx+C]
3 k8 | ~# R. R0071B913 |. 8BD8 mov ebx,eax9 a5 Z, N1 c8 h6 S& i C( _
0071B915 |. 0FAFDE imul ebx,esi
% m: [9 f" D4 Z `0071B918 |. 8D344B lea esi,dword ptr ds:[ebx+ecx*2]# W% [1 \% t% w; Z( e! Z
0071B91B |. 8B4C24 68 mov ecx,dword ptr ss:[esp+68]5 Q" J; q, T- t0 j9 A: _* U- ]( @
0071B91F |. 8B59 10 mov ebx,dword ptr ds:[ecx+10]% I; W' _+ P: |' R$ S: H% ~. R4 e
0071B922 |. 8B4C24 10 mov ecx,dword ptr ss:[esp+10]
% L5 w9 f: T: }8 p7 u2 C5 S0071B926 |. 03F3 add esi,ebx
+ O0 P2 c5 G4 V' m# ~* K1 E# P# d0071B928 |. 8B49 0C mov ecx,dword ptr ds:[ecx+C]* v& [6 [. T8 m1 {9 ^/ v/ G/ C
0071B92B |. 897424 68 mov dword ptr ss:[esp+68],esi; 重点:将缓冲区地址写入栈内(原arg1处)
0 O1 y( c2 F0 ]" n0 k0 ~% M0071B92F |. 8BD9 mov ebx,ecx
6 S/ ?! H% `$ Q w! r' X3 o0071B931 |. 2BCD sub ecx,ebp
" i: r; j; V( e/ C0071B933 |. 0FAFDA imul ebx,edx5 |1 w9 q8 _. F! C
0071B936 |. 8B5424 10 mov edx,dword ptr ss:[esp+10]
) K8 U j! t7 w' J0071B93A |. 894C24 20 mov dword ptr ss:[esp+20],ecx U( v0 W5 H- Q7 s7 R& }5 m1 q0 q
0071B93E |. 8D4C2D 00 lea ecx,dword ptr ss:[ebp+ebp]
0 w5 F! g1 B; ?' R5 n/ \0071B942 |. 035A 10 add ebx,dword ptr ds:[edx+10]
& o9 e9 `7 f$ p3 Z f0071B945 |. 8B5424 18 mov edx,dword ptr ss:[esp+18]
! S. c: k, ]- T. E, ^' y0071B949 |. 2BC1 sub eax,ecx
! B9 R$ E/ Q& ^7 W! n& l$ ^. P0071B94B |. 894424 24 mov dword ptr ss:[esp+24],eax" U7 g* f7 n1 j8 w" z/ e Z9 F
0071B94F |. 03DF add ebx,edi
6 m4 F/ i& j L: X5 }( p3 J0071B951 |. 8BC2 mov eax,edx& A5 F( _0 t* j! W: N6 r8 X* U; r
0071B953 |. 4A dec edx
. ]8 d/ K& a1 O' `. Y4 d1 Q0071B954 |. 85C0 test eax,eax3 ]* h' f$ L1 z9 e
0071B956 |. 0F84 3A010000 je heroes4.0071BA96 p9 @2 q. ^/ [7 k
0071B95C |. 42 inc edx2 I, G. C; a7 {) ^: s
0071B95D |. 895424 18 mov dword ptr ss:[esp+18],edx
: [4 F9 x" P; [1 [! K. ~0071B961 |> 85ED /test ebp,ebp4 J6 M. [1 M1 F! ^( H& l
0071B963 |. 0F84 0E010000 |je heroes4.0071BA77! \, @! U4 ^. `! @- s
0071B969 |. 8B4424 74 |mov eax,dword ptr ss:[esp+74]
9 x0 a5 i3 |. \7 V4 J: ^0071B96D |. 896C24 14 |mov dword ptr ss:[esp+14],ebp B9 g: o% D" z7 r ^: q6 e6 ~ u
0071B971 |. 25 FFFF0000 |and eax,0FFFF
- G# l/ q; L2 w0 e4 l: V% }2 G0071B976 |. 894424 10 |mov dword ptr ss:[esp+10],eax% P' H4 S1 f* R ~, _8 H. u
0071B97A |> 8A4424 78 |/mov al,byte ptr ss:[esp+78]' V2 p2 r9 z+ N ]. W8 Y$ T
0071B97E |. 8B2D DCF0AA00 ||mov ebp,dword ptr ds:[AAF0DC]
7 C6 W; ~& n8 P) N& a% q! @* _0071B984 |. 84C0 ||test al,al. F b) G5 l1 g v, n, p" n
0071B986 |. 74 6A ||je short heroes4.0071B9F29 ~" r* @# ?3 }5 V k. L
0071B988 |. 8A0B ||mov cl,byte ptr ds:[ebx] ; 取字模的像素点3 m2 o/ o4 L; ?6 F: G; S
0071B98A |. 8B4424 7C ||mov eax,dword ptr ss:[esp+7C], q) s+ L) c% A3 @0 y- j
0071B98E |. 83E1 0F ||and ecx,0F ; 取低四位% I# H5 t0 m( q6 G9 b8 O! s7 [9 R
0071B991 |. 25 FFFF0000 ||and eax,0FFFF$ |5 f. I9 x! `7 a& @- J- u
0071B996 |. 8BF9 ||mov edi,ecx' j3 U) a! _1 r6 _' y( Y
0071B998 |. 33C9 ||xor ecx,ecx1 F- b2 @/ T/ ?: z7 Z
0071B99A |. 66:8B0E ||mov cx,word ptr ds:[esi] ; 取缓冲区的原值3 S' v2 L2 j6 v- p9 A" `7 C
0071B99D |. 85FF ||test edi,edi ; 检查字模的像素点低四位是否为0
( k g: y4 Z- l2 p% v0071B99F |. 74 54 ||je short heroes4.0071B9F5 ; 为0则不作处理* L6 | D/ v7 c' s- D0 z
0071B9A1 |. 8BD7 ||mov edx,edi
; a9 \ w- O |5 X" X0071B9A3 |. 8BF1 ||mov esi,ecx2 v0 `3 F: _$ ^# X3 t
0071B9A5 |. C1FA 03 ||sar edx,3
3 B8 S" S; G: V" s6 j0071B9A8 |. 83E2 01 ||and edx,1* O7 N4 x% R8 J. H: l
0071B9AB |. 03FA ||add edi,edx- ^0 D1 d% O* X0 U: m0 [4 A" |, ?
0071B9AD |. 8BD1 ||mov edx,ecx
$ u' S5 {$ y! o' A0071B9AF |. 8B0D 04F1AA00 ||mov ecx,dword ptr ds:[AAF104]8 m( ]$ ~. Q5 i5 M6 q
0071B9B5 |. 23D5 ||and edx,ebp. C3 Z2 d8 x Z, M' i. A
0071B9B7 |. 23F1 ||and esi,ecx7 X1 M: U: [, U5 R& r
0071B9B9 |. 8BC8 ||mov ecx,eax
2 ~/ n/ U$ q+ A! a" T0 ^5 {0071B9BB |. 230D 04F1AA00 ||and ecx,dword ptr ds:[AAF104]
3 p: I, _$ l5 b/ x, s* h" H* L0071B9C1 |. 23C5 ||and eax,ebp) ?% ~, x$ O' D( U- e+ U
0071B9C3 |. 2BC2 ||sub eax,edx
& X `; z! \: T' G% X4 w$ S' `0071B9C5 |. 2BCE ||sub ecx,esi
. t G' N8 S# n$ b+ u, E& ?4 F0071B9C7 |. 0FAFC7 ||imul eax,edi
# l5 r1 G0 N- \8 B# {0071B9CA |. 0FAFCF ||imul ecx,edi
# a0 B3 v7 x9 N/ S2 t0071B9CD |. C1E6 04 ||shl esi,4
/ w# T2 z! X6 @/ n0071B9D0 |. 03CE ||add ecx,esi
# |8 ~+ e2 X, F; \( q0071B9D2 |. 8B35 F4F0AA00 ||mov esi,dword ptr ds:[AAF0F4]
8 v j" h& Z) J7 J0071B9D8 |. C1E2 04 ||shl edx,49 w q. S" e- M4 V1 n
0071B9DB |. 23CE ||and ecx,esi
- y/ w* P1 ^, [2 Z0071B9DD |. 8B35 D8F0AA00 ||mov esi,dword ptr ds:[AAF0D8]3 P+ k, Z* ]- q
0071B9E3 |. 03C2 ||add eax,edx
$ v+ c+ Z/ s# U0071B9E5 |. 23C6 ||and eax,esi0 N/ S# g9 I8 M9 ]5 i, O
0071B9E7 |. 8B7424 68 ||mov esi,dword ptr ss:[esp+68]& G r3 H% I3 I P8 J
0071B9EB |. 03C8 ||add ecx,eax
?- ~. g' X- |, _4 v0071B9ED |. C1F9 04 ||sar ecx,4
M2 U' O. ?) a) o5 H( n2 m0071B9F0 |. EB 03 ||jmp short heroes4.0071B9F51 p0 E V# _5 u8 o1 _; m
0071B9F2 |> 66:8B0E ||mov cx,word ptr ds:[esi]) U1 }+ J- U$ ] M6 J- L( z$ `! p
0071B9F5 |> 33D2 ||xor edx,edx
7 J3 u3 k" ]! n! ]0071B9F7 |. 81E1 FFFF0000 ||and ecx,0FFFF+ ?+ v; J: `# W5 I5 f+ [5 A0 Q% S; G
0071B9FD |. 8A13 ||mov dl,byte ptr ds:[ebx]
7 A0 t/ J5 D5 @. F1 c: |, k0071B9FF |. 8BC1 ||mov eax,ecx
% L; R5 E/ g. M' X0071BA01 |. C1EA 04 ||shr edx,4 ; 取高四位
& p0 W5 V, N. r2 w0071BA04 |. 85D2 ||test edx,edx ; 检查字模的像素点高四位是否为0# I! ?8 f5 N7 n# z5 g( L5 a2 g
0071BA06 |. 74 51 ||je short heroes4.0071BA59 ; 为0则不作处理$ D4 s5 t( L" Z% @- w
0071BA08 |. 8BCA ||mov ecx,edx& M% r- I" ?* I
0071BA0A |. 8BF0 ||mov esi,eax
* A. Q {0 `, C# a$ e# a0071BA0C |. C1F9 03 ||sar ecx,3# q2 N* F/ \" {+ @: ?) d
0071BA0F |. 83E1 01 ||and ecx,1% m6 C: W$ \; ]
0071BA12 |. 23F5 ||and esi,ebp
- X( A0 k9 c2 z) k8 a! P0071BA14 |. 03D1 ||add edx,ecx7 ?- @# g. [, v
0071BA16 |. 8BC8 ||mov ecx,eax2 n2 }. x/ k" y5 ` ?; E
0071BA18 |. 8B4424 10 ||mov eax,dword ptr ss:[esp+10]
) w) P0 s$ ]: T2 ^$ T: ]; c0071BA1C |. 8B3D 04F1AA00 ||mov edi,dword ptr ds:[AAF104]* {6 H+ `3 a9 S/ G8 n& m9 H# P
0071BA22 |. 23C5 ||and eax,ebp
4 J0 L8 z4 o, O( e7 X! z0071BA24 |. 23CF ||and ecx,edi
- H( E3 w w2 L9 X% E% C0071BA26 |. 2BC6 ||sub eax,esi
: j/ t8 ?" c- X9 W0 ]; M6 d0071BA28 |. 0FAFC2 ||imul eax,edx
' X" H0 J" }# u% p, |! `4 a, t0071BA2B |. C1E6 04 ||shl esi,4
) N2 w9 T/ v% o6 ]1 l0071BA2E |. 03C6 ||add eax,esi
5 d1 B! Z3 ^3 T4 e: ?; R/ k0071BA30 |. 8B35 D8F0AA00 ||mov esi,dword ptr ds:[AAF0D8]( l% h+ R' V! i+ n! u) }/ k
0071BA36 |. 23C6 ||and eax,esi: z2 x, p6 J2 n* G
0071BA38 |. 8B7424 10 ||mov esi,dword ptr ss:[esp+10]
/ c) J& e+ y0 x0071BA3C |. 23F7 ||and esi,edi: k, D$ K! A4 K" Q6 y$ S) h- B1 O
0071BA3E |. 8B3D F4F0AA00 ||mov edi,dword ptr ds:[AAF0F4]
; r8 ?7 ~, f# m0071BA44 |. 2BF1 ||sub esi,ecx2 v5 l" u' K1 N; I7 _3 D
0071BA46 |. 0FAFF2 ||imul esi,edx8 u {: l* Q6 [: D1 o% P
0071BA49 |. C1E1 04 ||shl ecx,48 ?6 D, i7 V# j
0071BA4C |. 03F1 ||add esi,ecx; I3 A; \$ H; ^6 C" h$ Q$ k
0071BA4E |. 23F7 ||and esi,edi; R& r& e1 U" x
0071BA50 |. 03C6 ||add eax,esi6 V. _; r% Y, F) F
0071BA52 |. 8B7424 68 ||mov esi,dword ptr ss:[esp+68]
L8 L8 M- ?7 U0071BA56 |. C1F8 04 ||sar eax,4& S, T C% _3 [8 Z( S: {3 S2 d
0071BA59 |> 66:8906 ||mov word ptr ds:[esi],ax ; 将经过处理后的缓冲区值放回原处5 }& q) C$ Z- i; k$ ?! M6 w$ I
0071BA5C |. 8B4424 14 ||mov eax,dword ptr ss:[esp+14]$ z+ j9 x7 X$ W' G$ z' n
0071BA60 |. 43 ||inc ebx ; 指向字模的下个像素点
& v0 u: n* Y( t. r$ V0071BA61 |. 83C6 02 ||add esi,2 ; 指向缓冲区的下个点
0 R: Q F( P& T: f# K5 F0 ~0071BA64 |. 48 ||dec eax ; 计数值减1
' r* r9 Y$ @1 S. N! T- j0071BA65 |. 897424 68 ||mov dword ptr ss:[esp+68],esi9 |' J4 X& m9 M8 Z3 L7 w$ h
0071BA69 |. 894424 14 ||mov dword ptr ss:[esp+14],eax. X3 e8 e# ]6 k3 I
0071BA6D |.^ 0F85 07FFFFFF |\jnz heroes4.0071B97A
+ a% P( _+ r" |. l$ U' v! _3 A' ^0071BA73 |. 8B6C24 1C |mov ebp,dword ptr ss:[esp+1C]
m& k/ C% q& p! M0071BA77 |> 8B5424 20 |mov edx,dword ptr ss:[esp+20]
J2 N5 g* O4 R2 b, m9 D0071BA7B |. 8B4C24 24 |mov ecx,dword ptr ss:[esp+24]3 M1 z6 a- k# J, |6 o; Y
0071BA7F |. 8B4424 18 |mov eax,dword ptr ss:[esp+18]
* Z1 o: D* q# W. M4 D, C2 v* S4 U! Z0071BA83 |. 03DA |add ebx,edx ; 指向字模的下行像素点
% j: o" ]; i% _# Y0071BA85 |. 03F1 |add esi,ecx ; 指向缓冲区的下行点, A, u0 Y& V2 E4 G6 q
0071BA87 |. 48 |dec eax ; 计数值减1/ a5 ~7 e$ K4 _# z) M( M
0071BA88 |. 897424 68 |mov dword ptr ss:[esp+68],esi
: }" j# ?0 B" U% D i1 z0071BA8C |. 894424 18 |mov dword ptr ss:[esp+18],eax7 C" Z [' Y/ I p
0071BA90 |.^ 0F85 CBFEFFFF \jnz heroes4.0071B961" E5 v8 Z3 `% r. P' X
0071BA96 |> 5F pop edi+ J6 h/ o( d6 M# p4 M
0071BA97 |. 5E pop esi
5 z2 U/ \% O$ H0071BA98 |. 5D pop ebp
+ [; P& j1 d5 w% x! s% w0071BA99 |. 5B pop ebx+ k P+ e/ j5 d
0071BA9A |. 83C4 54 add esp,54
; n3 Z. g" D+ a. ]5 I y0071BA9D \. C2 1800 retn 18
8 t, h5 X# J9 [+ l- L: [本函数的核心是两层循环,从71B9A1开始就是循环体,整个换算过程是一个比较复杂的算法,可以简单表示为:
& @. \7 B0 w! U0 B6 A t% n5 K
) O8 F* u- W# ?' H; V3 H* Vbuf[x][y]=func(buf[x][y],zm[x/2][y/2])
& A1 l: t0 p! Y/ w I3 v) ?% S+ |$ k+ X: l5 b
buf:缓冲区二维数组,两个字节表示一个点/ p$ G% y8 h: R, m7 ^: w
zm:字模二维数组,一个字节表示一个点 |