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

Disassembly:
sub esp, 0x88
push ebx
push ebp
mov ebp, dword [esp + 0x94]
xor ebx, ebx
cmp ebp, ebx
push esi
push edi
mov dword [esp + 0x10], ebx
jne 0x419748
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret
mov edi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push ebx
call edi
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x38], esi
je 0x41973b
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 0x419ab7
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 + 0x2c], edi
je 0x419aa4
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 0x419818
dec ecx
or ecx, 0xfffffffc
inc ecx
je 0x41983b
lea ebx, [ebx]
add eax, 1
mov edx, eax
and edx, reloc.WS2_32.dll_closesocket
jns 0x419832
dec edx
or edx, 0xfffffffc
inc edx
jne 0x419820
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 + 0x28], 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 + 0x20], eax
mov dword [esp + 0x18], ebx
jle 0x419a4c
mov ecx, dword [esp + 0x40]
xor edi, edi
test ecx, ecx
jle 0x419a2c
mov edx, dword [esp + 0x14]
add edx, 2
shl edx, 4
mov dword [esp + 0x1c], edx
lea ecx, [ecx]
cmp edi, ecx
mov edx, edi
mov dword [esp + 0x28], edx
lea eax, [eax + edi*4]
jge 0x419a1d
cmp byte [eax], 0xff
jne 0x419922
cmp byte [eax + 1], 0
jne 0x419922
cmp byte [eax + 2], 0xff
je 0x41992c
add edi, 1
add eax, 4
cmp edi, ecx
jl 0x419911
cmp edi, edx
jle 0x419a1d
mov ecx, dword [esp + 0x14]
cmp dword [esi + 8], ecx
jb 0x419971
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x1c]
add dword [esp + 0x14], 0x64
add eax, 0x640
push 2
push eax
push ebp
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
push eax
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, dword [esp + 0x28]
mov esi, eax
lea ebp, [ebx + 1]
push ebp
push edi
push ebx
push edx
mov edx, dword [esi + 8]
add edx, 2
shl edx, 4
add edx, esi
push edx
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esp + 0x28]
cmp eax, dword [esi + 0x10]
lea ebx, [esi + 0x10]
jge 0x419998
mov dword [ebx], eax
mov eax, dword [esp + 0x18]
cmp eax, dword [esi + 0x14]
jge 0x4199a4
mov dword [esi + 0x14], eax
cmp edi, dword [esi + 0x18]
jle 0x4199ac
mov dword [esi + 0x18], edi
cmp ebp, dword [esi + 0x1c]
jle 0x4199b4
mov dword [esi + 0x1c], ebp
add dword [esi + 8], 1
cmp dword [esi + 8], 0x7d0
jne 0x419a11
mov eax, dword [esp + 0x1c]
push esi
push eax
push 0
call dword [sym.imp.GDI32.dll_ExtCreateRegion]
mov ebp, eax
test ebp, ebp
je 0x4199f5
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4199f1
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 0x4199f5
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 + 0x24]
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x20]
add edi, 1
cmp edi, ecx
jl 0x419900
sub eax, dword [esp + 0x88]
add ebx, 1
cmp ebx, dword [esp + 0x44]
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], ebx
jl 0x4198e5
mov edi, dword [esp + 0x2c]
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
test esi, esi
je 0x419a86
mov eax, dword [esp + 0x10]
test eax, eax
je 0x419a82
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 0x419a86
mov dword [esp + 0x10], esi
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edx, dword [esp + 0x34]
push edx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
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