参数表8 j& |$ r2 d) U, {; c5 \ A
arg1:[arg1+10]+[arg1+C]*arg3+arg2*2存放缓冲区(应该就是屏幕显示区在内存的映像)基地址4 y Z; j" a% a& X: R
arg2:字符串宽度 x( d5 f1 d! y. l1 h# ~1 w0 y# S
arg3:y0 {+ M/ P4 ~% ]) h* i# k$ }6 _% b
arg4:颜色
3 S1 V* d5 a, h+ |# I: b9 _arg5:与颜色深度有关% p+ y. [9 ~: F, l; Q) G, [
arg6:与颜色深度有关7 i4 G" ^4 Y! v
ecx:字符的编码基地址$ k0 `1 q" l, \+ z# ?0 `) @9 w
8 s1 P8 U3 N; c/ U- ^8 m3 r( V
0071B820 /$ 83EC 54 sub esp,54
) v% ^9 }6 @. p% T+ F0071B823 |. 53 push ebx4 L3 @/ K( P& G4 \8 i8 A' G
0071B824 |. 8B5C24 5C mov ebx,dword ptr ss:[esp+5C]: u8 m+ t. `7 d% o+ G! H
0071B828 |. 55 push ebp2 v. ^) g+ y4 o5 W5 \, G8 W
0071B829 |. 56 push esi
9 E4 W. }/ O( C+ K4 d/ k) A0071B82A |. 8B43 08 mov eax,dword ptr ds:[ebx+8]
+ K3 d, Z A& u7 m& T0071B82D |. 8BF1 mov esi,ecx
n5 v/ H; b1 S" B/ u4 B0071B82F |. 8B4B 04 mov ecx,dword ptr ds:[ebx+4]! ]% \" j; D/ w2 e T- u
0071B832 |. 57 push edi
% r% G# ^0 V7 q: O5 {4 q2 B+ J0071B833 |. 50 push eax
$ w# [" ?6 d, e: N0071B834 |. 51 push ecx0 K( K" f9 f7 |) e" z9 O. Q% L
0071B835 |. 6A 00 push 0' X1 h- H" g' u% K8 C
0071B837 |. 6A 00 push 0
O3 }8 i7 i3 ~3 @% f9 j' X, L+ d0071B839 |. 8D4C24 54 lea ecx,dword ptr ss:[esp+54]
7 }* K: w, G' @9 l0071B83D |. 897424 20 mov dword ptr ss:[esp+20],esi1 q: H% J" K- p/ J$ i
0071B841 |. E8 6ABCCEFF call heroes4.004074B0
) ?7 `6 n% }, w) C* h+ |0071B846 |. 8B56 08 mov edx,dword ptr ds:[esi+8]: B7 a# \& Q# F; `9 q' q
0071B849 |. 8B46 04 mov eax,dword ptr ds:[esi+4]
" ?; ]( J C+ O6 i0 E* X/ Z( m# n0071B84C |. 52 push edx
/ E8 o& _4 q3 e! P: u8 @0071B84D |. 50 push eax
/ f% }! E1 c- J+ S- C0071B84E |. 6A 00 push 0
v+ y9 [5 J$ S' @+ J0071B850 |. 6A 00 push 0' l4 C( d/ b' t1 P
0071B852 |. 8D4C24 44 lea ecx,dword ptr ss:[esp+44]
9 N' B2 \: x- \0071B856 |. E8 55BCCEFF call heroes4.004074B04 n1 a" m+ b7 a, K; z
0071B85B |. 8B4C24 34 mov ecx,dword ptr ss:[esp+34]
3 q: e/ v4 L/ l0 N6 G( U) M0071B85F |. 8B5424 38 mov edx,dword ptr ss:[esp+38]$ `" s0 p; N: V ?1 V; d, n, u/ d
0071B863 |. 8B4424 3C mov eax,dword ptr ss:[esp+3C]
; H+ h% ^) Y: {/ `0071B867 |. 894C24 24 mov dword ptr ss:[esp+24],ecx: d3 ^9 M% b' ^! B
0071B86B |. 8B4C24 40 mov ecx,dword ptr ss:[esp+40]
3 N( u# o6 e1 v4 G$ ]! V8 I0071B86F |. 895424 28 mov dword ptr ss:[esp+28],edx
+ f! F5 W4 q9 G4 Q; ^* P1 c- s0071B873 |. 8D5424 6C lea edx,dword ptr ss:[esp+6C]
8 L, a6 p1 W. ]! N" f! A0071B877 |. 894C24 30 mov dword ptr ss:[esp+30],ecx. O! E$ y9 |, W2 \( {8 F- k
0071B87B |. 52 push edx! _7 ]6 ~; y/ s. K0 y
0071B87C |. 8D4C24 28 lea ecx,dword ptr ss:[esp+28]7 ^- C1 ]( p9 W0 N' i
0071B880 |. 894424 30 mov dword ptr ss:[esp+30],eax2 ^, S) M2 `$ I I8 S, ~
0071B884 |. E8 47BCCEFF call heroes4.004074D0( k1 w; B2 H+ C- E' L- U1 |! `8 \4 {
0071B889 |. 8B4424 30 mov eax,dword ptr ss:[esp+30]4 H7 n4 Y& ~9 {6 Q% T. [9 U6 q8 D# k6 S
0071B88D |. 8B4C24 50 mov ecx,dword ptr ss:[esp+50]3 _2 [$ Y+ L0 I; [
0071B891 |. 3BC1 cmp eax,ecx
, h$ Q' O; I) K1 m0 l: y0071B893 |. 8BF8 mov edi,eax. ~ b) ?# Y5 z
0071B895 |. 7C 02 jl short heroes4.0071B8991 J# u0 u9 ?# i4 l
0071B897 |. 8BF9 mov edi,ecx
8 h5 G, t8 n$ O* r, v# L0071B899 |> 8B4424 2C mov eax,dword ptr ss:[esp+2C]4 L1 b) V" J5 \- n3 x. a) F+ J# t
0071B89D |. 8B5424 4C mov edx,dword ptr ss:[esp+4C]4 [# @* J5 `; M, G2 @! y' O
0071B8A1 |. 3BC2 cmp eax,edx3 ~: V/ R$ K' I: L& B
0071B8A3 |. 7D 02 jge short heroes4.0071B8A7
3 K+ r) z! b- a2 o, o8 N0071B8A5 |. 8BD0 mov edx,eax0 S2 S! t/ e3 U5 c4 y
0071B8A7 |> 8B4424 28 mov eax,dword ptr ss:[esp+28]
+ c4 a- D+ {! C# @0071B8AB |. 8B4C24 48 mov ecx,dword ptr ss:[esp+48]( _; W- U# n O) q3 g
0071B8AF |. 3BC1 cmp eax,ecx2 H4 D! I$ T b; ^% E. l
0071B8B1 |. 7E 02 jle short heroes4.0071B8B50 U7 c7 \% d* e0 i4 `1 {" E
0071B8B3 |. 8BC8 mov ecx,eax
+ e2 d. a8 y. z, }; C! O& F0071B8B5 |> 8B4424 24 mov eax,dword ptr ss:[esp+24]. s; q- l! C8 X1 s
0071B8B9 |. 8B7424 44 mov esi,dword ptr ss:[esp+44]
! p* l0 Z# X1 T2 O# V0071B8BD |. 3BC6 cmp eax,esi
+ Z! k- i8 w( ?7 x8 X2 g0 w1 y0071B8BF |. 7F 02 jg short heroes4.0071B8C3
& K2 X& k$ y! J0071B8C1 |. 8BC6 mov eax,esi
, Z% v$ J, O% ?0071B8C3 |> 57 push edi- z2 B! o% E6 D, V/ K: g& T
0071B8C4 |. 52 push edx% H e5 E% S# U- X8 y" O
0071B8C5 |. 51 push ecx
+ q1 T; H9 ^& M; h- ?0 q0 m0071B8C6 |. 50 push eax3 E8 `. x$ ~8 O1 q- E. T
0071B8C7 |. 8D4C24 64 lea ecx,dword ptr ss:[esp+64]
1 z6 f) g+ y% o) E0071B8CB |. E8 E0BBCEFF call heroes4.004074B0
" _( w+ W* ^/ ]& ` A& k/ G7 E' n0071B8D0 |. 8B4424 60 mov eax,dword ptr ss:[esp+60]' R# g. _8 r9 q- W7 _5 W2 [
0071B8D4 |. 8B7424 58 mov esi,dword ptr ss:[esp+58]
- Z) {; x' E5 R/ r0 d0071B8D8 |. 2BC6 sub eax,esi6 q( O4 e7 W1 _- D) S
0071B8DA |. 85C0 test eax,eax4 V Q5 {) W0 T' g5 } D1 j6 ~
0071B8DC |. 894424 18 mov dword ptr ss:[esp+18],eax9 S+ ~5 q, Y0 j) V. \
0071B8E0 |. 0F8E B0010000 jle heroes4.0071BA96
4 H3 C- Q) o' _' F0071B8E6 |. 8B6C24 5C mov ebp,dword ptr ss:[esp+5C]
+ V1 [5 r @( f0071B8EA |. 8B4C24 54 mov ecx,dword ptr ss:[esp+54] ; 数值上等于arg2
2 a$ O: h! L5 j2 q0071B8EE |. 2BE9 sub ebp,ecx
6 d) N' o- e$ G& H0071B8F0 |. 85ED test ebp,ebp1 v0 g( j g3 Y) X
0071B8F2 |. 896C24 1C mov dword ptr ss:[esp+1C],ebp
5 N: s% i! Q3 M1 F$ k6 j0071B8F6 |. 0F8E 9A010000 jle heroes4.0071BA96
6 P _/ [" g* r+ s; g+ q0071B8FC |. 8B4424 6C mov eax,dword ptr ss:[esp+6C] ; arg27 n1 n- c# H J7 X$ `) F
0071B900 |. 8BF9 mov edi,ecx$ l7 u7 s5 H1 Q6 e( i, h- T
0071B902 |. 2BF8 sub edi,eax
) w4 l+ u8 ]$ n! d" r) J: N0071B904 |. 8B4424 70 mov eax,dword ptr ss:[esp+70] ; arg3( {0 O3 O- |" G# r% r
0071B908 |. 8BD6 mov edx,esi& r" U" _! B; t4 Q4 O
0071B90A |. 894C24 24 mov dword ptr ss:[esp+24],ecx
W" l+ d0 ]/ ~* g0071B90E |. 2BD0 sub edx,eax- p7 U- r: U6 @: @; y
0071B910 |. 8B43 0C mov eax,dword ptr ds:[ebx+C]
0 d: ?* ]8 L1 `0071B913 |. 8BD8 mov ebx,eax
2 s$ E. C# K( x& j8 O; ^" |0071B915 |. 0FAFDE imul ebx,esi
# ^5 M6 I7 E# J+ R3 \; M0071B918 |. 8D344B lea esi,dword ptr ds:[ebx+ecx*2]* }$ g ` g3 e( H- ~; M
0071B91B |. 8B4C24 68 mov ecx,dword ptr ss:[esp+68]
5 D* P8 Y, G) _$ o# W0071B91F |. 8B59 10 mov ebx,dword ptr ds:[ecx+10]( f& X3 U- D1 A Z# Z/ p
0071B922 |. 8B4C24 10 mov ecx,dword ptr ss:[esp+10]
3 A# Z0 g. `" f# e/ _0071B926 |. 03F3 add esi,ebx
. w1 u. b6 k3 h: }. M" b% M0071B928 |. 8B49 0C mov ecx,dword ptr ds:[ecx+C]: z5 i& Q, m2 I. H
0071B92B |. 897424 68 mov dword ptr ss:[esp+68],esi; 重点:将缓冲区地址写入栈内(原arg1处)% f3 |1 P; r9 @% m( O
0071B92F |. 8BD9 mov ebx,ecx2 |7 C8 ~' A, U$ H, e8 T
0071B931 |. 2BCD sub ecx,ebp
7 n% ^* [2 E; K4 N# P8 v2 m* t' U7 a0071B933 |. 0FAFDA imul ebx,edx
& ^! p" d {* Q; n. L5 w" w6 t! `9 ~0071B936 |. 8B5424 10 mov edx,dword ptr ss:[esp+10]
& E% L, h8 W) v; q& G: u: y# [0071B93A |. 894C24 20 mov dword ptr ss:[esp+20],ecx
9 l4 M$ S: v) ^ v0071B93E |. 8D4C2D 00 lea ecx,dword ptr ss:[ebp+ebp]
* G, ]6 ]$ H8 {6 F0071B942 |. 035A 10 add ebx,dword ptr ds:[edx+10]6 c% Z" \& A' N) R0 p/ X7 \
0071B945 |. 8B5424 18 mov edx,dword ptr ss:[esp+18] {. o! a5 t) G5 \: }' Q
0071B949 |. 2BC1 sub eax,ecx
; H4 `7 Q4 x: t9 t+ S t0071B94B |. 894424 24 mov dword ptr ss:[esp+24],eax- h9 h+ I& O E: E3 l5 D$ n3 k
0071B94F |. 03DF add ebx,edi) s) Q( e: S0 C+ `% N( k3 Z
0071B951 |. 8BC2 mov eax,edx5 o, B( {! l$ E, Q6 w/ w8 ^
0071B953 |. 4A dec edx
/ ]* F3 x5 [0 U) \& n V7 h0071B954 |. 85C0 test eax,eax
2 r/ E" n3 e7 }2 Z' r0071B956 |. 0F84 3A010000 je heroes4.0071BA96
- Q+ E; ^* _# ?) O- A6 C4 E" i0071B95C |. 42 inc edx2 A- c, z- r! W7 h* T( T
0071B95D |. 895424 18 mov dword ptr ss:[esp+18],edx: p; B# }4 L, j: l: c4 [ O+ b& S
0071B961 |> 85ED /test ebp,ebp8 |6 D t& Y3 q
0071B963 |. 0F84 0E010000 |je heroes4.0071BA77
# Q' s" ~, ]+ B0071B969 |. 8B4424 74 |mov eax,dword ptr ss:[esp+74]
- p9 _/ T, B6 ?& }' g1 i( H' ^0071B96D |. 896C24 14 |mov dword ptr ss:[esp+14],ebp9 ?3 X1 B! a0 A0 U* S+ a
0071B971 |. 25 FFFF0000 |and eax,0FFFF
2 g# h2 Y- ]- J3 _! G# d1 s O9 p0071B976 |. 894424 10 |mov dword ptr ss:[esp+10],eax
+ r+ e( K' X; O1 c0071B97A |> 8A4424 78 |/mov al,byte ptr ss:[esp+78]
' y) @, C0 H- F0071B97E |. 8B2D DCF0AA00 ||mov ebp,dword ptr ds:[AAF0DC]
& K" [& v- U9 I& `! [: \0071B984 |. 84C0 ||test al,al
/ h4 v" n' u {( a, |1 L5 o0 F0071B986 |. 74 6A ||je short heroes4.0071B9F20 P' P) W) Z0 q; g% S. v
0071B988 |. 8A0B ||mov cl,byte ptr ds:[ebx] ; 取字模的像素点
`. ?' q- M$ e( l( M& \0071B98A |. 8B4424 7C ||mov eax,dword ptr ss:[esp+7C]
' u) `1 S; s, u0071B98E |. 83E1 0F ||and ecx,0F ; 取低四位; F- r+ g0 a3 I$ f( o
0071B991 |. 25 FFFF0000 ||and eax,0FFFF* @3 d. n% F z M( k4 ?
0071B996 |. 8BF9 ||mov edi,ecx( m2 t2 ^9 T5 V8 o' \' U) }) f. T. B
0071B998 |. 33C9 ||xor ecx,ecx
+ G4 ~' C1 w3 Y0071B99A |. 66:8B0E ||mov cx,word ptr ds:[esi] ; 取缓冲区的原值$ t( `/ Z. T5 ]( R8 k% n1 |& c0 ?. W7 C
0071B99D |. 85FF ||test edi,edi ; 检查字模的像素点低四位是否为0$ D t6 C. c) e8 ]9 [$ h
0071B99F |. 74 54 ||je short heroes4.0071B9F5 ; 为0则不作处理
( x& ], ~# o {, E8 N: j8 ]0071B9A1 |. 8BD7 ||mov edx,edi9 w; b. t& k+ l! @
0071B9A3 |. 8BF1 ||mov esi,ecx
9 H9 b, q/ d9 u0071B9A5 |. C1FA 03 ||sar edx,3
5 H5 Q2 `' [* `0071B9A8 |. 83E2 01 ||and edx,1
. l: _7 I* _0 d( J! H& Y0071B9AB |. 03FA ||add edi,edx
) l1 x7 q2 `0 [) {0071B9AD |. 8BD1 ||mov edx,ecx
6 p* ^) f2 f& c9 O, g; w" I3 N0071B9AF |. 8B0D 04F1AA00 ||mov ecx,dword ptr ds:[AAF104]
( c1 s1 z2 t8 C% V2 I% y. X0071B9B5 |. 23D5 ||and edx,ebp
& [/ h0 q R3 n, f$ B: }0071B9B7 |. 23F1 ||and esi,ecx
& ~0 U/ w" J4 Q0 X: k$ N$ ~0071B9B9 |. 8BC8 ||mov ecx,eax& s0 X. C4 D1 d9 l: N
0071B9BB |. 230D 04F1AA00 ||and ecx,dword ptr ds:[AAF104]
! [& n( {" @1 g; P! P" |" G0071B9C1 |. 23C5 ||and eax,ebp
5 q, d1 E9 a' G8 Q+ ^5 G. o+ ]$ K0071B9C3 |. 2BC2 ||sub eax,edx3 k; L c% e7 x" ?* D
0071B9C5 |. 2BCE ||sub ecx,esi
4 u2 r% o- O4 S3 _( G) R. b0071B9C7 |. 0FAFC7 ||imul eax,edi$ S5 [$ U1 W' l% y3 a
0071B9CA |. 0FAFCF ||imul ecx,edi
% \& z- {) t; R! Y0071B9CD |. C1E6 04 ||shl esi,40 D/ Y9 n, u1 `% m" {$ v
0071B9D0 |. 03CE ||add ecx,esi; u$ y \$ G! C1 j) V
0071B9D2 |. 8B35 F4F0AA00 ||mov esi,dword ptr ds:[AAF0F4]
5 y/ o, y, b0 }. @% [0071B9D8 |. C1E2 04 ||shl edx,4
) N9 l6 C7 q4 ~0 y; `" [' F$ M0071B9DB |. 23CE ||and ecx,esi
9 \! g% W8 @( y0 Z6 i% i0071B9DD |. 8B35 D8F0AA00 ||mov esi,dword ptr ds:[AAF0D8]# C, b4 y" j, y# {5 S: d
0071B9E3 |. 03C2 ||add eax,edx
+ |/ b( o. C1 b7 X! e, V5 i* ?0071B9E5 |. 23C6 ||and eax,esi7 k4 T ?' b3 b
0071B9E7 |. 8B7424 68 ||mov esi,dword ptr ss:[esp+68] Q7 m# {( H& C2 x- F* R: I: v" Q, E
0071B9EB |. 03C8 ||add ecx,eax: Z- k- Q8 U. Z, v
0071B9ED |. C1F9 04 ||sar ecx,47 x8 n5 h. t& N+ R z5 Y3 H! F
0071B9F0 |. EB 03 ||jmp short heroes4.0071B9F5) K/ F. s& A, ^* A" _/ P! q; ?
0071B9F2 |> 66:8B0E ||mov cx,word ptr ds:[esi]2 N; S" y+ p& A" O) R
0071B9F5 |> 33D2 ||xor edx,edx
, U8 z8 |- F; I& a0 G0071B9F7 |. 81E1 FFFF0000 ||and ecx,0FFFF
1 h, ]6 v' M0 u6 e0071B9FD |. 8A13 ||mov dl,byte ptr ds:[ebx]
4 L- Q; K/ W8 h: x0 ~0071B9FF |. 8BC1 ||mov eax,ecx) b4 j g+ G9 i. B4 P
0071BA01 |. C1EA 04 ||shr edx,4 ; 取高四位
0 c, H/ Q2 N/ I0071BA04 |. 85D2 ||test edx,edx ; 检查字模的像素点高四位是否为0# m2 t5 ^6 V- n3 a. \ C( E
0071BA06 |. 74 51 ||je short heroes4.0071BA59 ; 为0则不作处理
- }+ x$ g& ~5 b8 |7 O/ k; a0071BA08 |. 8BCA ||mov ecx,edx0 c, U0 W8 H0 \! }
0071BA0A |. 8BF0 ||mov esi,eax
9 [9 _2 a1 J, Z x0071BA0C |. C1F9 03 ||sar ecx,3. l( M) S/ L' [2 F" }8 x
0071BA0F |. 83E1 01 ||and ecx,1
+ t; M p, i( _7 k+ a j2 D0071BA12 |. 23F5 ||and esi,ebp
1 x/ w7 h! i- q9 Q% k* d0071BA14 |. 03D1 ||add edx,ecx9 O7 `; h2 B& x: J9 l* z6 \
0071BA16 |. 8BC8 ||mov ecx,eax- Q% o2 b5 H( |8 o7 n( O$ ?. X% I
0071BA18 |. 8B4424 10 ||mov eax,dword ptr ss:[esp+10]3 R# q. s! {* H1 i
0071BA1C |. 8B3D 04F1AA00 ||mov edi,dword ptr ds:[AAF104]
$ E& S0 g+ U4 [4 }& L0071BA22 |. 23C5 ||and eax,ebp
6 u( Y0 U1 ?3 y) G& ]* S0071BA24 |. 23CF ||and ecx,edi" Q. F4 C4 o# O
0071BA26 |. 2BC6 ||sub eax,esi, ? }2 G+ G& P7 A& \' {3 @
0071BA28 |. 0FAFC2 ||imul eax,edx$ T2 q) C, k6 P' F0 H: o
0071BA2B |. C1E6 04 ||shl esi,4" n+ u o9 T( t6 x" u2 a
0071BA2E |. 03C6 ||add eax,esi
' R0 |- _% u) J) r: b- `; \0071BA30 |. 8B35 D8F0AA00 ||mov esi,dword ptr ds:[AAF0D8]
+ v3 Y- i: U4 r3 V/ A0071BA36 |. 23C6 ||and eax,esi4 k9 J% l1 s1 ?$ Y6 O2 C
0071BA38 |. 8B7424 10 ||mov esi,dword ptr ss:[esp+10]( D4 L& }0 w, v% Y0 V c
0071BA3C |. 23F7 ||and esi,edi
$ ^* k; c6 J3 k9 }+ x8 L0071BA3E |. 8B3D F4F0AA00 ||mov edi,dword ptr ds:[AAF0F4]$ F, `4 H/ S# M) X
0071BA44 |. 2BF1 ||sub esi,ecx+ [( w2 C# h/ L8 o
0071BA46 |. 0FAFF2 ||imul esi,edx) c+ g# k$ m# n6 ^# G7 e& [& \
0071BA49 |. C1E1 04 ||shl ecx,4
1 h# n- d% O3 v: _3 q0071BA4C |. 03F1 ||add esi,ecx9 s. E6 u" p- K5 r! V
0071BA4E |. 23F7 ||and esi,edi
4 V4 U( Q: H. N. Q4 u3 m+ h1 q: P0071BA50 |. 03C6 ||add eax,esi+ P# C1 c: Y+ ~9 Z* ^3 h
0071BA52 |. 8B7424 68 ||mov esi,dword ptr ss:[esp+68]
& ?! D1 \# l& j0071BA56 |. C1F8 04 ||sar eax,4
% L: g! ?. d' _' [+ c0071BA59 |> 66:8906 ||mov word ptr ds:[esi],ax ; 将经过处理后的缓冲区值放回原处 T4 q% L5 w: `2 A( u l G6 n* O6 {
0071BA5C |. 8B4424 14 ||mov eax,dword ptr ss:[esp+14]
4 C: I, M1 [8 D7 _# {- v0071BA60 |. 43 ||inc ebx ; 指向字模的下个像素点
& ?, w/ N& R. D0071BA61 |. 83C6 02 ||add esi,2 ; 指向缓冲区的下个点6 V/ R- a0 J: C+ K- u+ V6 `$ [
0071BA64 |. 48 ||dec eax ; 计数值减1
f$ e( H+ i. D d( k2 X0071BA65 |. 897424 68 ||mov dword ptr ss:[esp+68],esi
9 \% g: j F, o: x3 {! g0071BA69 |. 894424 14 ||mov dword ptr ss:[esp+14],eax: y1 [: b# g. w
0071BA6D |.^ 0F85 07FFFFFF |\jnz heroes4.0071B97A
7 R1 q8 d3 K; |4 B$ r& z0071BA73 |. 8B6C24 1C |mov ebp,dword ptr ss:[esp+1C]
: i, O- z9 E% |7 l+ X! D! O0071BA77 |> 8B5424 20 |mov edx,dword ptr ss:[esp+20]$ }/ C- c9 @* W8 j5 u# X9 }9 n
0071BA7B |. 8B4C24 24 |mov ecx,dword ptr ss:[esp+24]7 c8 `+ g2 s- n% o& h( t' N
0071BA7F |. 8B4424 18 |mov eax,dword ptr ss:[esp+18]
. [2 J, H# F) z0071BA83 |. 03DA |add ebx,edx ; 指向字模的下行像素点$ m% G" k2 R" n, ?5 h, @2 m, o
0071BA85 |. 03F1 |add esi,ecx ; 指向缓冲区的下行点
- b8 ]/ L1 B6 O0071BA87 |. 48 |dec eax ; 计数值减1
6 n; W' }- d" W1 a l0071BA88 |. 897424 68 |mov dword ptr ss:[esp+68],esi( g8 Z# ^& D8 P% b/ P
0071BA8C |. 894424 18 |mov dword ptr ss:[esp+18],eax
( _& F9 [& O v0 }0071BA90 |.^ 0F85 CBFEFFFF \jnz heroes4.0071B961
@5 e3 o% o; {0071BA96 |> 5F pop edi2 s: ]# A% z) c) U8 j7 \
0071BA97 |. 5E pop esi
- d Z* T3 B8 O6 I2 ~0071BA98 |. 5D pop ebp/ n' _' z2 h; {% d1 B! V' R
0071BA99 |. 5B pop ebx% @# n( M1 H+ w2 p
0071BA9A |. 83C4 54 add esp,54
- k) F8 E% o: {$ F+ |0071BA9D \. C2 1800 retn 18
* }+ n0 _+ I) s% P5 [$ a2 I0 a/ m: z本函数的核心是两层循环,从71B9A1开始就是循环体,整个换算过程是一个比较复杂的算法,可以简单表示为:
! }! M" E% c, b- U
\8 @0 V9 R% `, [! N1 {& lbuf[x][y]=func(buf[x][y],zm[x/2][y/2])9 H3 o% @1 R! L# v
6 `9 h5 Q4 K% t, Qbuf:缓冲区二维数组,两个字节表示一个点- B) j8 D5 o3 S3 X$ |: L
zm:字模二维数组,一个字节表示一个点 |