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

Disassembly:
sub esp, 0x8c
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push ebp
mov edi, eax
mov dword [esp + 0x14], ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
cmp ebx, ebp
mov dword [esp + 0x38], ebx
je 0x481074
lea eax, [esp + 0x3c]
push eax
push 0x18
push edi
call dword [sym.imp.GDI32.dll_GetObjectW]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
push ebp
push ebp
lea eax, [esp + 0x9c]
push eax
mov dword [esp + 0x64], ecx
push ebp
lea ecx, [esp + 0x64]
push ecx
push ebx
mov dword [esp + 0x6c], 0x28
mov dword [esp + 0x74], edx
mov word [esp + 0x78], 1
mov word [esp + 0x7a], 0x20
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x80], ebp
mov dword [esp + 0x84], ebp
mov dword [esp + 0x88], ebp
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x90], ebp
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov esi, eax
cmp esi, ebp
je 0x48106d
push esi
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
mov dword [esp + 0x34], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x34], ebp
je 0x481056
lea edx, [esp + 0x7c]
push edx
push 0x18
push esi
call dword [sym.imp.GDI32.dll_GetObjectW]
mov eax, dword [esp + 0x88]
mov ecx, eax
and ecx, 0x80000003
jns 0x480dc8
dec ecx
or ecx, 0xfffffffc
inc ecx
je 0x480deb
lea ebx, [ebx]
add eax, 1
mov edx, eax
and edx, 0x80000003
jns 0x480de2
dec edx
or edx, 0xfffffffc
inc edx
jne 0x480dd0
mov dword [esp + 0x88], eax
push edi
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x40]
push 0xcc0020
xor edi, edi
push edi
push edi
push ebp
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x54]
push eax
push ecx
push edi
push edi
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
push 0x660
push 2
mov dword [esp + 0x1c], 0x64
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
mov esi, eax
push edi
push 0x7fffffff
push 0x7fffffff
lea edx, [esi + 0x10]
push edx
mov dword [esi], 0x20
mov dword [esi + 4], 1
mov dword [esi + 0xc], edi
mov dword [esi + 8], edi
call dword [sym.imp.USER32.dll_SetRect]
mov ecx, dword [esp + 0x84]
add ecx, 0xffffffff
imul ecx, dword [esp + 0x88]
add ecx, dword [esp + 0x90]
xor ebp, ebp
cmp dword [esp + 0x44], edi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x18], ebp
jle 0x480ffe
mov edx, dword [esp + 0x40]
xor edi, edi
test edx, edx
jle 0x480fe2
mov eax, dword [esp + 0x14]
add eax, 2
shl eax, 4
mov dword [esp + 0x24], eax
lea ebx, [ebx]
cmp edi, edx
mov dword [esp + 0x1c], edi
lea eax, [ecx + edi*4]
jge 0x480fd3
nop
mov cl, byte [eax]
cmp cl, 0xff
jb 0x480ed9
ja 0x480ed9
cmp byte [eax + 1], 0x10
ja 0x480ed9
mov cl, byte [eax + 2]
cmp cl, 0xff
jb 0x480ed9
jbe 0x480ee3
add edi, 1
add eax, 4
cmp edi, edx
jl 0x480ec0
cmp edi, dword [esp + 0x1c]
jle 0x480fd3
mov eax, dword [esp + 0x14]
cmp dword [esi + 8], eax
jb 0x480f26
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x24]
add dword [esp + 0x14], 0x64
add eax, 0x640
push 2
push eax
push ebx
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
push eax
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
mov edx, dword [esi + 8]
mov ecx, dword [esp + 0x1c]
lea ebx, [ebp + 1]
push ebx
push edi
add edx, 2
push ebp
shl edx, 4
push ecx
add edx, esi
push edx
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esp + 0x1c]
cmp eax, dword [esi + 0x10]
lea ebp, [esi + 0x10]
jge 0x480f52
mov dword [ebp], eax
mov eax, dword [esp + 0x18]
cmp eax, dword [esi + 0x14]
jge 0x480f5e
mov dword [esi + 0x14], eax
cmp edi, dword [esi + 0x18]
jle 0x480f66
mov dword [esi + 0x18], edi
cmp ebx, dword [esi + 0x1c]
jle 0x480f6e
mov dword [esi + 0x1c], ebx
add dword [esi + 8], 1
cmp dword [esi + 8], 0x7d0
jne 0x480fc7
mov eax, dword [esp + 0x24]
push esi
push eax
push 0
call dword [sym.imp.GDI32.dll_ExtCreateRegion]
mov ebx, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x480fa7
push 2
push ebx
push eax
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x480fab
mov dword [esp + 0x10], ebx
push 0
push 0
push 0x7fffffff
push 0x7fffffff
push ebp
mov dword [esi + 8], 0
call dword [sym.imp.USER32.dll_SetRect]
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add edi, 1
cmp edi, edx
jl 0x480eb0
sub ecx, dword [esp + 0x88]
add ebp, 1
cmp ebp, dword [esp + 0x44]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x18], ebp
jl 0x480e92
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 0x481030
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 0x481034
mov dword [esp + 0x10], esi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x34]
push edx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ebp, dword [esp + 0x10]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x8c
ret