参数表
3 ^3 @% Y; X! ~; o5 a/ c2 Karg1:[arg1+10]+[arg1+C]*arg3+arg2*2存放缓冲区(应该就是屏幕显示区在内存的映像)基地址
: q7 q6 I- K8 `. Y8 @arg2:字符串宽度 x, E7 p2 p9 z4 H$ k. q8 t) U
arg3:y+ W( U6 e# G$ N& v8 {- y3 M
arg4:颜色
0 h- T& b0 Z. Zarg5:与颜色深度有关
6 r$ G9 {- r" [2 ]' c4 Q* \( E! F4 ?arg6:与颜色深度有关 b) D0 }/ T; C" t: E$ @* h0 z
ecx:字符的编码基地址
' w# K" V! u, \/ A! c- j j/ x
% t0 N8 x( C6 @0071B820 /$ 83EC 54 sub esp,54
4 H2 d7 ^% v4 t1 C0071B823 |. 53 push ebx5 D5 f% k" U: k5 q. c, a" [
0071B824 |. 8B5C24 5C mov ebx,dword ptr ss:[esp+5C]( C' Q. N5 W% B3 l# \2 U4 u8 C
0071B828 |. 55 push ebp
$ e% `9 ?6 v7 y; x: |5 N" r0 K/ k0071B829 |. 56 push esi8 g. T) E( y t% {& V$ Y x
0071B82A |. 8B43 08 mov eax,dword ptr ds:[ebx+8]
- T! q& Q% o$ V8 n! S4 {) P9 J0071B82D |. 8BF1 mov esi,ecx7 M" C2 \2 _3 f- \- v! S1 M9 ?% k
0071B82F |. 8B4B 04 mov ecx,dword ptr ds:[ebx+4]
8 j1 p! E' _/ {+ i4 X$ \7 H0071B832 |. 57 push edi
- Y4 z5 M$ m7 m8 U; a" ~! N0071B833 |. 50 push eax
, l# p+ C7 L8 U5 o' a9 i( U- |0071B834 |. 51 push ecx
1 i+ P) N+ X; L: g, s0071B835 |. 6A 00 push 0: Y8 Y$ M; O4 h v; U3 U
0071B837 |. 6A 00 push 0
' ?4 A6 e+ F0 x7 y8 U" n0071B839 |. 8D4C24 54 lea ecx,dword ptr ss:[esp+54]
! T' Q6 e0 L* C0071B83D |. 897424 20 mov dword ptr ss:[esp+20],esi
. f6 v0 d4 ]( g m( f- m8 ~0071B841 |. E8 6ABCCEFF call heroes4.004074B0
5 w+ S7 u- U7 v0 |& @0071B846 |. 8B56 08 mov edx,dword ptr ds:[esi+8]
1 E ~! E$ i' l0 S" @+ |( r& O% f: L0071B849 |. 8B46 04 mov eax,dword ptr ds:[esi+4]3 H: X/ H: w. M' ]! B' [
0071B84C |. 52 push edx% Y7 m% _ b) {
0071B84D |. 50 push eax
$ I' R0 T8 o% ?0071B84E |. 6A 00 push 0* V# r0 S; N* [
0071B850 |. 6A 00 push 0
% `. Y& ? m8 e; u ]0071B852 |. 8D4C24 44 lea ecx,dword ptr ss:[esp+44]. A6 |- h% |! ]4 f
0071B856 |. E8 55BCCEFF call heroes4.004074B0% y9 W2 r& E2 E9 n; q) R4 m5 c
0071B85B |. 8B4C24 34 mov ecx,dword ptr ss:[esp+34]
% H* Q& S' z! ~& ? ^0071B85F |. 8B5424 38 mov edx,dword ptr ss:[esp+38]
# U8 k" O) x! t0071B863 |. 8B4424 3C mov eax,dword ptr ss:[esp+3C]* u N1 D8 H! L7 g% H. }' ^: X
0071B867 |. 894C24 24 mov dword ptr ss:[esp+24],ecx* @, _, n% z2 h* J& {, C
0071B86B |. 8B4C24 40 mov ecx,dword ptr ss:[esp+40]# q3 z2 I+ S7 Q2 }
0071B86F |. 895424 28 mov dword ptr ss:[esp+28],edx7 o) b6 H" F, y9 e+ Y1 W
0071B873 |. 8D5424 6C lea edx,dword ptr ss:[esp+6C]7 {) `* o. d# s$ G" Y
0071B877 |. 894C24 30 mov dword ptr ss:[esp+30],ecx: d. Y4 }% X( |2 @2 x- ~
0071B87B |. 52 push edx! T! K1 p( F. v1 M
0071B87C |. 8D4C24 28 lea ecx,dword ptr ss:[esp+28]3 x: G% k. N6 k5 c0 r* Q _
0071B880 |. 894424 30 mov dword ptr ss:[esp+30],eax& N( s6 f% o% U% N4 Y3 _ ~: q
0071B884 |. E8 47BCCEFF call heroes4.004074D0
: F5 `. N" C @, J0071B889 |. 8B4424 30 mov eax,dword ptr ss:[esp+30]' t/ B1 C7 X! L$ h
0071B88D |. 8B4C24 50 mov ecx,dword ptr ss:[esp+50]
7 e% ]5 g0 J" [0071B891 |. 3BC1 cmp eax,ecx
# i( y0 z. d9 b8 o# l% n0071B893 |. 8BF8 mov edi,eax
/ `3 T1 k" M' H7 c# J0071B895 |. 7C 02 jl short heroes4.0071B899
% U3 q% T `% M8 {7 F" ]0071B897 |. 8BF9 mov edi,ecx# J5 K: x u/ P1 b' l
0071B899 |> 8B4424 2C mov eax,dword ptr ss:[esp+2C]+ l! i& \3 O- E# d R6 f
0071B89D |. 8B5424 4C mov edx,dword ptr ss:[esp+4C]3 C4 C! j( g, Y4 Y! z# O3 u8 ?
0071B8A1 |. 3BC2 cmp eax,edx
& r+ r9 Y- {0 h9 n0 M, d- g0071B8A3 |. 7D 02 jge short heroes4.0071B8A76 Q/ i4 M" L" E3 G3 M- e
0071B8A5 |. 8BD0 mov edx,eax( y0 W. L E/ v5 D( }+ l; O3 Z5 s
0071B8A7 |> 8B4424 28 mov eax,dword ptr ss:[esp+28]5 k/ [! ?7 f Y s. M
0071B8AB |. 8B4C24 48 mov ecx,dword ptr ss:[esp+48]$ {* M, V& N2 A2 b6 P1 v& ]7 B5 O
0071B8AF |. 3BC1 cmp eax,ecx
+ G9 P. H$ R1 K. l0071B8B1 |. 7E 02 jle short heroes4.0071B8B5
1 n* i5 G9 N: g$ B' M0071B8B3 |. 8BC8 mov ecx,eax
! X a8 I1 A# l* U1 P0 {0071B8B5 |> 8B4424 24 mov eax,dword ptr ss:[esp+24]
4 A. }2 K$ B5 u- S0071B8B9 |. 8B7424 44 mov esi,dword ptr ss:[esp+44]. d/ |* o. G' @" Y, s8 c$ z
0071B8BD |. 3BC6 cmp eax,esi& m4 d$ A2 Y: G7 r* n7 U7 Z
0071B8BF |. 7F 02 jg short heroes4.0071B8C3
, m, A6 v* Q! J! S! w7 W0071B8C1 |. 8BC6 mov eax,esi" j- w( g9 y+ k$ I
0071B8C3 |> 57 push edi) V6 F" F; d2 G7 |1 C ~
0071B8C4 |. 52 push edx2 X4 c( s4 y. T1 Y3 g. x
0071B8C5 |. 51 push ecx
! u9 J* D, U( O0071B8C6 |. 50 push eax( }4 b2 \; M( ~7 n6 C, F
0071B8C7 |. 8D4C24 64 lea ecx,dword ptr ss:[esp+64]
; J2 F! }' k$ Z! e7 g! s0071B8CB |. E8 E0BBCEFF call heroes4.004074B0
H! ~2 ^! t, F+ R0071B8D0 |. 8B4424 60 mov eax,dword ptr ss:[esp+60]
4 a" e% D/ k9 V, Y$ o% v9 [) D0071B8D4 |. 8B7424 58 mov esi,dword ptr ss:[esp+58]
6 h/ ?$ t) w8 S( I, {( w8 B0071B8D8 |. 2BC6 sub eax,esi8 R* b$ s; a- n; W
0071B8DA |. 85C0 test eax,eax
! ~2 s. o* V" f7 a0071B8DC |. 894424 18 mov dword ptr ss:[esp+18],eax
) K" s/ H- g& Q1 f9 W% J0071B8E0 |. 0F8E B0010000 jle heroes4.0071BA96! Y& J2 a2 r; j" G. Z$ ]5 t
0071B8E6 |. 8B6C24 5C mov ebp,dword ptr ss:[esp+5C]
$ L. v1 i/ ^- n+ n% y0071B8EA |. 8B4C24 54 mov ecx,dword ptr ss:[esp+54] ; 数值上等于arg2
, k* I Z8 i$ |8 o7 v! I: Y2 F1 [8 t: ~1 v0071B8EE |. 2BE9 sub ebp,ecx
) n% N9 p+ f- g. j, {: c0071B8F0 |. 85ED test ebp,ebp8 ]" Q4 |: x0 h
0071B8F2 |. 896C24 1C mov dword ptr ss:[esp+1C],ebp
0 c- d3 l5 F0 a8 y$ S7 U' E/ E( w0071B8F6 |. 0F8E 9A010000 jle heroes4.0071BA96& W( P* a4 V- Y
0071B8FC |. 8B4424 6C mov eax,dword ptr ss:[esp+6C] ; arg20 j6 p5 c, V% E) m m, A6 A
0071B900 |. 8BF9 mov edi,ecx/ {! {8 [) @' w" }1 o
0071B902 |. 2BF8 sub edi,eax
9 O3 R* Q% d# D0071B904 |. 8B4424 70 mov eax,dword ptr ss:[esp+70] ; arg36 Y0 d) [6 w( {9 \; n O8 x- r
0071B908 |. 8BD6 mov edx,esi
0 v# o( e- r; r; P7 W! Q% n0071B90A |. 894C24 24 mov dword ptr ss:[esp+24],ecx$ l5 P! m! I) J/ X9 J! h
0071B90E |. 2BD0 sub edx,eax; ^1 l6 d! r& T( h
0071B910 |. 8B43 0C mov eax,dword ptr ds:[ebx+C]% I. A B; j) @; Q J% g
0071B913 |. 8BD8 mov ebx,eax
* m! P4 X5 k: M6 g2 S7 `0071B915 |. 0FAFDE imul ebx,esi# {, ^9 r3 e* W3 N- T
0071B918 |. 8D344B lea esi,dword ptr ds:[ebx+ecx*2]# O1 f7 M; A( W2 y# @$ T
0071B91B |. 8B4C24 68 mov ecx,dword ptr ss:[esp+68]' b, m" o- B9 ~1 x8 Z8 Z) u
0071B91F |. 8B59 10 mov ebx,dword ptr ds:[ecx+10]
4 F3 s9 ^% s2 t0 e* S0071B922 |. 8B4C24 10 mov ecx,dword ptr ss:[esp+10]! W3 |" _5 ~0 `( H% L. ]2 @
0071B926 |. 03F3 add esi,ebx$ b, J$ j; h; ]6 R' }) \( J
0071B928 |. 8B49 0C mov ecx,dword ptr ds:[ecx+C]6 Y( g" u* j3 X& t+ d- i6 n
0071B92B |. 897424 68 mov dword ptr ss:[esp+68],esi; 重点:将缓冲区地址写入栈内(原arg1处)% I" W6 M+ l$ \2 H8 i$ a x
0071B92F |. 8BD9 mov ebx,ecx+ o, E+ Y# |: }( T
0071B931 |. 2BCD sub ecx,ebp
# |1 d2 |3 ~6 y K0071B933 |. 0FAFDA imul ebx,edx
1 p3 b1 n) o" W0071B936 |. 8B5424 10 mov edx,dword ptr ss:[esp+10]; K! u/ Y; y2 W& R( l9 @/ n0 Q8 ]
0071B93A |. 894C24 20 mov dword ptr ss:[esp+20],ecx2 D0 f" a B2 S' z/ G: B8 Q
0071B93E |. 8D4C2D 00 lea ecx,dword ptr ss:[ebp+ebp]0 v& O$ Y/ D3 @# ?
0071B942 |. 035A 10 add ebx,dword ptr ds:[edx+10]6 i6 W8 A4 V; v) P2 A# @* j
0071B945 |. 8B5424 18 mov edx,dword ptr ss:[esp+18]" A2 c- ?) G- W) T' a+ {
0071B949 |. 2BC1 sub eax,ecx) L. m# Q9 ~9 J. ?3 [+ H4 b# v
0071B94B |. 894424 24 mov dword ptr ss:[esp+24],eax: O4 n1 F5 r, G, G. z+ E4 b) C
0071B94F |. 03DF add ebx,edi
0 [8 a) l- D- @& [' n9 V0071B951 |. 8BC2 mov eax,edx$ h& v1 N% v; E) h$ a8 f$ S
0071B953 |. 4A dec edx
8 t- @! A [: I; l% j7 h0071B954 |. 85C0 test eax,eax$ Z+ ^ c) O& C5 j4 F0 f0 N9 g, z
0071B956 |. 0F84 3A010000 je heroes4.0071BA963 M5 Z9 s4 N( |4 G; m
0071B95C |. 42 inc edx
! g! w8 T5 p! b. K& v3 _6 b0071B95D |. 895424 18 mov dword ptr ss:[esp+18],edx& M; z/ G- N" D+ Z
0071B961 |> 85ED /test ebp,ebp* l9 C7 v! u/ N0 a9 r( \ X
0071B963 |. 0F84 0E010000 |je heroes4.0071BA77
. `! o9 W( m% z8 M8 H0071B969 |. 8B4424 74 |mov eax,dword ptr ss:[esp+74]
( T( Q7 t/ q3 J Y- l4 p0071B96D |. 896C24 14 |mov dword ptr ss:[esp+14],ebp
( }4 t2 @- [ @' @4 E/ J0071B971 |. 25 FFFF0000 |and eax,0FFFF1 ]- r4 m0 @6 m9 h; Y( T
0071B976 |. 894424 10 |mov dword ptr ss:[esp+10],eax6 Z1 o& ^$ k, g1 J/ F; u
0071B97A |> 8A4424 78 |/mov al,byte ptr ss:[esp+78]
2 U7 V# B/ [3 F' o4 T6 Q$ l0071B97E |. 8B2D DCF0AA00 ||mov ebp,dword ptr ds:[AAF0DC]9 L8 c( w) U( A: G$ Q# d
0071B984 |. 84C0 ||test al,al
% ~3 l4 @' B7 r% v; ]0071B986 |. 74 6A ||je short heroes4.0071B9F2# N4 |; Y( J2 a8 M- d
0071B988 |. 8A0B ||mov cl,byte ptr ds:[ebx] ; 取字模的像素点
) h' A' h5 b3 ?# f( j0071B98A |. 8B4424 7C ||mov eax,dword ptr ss:[esp+7C]* O j3 C( j* b# _
0071B98E |. 83E1 0F ||and ecx,0F ; 取低四位9 f) n0 u: g& c9 L+ @( a
0071B991 |. 25 FFFF0000 ||and eax,0FFFF
, M/ i* D# g) B- N/ w) a7 W0 C0071B996 |. 8BF9 ||mov edi,ecx( z! g7 |1 X) |, J: n* O- e
0071B998 |. 33C9 ||xor ecx,ecx; e- O2 r9 G7 [- y a
0071B99A |. 66:8B0E ||mov cx,word ptr ds:[esi] ; 取缓冲区的原值
7 I; g4 r# A q9 P7 v ?) W0071B99D |. 85FF ||test edi,edi ; 检查字模的像素点低四位是否为0
" p5 o' R& F; J' K# b0071B99F |. 74 54 ||je short heroes4.0071B9F5 ; 为0则不作处理" a$ k \6 v" j8 L
0071B9A1 |. 8BD7 ||mov edx,edi
: g9 S6 K0 U1 B5 b8 Q0071B9A3 |. 8BF1 ||mov esi,ecx
! w( q; U3 {0 N# d. |+ @0071B9A5 |. C1FA 03 ||sar edx,3
( N' `- a: C1 H0 W$ j; I* T0071B9A8 |. 83E2 01 ||and edx,1
, L9 X0 v( ^+ h3 T; V6 {* o! d+ S% Z0071B9AB |. 03FA ||add edi,edx
/ l/ \6 Z; G+ s% L2 {3 l" ]0071B9AD |. 8BD1 ||mov edx,ecx A- j. x& s' ~8 r% M/ [9 A
0071B9AF |. 8B0D 04F1AA00 ||mov ecx,dword ptr ds:[AAF104]
8 |$ n h0 i* A$ k) `0071B9B5 |. 23D5 ||and edx,ebp3 B/ r) l9 J4 H
0071B9B7 |. 23F1 ||and esi,ecx
8 p* n2 `8 E! b; I+ m# m0071B9B9 |. 8BC8 ||mov ecx,eax3 N3 ]" ]1 L4 D% I' Q* Z" d" q' N
0071B9BB |. 230D 04F1AA00 ||and ecx,dword ptr ds:[AAF104]4 F8 r7 L* _ z. c* d4 h- B
0071B9C1 |. 23C5 ||and eax,ebp
6 w' q E6 f h0071B9C3 |. 2BC2 ||sub eax,edx
, I8 m6 n0 X5 Q! {' t1 B7 I0071B9C5 |. 2BCE ||sub ecx,esi/ Y/ r2 Q# h% n a+ Z
0071B9C7 |. 0FAFC7 ||imul eax,edi+ k7 p' t) a; ]) W" G1 d6 E
0071B9CA |. 0FAFCF ||imul ecx,edi
1 c3 ^3 a% w) S4 d1 b( t5 _0071B9CD |. C1E6 04 ||shl esi,4
, F3 i& I/ ^0 ?# t0071B9D0 |. 03CE ||add ecx,esi9 J! O1 T* x' \) ^3 w
0071B9D2 |. 8B35 F4F0AA00 ||mov esi,dword ptr ds:[AAF0F4], J9 @3 n* o7 X- J- s. L
0071B9D8 |. C1E2 04 ||shl edx,4
: G2 d9 l5 L1 _& S( X2 V0071B9DB |. 23CE ||and ecx,esi
: Y- X9 n% F% m1 D: S |/ _0071B9DD |. 8B35 D8F0AA00 ||mov esi,dword ptr ds:[AAF0D8]
& H$ R- S3 C0 Y; s% E; V; f0071B9E3 |. 03C2 ||add eax,edx) B/ ~8 o, k0 K+ M$ s/ P/ ^
0071B9E5 |. 23C6 ||and eax,esi# p; q2 _/ `3 S+ K- C
0071B9E7 |. 8B7424 68 ||mov esi,dword ptr ss:[esp+68]1 @( t/ C! x, q1 y+ M
0071B9EB |. 03C8 ||add ecx,eax) z" g$ d( U- m$ H1 q
0071B9ED |. C1F9 04 ||sar ecx,4
9 E$ f5 i; n, T2 `0071B9F0 |. EB 03 ||jmp short heroes4.0071B9F5
7 \5 W0 D( ?* C# n5 @; W! t( N0071B9F2 |> 66:8B0E ||mov cx,word ptr ds:[esi]
# j+ A$ j( u: G0 p% J" y0071B9F5 |> 33D2 ||xor edx,edx
1 ~0 |. @# o% d6 Q# [0071B9F7 |. 81E1 FFFF0000 ||and ecx,0FFFF8 Y! D+ x$ d& e* k' L0 D
0071B9FD |. 8A13 ||mov dl,byte ptr ds:[ebx], `9 J; r |( W2 ]: ~! f: ]4 X6 l
0071B9FF |. 8BC1 ||mov eax,ecx2 @7 E8 y" |+ p3 a* C" ]' h
0071BA01 |. C1EA 04 ||shr edx,4 ; 取高四位3 B$ A$ F5 _; d
0071BA04 |. 85D2 ||test edx,edx ; 检查字模的像素点高四位是否为0
. e, Z' G) Q- {2 k, T. [0071BA06 |. 74 51 ||je short heroes4.0071BA59 ; 为0则不作处理
/ m3 `; j( J0 S# g0071BA08 |. 8BCA ||mov ecx,edx
a! J2 _% n/ h8 x' E0071BA0A |. 8BF0 ||mov esi,eax
" u/ \4 G! A$ ?, R! t+ ^3 a0071BA0C |. C1F9 03 ||sar ecx,3/ v, ]; w8 |4 h7 L
0071BA0F |. 83E1 01 ||and ecx,1
2 z! X! v; K2 z0071BA12 |. 23F5 ||and esi,ebp- ]! h8 z1 [0 J4 m- D) S! `
0071BA14 |. 03D1 ||add edx,ecx
9 o/ b7 h! l" |, A j- e0 _" J8 n0071BA16 |. 8BC8 ||mov ecx,eax
- ^ x- R! l1 S0071BA18 |. 8B4424 10 ||mov eax,dword ptr ss:[esp+10]: }$ I4 ~5 j0 A+ w
0071BA1C |. 8B3D 04F1AA00 ||mov edi,dword ptr ds:[AAF104]
U6 H. z% P. u! f d2 e0071BA22 |. 23C5 ||and eax,ebp* U* k! [; e8 T+ g# U0 m
0071BA24 |. 23CF ||and ecx,edi
) C. g4 U. o6 h- z# Q0071BA26 |. 2BC6 ||sub eax,esi. Y4 [7 K9 \! y! I1 m5 ~
0071BA28 |. 0FAFC2 ||imul eax,edx
6 {8 A& \- B3 r! D0 u0071BA2B |. C1E6 04 ||shl esi,4( l+ P6 h" ~; N& Y. i' ]3 y
0071BA2E |. 03C6 ||add eax,esi: i1 v5 ], N% d1 f
0071BA30 |. 8B35 D8F0AA00 ||mov esi,dword ptr ds:[AAF0D8]/ ~* S- _0 ^' o7 X" t
0071BA36 |. 23C6 ||and eax,esi% Z% b7 c% d5 l# l; c3 i
0071BA38 |. 8B7424 10 ||mov esi,dword ptr ss:[esp+10]9 a- q: _! J) I' o8 Z: S: U+ F
0071BA3C |. 23F7 ||and esi,edi
; F* w$ F# L, M I+ e/ ]0071BA3E |. 8B3D F4F0AA00 ||mov edi,dword ptr ds:[AAF0F4]
! H3 A. x9 {3 E: H( b0 d! H9 h0071BA44 |. 2BF1 ||sub esi,ecx
* z# |( E* ~# t6 Z' _: b0071BA46 |. 0FAFF2 ||imul esi,edx5 G3 ^/ b9 E+ T2 Z" f1 q Z
0071BA49 |. C1E1 04 ||shl ecx,4) M* {3 u* }' Z. F% j" u
0071BA4C |. 03F1 ||add esi,ecx
2 B) r8 F6 P; I9 f4 d. \' T6 U0071BA4E |. 23F7 ||and esi,edi
8 P" O5 O' t l a3 x8 R; k0071BA50 |. 03C6 ||add eax,esi
* h9 l4 }$ p( U0071BA52 |. 8B7424 68 ||mov esi,dword ptr ss:[esp+68]
Y) U/ L7 V" `' q% q+ {& e0071BA56 |. C1F8 04 ||sar eax,4& [! |- p; m! ~6 K' u1 p5 G% r- h
0071BA59 |> 66:8906 ||mov word ptr ds:[esi],ax ; 将经过处理后的缓冲区值放回原处
3 J N* n5 U" m9 i2 L" F c9 e0071BA5C |. 8B4424 14 ||mov eax,dword ptr ss:[esp+14]1 V% e B" x. u+ x9 l
0071BA60 |. 43 ||inc ebx ; 指向字模的下个像素点6 c8 K6 G5 o& ~ x/ G! N
0071BA61 |. 83C6 02 ||add esi,2 ; 指向缓冲区的下个点
) F: K* g' m& }1 A( _$ |0071BA64 |. 48 ||dec eax ; 计数值减15 G, M8 ~- u z. y0 Z# x
0071BA65 |. 897424 68 ||mov dword ptr ss:[esp+68],esi
* M( G: D( H: `2 k9 o+ \/ _: v0071BA69 |. 894424 14 ||mov dword ptr ss:[esp+14],eax
8 t5 W X C6 G; L/ E- A% y7 {7 W0071BA6D |.^ 0F85 07FFFFFF |\jnz heroes4.0071B97A, @4 K* D1 M+ b+ W$ F/ ~5 ^9 g
0071BA73 |. 8B6C24 1C |mov ebp,dword ptr ss:[esp+1C]
' o K9 A2 H2 @2 X) n' I! k# z0071BA77 |> 8B5424 20 |mov edx,dword ptr ss:[esp+20]
( f- R# f( Z; S0 L0071BA7B |. 8B4C24 24 |mov ecx,dword ptr ss:[esp+24]
6 Q: S% P; v& R0 B0071BA7F |. 8B4424 18 |mov eax,dword ptr ss:[esp+18]$ ]- d. t5 A$ I! R3 b2 A, [
0071BA83 |. 03DA |add ebx,edx ; 指向字模的下行像素点" V: N: ?+ S) \6 t0 [
0071BA85 |. 03F1 |add esi,ecx ; 指向缓冲区的下行点
" |/ {; v" J7 u0071BA87 |. 48 |dec eax ; 计数值减16 d( X- G! r- w# B0 r/ v
0071BA88 |. 897424 68 |mov dword ptr ss:[esp+68],esi& S& w, N& B! D, w" _; v
0071BA8C |. 894424 18 |mov dword ptr ss:[esp+18],eax4 q; K, W& E. z! E9 s1 h. |7 W
0071BA90 |.^ 0F85 CBFEFFFF \jnz heroes4.0071B961
' p8 J# L! s5 t' q) B; C9 v0071BA96 |> 5F pop edi
' c0 h: s9 a+ M; g3 K! S( w0071BA97 |. 5E pop esi
9 @* [8 |+ m% s0071BA98 |. 5D pop ebp; e0 P% I$ e9 ?2 B
0071BA99 |. 5B pop ebx* N$ i+ A% ?2 q8 O, f
0071BA9A |. 83C4 54 add esp,54) d+ ?& a0 }! [( M/ P5 A( o6 L
0071BA9D \. C2 1800 retn 18% D4 j0 g6 `1 r2 W
本函数的核心是两层循环,从71B9A1开始就是循环体,整个换算过程是一个比较复杂的算法,可以简单表示为:3 b$ X+ G( r; {2 a" L+ h3 G- P
' F2 E: @6 G. w# T5 y E2 E+ Y
buf[x][y]=func(buf[x][y],zm[x/2][y/2])/ H0 `9 S2 ?' R7 m" G
- [( {& w# f7 E: A7 j1 sbuf:缓冲区二维数组,两个字节表示一个点7 {: E6 ~ c. \
zm:字模二维数组,一个字节表示一个点 |