Function at 0x4c61a0
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 0x4c621e
call fcn.008413c7
idiv byte [ebx]
xchg byte [eax], ch
add al, byte [eax]
add byte [ebx + ecx*2 - 0x75], dh
xchg ah, ah
add eax, dword [eax]
add byte [ebx - 0x3f7af783], cl
je 0x4c6200
push eax
call int.00838708
in al, 0x85
sal byte [ebp + edx - 0x75], 0x86
in al, 3
add byte [eax], al
push 0
push edi
push 0x83e7
push eax
call fcn.008354b5
mov byte [0x42c868b], al
add byte [eax], al
mov eax, dword [esi + reloc.MSVFW32.dll_DrawDibDraw]
test eax, eax
jne 0x4c6531
push edi
call fcn.008414e4
int 0x5f
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, esi
mov dword [esi + reloc.MSVFW32.dll_DrawDibDraw], 1
call fcn.004c4f40
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 0x4c627f
mov edx, dword [esi + reloc.MSVFW32.dll_DrawDibDraw]
mov edx, dword [edx + ecx*4]
test edx, edx
mov dword [0x6ef578], edx
je 0x4c6277
pushal
call dword [0x6ef578]
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 0x4c6253
lea ecx, reloc.MSVFW32.dll_DrawDibDraw
call fcn.004ae4d0
mov ebx, dword [esi + reloc.MSVFW32.dll_DrawDibDraw]
xor edi, edi
shr ebx, 2
test ebx, ebx
jle 0x4c62bc
mov eax, dword [esi + reloc.MSVFW32.dll_DrawDibDraw]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x4c62b7
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 0x4c6299
lea ecx, reloc.MSVFW32.dll_DrawDibDraw
call fcn.004ae4d0
lea ecx, reloc.MSVFW32.dll_DrawDibDraw
call fcn.004ae4d0
mov ebx, dword [esi + reloc.MSVFW32.dll_DrawDibDraw]
shr ebx, 2
test ebx, ebx
jle 0x4c632a
xor edi, edi
test ebx, ebx
jle 0x4c62fe
mov eax, dword [esi + reloc.MSVFW32.dll_DrawDibDraw]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x4c62f9
push eax
call fcn.00840d86
and eax, dword [edi + 0x3b]
sti
inc edi
cmp edi, ebx
jl 0x4c62e5
lea ecx, reloc.MSVFW32.dll_DrawDibDraw
call fcn.004ae4d0
lea ecx, reloc.MSVFW32.dll_DrawDibDraw
call fcn.004ae4d0
lea ecx, reloc.MSVFW32.dll_DrawDibDraw
call fcn.004ae4d0
lea ecx, reloc.MSVFW32.dll_DrawDibDraw
call fcn.004ae4d0
mov ebx, dword [esi + reloc.MSVFW32.dll_DrawDibDraw]
shr ebx, 2
test ebx, ebx
jle 0x4c636c
xor edi, edi
test ebx, ebx
jle 0x4c6352
mov ecx, dword [esi + reloc.MSVFW32.dll_DrawDibDraw]
mov edx, dword [ecx + edi*4]
push edx
call fcn.00840d86
or dword [edi + 0x3b], eax
sti
jl 0x4c633d
lea ecx, reloc.MSVFW32.dll_DrawDibDraw
call fcn.004ae4d0
push 0xffffffffffffffff
push 0
lea ecx, reloc.MSVFW32.dll_DrawDibDraw
call fcn.00583870
mov ecx, esi
call fcn.004c55d0
lea ecx, reloc.MSVFW32.dll_DrawDibDraw
call fcn.00584a95
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 0x4c63a3
push eax
call fcn.00838876
dec dword [ecx + reloc.MSVFW32.dll_DrawDibDraw]
add byte [ebx + 0x42886], cl
add byte [ebx], bh
ret
mov eax, dword [esi + reloc.MSVFW32.dll_DrawDibDraw]
cmp eax, ebx
je 0x4c63ba
push eax
call fcn.00838876
test dword [ecx + reloc.MSVFW32.dll_DrawDibDraw], ecx
add byte [ebx + 0x3e486], cl
add byte [ebx], bh
ret
mov eax, dword [esi + reloc.MSVFW32.dll_DrawDibDraw]
cmp eax, ebx
je 0x4c63ee
push eax
call int.00838708
sbb eax, dword [ebp + 0x531f74c0]
call fcn.00586603
test eax, eax
je 0x4c63e8
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.004c3d40
mov eax, dword [esi + reloc.MSVFW32.dll_DrawDibDraw]
xor edi, edi
cmp eax, ebx
mov dword [ebp + 8], eax
jle 0x4c641f
mov ecx, dword [esi + reloc.MSVFW32.dll_DrawDibDraw]
mov ecx, dword [ecx + edi*4]
cmp ecx, ebx
je 0x4c641a
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, dword [ebp + 8]
inc edi
cmp edi, eax
jl 0x4c6404
push 0xffffffffffffffff
push ebx
lea ecx, reloc.MSVFW32.dll_DrawDibDraw
call fcn.0058360b
push 1
mov ecx, esi
call fcn.004c8460
cmp dword [esi + reloc.MSVFW32.dll_DrawDibDraw], ebx
jne 0x4c6442
xor ecx, ecx
jmp 0x4c6448
mov ecx, dword [esi + reloc.MSVFW32.dll_DrawDibDraw]
mov eax, dword [esi + reloc.MSVFW32.dll_DrawDibDraw]
shr eax, 2
cmp eax, ebx
jle 0x4c64ab
mov dword [ebp + 8], ecx
mov dword [ebp - 4], eax
mov edi, dword [ecx]
cmp edi, ebx
je 0x4c6499
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 0x4c647d
push eax
call fcn.00838876
inc ecx
mov dword [edi + 0xc], ebx
mov eax, dword [edi + 0x10]
cmp eax, ebx
je 0x4c6490
push eax
call fcn.00584874
add esp, 4
mov dword [edi + 0x10], ebx
push edi
call fcn.00584874
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 0x4c645b
lea ecx, reloc.MSVFW32.dll_DrawDibDraw
call fcn.004ae4d0
cmp dword [esi + reloc.MSVFW32.dll_DrawDibDraw], 1
jne 0x4c64cb
call fcn.008415c4
stc
mov dword [esi + reloc.MSVFW32.dll_DrawDibDraw], ebx
mov ebx, dword [esi + 0xf8]
xor edi, edi
test ebx, ebx
jle 0x4c64f9
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.004c5d90
inc edi
cmp edi, ebx
jl 0x4c64d7
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0xdc]
call fcn.00583870
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0xf0]
call fcn.00583870
mov eax, dword [esi + reloc.MSVFW32.dll_DrawDibDraw]
test eax, eax
je 0x4c6531
call fcn.00841899
retf 0x86c7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4