参数表3 L5 ^& Y6 l0 D5 W8 H( `
arg1:[arg1+10]+[arg1+C]*arg3+arg2*2存放缓冲区(应该就是屏幕显示区在内存的映像)基地址3 H$ Q2 `* `2 ^/ n) a5 K, y& x
arg2:字符串宽度 x
: U) X: y. M: Z! J8 ]! I5 Marg3:y. ?- y( X9 k& G8 ]; z$ @ M
arg4:颜色/ U @& I* f+ s& m
arg5:与颜色深度有关' E/ }9 w4 v( D
arg6:与颜色深度有关& @2 n6 t- O' \' g
ecx:字符的编码基地址. {# P9 n& S+ M7 b% P0 k3 F
' d7 ^* l, U& }+ \7 R% ^0071B820 /$ 83EC 54 sub esp,54
. U2 p9 G _6 q8 r% Y; X: i0071B823 |. 53 push ebx% g# r- W& b6 F: Z# m
0071B824 |. 8B5C24 5C mov ebx,dword ptr ss:[esp+5C]
& H* F' V& l( S* i; x3 S0071B828 |. 55 push ebp) I. z( r7 J. ^; p' t9 N( j) P! v
0071B829 |. 56 push esi
4 Y- {1 K6 e b: v+ c+ \0071B82A |. 8B43 08 mov eax,dword ptr ds:[ebx+8]
, S; V: h: {$ K$ B0071B82D |. 8BF1 mov esi,ecx' m: B* `* C5 O, H8 ?% y- ~/ e
0071B82F |. 8B4B 04 mov ecx,dword ptr ds:[ebx+4]' f& S. a0 k! M5 g* g
0071B832 |. 57 push edi
. ~$ w: f8 V6 @2 n% D0071B833 |. 50 push eax
& M& F. B. H7 J1 E8 T0071B834 |. 51 push ecx. K0 M: l0 x* f: ?/ R
0071B835 |. 6A 00 push 0- D! ?9 p9 M$ K: S$ `3 R
0071B837 |. 6A 00 push 0* t! K2 t/ t* Z2 ^, r8 @/ @
0071B839 |. 8D4C24 54 lea ecx,dword ptr ss:[esp+54]
/ E I* K7 `) j! D" h0071B83D |. 897424 20 mov dword ptr ss:[esp+20],esi
5 \& G& K, H4 l( f. v1 Y0071B841 |. E8 6ABCCEFF call heroes4.004074B0
; f% e! @5 p7 K0 Y4 R6 Z4 |; P! \0071B846 |. 8B56 08 mov edx,dword ptr ds:[esi+8]" v c6 W6 m& t0 \1 ?. C' m
0071B849 |. 8B46 04 mov eax,dword ptr ds:[esi+4]% J0 p/ _$ ]/ x; d
0071B84C |. 52 push edx
7 v/ M% r. }; S8 i, b0 t1 B0071B84D |. 50 push eax
9 R$ `% Z0 K9 x0071B84E |. 6A 00 push 02 N) b' o3 k7 O* S1 D
0071B850 |. 6A 00 push 0
4 Q- n$ f+ Z% f" o& {7 c0071B852 |. 8D4C24 44 lea ecx,dword ptr ss:[esp+44], p6 k1 i5 @8 Y/ Y; @
0071B856 |. E8 55BCCEFF call heroes4.004074B0 S4 o5 T4 y" c9 E( R6 W2 G
0071B85B |. 8B4C24 34 mov ecx,dword ptr ss:[esp+34]
- n" y2 M: k2 l+ e5 s, H& o0071B85F |. 8B5424 38 mov edx,dword ptr ss:[esp+38]
; W: E2 i0 X9 Y* R0071B863 |. 8B4424 3C mov eax,dword ptr ss:[esp+3C]
, [5 |- l2 Q% m4 r5 ^2 y4 n0071B867 |. 894C24 24 mov dword ptr ss:[esp+24],ecx
. d' W% e7 A- R8 O- U- k/ Y0071B86B |. 8B4C24 40 mov ecx,dword ptr ss:[esp+40]- z7 I. c4 p! e$ c+ ^+ _8 r3 J3 ^
0071B86F |. 895424 28 mov dword ptr ss:[esp+28],edx
: L: i, [3 L$ b1 A$ D0071B873 |. 8D5424 6C lea edx,dword ptr ss:[esp+6C]- g8 J8 S4 N3 `
0071B877 |. 894C24 30 mov dword ptr ss:[esp+30],ecx8 [" V$ i: x4 ]5 _6 Q0 W+ u
0071B87B |. 52 push edx
7 H2 f b5 S: R! o0071B87C |. 8D4C24 28 lea ecx,dword ptr ss:[esp+28]
6 L C9 {; V+ e3 [2 P9 w$ ^& ?0071B880 |. 894424 30 mov dword ptr ss:[esp+30],eax
6 F- m4 ?5 v( K1 J; O0071B884 |. E8 47BCCEFF call heroes4.004074D0
9 P" M% y) m1 m, r7 L5 L9 O) _0071B889 |. 8B4424 30 mov eax,dword ptr ss:[esp+30]% {1 u8 b5 B$ P# I
0071B88D |. 8B4C24 50 mov ecx,dword ptr ss:[esp+50]
! a. M2 D0 a0 z0071B891 |. 3BC1 cmp eax,ecx
r4 J% i" t8 F" n3 W: `# c; f% p6 ?0071B893 |. 8BF8 mov edi,eax
# ?( f1 d* U4 u0071B895 |. 7C 02 jl short heroes4.0071B899" }9 G1 ~; U$ e/ m6 g
0071B897 |. 8BF9 mov edi,ecx/ F, i+ y! j4 k- x( ?
0071B899 |> 8B4424 2C mov eax,dword ptr ss:[esp+2C]' T0 _ V {9 B+ j# ?! A; l+ B5 x; d
0071B89D |. 8B5424 4C mov edx,dword ptr ss:[esp+4C]% z. s7 G L" H4 C! w7 n
0071B8A1 |. 3BC2 cmp eax,edx
- ]4 f! y: p. Z; a+ n, E. M0071B8A3 |. 7D 02 jge short heroes4.0071B8A7
6 a" m" ^- H* H% Z/ @8 E- w5 Z6 m1 e. ?) i0071B8A5 |. 8BD0 mov edx,eax3 b; I! O2 s1 m/ }- J: {
0071B8A7 |> 8B4424 28 mov eax,dword ptr ss:[esp+28]
' Z+ w3 p0 g* r' D. V. A- P; v7 t0071B8AB |. 8B4C24 48 mov ecx,dword ptr ss:[esp+48]$ ]# J8 ^2 @6 x6 F
0071B8AF |. 3BC1 cmp eax,ecx
, |- w3 |, _: L- Z0 V6 J% J6 c! y& M0071B8B1 |. 7E 02 jle short heroes4.0071B8B5 y! h4 j+ E3 \4 {" T# n
0071B8B3 |. 8BC8 mov ecx,eax
7 n4 P, e# A B5 \) U; a4 H4 [: {0071B8B5 |> 8B4424 24 mov eax,dword ptr ss:[esp+24] g- Y6 j7 ~( d3 H
0071B8B9 |. 8B7424 44 mov esi,dword ptr ss:[esp+44]
7 W: ]9 e) P! V* n% P$ d% @( v2 Z0071B8BD |. 3BC6 cmp eax,esi8 _, U5 z& t0 o# d. a5 @
0071B8BF |. 7F 02 jg short heroes4.0071B8C32 I+ l4 ` D7 s1 i& Y
0071B8C1 |. 8BC6 mov eax,esi# n$ D+ X; O% d4 P2 t" v
0071B8C3 |> 57 push edi: Y1 r3 i1 B6 n; M" X
0071B8C4 |. 52 push edx
" \' l9 V) w8 j" W! k0071B8C5 |. 51 push ecx0 U' s [) `; B0 P) {0 t
0071B8C6 |. 50 push eax* }, P$ N6 |/ N+ N* t" a# I( n0 [) v
0071B8C7 |. 8D4C24 64 lea ecx,dword ptr ss:[esp+64]: J. l( W/ O7 V3 b: T& |. g F
0071B8CB |. E8 E0BBCEFF call heroes4.004074B0
# K; R$ j& ^) L" e# |. d0071B8D0 |. 8B4424 60 mov eax,dword ptr ss:[esp+60]1 f. ] p+ b1 e k
0071B8D4 |. 8B7424 58 mov esi,dword ptr ss:[esp+58]# v# U+ k/ F$ F
0071B8D8 |. 2BC6 sub eax,esi
7 C7 w3 r d" T/ E! I# U1 g+ U; ?0071B8DA |. 85C0 test eax,eax
& u: |/ f6 L9 k4 l+ ]0071B8DC |. 894424 18 mov dword ptr ss:[esp+18],eax, e9 P2 U: ?9 G% J' |% ?
0071B8E0 |. 0F8E B0010000 jle heroes4.0071BA960 C5 v3 D4 F/ H( ]
0071B8E6 |. 8B6C24 5C mov ebp,dword ptr ss:[esp+5C]
0 S1 x$ P; C9 C$ V/ O. L0071B8EA |. 8B4C24 54 mov ecx,dword ptr ss:[esp+54] ; 数值上等于arg2
V' s" ~1 h) P9 R! G0071B8EE |. 2BE9 sub ebp,ecx; {" X, z& d3 o# L7 d
0071B8F0 |. 85ED test ebp,ebp
) X/ b5 Q0 v( Y2 W$ s# z# c& P0071B8F2 |. 896C24 1C mov dword ptr ss:[esp+1C],ebp
: p7 M- R$ k' p: x _+ {* a- M0071B8F6 |. 0F8E 9A010000 jle heroes4.0071BA964 C% }! u) d& n% _
0071B8FC |. 8B4424 6C mov eax,dword ptr ss:[esp+6C] ; arg2
1 H8 P& \7 z# g$ {0071B900 |. 8BF9 mov edi,ecx
$ Z5 F2 b& K' \2 F. H0071B902 |. 2BF8 sub edi,eax
* l2 O% U$ H e7 O' S9 ~5 @: P: s2 {0071B904 |. 8B4424 70 mov eax,dword ptr ss:[esp+70] ; arg35 c0 t# W, \/ z4 ?) ~# W
0071B908 |. 8BD6 mov edx,esi
6 R. `& }4 W1 q/ Q7 y0071B90A |. 894C24 24 mov dword ptr ss:[esp+24],ecx
7 V5 T* A5 m5 B0071B90E |. 2BD0 sub edx,eax# g1 E! I8 k* i3 Y' b) F- r
0071B910 |. 8B43 0C mov eax,dword ptr ds:[ebx+C]
5 X: n) u+ J, @# s% b0071B913 |. 8BD8 mov ebx,eax1 o" q8 w I* B, O8 b3 @
0071B915 |. 0FAFDE imul ebx,esi4 I5 x" H" }6 Y+ Z9 Q! F9 q
0071B918 |. 8D344B lea esi,dword ptr ds:[ebx+ecx*2]# U1 d2 \3 Z! c% W, u' f1 d
0071B91B |. 8B4C24 68 mov ecx,dword ptr ss:[esp+68]9 I9 A( F5 a6 q8 {4 R; x
0071B91F |. 8B59 10 mov ebx,dword ptr ds:[ecx+10]
* J$ l7 N# |6 r# d9 W0071B922 |. 8B4C24 10 mov ecx,dword ptr ss:[esp+10]/ R6 S! ]! P& y) b9 N& s
0071B926 |. 03F3 add esi,ebx
8 c' B4 o6 |- G$ F6 N0071B928 |. 8B49 0C mov ecx,dword ptr ds:[ecx+C]7 r2 C/ X$ Z Y, I6 {' q# F
0071B92B |. 897424 68 mov dword ptr ss:[esp+68],esi; 重点:将缓冲区地址写入栈内(原arg1处) b' s2 R2 H% ]) J/ a; x
0071B92F |. 8BD9 mov ebx,ecx
$ S8 r2 x! \0 n2 t0 Z6 g* `0071B931 |. 2BCD sub ecx,ebp' \; D" \6 j2 k! P
0071B933 |. 0FAFDA imul ebx,edx
& k8 s+ g, U$ A" I7 D0071B936 |. 8B5424 10 mov edx,dword ptr ss:[esp+10]4 @ q9 [+ P6 X
0071B93A |. 894C24 20 mov dword ptr ss:[esp+20],ecx
3 v* s* |4 E/ F7 S: u! r7 b4 a+ w0071B93E |. 8D4C2D 00 lea ecx,dword ptr ss:[ebp+ebp]0 Q4 G- n: [+ W G2 v
0071B942 |. 035A 10 add ebx,dword ptr ds:[edx+10]
* |$ `/ @$ ?9 X6 v0071B945 |. 8B5424 18 mov edx,dword ptr ss:[esp+18]
6 G4 e" o+ `' [0 [/ ?0071B949 |. 2BC1 sub eax,ecx
6 t: \8 g- X4 v/ B0 W/ {: B0071B94B |. 894424 24 mov dword ptr ss:[esp+24],eax
6 ]$ \& ]3 b v1 t1 {1 A0071B94F |. 03DF add ebx,edi
& D9 ~! Z: E& B# a0071B951 |. 8BC2 mov eax,edx, L$ v i! I* t, ^, e3 P2 D
0071B953 |. 4A dec edx6 M* ?8 n8 g5 u4 `0 B/ G7 W+ c
0071B954 |. 85C0 test eax,eax) j. F3 c7 X9 n5 d; t. w
0071B956 |. 0F84 3A010000 je heroes4.0071BA960 E, H3 f, k- }9 F9 q
0071B95C |. 42 inc edx7 B* G% ?7 k2 { u/ U- f
0071B95D |. 895424 18 mov dword ptr ss:[esp+18],edx( ~. n9 a3 U2 r# S3 h: M
0071B961 |> 85ED /test ebp,ebp5 ]3 ]5 a; h( Q0 e: t/ m( F. K0 ?% L
0071B963 |. 0F84 0E010000 |je heroes4.0071BA77' V1 @: E s p! z" c
0071B969 |. 8B4424 74 |mov eax,dword ptr ss:[esp+74]% ?& i4 _3 H" |( @& O. h; {
0071B96D |. 896C24 14 |mov dword ptr ss:[esp+14],ebp6 W d+ A* K/ ^4 I6 K, D- C7 C2 T
0071B971 |. 25 FFFF0000 |and eax,0FFFF- @! F8 P3 `) c( d& [. n
0071B976 |. 894424 10 |mov dword ptr ss:[esp+10],eax
: C* G. [8 ]9 ]0 m0071B97A |> 8A4424 78 |/mov al,byte ptr ss:[esp+78]% U5 T7 D t. w! u' E
0071B97E |. 8B2D DCF0AA00 ||mov ebp,dword ptr ds:[AAF0DC]
- \5 y# K' m: ]- b2 C0071B984 |. 84C0 ||test al,al
5 k* M" M' k/ ^0071B986 |. 74 6A ||je short heroes4.0071B9F2
# z- P& U) p5 O; K0071B988 |. 8A0B ||mov cl,byte ptr ds:[ebx] ; 取字模的像素点% F" x: e5 X$ p2 |" r
0071B98A |. 8B4424 7C ||mov eax,dword ptr ss:[esp+7C]
' W* _: x s/ `8 W* X$ \$ l0071B98E |. 83E1 0F ||and ecx,0F ; 取低四位
, h% s2 N7 U( x, o0 v0071B991 |. 25 FFFF0000 ||and eax,0FFFF
$ v5 n7 Q$ ]( v4 F R0071B996 |. 8BF9 ||mov edi,ecx* k$ E7 `1 c1 U; o; O/ O. j
0071B998 |. 33C9 ||xor ecx,ecx( w1 \ T8 S" `9 f2 g& E0 C
0071B99A |. 66:8B0E ||mov cx,word ptr ds:[esi] ; 取缓冲区的原值
) h' t/ O% _ {6 p0071B99D |. 85FF ||test edi,edi ; 检查字模的像素点低四位是否为0; ~7 n! m8 I4 d: C; f8 t
0071B99F |. 74 54 ||je short heroes4.0071B9F5 ; 为0则不作处理
7 v, L+ s( c' f! X0071B9A1 |. 8BD7 ||mov edx,edi1 ]$ w2 q% s h
0071B9A3 |. 8BF1 ||mov esi,ecx3 d0 k2 K# Z+ L% c2 Y* j+ o- @
0071B9A5 |. C1FA 03 ||sar edx,39 W% Q$ v7 F4 o1 b. O3 |
0071B9A8 |. 83E2 01 ||and edx,1% n: e: G7 _* @, S' H6 n; `
0071B9AB |. 03FA ||add edi,edx8 i* I( C5 S) e; }6 i( i
0071B9AD |. 8BD1 ||mov edx,ecx
" z3 b3 R8 s: |, d' c# |$ d0071B9AF |. 8B0D 04F1AA00 ||mov ecx,dword ptr ds:[AAF104]6 ~' V7 N; L# C) [
0071B9B5 |. 23D5 ||and edx,ebp- k1 a w9 m+ x1 ?
0071B9B7 |. 23F1 ||and esi,ecx4 l, w5 E1 a N. P' X5 M
0071B9B9 |. 8BC8 ||mov ecx,eax
% Z G- c1 R) r- m( U0071B9BB |. 230D 04F1AA00 ||and ecx,dword ptr ds:[AAF104]8 n# B' t. j# X& {+ b
0071B9C1 |. 23C5 ||and eax,ebp! G% K$ g7 r( l$ T0 L0 D( l. H* _
0071B9C3 |. 2BC2 ||sub eax,edx( d6 l' r' ?3 o6 R& ]- M/ r3 u* ~
0071B9C5 |. 2BCE ||sub ecx,esi
$ c6 \8 a7 H7 b, U0071B9C7 |. 0FAFC7 ||imul eax,edi
( ]2 y6 }" V! F. H% i3 f% z( S1 i0071B9CA |. 0FAFCF ||imul ecx,edi
1 M: B7 m/ {" a0071B9CD |. C1E6 04 ||shl esi,47 N4 g: b1 W, D) r; N8 L6 Z. s
0071B9D0 |. 03CE ||add ecx,esi
) ~' @7 B% p5 B' S( ?& D0071B9D2 |. 8B35 F4F0AA00 ||mov esi,dword ptr ds:[AAF0F4]$ Q; W3 w' {! U% y# H# ~1 a9 s& K
0071B9D8 |. C1E2 04 ||shl edx,4
) r' M0 p6 O9 T7 s, S8 E6 `0071B9DB |. 23CE ||and ecx,esi) p* P4 X& P& @7 J q) [
0071B9DD |. 8B35 D8F0AA00 ||mov esi,dword ptr ds:[AAF0D8]8 ]% W3 O" C3 o0 x- j2 g
0071B9E3 |. 03C2 ||add eax,edx
4 A8 `% d Z8 F" O0071B9E5 |. 23C6 ||and eax,esi
) A& T1 K# h4 \0071B9E7 |. 8B7424 68 ||mov esi,dword ptr ss:[esp+68]
% ~6 } r) ~9 Q( I0 }4 V0071B9EB |. 03C8 ||add ecx,eax4 p' B8 `5 u! y% x" ?: ?
0071B9ED |. C1F9 04 ||sar ecx,4 |# s5 b2 D( h
0071B9F0 |. EB 03 ||jmp short heroes4.0071B9F5! y) @% T$ Z9 z8 G4 `* j
0071B9F2 |> 66:8B0E ||mov cx,word ptr ds:[esi]
- M! D' o: }( T1 M! l0071B9F5 |> 33D2 ||xor edx,edx
9 Q! |( @& R2 d' I$ O0 d& T2 E0071B9F7 |. 81E1 FFFF0000 ||and ecx,0FFFF% s: l) ?( e. n! W/ e" g
0071B9FD |. 8A13 ||mov dl,byte ptr ds:[ebx]
+ P* e; t8 q; U0071B9FF |. 8BC1 ||mov eax,ecx% V6 W0 ]* }7 ~% e% \# p# e6 C2 H: j
0071BA01 |. C1EA 04 ||shr edx,4 ; 取高四位
3 @. o' C4 u4 C8 {3 Q1 J0071BA04 |. 85D2 ||test edx,edx ; 检查字模的像素点高四位是否为0
' m& R, @+ M7 P* E4 Y0 p0071BA06 |. 74 51 ||je short heroes4.0071BA59 ; 为0则不作处理/ l6 {) j+ {- M. t5 W9 f
0071BA08 |. 8BCA ||mov ecx,edx
* v. p- f: [) s, x- K. q0 u0071BA0A |. 8BF0 ||mov esi,eax+ i( t# q9 u7 J
0071BA0C |. C1F9 03 ||sar ecx,3
- I8 ^( J9 B0 P0071BA0F |. 83E1 01 ||and ecx,11 e/ x8 @3 H8 i. N
0071BA12 |. 23F5 ||and esi,ebp' I; @" _- z) n$ B: l$ h' I
0071BA14 |. 03D1 ||add edx,ecx; Y! j1 Q( }# U/ r6 }5 q# Z) A( S
0071BA16 |. 8BC8 ||mov ecx,eax/ p% V/ t2 G& a! c
0071BA18 |. 8B4424 10 ||mov eax,dword ptr ss:[esp+10]1 B% `& z+ t3 L( G k$ a5 H
0071BA1C |. 8B3D 04F1AA00 ||mov edi,dword ptr ds:[AAF104]
/ I S0 A0 `) i1 y$ w. V; Z0071BA22 |. 23C5 ||and eax,ebp" y, _* e6 b) H$ b
0071BA24 |. 23CF ||and ecx,edi
; U- d% z: H6 c; R0071BA26 |. 2BC6 ||sub eax,esi
- T5 ?- \4 N* S6 u1 D- S0071BA28 |. 0FAFC2 ||imul eax,edx
: o# Z# P$ H! o4 V0071BA2B |. C1E6 04 ||shl esi,4
0 a( c0 ?% O+ y. h0071BA2E |. 03C6 ||add eax,esi
6 }/ `- m/ V0 Q" c7 Y0071BA30 |. 8B35 D8F0AA00 ||mov esi,dword ptr ds:[AAF0D8]
5 m! [/ u2 B+ I0071BA36 |. 23C6 ||and eax,esi& Q* ~! P- |0 w$ {5 ]$ ~" D
0071BA38 |. 8B7424 10 ||mov esi,dword ptr ss:[esp+10]# s3 f% s- V o3 x) s
0071BA3C |. 23F7 ||and esi,edi
( j0 v( H# v# M( \0071BA3E |. 8B3D F4F0AA00 ||mov edi,dword ptr ds:[AAF0F4], ~8 l0 ~ S; l3 C: R
0071BA44 |. 2BF1 ||sub esi,ecx1 W* G/ e' `/ m
0071BA46 |. 0FAFF2 ||imul esi,edx
0 l9 J0 |, S* i) `) w0071BA49 |. C1E1 04 ||shl ecx,40 L" _# z6 A3 ]8 C1 G! Q6 S
0071BA4C |. 03F1 ||add esi,ecx; z$ a' o( u1 t
0071BA4E |. 23F7 ||and esi,edi _0 X2 e6 C* K$ y0 ~6 n/ u) E. A
0071BA50 |. 03C6 ||add eax,esi# r5 n; I* |8 [9 ~3 N
0071BA52 |. 8B7424 68 ||mov esi,dword ptr ss:[esp+68]) g( H+ D! v/ c
0071BA56 |. C1F8 04 ||sar eax,4
4 t$ q, i$ W- R4 p0071BA59 |> 66:8906 ||mov word ptr ds:[esi],ax ; 将经过处理后的缓冲区值放回原处# j9 s7 b% @# s: y. `
0071BA5C |. 8B4424 14 ||mov eax,dword ptr ss:[esp+14]
+ V1 b5 P3 }0 h: Z0071BA60 |. 43 ||inc ebx ; 指向字模的下个像素点8 Y3 ?) I# U; `) R/ o! ?
0071BA61 |. 83C6 02 ||add esi,2 ; 指向缓冲区的下个点" j. O- K1 M5 G5 P) s' J9 n9 b
0071BA64 |. 48 ||dec eax ; 计数值减1$ i+ I3 h6 l; u1 P8 K. H r; ^
0071BA65 |. 897424 68 ||mov dword ptr ss:[esp+68],esi; | g+ R1 R Y; e1 r
0071BA69 |. 894424 14 ||mov dword ptr ss:[esp+14],eax6 |3 c! l& G, a& }5 a7 |
0071BA6D |.^ 0F85 07FFFFFF |\jnz heroes4.0071B97A
; R9 i, P' j: W+ `# d0071BA73 |. 8B6C24 1C |mov ebp,dword ptr ss:[esp+1C]7 Y- j, a0 p, ]( i
0071BA77 |> 8B5424 20 |mov edx,dword ptr ss:[esp+20]
5 ]% O. X% @. ]* Z0 D0071BA7B |. 8B4C24 24 |mov ecx,dword ptr ss:[esp+24]$ P/ }3 _# A- ~3 t3 `) B8 t
0071BA7F |. 8B4424 18 |mov eax,dword ptr ss:[esp+18]
7 _% d/ s* b2 ^8 T, j9 o0071BA83 |. 03DA |add ebx,edx ; 指向字模的下行像素点/ ]% W2 `9 z! W, V6 s( y5 [$ p+ a) k F
0071BA85 |. 03F1 |add esi,ecx ; 指向缓冲区的下行点
# F8 d. r: f0 W! R! H& q g0071BA87 |. 48 |dec eax ; 计数值减1( I' ~# ]8 c, ?3 @. X% U- m
0071BA88 |. 897424 68 |mov dword ptr ss:[esp+68],esi
7 B' n1 b. t. e3 J- u4 ?0071BA8C |. 894424 18 |mov dword ptr ss:[esp+18],eax
7 U+ L( t" d" }; g' N0071BA90 |.^ 0F85 CBFEFFFF \jnz heroes4.0071B961
5 T @1 S, ?, B4 z, J0071BA96 |> 5F pop edi1 ]# u, F' c) p% L; N! P: Y o
0071BA97 |. 5E pop esi
$ P/ X3 I- ^4 m, H2 C2 x0071BA98 |. 5D pop ebp
' ?: o. h: S: d0 c7 ^0071BA99 |. 5B pop ebx
. _4 z% z" n5 b$ R5 a5 G0071BA9A |. 83C4 54 add esp,54
- w- h. O0 ?( e6 Y+ u5 U! n+ M0071BA9D \. C2 1800 retn 18
2 P' v/ H9 l5 ^. A0 g本函数的核心是两层循环,从71B9A1开始就是循环体,整个换算过程是一个比较复杂的算法,可以简单表示为:8 D" b1 k9 k- P3 u0 W' A
& ^) `: U D6 u
buf[x][y]=func(buf[x][y],zm[x/2][y/2])7 W3 Q) V& {0 V# }' ?
9 e+ L* O% ~4 tbuf:缓冲区二维数组,两个字节表示一个点
7 f+ t1 f1 M0 t+ [8 R8 Szm:字模二维数组,一个字节表示一个点 |