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

Disassembly:
sub esp, 0x94
push ebx
mov ebx, dword [esp + 0x9c]
push ebp
push esi
xor esi, esi
push edi
cmp ebx, esi
jne 0x54cc84
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x94
ret
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
cmp eax, esi
mov dword [esp + 0x1c], eax
jne 0x54cca0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x94
ret
mov ebp, dword [sym.imp.GDI32.dll_GetObjectA]
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x4c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x4c]
push eax
push 0x18
push ebx
call ebp
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
push esi
lea eax, [esp + 0x48]
mov dword [esp + 0x84], ecx
push esi
mov dword [esp + 0x8c], edx
mov edx, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x88]
push esi
push ecx
push edx
mov dword [esp + 0x94], 0x28
mov word [esp + 0xa0], 1
mov word [esp + 0xa2], 0x20
mov dword [esp + 0xa4], esi
mov dword [esp + 0xa8], esi
mov dword [esp + 0xac], esi
mov dword [esp + 0xb0], esi
mov dword [esp + 0xb4], esi
mov dword [esp + 0xb8], esi
mov dword [esp + 0x5c], esi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov esi, eax
test esi, esi
jne 0x54cd59
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x94
ret
mov edi, dword [esp + 0x1c]
push esi
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
mov dword [esp + 0x44], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
test eax, eax
mov dword [esp + 0x30], eax
jne 0x54cd9f
mov ecx, dword [esp + 0x40]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x94
ret
lea edx, [esp + 0x64]
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x64]
push edx
push 0x18
rep stosd dword es:[edi], eax
push esi
call ebp
mov eax, dword [esp + 0x70]
mov ecx, eax
and ecx, reloc.WS2_32.dll_closesocket
jns 0x54cdc9
dec ecx
or ecx, 0xfffffffc
inc ecx
je 0x54cde1
inc eax
mov edx, eax
and edx, reloc.WS2_32.dll_closesocket
jns 0x54cddb
dec edx
or edx, 0xfffffffc
inc edx
jne 0x54cdcb
mov dword [esp + 0x70], eax
mov ebp, dword [esp + 0x30]
push ebx
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x1c]
xor ebx, ebx
push 0xcc0020
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x58]
push ebx
push ebx
push ebp
push eax
push ecx
push ebx
push ebx
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
push 0xca0
push 2
mov dword [esp + 0x1c], 0xc8
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
push ebx
push ebx
push bind
lea eax, [esi + 0x10]
push bind
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 ebx, dword [esp + 0xac]
xor eax, eax
mov ecx, dword [esp + 0xb0]
mov al, bh
mov byte [esp + 0x38], al
mov eax, ebx
shr eax, 0x10
mov byte [esp + 0x3c], al
mov eax, ecx
mov edx, 0xff
and eax, edx
and ebx, edx
add eax, ebx
mov byte [esp + 0x12], dl
cmp eax, edx
jg 0x54ce97
mov byte [esp + 0x12], al
mov ebx, dword [esp + 0x38]
xor eax, eax
mov al, ch
and ebx, edx
and eax, edx
mov byte [esp + 0x11], dl
add eax, ebx
cmp eax, edx
jg 0x54ceb1
mov byte [esp + 0x11], al
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x13], dl
shr ecx, 0x10
and ecx, edx
and eax, edx
add ecx, eax
cmp ecx, edx
jg 0x54ceca
mov byte [esp + 0x13], cl
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x78]
dec ecx
mov eax, dword [esp + 0x54]
imul ecx, dword [esp + 0x70]
xor ebx, ebx
add ecx, edx
cmp eax, ebx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebx
jle 0x54d09e
mov edi, dword [esp + 0x50]
xor ebx, ebx
test edi, edi
jle 0x54d077
mov edx, dword [esp + 0x14]
lea eax, [edx + 2]
shl eax, 4
mov dword [esp + 0x2c], eax
jmp 0x54cf16
mov ecx, dword [esp + 0x28]
cmp ebx, edi
lea ecx, [ecx + ebx*4]
mov dword [esp + 0x34], ebx
jge 0x54d066
mov al, byte [ecx]
mov dl, byte [esp + 0xac]
cmp al, dl
jb 0x54cf5e
cmp al, byte [esp + 0x12]
ja 0x54cf5e
mov dl, byte [esp + 0x38]
xor eax, eax
mov al, byte [ecx + 1]
cmp al, dl
jb 0x54cf5e
cmp al, byte [esp + 0x11]
ja 0x54cf5e
mov eax, dword [ecx]
mov dl, byte [esp + 0x3c]
sar eax, 0x10
cmp al, dl
jb 0x54cf5e
cmp al, byte [esp + 0x13]
jbe 0x54cf66
add ecx, 4
inc ebx
cmp ebx, edi
jl 0x54cf25
mov ebp, dword [esp + 0x34]
cmp ebx, ebp
jle 0x54d066
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x14]
cmp eax, ecx
jb 0x54cfba
mov esi, dword [esp + 0x24]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x14]
add eax, 0xc80
push 2
add edi, 0xc8
push eax
push esi
mov dword [esp + 0x20], edi
mov dword [esp + 0x38], eax
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
push eax
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 8]
add ecx, 2
lea edi, [eax + 1]
push edi
push ebx
shl ecx, 4
push eax
add ecx, esi
push ebp
push ecx
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esp + 0x34]
mov ecx, dword [esi + 0x10]
lea ebp, [esi + 0x10]
cmp eax, ecx
jge 0x54cfe8
mov dword [ebp], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 0x14]
cmp eax, ecx
jge 0x54cff6
mov dword [esi + 0x14], eax
cmp ebx, dword [esi + 0x18]
jle 0x54cffe
mov dword [esi + 0x18], ebx
cmp edi, dword [esi + 0x1c]
jle 0x54d006
mov dword [esi + 0x1c], edi
mov ecx, dword [esi + 8]
inc ecx
mov eax, ecx
mov dword [esi + 8], ecx
cmp eax, 0x7d0
jne 0x54d062
mov edx, dword [esp + 0x2c]
push esi
push edx
push 0
call dword [sym.imp.GDI32.dll_ExtCreateRegion]
mov edi, eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x54d042
push 2
push edi
push eax
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x54d046
mov dword [esp + 0x18], edi
push 0
push 0
push bind
push bind
push ebp
mov dword [esi + 8], 0
call dword [sym.imp.USER32.dll_SetRect]
mov edi, dword [esp + 0x50]
inc ebx
cmp ebx, edi
jl 0x54cf12
mov ebp, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x54]
sub ecx, eax
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x28], ecx
cmp eax, edx
mov dword [esp + 0x20], eax
jl 0x54cef8
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
push esi
add eax, 2
shl eax, 4
push eax
push 0
call dword [sym.imp.GDI32.dll_ExtCreateRegion]
test ebx, ebx
mov esi, eax
je 0x54d0cc
push 2
push esi
push ebx
push ebx
call dword [sym.imp.GDI32.dll_CombineRgn]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x54d0d0
mov dword [esp + 0x18], esi
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [esp + 0x48]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push ecx
push ebp
call edi
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
push ebp
call esi
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x1c]
push edx
push ebx
call edi
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
call esi
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret