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

Disassembly:
sub esp, 0x8c
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push ebx
mov edi, eax
mov dword [esp + 0x14], ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebp, eax
cmp ebp, ebx
mov dword [esp + 0x38], ebp
jne 0x403b50
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret
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 ebx
push ebx
lea eax, [esp + 0x9c]
push eax
mov dword [esp + 0x64], ecx
push ebx
lea ecx, [esp + 0x64]
push ecx
push ebp
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 esi, eax
cmp esi, ebx
je 0x403ea8
push esi
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
push ebp
mov dword [esp + 0x34], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x34], ebx
je 0x403e95
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, reloc.WS2_32.dll_closesocket
jns 0x403c11
dec ecx
or ecx, 0xfffffffc
inc ecx
je 0x403c2e
add eax, 1
mov edx, eax
and edx, reloc.WS2_32.dll_closesocket
jns 0x403c25
dec edx
or edx, 0xfffffffc
inc edx
jne 0x403c13
mov dword [esp + 0x88], eax
push edi
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x40]
push 0xcc0020
xor edi, edi
push edi
push edi
push ebx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x54]
push eax
push ecx
push edi
push edi
push ebp
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 + 0x24], ebp
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 ebx, ebx
cmp dword [esp + 0x44], ebx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x18], ebx
jle 0x403e3d
mov edx, dword [esp + 0x40]
xor edi, edi
test edx, edx
jle 0x403e21
mov eax, dword [esp + 0x14]
add eax, 2
shl eax, 4
mov dword [esp + 0x24], eax
lea ecx, [ecx]
cmp edi, edx
mov dword [esp + 0x1c], edi
lea eax, [ecx + edi*4]
jge 0x403e12
nop
mov cl, byte [eax]
cmp cl, 0xff
jb 0x403d19
ja 0x403d19
cmp byte [eax + 1], 0
ja 0x403d19
mov cl, byte [eax + 2]
cmp cl, 0xff
jb 0x403d19
jbe 0x403d23
add edi, 1
add eax, 4
cmp edi, edx
jl 0x403d00
cmp edi, dword [esp + 0x1c]
jle 0x403e12
mov eax, dword [esp + 0x14]
cmp dword [esi + 8], eax
jb 0x403d66
push ebp
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 ebp
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 ebp, [ebx + 1]
push ebp
push edi
add edx, 2
push ebx
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 ebx, [esi + 0x10]
jge 0x403d91
mov dword [ebx], eax
mov eax, dword [esp + 0x18]
cmp eax, dword [esi + 0x14]
jge 0x403d9d
mov dword [esi + 0x14], eax
cmp edi, dword [esi + 0x18]
jle 0x403da5
mov dword [esi + 0x18], edi
cmp ebp, dword [esi + 0x1c]
jle 0x403dad
mov dword [esi + 0x1c], ebp
add dword [esi + 8], 1
cmp dword [esi + 8], 0x7d0
jne 0x403e06
mov eax, dword [esp + 0x24]
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 0x403de6
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 0x403dea
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 + 0x20]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add edi, 1
cmp edi, edx
jl 0x403cf0
sub ecx, dword [esp + 0x88]
add ebx, 1
cmp ebx, dword [esp + 0x44]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x18], ebx
jl 0x403cd5
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 0x403e6f
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 0x403e73
mov dword [esp + 0x10], esi
push ebp
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 ebp, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
push eax
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebp
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret