Function at 0x4a1030
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 4], esi
mov ecx, dword [esi + reloc.MSVFW32.dll_DrawDibDraw]
mov eax, dword [esi + reloc.MSVFW32.dll_DrawDibDraw]
inc ecx
test eax, eax
mov dword [esi + reloc.MSVFW32.dll_DrawDibDraw], ecx
je 0x4a10ae
call int.00800a81
pop ebp
cmp eax, dword [esi + reloc.MSVFW32.dll_DrawDibDraw]
je 0x4a10ae
mov eax, dword [esi + reloc.MSVFW32.dll_DrawDibDraw]
mov edi, dword [ebp + 8]
test eax, eax
je 0x4a1090
push eax
call fcn.007f7a20
xor eax, dword [ebp - reloc.MSVFW32.dll_DrawDibDraw]
xchg ah, ah
add eax, dword [eax]
add byte [edx], ch
push edi
push 0x83e7
push eax
call fcn.007f472b
cdq
mov eax, dword [esi + reloc.MSVFW32.dll_DrawDibDraw]
test eax, eax
jne 0x4a13c1
push edi
call fcn.00800bac
sub byte [edi + 0x5e], bl
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, esi
mov dword [esi + reloc.MSVFW32.dll_DrawDibDraw], 1
call fcn.0049fdd0
mov edx, dword [esi + reloc.MSVFW32.dll_DrawDibDraw]
lea ecx, reloc.MSVFW32.dll_DrawDibDraw
call dword [edx + 8]
mov eax, dword [esi + reloc.MSVFW32.dll_DrawDibDraw]
xor ecx, ecx
shr eax, 2
test eax, eax
mov dword [ebp - 8], eax
mov dword [ebp + 8], ecx
jle 0x4a110f
mov edx, dword [esi + reloc.MSVFW32.dll_DrawDibDraw]
mov edx, dword [edx + ecx*4]
test edx, edx
mov dword [0x6ad348], edx
je 0x4a1107
pushal
call dword [0x6ad348]
popal
mov esi, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 8]
inc ecx
cmp ecx, eax
mov dword [ebp + 8], ecx
jl 0x4a10e3
lea ecx, reloc.MSVFW32.dll_DrawDibDraw
call fcn.00489f30
mov ebx, dword [esi + reloc.MSVFW32.dll_DrawDibDraw]
xor edi, edi
shr ebx, 2
test ebx, ebx
jle 0x4a114c
mov eax, dword [esi + reloc.MSVFW32.dll_DrawDibDraw]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x4a1147
mov ecx, dword [esi + reloc.MSVFW32.dll_DrawDibDraw]
push 0
mov edx, dword [ecx + edi*4]
push edx
push 6
call dword [eax + 0x78]
inc edi
cmp edi, ebx
jl 0x4a1129
lea ecx, reloc.MSVFW32.dll_DrawDibDraw
call fcn.00489f30
lea ecx, reloc.MSVFW32.dll_DrawDibDraw
call fcn.00489f30
mov ebx, dword [esi + reloc.MSVFW32.dll_DrawDibDraw]
shr ebx, 2
test ebx, ebx
jle 0x4a11ba
xor edi, edi
test ebx, ebx
jle 0x4a118e
mov eax, dword [esi + reloc.MSVFW32.dll_DrawDibDraw]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x4a1189
push eax
call fcn.008003e3
inc esi
inc edi
cmp edi, ebx
jl 0x4a1175
lea ecx, reloc.MSVFW32.dll_DrawDibDraw
call fcn.00489f30
lea ecx, reloc.MSVFW32.dll_DrawDibDraw
call fcn.00489f30
lea ecx, reloc.MSVFW32.dll_DrawDibDraw
call fcn.00489f30
lea ecx, reloc.MSVFW32.dll_DrawDibDraw
call fcn.00489f30
mov ebx, dword [esi + reloc.MSVFW32.dll_DrawDibDraw]
shr ebx, 2
test ebx, ebx
jle 0x4a11fc
xor edi, edi
test ebx, ebx
jle 0x4a11e2
mov ecx, dword [esi + reloc.MSVFW32.dll_DrawDibDraw]
mov edx, dword [ecx + edi*4]
push edx
call fcn.008003e3
mov ah, 0x47
cmp edi, ebx
jl 0x4a11cd
lea ecx, reloc.MSVFW32.dll_DrawDibDraw
call fcn.00489f30
push 0xffffffffffffffff
push 0
lea ecx, reloc.MSVFW32.dll_DrawDibDraw
call fcn.0055e12d
mov ecx, esi
call fcn.004a0460
lea ecx, reloc.MSVFW32.dll_DrawDibDraw
call fcn.0055f434
mov eax, dword [esi + reloc.MSVFW32.dll_DrawDibDraw]
xor ebx, ebx
cmp eax, ebx
mov dword [esi + reloc.MSVFW32.dll_DrawDibDraw], ebx
mov dword [esi + reloc.MSVFW32.dll_DrawDibDraw], ebx
je 0x4a1233
push eax
call fcn.007f7b0a
mov dword [esi + reloc.MSVFW32.dll_DrawDibDraw], ebx
mov eax, dword [esi + reloc.MSVFW32.dll_DrawDibDraw]
cmp eax, ebx
je 0x4a124a
push eax
call fcn.007f7b0a
or byte [ecx + 0x4289e], 0
mov eax, dword [esi + reloc.MSVFW32.dll_DrawDibDraw]
cmp eax, ebx
je 0x4a127e
push eax
call fcn.007f7a20
fiadd word [ebp + 0x531f74c0]
call fcn.00560fa1
test eax, eax
je 0x4a1278
mov eax, dword [esi + reloc.MSVFW32.dll_DrawDibDraw]
lea ecx, reloc.MSVFW32.dll_DrawDibDraw
call dword [eax + 0x58]
mov dword [esi + reloc.MSVFW32.dll_DrawDibDraw], ebx
mov ecx, esi
call fcn.0049ebd0
mov eax, dword [esi + reloc.MSVFW32.dll_DrawDibDraw]
xor edi, edi
cmp eax, ebx
mov dword [ebp + 8], eax
jle 0x4a12af
mov ecx, dword [esi + reloc.MSVFW32.dll_DrawDibDraw]
mov ecx, dword [ecx + edi*4]
cmp ecx, ebx
je 0x4a12aa
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, dword [ebp + 8]
inc edi
cmp edi, eax
jl 0x4a1294
push 0xffffffffffffffff
push ebx
lea ecx, reloc.MSVFW32.dll_DrawDibDraw
call fcn.0055e419
push 1
mov ecx, esi
call fcn.004a32f0
cmp dword [esi + reloc.MSVFW32.dll_DrawDibDraw], ebx
jne 0x4a12d2
xor ecx, ecx
jmp 0x4a12d8
mov ecx, dword [esi + reloc.MSVFW32.dll_DrawDibDraw]
mov eax, dword [esi + reloc.MSVFW32.dll_DrawDibDraw]
shr eax, 2
cmp eax, ebx
jle 0x4a133b
mov dword [ebp + 8], ecx
mov dword [ebp - 4], eax
mov edi, dword [ecx]
cmp edi, ebx
je 0x4a1329
mov eax, dword [edi + 0xc]
mov dword [edi], ebx
cmp eax, ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0x14], ebx
je 0x4a130d
push eax
call fcn.007f7b0a
mov word [ecx + 0x478b0c5f], cs
adc byte [ebx], bh
ret
mov eax, dword [edi + 0x10]
cmp eax, ebx
je 0x4a1320
push eax
call fcn.0055f213
add esp, 4
mov dword [edi + 0x10], ebx
push edi
call fcn.0055f213
add esp, 4
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 4]
add ecx, 4
dec eax
mov dword [ebp + 8], ecx
mov dword [ebp - 4], eax
jne 0x4a12eb
lea ecx, reloc.MSVFW32.dll_DrawDibDraw
call fcn.00489f30
cmp dword [esi + reloc.MSVFW32.dll_DrawDibDraw], 1
jne 0x4a135b
call 0x800cd4
mov dl, 0x89
sahf
mov al, byte [0x8b000003]
sahf
clc
add byte [eax], al
add byte [ebx], dh
inc dword [ebp - reloc.MSVFW32.dll_DrawDibDraw]
xchg ah, dh
add byte [eax], al
add byte [ebx + 0xe096], cl
add byte [edx], ch
mov ebx, dword [esi + 0xf8]
xor edi, edi
test ebx, ebx
jle 0x4a1389
mov eax, dword [esi + 0xf4]
mov edx, dword [esi + 0xe0]
push 0
mov ecx, dword [eax + edi*4]
mov eax, dword [edx + edi*4]
push ecx
push eax
mov ecx, esi
call fcn.004a0c20
inc edi
cmp edi, ebx
jl 0x4a1367
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0xdc]
call fcn.0055e12d
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0xf0]
call fcn.0055e12d
mov eax, dword [esi + reloc.MSVFW32.dll_DrawDibDraw]
test eax, eax
je 0x4a13c1
call fcn.00800df6
pop ss
mov dword [esi + reloc.MSVFW32.dll_DrawDibDraw], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4