参数表
* F) {, V3 M7 ~0 n6 y# i) w8 iarg1:[arg1+10]+[arg1+C]*arg3+arg2*2存放缓冲区(应该就是屏幕显示区在内存的映像)基地址' E1 X1 [7 ~8 p* n
arg2:字符串宽度 x( T% d0 @3 ~$ Y; Y4 f% R
arg3:y
" O7 v% U6 H3 farg4:颜色) r5 ~( L' B' a
arg5:与颜色深度有关5 Z& L/ o/ R, P' [/ J
arg6:与颜色深度有关. N2 c$ x4 D# |& J7 Y
ecx:字符的编码基地址
. g: ?( A8 N- L
: S3 P K4 M; S* w1 I* j0 |0071B820 /$ 83EC 54 sub esp,54
' n! B6 @* s* m- W1 X8 {( o0071B823 |. 53 push ebx
( O& T8 N4 x5 o0071B824 |. 8B5C24 5C mov ebx,dword ptr ss:[esp+5C]
5 Y7 w4 D5 D; }* @0071B828 |. 55 push ebp5 @5 r! ?. a) e- R; O
0071B829 |. 56 push esi( }. I5 Y0 D. _/ `9 M% |' J& Z6 ?
0071B82A |. 8B43 08 mov eax,dword ptr ds:[ebx+8]
6 j8 @3 s4 f2 _( m* w& |* c* p9 s0 n9 x0071B82D |. 8BF1 mov esi,ecx
3 o4 ?' z, S' I+ T* m0071B82F |. 8B4B 04 mov ecx,dword ptr ds:[ebx+4]
' N0 t6 m7 |) b- @, d6 o0071B832 |. 57 push edi
7 y) e g# r0 V' R$ R! b; M) Q0071B833 |. 50 push eax* [7 u( v' |; }+ E4 ` b
0071B834 |. 51 push ecx& W1 [4 f0 d/ I+ \
0071B835 |. 6A 00 push 0
7 s7 L; z$ a% _8 U- D. l0 y7 k0071B837 |. 6A 00 push 0
* \0 h8 P) c8 w+ Q0071B839 |. 8D4C24 54 lea ecx,dword ptr ss:[esp+54]! p( Y6 m5 v: @" y* L c1 l h: Z0 S
0071B83D |. 897424 20 mov dword ptr ss:[esp+20],esi
& Q+ ]4 H2 @; E, E( f0071B841 |. E8 6ABCCEFF call heroes4.004074B0
+ X0 c& ~. B$ G2 ]0 @9 y6 ~# Y# Z0071B846 |. 8B56 08 mov edx,dword ptr ds:[esi+8]1 ^1 y. k; z8 h. p) t$ I3 B' _; t
0071B849 |. 8B46 04 mov eax,dword ptr ds:[esi+4]
0 r& Q c& |+ O5 {, h0071B84C |. 52 push edx, o) g5 Z: Q+ p% }
0071B84D |. 50 push eax2 w) t4 {3 Z; [7 j) m
0071B84E |. 6A 00 push 0) O' V9 G* f# ?4 {) c7 X
0071B850 |. 6A 00 push 0
4 {, `) v7 A P' U1 }9 H0071B852 |. 8D4C24 44 lea ecx,dword ptr ss:[esp+44]
' P$ F7 S+ B# S0071B856 |. E8 55BCCEFF call heroes4.004074B0 J( k! ]; U3 J- f& k
0071B85B |. 8B4C24 34 mov ecx,dword ptr ss:[esp+34]
5 u( i1 l2 |" u0071B85F |. 8B5424 38 mov edx,dword ptr ss:[esp+38]
2 T9 u3 C6 G. k: ?$ ^& R0071B863 |. 8B4424 3C mov eax,dword ptr ss:[esp+3C]. V, h6 x8 [" G5 n/ S4 L, ~
0071B867 |. 894C24 24 mov dword ptr ss:[esp+24],ecx
5 C r" M% Q; a5 f* z5 O c/ E0071B86B |. 8B4C24 40 mov ecx,dword ptr ss:[esp+40]# d& r1 `; w3 v4 g! @3 B" A/ D
0071B86F |. 895424 28 mov dword ptr ss:[esp+28],edx3 s' O& |/ n2 L7 o- e9 J1 r4 [
0071B873 |. 8D5424 6C lea edx,dword ptr ss:[esp+6C]. I9 } y x D. P) _6 K& o
0071B877 |. 894C24 30 mov dword ptr ss:[esp+30],ecx
: A! e5 B; M: ]( Q! ~! r5 r0071B87B |. 52 push edx
- O. X' l2 e0 B) g0071B87C |. 8D4C24 28 lea ecx,dword ptr ss:[esp+28]
# R0 b& [$ R6 ^; ]0071B880 |. 894424 30 mov dword ptr ss:[esp+30],eax" _' B/ Q7 _& s4 ~- F
0071B884 |. E8 47BCCEFF call heroes4.004074D0
! |+ t" {6 U% E( q0071B889 |. 8B4424 30 mov eax,dword ptr ss:[esp+30]
, h: @4 t# d3 i) e. C* @; g0071B88D |. 8B4C24 50 mov ecx,dword ptr ss:[esp+50]
; N" C+ T, L. Q0071B891 |. 3BC1 cmp eax,ecx
0 B) o. B9 g4 Z, n, x0071B893 |. 8BF8 mov edi,eax; Y9 r2 y& T% Y p, O
0071B895 |. 7C 02 jl short heroes4.0071B899
' `$ c; s3 R9 x& ~0071B897 |. 8BF9 mov edi,ecx" h: y# ?! g9 o+ w* Q( o7 l/ F t- s
0071B899 |> 8B4424 2C mov eax,dword ptr ss:[esp+2C]7 C9 y- z7 d; B, d, {# A3 g r ]
0071B89D |. 8B5424 4C mov edx,dword ptr ss:[esp+4C]
* {, F: q# o0 h% m% H/ q7 p0071B8A1 |. 3BC2 cmp eax,edx0 F" Y+ }* r+ u; Q3 _ U" {) \
0071B8A3 |. 7D 02 jge short heroes4.0071B8A7
! D2 ^' A2 c# ~0071B8A5 |. 8BD0 mov edx,eax2 e; ^' S" P- P- k' a, o1 K( @
0071B8A7 |> 8B4424 28 mov eax,dword ptr ss:[esp+28]
& k% _* D+ |3 s* g0071B8AB |. 8B4C24 48 mov ecx,dword ptr ss:[esp+48]
: x, ~0 N Y) R8 w+ ~0071B8AF |. 3BC1 cmp eax,ecx
3 F8 N' ^, R7 e8 h( t1 J% ?1 ?0071B8B1 |. 7E 02 jle short heroes4.0071B8B5! i3 b+ @1 F, l2 \2 C1 l
0071B8B3 |. 8BC8 mov ecx,eax7 S6 w( L; q/ Q I+ m' a( J- Q
0071B8B5 |> 8B4424 24 mov eax,dword ptr ss:[esp+24]
/ p6 ]5 C6 E6 X M' ^0071B8B9 |. 8B7424 44 mov esi,dword ptr ss:[esp+44]
3 T7 a( y! Q! f$ {- J2 R0071B8BD |. 3BC6 cmp eax,esi4 D$ [1 o1 P" }, g% U% f. _
0071B8BF |. 7F 02 jg short heroes4.0071B8C3
* K$ n% B! C, }, i5 Z0 z$ L; {0071B8C1 |. 8BC6 mov eax,esi( f) A* |) o0 I9 _
0071B8C3 |> 57 push edi
* p; `! y( y' r. Z0 E& m0071B8C4 |. 52 push edx+ R( a N w6 C% w% ], Y
0071B8C5 |. 51 push ecx* b& x$ b7 ]& M- D, }. `) m
0071B8C6 |. 50 push eax0 d2 l# k, j% s) O& i f
0071B8C7 |. 8D4C24 64 lea ecx,dword ptr ss:[esp+64]
- g% i! u5 L1 h* q0071B8CB |. E8 E0BBCEFF call heroes4.004074B0
9 G8 V& Y- h7 }5 u& P+ S0071B8D0 |. 8B4424 60 mov eax,dword ptr ss:[esp+60]1 J9 j' U' Z) A/ {; `
0071B8D4 |. 8B7424 58 mov esi,dword ptr ss:[esp+58]
6 T' B E: @/ A+ U, e4 E0071B8D8 |. 2BC6 sub eax,esi
, w& o/ Y/ T8 q+ _) ~0071B8DA |. 85C0 test eax,eax
8 ?: d9 L0 n# A9 n* m0071B8DC |. 894424 18 mov dword ptr ss:[esp+18],eax! U0 E2 q( K w1 @7 [+ b. L( M, }
0071B8E0 |. 0F8E B0010000 jle heroes4.0071BA96
& M; M8 K! Y1 i z0 @0071B8E6 |. 8B6C24 5C mov ebp,dword ptr ss:[esp+5C]
& c2 K, F6 V( F; h2 L) _- h. z0071B8EA |. 8B4C24 54 mov ecx,dword ptr ss:[esp+54] ; 数值上等于arg2$ H+ h3 f4 `0 G
0071B8EE |. 2BE9 sub ebp,ecx
+ F* f; h$ I' O; Y8 Q0071B8F0 |. 85ED test ebp,ebp1 z3 d: F5 R. @. |
0071B8F2 |. 896C24 1C mov dword ptr ss:[esp+1C],ebp# _% k! d. h. d5 D2 z! I' D' R
0071B8F6 |. 0F8E 9A010000 jle heroes4.0071BA96
! s: {- S0 }# i2 `! f0071B8FC |. 8B4424 6C mov eax,dword ptr ss:[esp+6C] ; arg2
- O! e. L7 M, R" |7 \0071B900 |. 8BF9 mov edi,ecx
/ N2 Q/ ~& x7 g3 q' K. x% W0071B902 |. 2BF8 sub edi,eax% k5 m: a' T5 O- t
0071B904 |. 8B4424 70 mov eax,dword ptr ss:[esp+70] ; arg3
, s& d0 q7 c6 |4 v& z1 T v m0071B908 |. 8BD6 mov edx,esi+ T. \* o$ A) H" f- F9 l" X& g. s
0071B90A |. 894C24 24 mov dword ptr ss:[esp+24],ecx
; ~& ]4 l& b) M5 p, U$ e% W* J0071B90E |. 2BD0 sub edx,eax8 _2 k; s/ M% z, @9 X/ L: }8 Z
0071B910 |. 8B43 0C mov eax,dword ptr ds:[ebx+C]
- T* C+ L# M+ n# X: w0071B913 |. 8BD8 mov ebx,eax9 l0 d8 P* n' p8 L( w* C: G
0071B915 |. 0FAFDE imul ebx,esi
4 j& g1 U( N' N+ z0071B918 |. 8D344B lea esi,dword ptr ds:[ebx+ecx*2]1 h' t+ @: F1 B. s* ]5 z
0071B91B |. 8B4C24 68 mov ecx,dword ptr ss:[esp+68]
* L- M! _9 ^' H0071B91F |. 8B59 10 mov ebx,dword ptr ds:[ecx+10]
+ S6 u; p) |& O3 a( y3 \0071B922 |. 8B4C24 10 mov ecx,dword ptr ss:[esp+10]# q- P* y& I s% t0 j! @
0071B926 |. 03F3 add esi,ebx
0 X: W0 c( V" `9 Z* R3 V0071B928 |. 8B49 0C mov ecx,dword ptr ds:[ecx+C]
: q* {" f% f: b$ b" i. s0071B92B |. 897424 68 mov dword ptr ss:[esp+68],esi; 重点:将缓冲区地址写入栈内(原arg1处)
3 Z( X: h. N- ~7 R* m- G/ O0071B92F |. 8BD9 mov ebx,ecx" o( x7 ]2 w* w9 ]
0071B931 |. 2BCD sub ecx,ebp t+ n/ n4 q O# g4 ^& _
0071B933 |. 0FAFDA imul ebx,edx
$ X' @. }+ w0 b' e# ~0071B936 |. 8B5424 10 mov edx,dword ptr ss:[esp+10]8 M& j l4 R3 O2 H+ b' y8 Z) @
0071B93A |. 894C24 20 mov dword ptr ss:[esp+20],ecx+ v3 O: x. Z' C! P. r( y4 ^0 O
0071B93E |. 8D4C2D 00 lea ecx,dword ptr ss:[ebp+ebp]
3 Z& Q+ o, q. s9 {* h; N2 `0071B942 |. 035A 10 add ebx,dword ptr ds:[edx+10]
6 C; v- Y1 U* S- Q0071B945 |. 8B5424 18 mov edx,dword ptr ss:[esp+18]/ Z6 s: J3 A5 L% m
0071B949 |. 2BC1 sub eax,ecx
# {8 h: e9 N2 |6 {. ]3 G0071B94B |. 894424 24 mov dword ptr ss:[esp+24],eax# o2 x" E7 X. T% y0 g
0071B94F |. 03DF add ebx,edi
* n$ J" g" \ g( }& q8 P. @4 r) f0071B951 |. 8BC2 mov eax,edx- R' g- `/ [1 t2 x9 u, R3 ^. f
0071B953 |. 4A dec edx
) d- u6 ]2 w+ r0071B954 |. 85C0 test eax,eax9 g! o! d/ G5 Z+ F1 L# |
0071B956 |. 0F84 3A010000 je heroes4.0071BA96; [* O! x& y6 T& M6 G
0071B95C |. 42 inc edx
8 h# `) d+ q- X. N8 A+ X6 U; C0071B95D |. 895424 18 mov dword ptr ss:[esp+18],edx
, ~, o$ B- H; w% ^0071B961 |> 85ED /test ebp,ebp3 a4 t% C( K8 ~7 X% }$ Y+ D, V
0071B963 |. 0F84 0E010000 |je heroes4.0071BA77
& X& _! {, v2 i( T. L5 s0071B969 |. 8B4424 74 |mov eax,dword ptr ss:[esp+74]$ c2 A# E: F$ I ~# H$ ?% N i
0071B96D |. 896C24 14 |mov dword ptr ss:[esp+14],ebp
0 A* G2 \* r! x F- N3 `0071B971 |. 25 FFFF0000 |and eax,0FFFF
. a2 D7 Y' i1 I, N5 j0071B976 |. 894424 10 |mov dword ptr ss:[esp+10],eax# g H7 S9 T# b6 R
0071B97A |> 8A4424 78 |/mov al,byte ptr ss:[esp+78]2 D$ S3 |9 H# N3 m& r
0071B97E |. 8B2D DCF0AA00 ||mov ebp,dword ptr ds:[AAF0DC]
3 }$ N: Z7 g( {5 y* V0071B984 |. 84C0 ||test al,al4 @5 Z2 z' H6 v$ ]3 L( Y2 _
0071B986 |. 74 6A ||je short heroes4.0071B9F2 ]) ~' G- W: Q6 o5 N
0071B988 |. 8A0B ||mov cl,byte ptr ds:[ebx] ; 取字模的像素点8 S @" ?' y/ A- v7 K" p" t- E5 Q
0071B98A |. 8B4424 7C ||mov eax,dword ptr ss:[esp+7C]! Z" T( z9 J7 s4 @. f
0071B98E |. 83E1 0F ||and ecx,0F ; 取低四位% t: U5 r! \# N+ i6 S
0071B991 |. 25 FFFF0000 ||and eax,0FFFF
8 s2 I- T( [7 R: H: i& Y. S0071B996 |. 8BF9 ||mov edi,ecx1 n5 ^- Y$ W: I
0071B998 |. 33C9 ||xor ecx,ecx
+ H! B4 e, S2 o1 X: _9 s0071B99A |. 66:8B0E ||mov cx,word ptr ds:[esi] ; 取缓冲区的原值/ m, [ C8 E" V" p7 _/ y4 [
0071B99D |. 85FF ||test edi,edi ; 检查字模的像素点低四位是否为0! ]4 Z, G$ @: @3 x
0071B99F |. 74 54 ||je short heroes4.0071B9F5 ; 为0则不作处理. L/ [9 }/ m7 ^3 \) C4 Z
0071B9A1 |. 8BD7 ||mov edx,edi
' n7 }' `0 U4 u' R9 M3 D: v p3 ?0071B9A3 |. 8BF1 ||mov esi,ecx6 f3 G6 t4 c, B9 e' m
0071B9A5 |. C1FA 03 ||sar edx,3- k, V- r9 D! W$ \/ ^! |% _
0071B9A8 |. 83E2 01 ||and edx,10 s" Z9 }7 G% g& g' I3 T5 X
0071B9AB |. 03FA ||add edi,edx
- X$ V% s; X4 s* T0071B9AD |. 8BD1 ||mov edx,ecx! F, D/ Q8 J9 ^3 [' p. v$ d
0071B9AF |. 8B0D 04F1AA00 ||mov ecx,dword ptr ds:[AAF104]
: F6 Z: F Y* {1 l% M0071B9B5 |. 23D5 ||and edx,ebp- n7 b/ |5 e4 U6 V$ f- G5 H
0071B9B7 |. 23F1 ||and esi,ecx% f9 Q7 O. X+ u& j6 Z- u+ q) W+ y
0071B9B9 |. 8BC8 ||mov ecx,eax
& \8 I$ @( x6 }; K; p& h0071B9BB |. 230D 04F1AA00 ||and ecx,dword ptr ds:[AAF104]
+ J. D6 F3 Z m5 j/ n0 s0071B9C1 |. 23C5 ||and eax,ebp) ]7 {1 f+ ?5 d
0071B9C3 |. 2BC2 ||sub eax,edx: n" _% u+ i) m+ b* f
0071B9C5 |. 2BCE ||sub ecx,esi
3 |* Y0 _" p0 o- @* B/ d0071B9C7 |. 0FAFC7 ||imul eax,edi
* H/ T5 C) b* k3 G" ]. N+ R( I' e) M0071B9CA |. 0FAFCF ||imul ecx,edi
3 @+ U; l7 t+ j5 ~' m0071B9CD |. C1E6 04 ||shl esi,44 K2 U" R0 M, _- i* F% P
0071B9D0 |. 03CE ||add ecx,esi
7 K- a: W P0 U' B* i0071B9D2 |. 8B35 F4F0AA00 ||mov esi,dword ptr ds:[AAF0F4]
9 X1 P6 T# \( t( c( A6 t( m0071B9D8 |. C1E2 04 ||shl edx,4
9 c. g2 q U. W& j0071B9DB |. 23CE ||and ecx,esi0 q! @" h. k* B
0071B9DD |. 8B35 D8F0AA00 ||mov esi,dword ptr ds:[AAF0D8]# h, a. T) Q) s$ ~. E8 M0 `# z3 u
0071B9E3 |. 03C2 ||add eax,edx2 `! c& a4 m0 z+ N; P8 j) n
0071B9E5 |. 23C6 ||and eax,esi, a) p$ R% ~+ B q
0071B9E7 |. 8B7424 68 ||mov esi,dword ptr ss:[esp+68]
0 m2 g/ i& D2 b8 G9 u: _0071B9EB |. 03C8 ||add ecx,eax
% a2 t1 e3 }* ^5 @' B0071B9ED |. C1F9 04 ||sar ecx,4
- @ x+ H/ a* M0071B9F0 |. EB 03 ||jmp short heroes4.0071B9F5
3 P1 a. t6 x; X9 M$ D8 P6 J: T0071B9F2 |> 66:8B0E ||mov cx,word ptr ds:[esi]( X! p2 r. j' Z# @% T
0071B9F5 |> 33D2 ||xor edx,edx
; o8 y/ p6 V# o' u' a0071B9F7 |. 81E1 FFFF0000 ||and ecx,0FFFF
9 y# U! ~, o. d0071B9FD |. 8A13 ||mov dl,byte ptr ds:[ebx]
$ ~5 j8 }/ N+ @# M! P/ x0071B9FF |. 8BC1 ||mov eax,ecx
/ k+ N7 _3 f+ L+ d" ~0071BA01 |. C1EA 04 ||shr edx,4 ; 取高四位
( H# E: G( D, ^4 V! B0071BA04 |. 85D2 ||test edx,edx ; 检查字模的像素点高四位是否为0
# y" ]* [# ^# @$ M; E$ y5 @0071BA06 |. 74 51 ||je short heroes4.0071BA59 ; 为0则不作处理
. k! I+ L- z. C, t0071BA08 |. 8BCA ||mov ecx,edx
* H& N' ~, h' x" U0071BA0A |. 8BF0 ||mov esi,eax
4 |" F0 _0 I) C4 W. c# u- F0071BA0C |. C1F9 03 ||sar ecx,3* F) U. C$ M+ }9 m8 n
0071BA0F |. 83E1 01 ||and ecx,1: B4 i) e2 V9 W+ S% Y; P* o6 w, k
0071BA12 |. 23F5 ||and esi,ebp$ {- D9 N' G" Q8 u: I% @" A7 f
0071BA14 |. 03D1 ||add edx,ecx
; `( B. w N) A# Y7 h, ]! a# E) |- Y5 T0071BA16 |. 8BC8 ||mov ecx,eax
4 Z% t' K! ?- a! j0071BA18 |. 8B4424 10 ||mov eax,dword ptr ss:[esp+10]) }; X$ h; H) H: ^
0071BA1C |. 8B3D 04F1AA00 ||mov edi,dword ptr ds:[AAF104]2 s& l& G* W" b! X# O5 E- \- @
0071BA22 |. 23C5 ||and eax,ebp2 P, w, g9 T* P, e3 T) B
0071BA24 |. 23CF ||and ecx,edi$ Q* U( q6 }, t) a# |: L7 k
0071BA26 |. 2BC6 ||sub eax,esi
8 |# r. G8 a" I" ]" o0071BA28 |. 0FAFC2 ||imul eax,edx
! {! G' T. D! }0071BA2B |. C1E6 04 ||shl esi,4
9 B2 F0 T0 z. h$ h, F0071BA2E |. 03C6 ||add eax,esi e+ T6 m+ h% o# y A
0071BA30 |. 8B35 D8F0AA00 ||mov esi,dword ptr ds:[AAF0D8]
* M& Q, p* @$ Q& m0071BA36 |. 23C6 ||and eax,esi4 ?2 G& \# s& B3 I) q& _
0071BA38 |. 8B7424 10 ||mov esi,dword ptr ss:[esp+10]' f) @' v; Q- [
0071BA3C |. 23F7 ||and esi,edi; g) e! _2 R7 b( v/ }1 G+ D
0071BA3E |. 8B3D F4F0AA00 ||mov edi,dword ptr ds:[AAF0F4]
6 M. N; k5 M# q0071BA44 |. 2BF1 ||sub esi,ecx& t2 ?: w" D% m) a, {. R
0071BA46 |. 0FAFF2 ||imul esi,edx8 c7 _" Y& p& w: b- V% j
0071BA49 |. C1E1 04 ||shl ecx,4
5 q$ F- [$ {2 o/ q) n0071BA4C |. 03F1 ||add esi,ecx3 U7 S5 y0 ^$ W0 @: w7 [- {/ v
0071BA4E |. 23F7 ||and esi,edi
! K! `+ w2 L$ \+ w- g0 s0071BA50 |. 03C6 ||add eax,esi- ?$ d. g, D) h4 e+ J2 a4 g
0071BA52 |. 8B7424 68 ||mov esi,dword ptr ss:[esp+68]1 S% o1 K A3 Q& O( \3 H2 h& d( C
0071BA56 |. C1F8 04 ||sar eax,4
+ v0 y+ e: d' s0071BA59 |> 66:8906 ||mov word ptr ds:[esi],ax ; 将经过处理后的缓冲区值放回原处
3 H) }: U# E. f$ h; L* m/ \2 G0071BA5C |. 8B4424 14 ||mov eax,dword ptr ss:[esp+14]& v5 R" j8 O# ^' C
0071BA60 |. 43 ||inc ebx ; 指向字模的下个像素点$ h3 {4 b2 L. h5 i- F0 h5 w* ~; x
0071BA61 |. 83C6 02 ||add esi,2 ; 指向缓冲区的下个点
2 j! x5 m/ x2 ]' _6 _( p$ U0 E0071BA64 |. 48 ||dec eax ; 计数值减1+ J- C' A' F/ W( \
0071BA65 |. 897424 68 ||mov dword ptr ss:[esp+68],esi
! e7 c$ a+ E4 h8 D# X# j3 i9 R6 O" h0071BA69 |. 894424 14 ||mov dword ptr ss:[esp+14],eax; |- z7 C7 B/ C+ y! I1 M; M; c1 D5 Q
0071BA6D |.^ 0F85 07FFFFFF |\jnz heroes4.0071B97A
2 H; B* j) x) d3 Z0071BA73 |. 8B6C24 1C |mov ebp,dword ptr ss:[esp+1C], |4 u# Y: a; s/ m3 g; O
0071BA77 |> 8B5424 20 |mov edx,dword ptr ss:[esp+20]
9 r3 K" N4 w4 j! a! I- _! J* }0071BA7B |. 8B4C24 24 |mov ecx,dword ptr ss:[esp+24]: V- o# a" V4 C9 c$ E- V
0071BA7F |. 8B4424 18 |mov eax,dword ptr ss:[esp+18]' a; F- K! g7 w' p
0071BA83 |. 03DA |add ebx,edx ; 指向字模的下行像素点
) a7 w' r4 y1 \7 P; T, m6 E0071BA85 |. 03F1 |add esi,ecx ; 指向缓冲区的下行点2 ^9 ~ e1 v; W5 h; m
0071BA87 |. 48 |dec eax ; 计数值减10 R3 g# O" [2 q0 N, K
0071BA88 |. 897424 68 |mov dword ptr ss:[esp+68],esi2 L; v& b& |( M* D
0071BA8C |. 894424 18 |mov dword ptr ss:[esp+18],eax" x' S. w8 Z9 h) `9 ]1 n4 {
0071BA90 |.^ 0F85 CBFEFFFF \jnz heroes4.0071B961
* ^/ T: X7 ?' B) |8 j0071BA96 |> 5F pop edi8 g- b' V; f! Z& R8 \) s# X* A
0071BA97 |. 5E pop esi/ }# ~/ N8 |( L; `
0071BA98 |. 5D pop ebp
- h- R- I* Y6 p7 Q& x$ Y% F0071BA99 |. 5B pop ebx
5 J o* M. ]6 B2 p. X `& f: q3 c" @0071BA9A |. 83C4 54 add esp,54" ~' R. K& G( ~5 n! I1 Y3 A: e& ?
0071BA9D \. C2 1800 retn 18, n- t5 |/ S) W7 K% f3 B
本函数的核心是两层循环,从71B9A1开始就是循环体,整个换算过程是一个比较复杂的算法,可以简单表示为:* z+ X& h+ k9 T% M* G
) ]- I. x0 O; y8 m! ?
buf[x][y]=func(buf[x][y],zm[x/2][y/2])
; k8 ]3 S& g+ y% \6 _2 Q
; e1 l' q& r9 L/ z0 u7 A$ e7 Hbuf:缓冲区二维数组,两个字节表示一个点
+ |( ?$ W' c8 jzm:字模二维数组,一个字节表示一个点 |