Function at 0x411bf0
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 0x411faa
mov edi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push ebx
call edi
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x28], esi
je 0x411fa8
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 0x411f92
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 + 0x38], edi
je 0x411f7f
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, reloc.WS2_32.dll_closesocket
jns 0x411ce5
dec ecx
or ecx, 0xfffffffc
inc ecx
je 0x411d0b
jmp 0x411cf0
add eax, 1
mov edx, eax
and edx, reloc.WS2_32.dll_closesocket
jns 0x411d02
dec edx
or edx, 0xfffffffc
inc edx
jne 0x411cf0
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 + 0x20], ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
mov esi, eax
push ebx
push closesocket
push closesocket
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 + 0x24], eax
mov dword [esp + 0x18], ebx
jle 0x411f1c
mov ecx, dword [esp + 0x40]
xor edi, edi
test ecx, ecx
jle 0x411efc
mov eax, dword [esp + 0x14]
add eax, 2
shl eax, 4
mov dword [esp + 0x20], eax
lea ecx, [ecx]
cmp edi, ecx
mov eax, dword [esp + 0x24]
mov edx, edi
mov dword [esp + 0x2c], edx
lea eax, [eax + edi*4]
jge 0x411eed
cmp byte [eax], 0
ja 0x411df6
cmp byte [eax + 1], 0
ja 0x411df6
cmp byte [eax + 2], 0
jbe 0x411e00
add edi, 1
add eax, 4
cmp edi, ecx
jl 0x411de5
cmp edi, edx
jle 0x411eed
mov ecx, dword [esp + 0x14]
cmp dword [esi + 8], ecx
jb 0x411e41
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x20]
add dword [esp + 0x14], 0x64
add eax, 0x640
push 2
push eax
push ebp
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
mov eax, dword [esi + 8]
mov edx, dword [esp + 0x2c]
lea ebp, [ebx + 1]
push ebp
push edi
add eax, 2
push ebx
shl eax, 4
push edx
add eax, esi
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esp + 0x2c]
cmp eax, dword [esi + 0x10]
lea ebx, [esi + 0x10]
jge 0x411e6c
mov dword [ebx], eax
mov eax, dword [esp + 0x18]
cmp eax, dword [esi + 0x14]
jge 0x411e78
mov dword [esi + 0x14], eax
cmp edi, dword [esi + 0x18]
jle 0x411e80
mov dword [esi + 0x18], edi
cmp ebp, dword [esi + 0x1c]
jle 0x411e88
mov dword [esi + 0x1c], ebp
add dword [esi + 8], 1
cmp dword [esi + 8], 0x7d0
jne 0x411ee1
mov ecx, dword [esp + 0x20]
push esi
push ecx
push 0
call dword [sym.imp.GDI32.dll_ExtCreateRegion]
mov ebp, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x411ec1
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 0x411ec5
mov dword [esp + 0x10], ebp
push 0
push 0
push closesocket
push closesocket
push ebx
mov dword [esi + 8], 0
call dword [sym.imp.USER32.dll_SetRect]
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x40]
add edi, 1
cmp edi, ecx
jl 0x411dd0
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x88]
add ebx, 1
cmp ebx, dword [esp + 0x44]
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], ebx
jl 0x411db5
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0x14]
add edx, 2
push esi
shl edx, 4
push edx
push 0
call dword [sym.imp.GDI32.dll_ExtCreateRegion]
mov ebx, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x411f4e
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 0x411f52
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x34]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
test esi, esi
je 0x411f70
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test ebp, ebp
je 0x411f7b
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
push ecx
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