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

Disassembly:
push 0xffffffffffffffff
push 0x66cb78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x38]
mov edi, dword [esi + 0x1c]
mov ebx, dword [esi + 0x14]
mov edx, dword [esi + 0x18]
sub edi, ebx
mov ebx, dword [esi + 0x20]
mov dword [esp + 0x10], edi
sub ebx, edx
mov dword [esp + 0x14], ebx
call fcn.0062cc19
mov eax, dword [esp + 0x80]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x78], ebp
jne 0x5e3774
xor eax, eax
jmp 0x5e3777
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x3c]
call fcn.0062ccd0
cmp eax, ebp
je 0x5e3a18
mov eax, dword [esi + 0x24]
push ebp
push ebp
mov dword [esp + 0x50], 0x28
lea ecx, [eax + edi]
add eax, ebx
mov dword [esp + 0x58], eax
imul eax, ecx
mov dword [esp + 0x64], eax
lea eax, [esp + 0x40]
neg eax
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x44]
sbb eax, eax
mov word [esp + 0x5c], 1
and eax, ecx
lea ecx, [esi + 0x10]
mov dword [esp + 0x2c], ecx
push ecx
lea ecx, [esp + 0x54]
push ebp
push ecx
push eax
mov word [esp + 0x6e], 0x20
mov dword [esp + 0x70], ebp
mov dword [esp + 0x78], ebp
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x80], ebp
mov dword [esp + 0x84], ebp
call dword [sym.imp.GDI32.dll_CreateDIBSection]
cmp eax, ebp
mov dword [esp + 0x34], eax
je 0x5e3a18
mov edx, dword [esp + 0x24]
cmp dword [edx], ebp
je 0x5e3a18
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebx]
add eax, edi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x80]
cmp eax, ebp
jne 0x5e383e
xor eax, eax
jmp 0x5e3841
mov eax, dword [eax + 4]
push 0xcc0020
push ecx
mov ecx, dword [esi + 0x14]
push ecx
mov ecx, dword [esp + 0x2c]
push eax
push edx
mov edx, dword [esp + 0x50]
push ecx
push ebp
push ebp
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x28]
sub eax, ecx
mov ecx, dword [esi + 0x24]
mov dword [esp + 0x20], eax
mov eax, ecx
imul eax, ecx
cmp ecx, ebp
mov dword [esp + 0x2c], eax
jbe 0x5e39a5
sub ebx, edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x28], ebx
mov eax, dword [esp + 0x18]
xor edx, edx
div ecx
mov edx, dword [esi + 0x28]
lea ebx, [ecx + ecx + 1]
add eax, edx
mov dword [esp + 0x1c], eax
cmp ebx, edi
jge 0x5e38bd
mov ecx, dword [esp + 0x28]
push 0xffffffffffffffff
add ecx, ebp
add ecx, edi
push ecx
push ebx
push eax
mov ecx, esi
call fcn.005e2af0
mov eax, dword [esp + 0x1c]
inc ebx
jmp 0x5e389e
mov edx, dword [esi + 0x24]
lea ebx, [edx + edx + 1]
cmp ebx, dword [esp + 0x14]
jge 0x5e38e0
push 0xffffffffffffffff
lea ecx, [edi + ebp]
push ebx
push ecx
push eax
mov ecx, esi
call fcn.005e2af0
mov eax, dword [esp + 0x1c]
inc ebx
jmp 0x5e38c4
mov ecx, ebp
mov edi, dword [esi + 0x24]
imul ecx, ebp
xor ebx, ebx
mov dword [esp + 0x30], ecx
test edi, edi
jbe 0x5e3981
mov eax, ebx
mov edx, dword [esp + 0x2c]
imul eax, ebx
add eax, ecx
cmp eax, edx
mov dword [esp + 0x1c], eax
jg 0x5e3975
fild dword [esp + 0x1c]
fsqrt
call fcn.004665dc
imul eax, dword [esp + 0x20]
xor edx, edx
mov ecx, dword [esp + 0x10]
div edi
mov edx, dword [esp + 0x14]
add ecx, ebp
push 0xffffffffffffffff
mov edi, eax
mov eax, dword [esi + 0x28]
add edi, eax
lea eax, [ebx + edx]
push eax
push ecx
push edi
mov ecx, esi
call fcn.005e2af0
mov edx, dword [esp + 0x14]
push 0xffffffffffffffff
mov ecx, esi
lea eax, [ebx + edx]
push eax
mov eax, dword [esi + 0x24]
shl eax, 1
sub eax, ebp
push eax
push edi
call fcn.005e2af0
mov ecx, dword [esi + 0x24]
mov edx, dword [esp + 0x10]
shl ecx, 1
sub ecx, ebx
push 0xffffffffffffffff
lea eax, [edx + ebp]
push ecx
push eax
push edi
mov ecx, esi
call fcn.005e2af0
mov ecx, dword [esp + 0x30]
mov edi, dword [esi + 0x24]
inc ebx
cmp ebx, edi
jb 0x5e38f6
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
add ecx, eax
mov dword [esp + 0x18], ecx
mov ecx, dword [esi + 0x24]
inc ebp
cmp ebp, ecx
jb 0x5e3889
mov ebx, dword [esp + 0x14]
xor ebp, ebp
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x18]
add ebx, eax
add edi, eax
lea eax, [esp + 0x38]
mov edx, dword [esi + 0x14]
neg eax
sbb eax, eax
push 0xcc0020
and eax, dword [esp + 0x40]
push ebp
push ebp
push eax
push ebx
push edi
mov edi, dword [esp + 0x98]
push ecx
push edx
mov ecx, dword [edi + 4]
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
test byte [esi + 0x30], 1
je 0x5e39f2
lea edx, [esp + 0x38]
mov ecx, esi
push edx
push edi
call fcn.005e3a40
test al, al
je 0x5e3a18
mov eax, dword [esp + 0x34]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x78], 0xffffffff
mov dword [ecx], ebp
lea ecx, [esp + 0x38]
call fcn.0062cd4e
mov al, 1
jmp 0x5e3a2b
lea ecx, [esp + 0x38]
mov dword [esp + 0x78], 0xffffffff
call fcn.0062cd4e
xor al, al
mov ecx, dword [esp + 0x70]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x6c
ret 4