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

Disassembly:
sub esp, 0x88
push ebx
push ebp
mov ebp, dword [esp + 0x94]
xor ebx, ebx
xor eax, eax
cmp ebp, ebx
push esi
push edi
mov dword [esp + 0x10], eax
je 0x484b20
mov edi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push ebx
call edi
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x38], esi
je 0x484b1e
lea eax, [esp + 0x3c]
push eax
push 0x18
push ebp
call dword [sym.imp.GDI32.dll_GetObjectW]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
push ebx
push ebx
lea eax, [esp + 0x9c]
push eax
mov dword [esp + 0x64], ecx
push ebx
lea ecx, [esp + 0x64]
push ecx
push esi
mov dword [esp + 0x6c], 0x28
mov dword [esp + 0x74], edx
mov word [esp + 0x78], 1
mov word [esp + 0x7a], 0x20
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ebp, eax
cmp ebp, ebx
je 0x484b08
push ebp
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
mov dword [esp + 0x34], eax
call edi
mov edi, eax
cmp edi, ebx
mov dword [esp + 0x2c], edi
je 0x484af5
lea edx, [esp + 0x7c]
push edx
push 0x18
push ebp
call dword [sym.imp.GDI32.dll_GetObjectW]
mov eax, dword [esp + 0x88]
mov ecx, eax
and ecx, 0x80000003
jns 0x484875
dec ecx
or ecx, 0xfffffffc
inc ecx
je 0x48489b
jmp 0x484880
add eax, 1
mov edx, eax
and edx, 0x80000003
jns 0x484892
dec edx
or edx, 0xfffffffc
inc edx
jne 0x484880
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x9c]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
push 0xcc0020
push ebx
push ebx
push edi
push ecx
push edx
push ebx
push ebx
push esi
mov dword [esp + 0x58], eax
call dword [sym.imp.GDI32.dll_BitBlt]
push 0x660
push 2
mov dword [esp + 0x1c], 0x64
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
push ebp
mov dword [esp + 0x28], ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
mov esi, eax
push ebx
push SysReAllocString
push SysReAllocString
lea eax, [esi + 0x10]
push eax
mov dword [esi], 0x20
mov dword [esi + 4], 1
mov dword [esi + 0xc], ebx
mov dword [esi + 8], ebx
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esp + 0x84]
add eax, 0xffffffff
imul eax, dword [esp + 0x88]
add eax, dword [esp + 0x90]
cmp dword [esp + 0x44], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], ebx
jle 0x484aa8
mov ecx, dword [esp + 0x40]
xor edi, edi
test ecx, ecx
jle 0x484a88
mov edx, dword [esp + 0x14]
add edx, 2
shl edx, 4
mov dword [esp + 0x1c], edx
lea ecx, [ecx]
cmp edi, ecx
mov edx, edi
mov dword [esp + 0x28], edx
lea eax, [eax + edi*4]
jge 0x484a79
cmp byte [eax], 0
ja 0x484982
cmp byte [eax + 1], 0
ja 0x484982
cmp byte [eax + 2], 0
jbe 0x48498c
add edi, 1
add eax, 4
cmp edi, ecx
jl 0x484971
cmp edi, edx
jle 0x484a79
mov ecx, dword [esp + 0x14]
cmp dword [esi + 8], ecx
jb 0x4849d1
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x1c]
add dword [esp + 0x14], 0x64
add eax, 0x640
push 2
push eax
push ebp
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
push eax
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, dword [esp + 0x28]
mov esi, eax
lea ebp, [ebx + 1]
push ebp
push edi
push ebx
push edx
mov edx, dword [esi + 8]
add edx, 2
shl edx, 4
add edx, esi
push edx
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esp + 0x28]
cmp eax, dword [esi + 0x10]
lea ebx, [esi + 0x10]
jge 0x4849f8
mov dword [ebx], eax
mov eax, dword [esp + 0x18]
cmp eax, dword [esi + 0x14]
jge 0x484a04
mov dword [esi + 0x14], eax
cmp edi, dword [esi + 0x18]
jle 0x484a0c
mov dword [esi + 0x18], edi
cmp ebp, dword [esi + 0x1c]
jle 0x484a14
mov dword [esi + 0x1c], ebp
add dword [esi + 8], 1
cmp dword [esi + 8], 0x7d0
jne 0x484a6d
mov eax, dword [esp + 0x1c]
push esi
push eax
push 0
call dword [sym.imp.GDI32.dll_ExtCreateRegion]
mov ebp, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x484a4d
push 2
push ebp
push eax
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
push ebp
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x484a51
mov dword [esp + 0x10], ebp
push 0
push 0
push SysReAllocString
push SysReAllocString
push ebx
mov dword [esi + 8], 0
call dword [sym.imp.USER32.dll_SetRect]
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x20]
add edi, 1
cmp edi, ecx
jl 0x484960
sub eax, dword [esp + 0x88]
add ebx, 1
cmp ebx, dword [esp + 0x44]
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], ebx
jl 0x484945
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
add ecx, 2
push esi
shl ecx, 4
push ecx
push 0
call dword [sym.imp.GDI32.dll_ExtCreateRegion]
mov esi, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x484ada
push 2
push esi
push eax
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x484ade
mov dword [esp + 0x10], esi
mov edx, dword [esp + 0x34]
push edx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret