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

Disassembly:
push 0xffffffffffffffff
push 0x65bcc8
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.0061cc19
mov eax, dword [esp + 0x80]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x78], ebp
jne 0x5ccad4
xor eax, eax
jmp 0x5ccad7
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x3c]
call fcn.0061ccd0
cmp eax, ebp
je 0x5ccd78
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 0x5ccd78
mov edx, dword [esp + 0x24]
cmp dword [edx], ebp
je 0x5ccd78
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 0x5ccb9e
xor eax, eax
jmp 0x5ccba1
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 0x5ccd05
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 0x5ccc1d
mov ecx, dword [esp + 0x28]
push 0xffffffffffffffff
add ecx, ebp
add ecx, edi
push ecx
push ebx
push eax
mov ecx, esi
call fcn.005cbe50
mov eax, dword [esp + 0x1c]
inc ebx
jmp 0x5ccbfe
mov edx, dword [esi + 0x24]
lea ebx, [edx + edx + 1]
cmp ebx, dword [esp + 0x14]
jge 0x5ccc40
push 0xffffffffffffffff
lea ecx, [edi + ebp]
push ebx
push ecx
push eax
mov ecx, esi
call fcn.005cbe50
mov eax, dword [esp + 0x1c]
inc ebx
jmp 0x5ccc24
mov ecx, ebp
mov edi, dword [esi + 0x24]
imul ecx, ebp
xor ebx, ebx
mov dword [esp + 0x30], ecx
test edi, edi
jbe 0x5ccce1
mov eax, ebx
mov edx, dword [esp + 0x2c]
imul eax, ebx
add eax, ecx
cmp eax, edx
mov dword [esp + 0x1c], eax
jg 0x5cccd5
fild dword [esp + 0x1c]
fsqrt
call fcn.0046572c
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.005cbe50
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.005cbe50
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.005cbe50
mov ecx, dword [esp + 0x30]
mov edi, dword [esi + 0x24]
inc ebx
cmp ebx, edi
jb 0x5ccc56
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 0x5ccbe9
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 0x5ccd52
lea edx, [esp + 0x38]
mov ecx, esi
push edx
push edi
call fcn.005ccda0
test al, al
je 0x5ccd78
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.0061cd4e
mov al, 1
jmp 0x5ccd8b
lea ecx, [esp + 0x38]
mov dword [esp + 0x78], 0xffffffff
call fcn.0061cd4e
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