Function at 0x41a350
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 0x41a6e4
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 0x41a6dd
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 0x41a6c6
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 0x41a438
dec ecx
or ecx, 0xfffffffc
inc ecx
je 0x41a45b
lea ebx, [ebx]
add eax, 1
mov edx, eax
and edx, 0x80000003
jns 0x41a452
dec edx
or edx, 0xfffffffc
inc edx
jne 0x41a440
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 0x41a66e
mov edx, dword [esp + 0x40]
xor edi, edi
test edx, edx
jle 0x41a652
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 0x41a643
nop
mov cl, byte [eax]
cmp cl, 0xff
jb 0x41a549
ja 0x41a549
cmp byte [eax + 1], 0x10
ja 0x41a549
mov cl, byte [eax + 2]
cmp cl, 0xff
jb 0x41a549
jbe 0x41a553
add edi, 1
add eax, 4
cmp edi, edx
jl 0x41a530
cmp edi, dword [esp + 0x1c]
jle 0x41a643
mov eax, dword [esp + 0x14]
cmp dword [esi + 8], eax
jb 0x41a596
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 0x41a5c2
mov dword [ebp], eax
mov eax, dword [esp + 0x18]
cmp eax, dword [esi + 0x14]
jge 0x41a5ce
mov dword [esi + 0x14], eax
cmp edi, dword [esi + 0x18]
jle 0x41a5d6
mov dword [esi + 0x18], edi
cmp ebx, dword [esi + 0x1c]
jle 0x41a5de
mov dword [esi + 0x1c], ebx
add dword [esi + 8], 1
cmp dword [esi + 8], 0x7d0
jne 0x41a637
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 0x41a617
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 0x41a61b
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 0x41a520
sub ecx, dword [esp + 0x88]
add ebp, 1
cmp ebp, dword [esp + 0x44]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x18], ebp
jl 0x41a502
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 0x41a6a0
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 0x41a6a4
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