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

Disassembly:
sub esp, 0x8c
push ebx
push ebp
push esi
push edi
xor ebp, ebp
mov edi, eax
cmp edi, ebp
mov dword [esp + 0x10], ebp
je 0x4e31d4
push ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
cmp ebx, ebp
mov dword [esp + 0x38], ebx
je 0x4e31d4
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 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 0x4e31cd
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 0x4e31b6
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 0x4e2f30
dec ecx
or ecx, 0xfffffffc
inc ecx
je 0x4e2f4d
add eax, 1
mov edx, eax
and edx, reloc.WS2_32.dll_closesocket
jns 0x4e2f44
dec edx
or edx, 0xfffffffc
inc edx
jne 0x4e2f32
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 0x4e315e
mov edx, dword [esp + 0x40]
xor edi, edi
test edx, edx
jle 0x4e3142
mov eax, dword [esp + 0x14]
add eax, 2
shl eax, 4
mov dword [esp + 0x24], eax
lea esp, [esp]
cmp edi, edx
mov dword [esp + 0x1c], edi
lea eax, [ecx + edi*4]
jge 0x4e3133
nop
mov cl, byte [eax]
cmp cl, 0xff
jb 0x4e3039
ja 0x4e3039
cmp byte [eax + 1], 0x10
ja 0x4e3039
mov cl, byte [eax + 2]
cmp cl, 0xff
jb 0x4e3039
jbe 0x4e3043
add edi, 1
add eax, 4
cmp edi, edx
jl 0x4e3020
cmp edi, dword [esp + 0x1c]
jle 0x4e3133
mov eax, dword [esp + 0x14]
cmp dword [esi + 8], eax
jb 0x4e3086
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 0x4e30b2
mov dword [ebp], eax
mov eax, dword [esp + 0x18]
cmp eax, dword [esi + 0x14]
jge 0x4e30be
mov dword [esi + 0x14], eax
cmp edi, dword [esi + 0x18]
jle 0x4e30c6
mov dword [esi + 0x18], edi
cmp ebx, dword [esi + 0x1c]
jle 0x4e30ce
mov dword [esi + 0x1c], ebx
add dword [esi + 8], 1
cmp dword [esi + 8], 0x7d0
jne 0x4e3127
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 0x4e3107
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 0x4e310b
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 0x4e3010
sub ecx, dword [esp + 0x88]
add ebp, 1
cmp ebp, dword [esp + 0x44]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x18], ebp
jl 0x4e2ff4
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 0x4e3190
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 0x4e3194
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