Function at 0x4cd670
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 0x4cd6ee
call fcn.00843335
ret
mov ecx, esi
mov dword [esi + reloc.MSVFW32.dll_DrawDibDraw], 1
call fcn.004cc410
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 0x4cd74f
mov edx, dword [esi + reloc.MSVFW32.dll_DrawDibDraw]
mov edx, dword [edx + ecx*4]
test edx, edx
mov dword [fcn.006f6578], edx
je 0x4cd747
pushal
call dword [fcn.006f6578]
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 0x4cd723
lea ecx, reloc.MSVFW32.dll_DrawDibDraw
call fcn.004b59a0
mov ebx, dword [esi + reloc.MSVFW32.dll_DrawDibDraw]
xor edi, edi
shr ebx, 2
test ebx, ebx
jle 0x4cd78c
mov eax, dword [esi + reloc.MSVFW32.dll_DrawDibDraw]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x4cd787
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 0x4cd769
lea ecx, reloc.MSVFW32.dll_DrawDibDraw
call fcn.004b59a0
lea ecx, reloc.MSVFW32.dll_DrawDibDraw
call fcn.004b59a0
mov ebx, dword [esi + reloc.MSVFW32.dll_DrawDibDraw]
shr ebx, 2
test ebx, ebx
jle 0x4cd7fa
xor edi, edi
test ebx, ebx
jle 0x4cd7ce
inc dword [ebp - reloc.MSVFW32.dll_DrawDibDraw]
xchg byte [eax + 1], bh
add byte [eax], al
mov eax, dword [esi + reloc.MSVFW32.dll_DrawDibDraw]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x4cd7c9
push eax
call fcn.00842b53
lds eax, [edi + 0x3b]
sti
inc edi
cmp edi, ebx
jl 0x4cd7b5
lea ecx, reloc.MSVFW32.dll_DrawDibDraw
call fcn.004b59a0
lea ecx, reloc.MSVFW32.dll_DrawDibDraw
call fcn.004b59a0
lea ecx, reloc.MSVFW32.dll_DrawDibDraw
call fcn.004b59a0
lea ecx, reloc.MSVFW32.dll_DrawDibDraw
call fcn.004b59a0
mov ebx, dword [esi + reloc.MSVFW32.dll_DrawDibDraw]
shr ebx, 2
test ebx, ebx
jle 0x4cd83c
xor edi, edi
test ebx, ebx
jle 0x4cd822
mov ecx, dword [esi + reloc.MSVFW32.dll_DrawDibDraw]
mov edx, dword [ecx + edi*4]
push edx
call fcn.00842b53
pop ebx
inc edi
cmp edi, ebx
jl 0x4cd80d
jmp 0x4cd7b0
lea ecx, reloc.MSVFW32.dll_DrawDibDraw
call fcn.004b59a0
push 0xffffffffffffffff
push 0
lea ecx, reloc.MSVFW32.dll_DrawDibDraw
call fcn.0058ad40
mov ecx, esi
call fcn.004ccaa0
lea ecx, reloc.MSVFW32.dll_DrawDibDraw
call fcn.0058bf65
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 0x4cd873
push eax
call fcn.0083a712
or dword [ecx + reloc.MSVFW32.dll_DrawDibDraw], 0x28868b00
add al, 0
add byte [ebx], bh
ret
mov eax, dword [esi + reloc.MSVFW32.dll_DrawDibDraw]
cmp eax, ebx
je 0x4cd88a
push eax
call fcn.0083a712
mov bh, 0x89
sahf
sub byte [eax + eax], al
add byte [ebx + 0x3e486], cl
add byte [ebx], bh
ret
mov eax, dword [esi + reloc.MSVFW32.dll_DrawDibDraw]
cmp eax, ebx
je 0x4cd8be
push eax
call fcn.0083a4ac
jge 0x4cd821
sal byte [edi + ebx + 0x53], 0xe8
add cl, byte cs:[eax + eax]
test eax, eax
je 0x4cd8b8
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.004cb210
mov eax, dword [esi + reloc.MSVFW32.dll_DrawDibDraw]
xor edi, edi
cmp eax, ebx
mov dword [ebp + 8], eax
jle 0x4cd8ef
mov ecx, dword [esi + reloc.MSVFW32.dll_DrawDibDraw]
mov ecx, dword [ecx + edi*4]
cmp ecx, ebx
je 0x4cd8ea
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, dword [ebp + 8]
inc edi
cmp edi, eax
jl 0x4cd8d4
push 0xffffffffffffffff
push ebx
lea ecx, reloc.MSVFW32.dll_DrawDibDraw
call fcn.0058aadb
push 1
mov ecx, esi
call fcn.004cf930
cmp dword [esi + reloc.MSVFW32.dll_DrawDibDraw], ebx
jne 0x4cd912
xor ecx, ecx
jmp 0x4cd918
mov ecx, dword [esi + reloc.MSVFW32.dll_DrawDibDraw]
mov eax, dword [esi + reloc.MSVFW32.dll_DrawDibDraw]
shr eax, 2
cmp eax, ebx
jle 0x4cd97b
mov dword [ebp + 8], ecx
mov dword [ebp - 4], eax
mov edi, dword [ecx]
cmp edi, ebx
je 0x4cd969
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 0x4cd94d
push eax
call fcn.0083a712
push ebx
mov dword [edi + 0xc], ebx
mov eax, dword [edi + 0x10]
cmp eax, ebx
je 0x4cd960
push eax
call fcn.0058bd44
add esp, 4
mov dword [edi + 0x10], ebx
push edi
call fcn.0058bd44
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 0x4cd92b
lea ecx, reloc.MSVFW32.dll_DrawDibDraw
call fcn.004b59a0
cmp dword [esi + reloc.MSVFW32.dll_DrawDibDraw], 1
jne 0x4cd99b
call fcn.008436b4
lahf
mov dword [esi + reloc.MSVFW32.dll_DrawDibDraw], ebx
mov ebx, dword [esi + 0xf8]
xor edi, edi
test ebx, ebx
jle 0x4cd9c9
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.004cd260
inc edi
cmp edi, ebx
jl 0x4cd9a7
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0xdc]
call fcn.0058ad40
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0xf0]
call fcn.0058ad40
mov eax, dword [esi + reloc.MSVFW32.dll_DrawDibDraw]
test eax, eax
je 0x4cda01
call fcn.00843837
enter 0xffffffffffff86c7, 4
add al, 0
add byte [eax], al
add byte [eax], al
add byte [edi + 0x5e], bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4