Function at 0x4f3ce0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
mov ebp, ecx
push esi
push ebx
sub esp, 0x9c
mov edi, dword [esp + 0xb8]
mov ebx, dword [esp + 0xb0]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x34], edx
cmp edi, 1
sbb esi, esi
imul ebx, dword [esp + 0xb4]
add esi, 4
imul ebx, esi
test eax, eax
je 0x4f403e
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov eax, dword [esp + 0x34]
xor ecx, ecx
mov ebx, dword [esp + 0xb0]
test eax, eax
js 0x4f4022
xor edx, edx
test ebp, ebp
js 0x4f4010
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0xb4]
mov dword [esp + 0x3c], edx
test ecx, ecx
jle 0x4f3fc4
test ebx, ebx
jle 0x4f3fc4
lea eax, [ebx + ebx*2 + 3]
and eax, 0xfffffffc
mov dword [esp + 0x44], eax
imul eax, dword [esp + 0xb4]
mov dword [esp], eax
call fcn.00606c50
mov ecx, dword [esp + 0xb4]
mov dword [esp + 0x54], eax
mov eax, 1
mov word [esp + 0x70], ax
mov eax, dword [0x633098]
mov edx, 0x18
mov word [esp + 0x72], dx
mov dword [esp + 0x64], 0x28
neg ecx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x74], 0
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
sub esp, 4
mov edx, dword [esp + 0xb4]
mov dword [esp + 0x50], eax
mov eax, dword [0x633098]
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
sub esp, 0xc
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x58], eax
mov dword [esp], ecx
call dword [sym.imp.GDI32.dll_SaveDC]
sub esp, 4
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x5c], eax
mov dword [esp + 4], edx
mov dword [esp], ecx
call dword [sym.imp.GDI32.dll_SelectObject]
sub esp, 8
mov eax, dword [0x633098]
mov dword [esp + 0x1c], ebp
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x20], 0xcc0020
mov dword [esp + 0xc], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 8], 0
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0xb4]
mov dword [esp + 4], 0
mov dword [esp + 0x10], ebp
mov ebp, dword [esp + 0x50]
mov dword [esp], ebp
call dword [sym.imp.GDI32.dll_BitBlt]
sub esp, 0x24
lea eax, [esp + 0x64]
mov ecx, dword [esp + 0xb4]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x18], 0
mov dword [esp + 8], 0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0xc], ecx
mov dword [esp + 4], edx
mov dword [esp], ebp
mov dword [esp + 0x10], eax
call dword [sym.imp.GDI32.dll_GetDIBits]
sub esp, 0x1c
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x38], 0
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0xb0]
imul eax, esi
mov dword [esp + 0x48], eax
mov eax, edx
imul eax, esi
imul eax, dword [esp + 0xb0]
imul esi, ecx
add esi, eax
add esi, dword [esp + 0x4c]
mov dword [esp + 0x3c], esi
xor ecx, ecx
test edi, edi
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
mov ebp, ebx
jne 0x4f3fd3
movzx ebx, byte [edx]
movzx esi, byte [edx + 1]
add edx, 3
add ecx, 1
add eax, 3
mov byte [esp + 0x34], bl
movzx ebx, byte [edx - 1]
mov byte [eax - 3], bl
mov ebx, esi
mov byte [eax - 2], bl
movzx ebx, byte [esp + 0x34]
mov byte [eax - 1], bl
cmp ebp, ecx
jg 0x4f3f34
add dword [esp + 0x38], 1
mov ecx, dword [esp + 0x44]
mov ebx, ebp
mov eax, dword [esp + 0x38]
add dword [esp + 0x40], ecx
mov esi, dword [esp + 0x48]
add dword [esp + 0x3c], esi
cmp dword [esp + 0xb4], eax
jg 0x4f3f20
mov edi, dword [esp + 0x50]
mov eax, dword [esp + 0x5c]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.GDI32.dll_RestoreDC]
sub esp, 8
mov dword [esp], edi
call dword [sym.imp.GDI32.dll_DeleteDC]
sub esp, 4
mov eax, dword [esp + 0x58]
mov dword [esp], eax
call dword [sym.imp.GDI32.dll_DeleteObject]
sub esp, 4
mov eax, dword [esp + 0x54]
mov dword [esp], eax
call fcn.00606c30
mov eax, dword [esp + 0x4c]
add esp, 0x9c
pop ebx
pop esi
pop edi
pop ebp
ret
movzx ebx, byte [edx]
movzx esi, byte [edx + 1]
add edx, 3
add ecx, 1
add eax, 4
mov byte [esp + 0x34], bl
movzx ebx, byte [edx - 1]
mov byte [eax - 4], bl
mov ebx, esi
mov byte [eax - 3], bl
movzx ebx, byte [esp + 0x34]
mov byte [eax - 2], bl
mov ebx, edi
cmp ebp, ecx
mov byte [eax - 1], bl
jg 0x4f3fd3
jmp 0x4f3f60
mov edx, ebp
add dword [esp + 0xb4], ebp
xor ebp, ebp
neg edx
jmp 0x4f3d4c
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x34], 0
mov ecx, ebx
add ebx, dword [esp + 0xb0]
neg ecx
jmp 0x4f3d42
mov dword [esp], ebx
call fcn.00606c50
mov dword [esp + 0x4c], eax
jmp 0x4f3d1d