Function at 0x416740
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 0x416adb
lea eax, [esp + 0x3c]
push eax
push 0x18
push edi
call dword [sym.imp.GDI32.dll_GetObjectA]
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 0x416ad4
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 0x416abd
lea edx, [esp + 0x7c]
push edx
push 0x18
push esi
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [esp + 0x88]
mov ecx, eax
and ecx, 0x80000003
jns 0x416828
dec ecx
or ecx, 0xfffffffc
inc ecx
je 0x41684b
lea ebx, [ebx]
add eax, 1
mov edx, eax
and edx, 0x80000003
jns 0x416842
dec edx
or edx, 0xfffffffc
inc edx
jne 0x416830
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 SysReAllocString
push SysReAllocString
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 0x416a5e
mov edx, dword [esp + 0x40]
xor edi, edi
test edx, edx
jle 0x416a42
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 0x416a33
nop
mov cl, byte [eax]
cmp cl, 0xff
jb 0x416939
ja 0x416939
cmp byte [eax + 1], 0x10
ja 0x416939
mov cl, byte [eax + 2]
cmp cl, 0xff
jb 0x416939
jbe 0x416943
add edi, 1
add eax, 4
cmp edi, edx
jl 0x416920
cmp edi, dword [esp + 0x1c]
jle 0x416a33
mov eax, dword [esp + 0x14]
cmp dword [esi + 8], eax
jb 0x416986
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 0x4169b2
mov dword [ebp], eax
mov eax, dword [esp + 0x18]
cmp eax, dword [esi + 0x14]
jge 0x4169be
mov dword [esi + 0x14], eax
cmp edi, dword [esi + 0x18]
jle 0x4169c6
mov dword [esi + 0x18], edi
cmp ebx, dword [esi + 0x1c]
jle 0x4169ce
mov dword [esi + 0x1c], ebx
add dword [esi + 8], 1
cmp dword [esi + 8], 0x7d0
jne 0x416a27
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 0x416a07
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 0x416a0b
mov dword [esp + 0x10], ebx
push 0
push 0
push SysReAllocString
push SysReAllocString
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 0x416910
sub ecx, dword [esp + 0x88]
add ebp, 1
cmp ebp, dword [esp + 0x44]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x18], ebp
jl 0x4168f2
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 0x416a90
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 0x416a94
mov dword [esp + 0x10], esi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
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