参数表
j: U. y& |5 {arg1:[arg1+10]+[arg1+C]*arg3+arg2*2存放缓冲区(应该就是屏幕显示区在内存的映像)基地址: @; @, z! v: M2 k2 N0 [% c. y' R1 m
arg2:字符串宽度 x
& L& O* J3 h: |! p: b5 larg3:y
: w% q. `' Y" h0 ]; Targ4:颜色2 P( _0 s7 F: _% k L
arg5:与颜色深度有关
! J6 C$ I/ ]: p$ P5 varg6:与颜色深度有关
5 T1 P- o8 X3 t; e) S! }6 r3 E( eecx:字符的编码基地址
' U5 U+ G4 r, v5 ~8 z+ @# N, V+ @5 V3 {0 P
0071B820 /$ 83EC 54 sub esp,545 U9 F1 h8 D- Y0 q" R# H
0071B823 |. 53 push ebx/ z1 V! C a+ n/ E6 b# Q5 [- a- U: O. d
0071B824 |. 8B5C24 5C mov ebx,dword ptr ss:[esp+5C]/ }" X4 l( Z$ ?7 `3 u9 ^" K
0071B828 |. 55 push ebp
2 j& j% L v. H$ {0071B829 |. 56 push esi
. D. _! ]# @) u0 [, `: D0071B82A |. 8B43 08 mov eax,dword ptr ds:[ebx+8]) {, x! f# x) {! b3 v7 E- Z$ h1 T
0071B82D |. 8BF1 mov esi,ecx$ T" I6 }8 u7 V. v
0071B82F |. 8B4B 04 mov ecx,dword ptr ds:[ebx+4]; M# F* J4 L# T8 ?4 c( N# b! d- M
0071B832 |. 57 push edi7 E9 J3 m$ a) R
0071B833 |. 50 push eax% i0 D2 k! i+ [5 I8 K; `3 K
0071B834 |. 51 push ecx. h4 _+ J( m. R
0071B835 |. 6A 00 push 0
; o- V3 ^# b) d3 [3 z0071B837 |. 6A 00 push 0$ B8 B* E; N: W, g3 G
0071B839 |. 8D4C24 54 lea ecx,dword ptr ss:[esp+54]
2 A1 Q- i. t$ u4 R0071B83D |. 897424 20 mov dword ptr ss:[esp+20],esi
$ `; A; R+ g. a3 @" `0071B841 |. E8 6ABCCEFF call heroes4.004074B0+ n" c S- X9 d/ V; [
0071B846 |. 8B56 08 mov edx,dword ptr ds:[esi+8]2 Q+ n2 k/ S+ A* }" J, N. p/ n
0071B849 |. 8B46 04 mov eax,dword ptr ds:[esi+4]
) Q0 O6 Z5 D" }9 B8 @0 r4 x0071B84C |. 52 push edx
( w( T" T7 k" m* k0071B84D |. 50 push eax! ?2 K" B; j; x0 \
0071B84E |. 6A 00 push 0
9 K8 z# { y! N' S. S U' B% c% z0071B850 |. 6A 00 push 0
8 `! J" _+ H: |0071B852 |. 8D4C24 44 lea ecx,dword ptr ss:[esp+44]
( m9 q6 |# {/ ~$ G! m, m$ u {& z* m0071B856 |. E8 55BCCEFF call heroes4.004074B0! {6 G% L! P6 W5 p( T1 M j* R' Z
0071B85B |. 8B4C24 34 mov ecx,dword ptr ss:[esp+34]5 t+ z% Q& T3 e' t
0071B85F |. 8B5424 38 mov edx,dword ptr ss:[esp+38]5 ~# b/ s- M5 U& T
0071B863 |. 8B4424 3C mov eax,dword ptr ss:[esp+3C]
, i0 W" S; ?1 Z, S0071B867 |. 894C24 24 mov dword ptr ss:[esp+24],ecx2 h' i0 |- }5 k3 V
0071B86B |. 8B4C24 40 mov ecx,dword ptr ss:[esp+40]& @5 k; B2 g+ ?7 u' p A
0071B86F |. 895424 28 mov dword ptr ss:[esp+28],edx
/ U5 [) r, ?; T7 `) H. m0071B873 |. 8D5424 6C lea edx,dword ptr ss:[esp+6C], o. _7 C" D L, J' d# n" t
0071B877 |. 894C24 30 mov dword ptr ss:[esp+30],ecx/ U6 |& u; }$ `3 i6 w) I, ~
0071B87B |. 52 push edx
( o* h- P! }4 @0071B87C |. 8D4C24 28 lea ecx,dword ptr ss:[esp+28]$ r1 k% F: F8 |5 C: S$ `
0071B880 |. 894424 30 mov dword ptr ss:[esp+30],eax
5 w8 F, r$ |0 e) H) h0071B884 |. E8 47BCCEFF call heroes4.004074D0$ y, \6 {1 v6 g F) b
0071B889 |. 8B4424 30 mov eax,dword ptr ss:[esp+30]" m4 ~3 y: H$ l0 [- U5 b
0071B88D |. 8B4C24 50 mov ecx,dword ptr ss:[esp+50]2 L6 W8 |& ?$ z) {+ j4 O
0071B891 |. 3BC1 cmp eax,ecx
) t2 E, ~" Y- I5 `) y* G- S0071B893 |. 8BF8 mov edi,eax
! ]7 L7 _5 c( l* V& K0071B895 |. 7C 02 jl short heroes4.0071B899
) B/ G* `$ Q/ t0071B897 |. 8BF9 mov edi,ecx
/ h$ N: a. p: c7 @1 S8 O0071B899 |> 8B4424 2C mov eax,dword ptr ss:[esp+2C]- S' s8 e' E7 b# N7 k6 j
0071B89D |. 8B5424 4C mov edx,dword ptr ss:[esp+4C]
9 T6 U/ y) O) t0 Z: k3 {0071B8A1 |. 3BC2 cmp eax,edx
- |( X$ L8 @ i, c; W$ ?0071B8A3 |. 7D 02 jge short heroes4.0071B8A7
1 x" I+ W; l; Q0071B8A5 |. 8BD0 mov edx,eax
( s! z, b8 E3 |) B; Z% t; `4 c; q0071B8A7 |> 8B4424 28 mov eax,dword ptr ss:[esp+28]
9 ^1 F l1 v7 A+ Y, ~. t& w1 P5 i0071B8AB |. 8B4C24 48 mov ecx,dword ptr ss:[esp+48]
2 c6 T; _, }/ U! m0071B8AF |. 3BC1 cmp eax,ecx% ?* F& e8 [& \. E/ V
0071B8B1 |. 7E 02 jle short heroes4.0071B8B5
^. y6 k1 n' @4 \6 }; j) q/ g0071B8B3 |. 8BC8 mov ecx,eax
5 P: L% S7 R- I& [* m8 I. i0071B8B5 |> 8B4424 24 mov eax,dword ptr ss:[esp+24]
. @8 n: c q7 S9 A3 ~9 |0071B8B9 |. 8B7424 44 mov esi,dword ptr ss:[esp+44]
3 F' O1 l+ `4 c0 w: x0071B8BD |. 3BC6 cmp eax,esi
& ?" C* k: ^' [1 A! V( L0071B8BF |. 7F 02 jg short heroes4.0071B8C3
) p8 k- k' x; M+ R1 W" Q1 m0071B8C1 |. 8BC6 mov eax,esi
4 H1 V+ L/ O* H& }: B* X0071B8C3 |> 57 push edi
6 E7 Y% g: k; U' p$ r0071B8C4 |. 52 push edx
3 J! @" E, K+ {- U$ } }) f1 v2 R0071B8C5 |. 51 push ecx
5 ?5 y3 J# x% S$ M0071B8C6 |. 50 push eax
) m! ~& w5 E' V3 w1 J$ z0071B8C7 |. 8D4C24 64 lea ecx,dword ptr ss:[esp+64]
/ k8 ^8 Z8 n% r8 m/ f3 }0071B8CB |. E8 E0BBCEFF call heroes4.004074B0; I6 z2 d+ J+ o6 b! ~
0071B8D0 |. 8B4424 60 mov eax,dword ptr ss:[esp+60]
6 y6 j, \. t5 Y0 p' _0071B8D4 |. 8B7424 58 mov esi,dword ptr ss:[esp+58]
+ n* f. p, Z/ a2 y0071B8D8 |. 2BC6 sub eax,esi4 E( {' }6 h) T" W$ |
0071B8DA |. 85C0 test eax,eax
; Z2 t+ _- y" e/ ~2 n/ Y1 r' R1 [0071B8DC |. 894424 18 mov dword ptr ss:[esp+18],eax
% g! \3 x+ N5 e' n0071B8E0 |. 0F8E B0010000 jle heroes4.0071BA96
W1 P4 t6 K' Z" \) x" N& m6 B0071B8E6 |. 8B6C24 5C mov ebp,dword ptr ss:[esp+5C]3 z9 y6 @) H; E. D7 {, z6 n
0071B8EA |. 8B4C24 54 mov ecx,dword ptr ss:[esp+54] ; 数值上等于arg2
. e! {4 V; L- n' m! e0071B8EE |. 2BE9 sub ebp,ecx$ `3 |& b% K0 Q5 x; Q
0071B8F0 |. 85ED test ebp,ebp# `7 E: i" q$ Q! ]# W$ F* [
0071B8F2 |. 896C24 1C mov dword ptr ss:[esp+1C],ebp0 ]1 j& }& _5 C! T% c
0071B8F6 |. 0F8E 9A010000 jle heroes4.0071BA96
. T1 f0 ]0 f0 \: m: f. H O* m( }1 D4 c0071B8FC |. 8B4424 6C mov eax,dword ptr ss:[esp+6C] ; arg2/ S& {8 L$ k5 Y: y ]4 {
0071B900 |. 8BF9 mov edi,ecx6 S) i; A2 l% Q9 u7 u9 H& N
0071B902 |. 2BF8 sub edi,eax
( p7 b. x9 m/ ~; A, w0071B904 |. 8B4424 70 mov eax,dword ptr ss:[esp+70] ; arg3
# b1 B( [+ l. B; Y0071B908 |. 8BD6 mov edx,esi
* U* J2 Z* C1 A8 H- T& A8 Q7 s6 z0071B90A |. 894C24 24 mov dword ptr ss:[esp+24],ecx# F" x% J7 i" x5 g' j
0071B90E |. 2BD0 sub edx,eax% S, O8 J+ M6 |( M
0071B910 |. 8B43 0C mov eax,dword ptr ds:[ebx+C], n& ]5 v' M" Y$ T
0071B913 |. 8BD8 mov ebx,eax, V9 B9 y9 }, r' `9 f
0071B915 |. 0FAFDE imul ebx,esi: i. W9 [4 u2 _) `: x0 D
0071B918 |. 8D344B lea esi,dword ptr ds:[ebx+ecx*2]
$ ?# B/ Q) R# {, w! }+ A0071B91B |. 8B4C24 68 mov ecx,dword ptr ss:[esp+68]
1 h, L5 R) g$ O! P H0071B91F |. 8B59 10 mov ebx,dword ptr ds:[ecx+10]! T9 ?) u; b, D9 k. ]
0071B922 |. 8B4C24 10 mov ecx,dword ptr ss:[esp+10]
7 b5 a$ Z, z% ]5 e' P0071B926 |. 03F3 add esi,ebx! I) ` U5 \/ O: J
0071B928 |. 8B49 0C mov ecx,dword ptr ds:[ecx+C] w! Z H2 K7 w7 E
0071B92B |. 897424 68 mov dword ptr ss:[esp+68],esi; 重点:将缓冲区地址写入栈内(原arg1处)
: `+ F) \6 i: y9 B3 @. @0071B92F |. 8BD9 mov ebx,ecx7 y1 N4 k, C+ ?& W; b/ h
0071B931 |. 2BCD sub ecx,ebp
! w2 P w% `1 N6 ^ {3 ?0071B933 |. 0FAFDA imul ebx,edx
. w& |% D2 i. u* m/ t/ y+ Z5 C$ p5 ^0071B936 |. 8B5424 10 mov edx,dword ptr ss:[esp+10]- H) N O5 L; a2 ^/ S
0071B93A |. 894C24 20 mov dword ptr ss:[esp+20],ecx
9 n3 s; N f; I4 |0071B93E |. 8D4C2D 00 lea ecx,dword ptr ss:[ebp+ebp]
z) n4 K: M& I4 s+ |0071B942 |. 035A 10 add ebx,dword ptr ds:[edx+10]0 p* N/ L: f: V$ I! F9 ~
0071B945 |. 8B5424 18 mov edx,dword ptr ss:[esp+18]- ?$ E: L% A3 d: k E7 |
0071B949 |. 2BC1 sub eax,ecx
7 G- P$ C# i& P( q3 F0071B94B |. 894424 24 mov dword ptr ss:[esp+24],eax
+ ~7 u% L7 J: ~" L) e# ?* D0071B94F |. 03DF add ebx,edi
. o# x9 d, d! [* y0 c" H a" l0071B951 |. 8BC2 mov eax,edx
. }9 l8 j& ^: q j0 o: c4 s4 t9 \0071B953 |. 4A dec edx
' `/ |. Q0 W( U+ ?% \- \0071B954 |. 85C0 test eax,eax) C. @! C8 a! d
0071B956 |. 0F84 3A010000 je heroes4.0071BA96
/ b% S6 q' u# m6 t' G; Z0071B95C |. 42 inc edx! e2 U! i; M( ~6 W
0071B95D |. 895424 18 mov dword ptr ss:[esp+18],edx, Q" X( s9 ^5 O8 T1 }9 C% p/ i! u
0071B961 |> 85ED /test ebp,ebp* K% E- U9 y2 Z: {( Y r) C
0071B963 |. 0F84 0E010000 |je heroes4.0071BA77
}1 A, n7 X3 g" V5 J0071B969 |. 8B4424 74 |mov eax,dword ptr ss:[esp+74]( f. Y1 H9 E9 b) q
0071B96D |. 896C24 14 |mov dword ptr ss:[esp+14],ebp4 Y0 S* O8 f3 m" ?3 o! z: ?
0071B971 |. 25 FFFF0000 |and eax,0FFFF9 _" g/ ?% c" R, x) M: I
0071B976 |. 894424 10 |mov dword ptr ss:[esp+10],eax. W Z3 r) k# y" a
0071B97A |> 8A4424 78 |/mov al,byte ptr ss:[esp+78]
' Z( H: `- C) t* b, n1 {4 W p; m/ |0071B97E |. 8B2D DCF0AA00 ||mov ebp,dword ptr ds:[AAF0DC]+ j( R0 g% I0 k- V% I' V% U
0071B984 |. 84C0 ||test al,al
& h8 U, Y+ |, @* z0071B986 |. 74 6A ||je short heroes4.0071B9F2
; n' \, A6 `- \6 N0071B988 |. 8A0B ||mov cl,byte ptr ds:[ebx] ; 取字模的像素点/ w: G% g" @4 c& T9 x; [5 K- W
0071B98A |. 8B4424 7C ||mov eax,dword ptr ss:[esp+7C]6 a2 F4 Q0 z6 U7 T# ?
0071B98E |. 83E1 0F ||and ecx,0F ; 取低四位
0 b7 V& T) N/ v; ~0071B991 |. 25 FFFF0000 ||and eax,0FFFF
( u9 k3 v0 L# E0071B996 |. 8BF9 ||mov edi,ecx
6 y7 h* a- i, J0 F" u. _0071B998 |. 33C9 ||xor ecx,ecx
9 _0 [# S+ l7 L Y8 ]0071B99A |. 66:8B0E ||mov cx,word ptr ds:[esi] ; 取缓冲区的原值/ s! i A0 A. [
0071B99D |. 85FF ||test edi,edi ; 检查字模的像素点低四位是否为0
' I' k+ N B1 }+ k0071B99F |. 74 54 ||je short heroes4.0071B9F5 ; 为0则不作处理" l7 Q8 r7 [' V. m! T
0071B9A1 |. 8BD7 ||mov edx,edi
; M6 L+ j) `. ~% R$ o0071B9A3 |. 8BF1 ||mov esi,ecx
% G( h- S+ _1 K" |7 `4 Y/ V0071B9A5 |. C1FA 03 ||sar edx,3
% w8 V* j7 O5 s$ Y4 c3 P0071B9A8 |. 83E2 01 ||and edx,1
0 J& k, l+ e8 c, a0071B9AB |. 03FA ||add edi,edx5 o1 @1 {/ q: |9 k. B6 c
0071B9AD |. 8BD1 ||mov edx,ecx
1 K' [7 b3 n2 C! b5 f0071B9AF |. 8B0D 04F1AA00 ||mov ecx,dword ptr ds:[AAF104]8 a8 n l8 {+ N
0071B9B5 |. 23D5 ||and edx,ebp' x& ]! | j- p2 o8 G* d5 b5 v
0071B9B7 |. 23F1 ||and esi,ecx
3 C5 Q9 ^% O* |# Q. K1 d0071B9B9 |. 8BC8 ||mov ecx,eax! Q4 p( B; D- h& Y
0071B9BB |. 230D 04F1AA00 ||and ecx,dword ptr ds:[AAF104]# ?9 ^' o* u0 h3 u) L7 R) A2 v
0071B9C1 |. 23C5 ||and eax,ebp" b9 L& T- |. R% b
0071B9C3 |. 2BC2 ||sub eax,edx
3 O L5 d6 o! X5 E/ s9 R0071B9C5 |. 2BCE ||sub ecx,esi
3 M* n* J, z# E2 Y2 K0071B9C7 |. 0FAFC7 ||imul eax,edi5 ^% d9 o2 `4 m1 ]2 Z( M, y6 z
0071B9CA |. 0FAFCF ||imul ecx,edi H0 m1 A/ Q* r; i9 C: D
0071B9CD |. C1E6 04 ||shl esi,4; ~) _3 ^- L0 D, k
0071B9D0 |. 03CE ||add ecx,esi' Z9 b, }, B7 f
0071B9D2 |. 8B35 F4F0AA00 ||mov esi,dword ptr ds:[AAF0F4]$ Y# ?" e. _+ W% Y: @1 E
0071B9D8 |. C1E2 04 ||shl edx,4
( y( I0 Z$ p; O- [- Q4 M M/ k0 c+ w0071B9DB |. 23CE ||and ecx,esi
( K# ?# d3 _, r' [1 {! s% J3 }0071B9DD |. 8B35 D8F0AA00 ||mov esi,dword ptr ds:[AAF0D8]
& o6 p+ x5 B6 |( ^0 e6 ~0071B9E3 |. 03C2 ||add eax,edx
. [, `# d2 h3 d8 `0 v, J0071B9E5 |. 23C6 ||and eax,esi
5 F# O8 `5 x% T6 _1 F/ k0071B9E7 |. 8B7424 68 ||mov esi,dword ptr ss:[esp+68]
5 s, [5 q, O3 w+ p& c; o0071B9EB |. 03C8 ||add ecx,eax- Z' c" Y @$ H! f- m
0071B9ED |. C1F9 04 ||sar ecx,4" a4 h; U3 \+ K$ Z
0071B9F0 |. EB 03 ||jmp short heroes4.0071B9F5
. I. m5 U i1 a; r" y- d( f6 ]0071B9F2 |> 66:8B0E ||mov cx,word ptr ds:[esi]
3 q3 e [7 X& Q/ n4 {( s; D0071B9F5 |> 33D2 ||xor edx,edx
Y2 Y) H9 b3 Q- K6 M0 E0071B9F7 |. 81E1 FFFF0000 ||and ecx,0FFFF
7 d& S3 F9 m- Z4 T1 F" ^0071B9FD |. 8A13 ||mov dl,byte ptr ds:[ebx]
; h* t# E' z8 b0071B9FF |. 8BC1 ||mov eax,ecx
2 M {$ v; T5 t0071BA01 |. C1EA 04 ||shr edx,4 ; 取高四位( b0 }/ l0 b4 l4 f# U# y2 r
0071BA04 |. 85D2 ||test edx,edx ; 检查字模的像素点高四位是否为0( ]: Q; Q" D/ V7 q$ E1 g
0071BA06 |. 74 51 ||je short heroes4.0071BA59 ; 为0则不作处理5 e) U1 F) {5 m3 x5 g9 N
0071BA08 |. 8BCA ||mov ecx,edx
/ X9 I3 K" L( X: p* U6 ?- @0071BA0A |. 8BF0 ||mov esi,eax/ @' u2 I! X5 U; c5 n+ j* t( \7 G
0071BA0C |. C1F9 03 ||sar ecx,3
3 _6 D9 Q) }7 C ~0071BA0F |. 83E1 01 ||and ecx,11 V% O+ M* ~& Z9 x# R3 i
0071BA12 |. 23F5 ||and esi,ebp
! ?% [1 R( j# ?& Y, o0 R0071BA14 |. 03D1 ||add edx,ecx
h, L# v6 ^: U0071BA16 |. 8BC8 ||mov ecx,eax4 W9 S3 Q6 [( \$ S5 e2 _
0071BA18 |. 8B4424 10 ||mov eax,dword ptr ss:[esp+10]
# Z' c% J6 b) N+ E- f! K7 }$ C0071BA1C |. 8B3D 04F1AA00 ||mov edi,dword ptr ds:[AAF104]" }4 V Y1 l! \4 y# u+ Z- t
0071BA22 |. 23C5 ||and eax,ebp+ f' D7 p Q7 U0 X
0071BA24 |. 23CF ||and ecx,edi4 ^% C: j. ^* W3 [4 i( U
0071BA26 |. 2BC6 ||sub eax,esi0 c1 o+ b$ x# O3 T* s
0071BA28 |. 0FAFC2 ||imul eax,edx
8 I, D1 q- g& V0 f0071BA2B |. C1E6 04 ||shl esi,44 r; v0 c4 H$ _7 I. H9 Y; u% l
0071BA2E |. 03C6 ||add eax,esi
1 ^0 m) C* ^8 r3 V; d5 N" j0071BA30 |. 8B35 D8F0AA00 ||mov esi,dword ptr ds:[AAF0D8]. d( i% K+ k6 x a% p/ P
0071BA36 |. 23C6 ||and eax,esi
" @; a1 F( I+ r8 H @% ?6 g2 B3 X0071BA38 |. 8B7424 10 ||mov esi,dword ptr ss:[esp+10]
% z9 X& f9 a R+ L* O4 \0071BA3C |. 23F7 ||and esi,edi: E9 Z9 k/ A" ]: X- q5 z8 G k
0071BA3E |. 8B3D F4F0AA00 ||mov edi,dword ptr ds:[AAF0F4]
, u3 R" ?2 g. `/ w# @2 Q0071BA44 |. 2BF1 ||sub esi,ecx
" P, E! x7 p7 q& }! d2 \' P0 G( b0071BA46 |. 0FAFF2 ||imul esi,edx
# G% e9 w" S! Z e- a5 \6 d4 S0071BA49 |. C1E1 04 ||shl ecx,44 N4 s, q4 G. i% }! }& I. R/ H
0071BA4C |. 03F1 ||add esi,ecx b ?' X5 {$ U( W! r3 u, f) T1 Y. a
0071BA4E |. 23F7 ||and esi,edi" j; U$ T, G: H/ |
0071BA50 |. 03C6 ||add eax,esi g2 a' u$ u* ^$ H7 @
0071BA52 |. 8B7424 68 ||mov esi,dword ptr ss:[esp+68]) U- W6 F, O' R
0071BA56 |. C1F8 04 ||sar eax,4; ]" B& ?7 n; l( o X/ w5 `( o5 V4 [
0071BA59 |> 66:8906 ||mov word ptr ds:[esi],ax ; 将经过处理后的缓冲区值放回原处+ w4 q% X2 ^! {+ |' d2 R4 \
0071BA5C |. 8B4424 14 ||mov eax,dword ptr ss:[esp+14]
+ G; I, c, L z5 x7 w0071BA60 |. 43 ||inc ebx ; 指向字模的下个像素点
0 p. M m- |3 @9 j4 J# c9 z/ ]. L0071BA61 |. 83C6 02 ||add esi,2 ; 指向缓冲区的下个点( v6 G# U% l. u$ O9 O1 P
0071BA64 |. 48 ||dec eax ; 计数值减1) A! M( {+ N) t
0071BA65 |. 897424 68 ||mov dword ptr ss:[esp+68],esi/ ~! h8 I# ^' ?6 z+ _, n
0071BA69 |. 894424 14 ||mov dword ptr ss:[esp+14],eax
( L& L$ Q) A7 e3 S, P0071BA6D |.^ 0F85 07FFFFFF |\jnz heroes4.0071B97A
4 Z- ^1 W. W: Y0 D0071BA73 |. 8B6C24 1C |mov ebp,dword ptr ss:[esp+1C]# X, _. |# ~ a+ U
0071BA77 |> 8B5424 20 |mov edx,dword ptr ss:[esp+20]
: {# v }1 i% q/ {0071BA7B |. 8B4C24 24 |mov ecx,dword ptr ss:[esp+24]
8 q G' ]3 w: d- p0071BA7F |. 8B4424 18 |mov eax,dword ptr ss:[esp+18]
" d6 b! A5 `2 b- C! N8 V" y0071BA83 |. 03DA |add ebx,edx ; 指向字模的下行像素点' Y' ]2 f r8 u! w: M4 i( X# }$ g/ q
0071BA85 |. 03F1 |add esi,ecx ; 指向缓冲区的下行点 u9 q/ d, A% E
0071BA87 |. 48 |dec eax ; 计数值减1# d' w% O) i" G! P1 n
0071BA88 |. 897424 68 |mov dword ptr ss:[esp+68],esi
0 K4 m% u- q/ |. `, t( b* J0071BA8C |. 894424 18 |mov dword ptr ss:[esp+18],eax; K7 g, J6 A/ c5 d0 z: ^8 e+ o* v
0071BA90 |.^ 0F85 CBFEFFFF \jnz heroes4.0071B961$ \5 R% y- R+ ~ D& g9 P
0071BA96 |> 5F pop edi; o2 U! K2 E3 |' z9 @0 m3 U
0071BA97 |. 5E pop esi
1 y( P- c2 V) W0071BA98 |. 5D pop ebp
# G2 `* d% O. c5 @8 v/ Q$ w6 I/ M; @0071BA99 |. 5B pop ebx
: E% q1 s9 H6 K5 \) j0071BA9A |. 83C4 54 add esp,54$ t( U! g( k4 j/ [5 Y
0071BA9D \. C2 1800 retn 18
. E c$ Y2 N% `8 M3 C; \本函数的核心是两层循环,从71B9A1开始就是循环体,整个换算过程是一个比较复杂的算法,可以简单表示为:+ C( h" r6 }, _6 r4 o9 x! {% [* r
; `. A" A( T- `
buf[x][y]=func(buf[x][y],zm[x/2][y/2])
! p- y' |! [: l; `. P! m3 Y! u1 J- u1 Q7 b4 h: C L( c
buf:缓冲区二维数组,两个字节表示一个点; _9 i8 Y& w" ]7 A
zm:字模二维数组,一个字节表示一个点 |