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

Disassembly:
push 0xffffffffffffffff
push 0x62e2a8
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.005ef418
mov eax, dword [esp + 0x80]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x78], ebp
jne 0x5a9694
xor eax, eax
jmp 0x5a9697
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x3c]
call fcn.005ef4cf
cmp eax, ebp
je 0x5a9938
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 0x5a9938
mov edx, dword [esp + 0x24]
cmp dword [edx], ebp
je 0x5a9938
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 0x5a975e
xor eax, eax
jmp 0x5a9761
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 0x5a98c5
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 0x5a97dd
mov ecx, dword [esp + 0x28]
push 0xffffffffffffffff
add ecx, ebp
add ecx, edi
push ecx
push ebx
push eax
mov ecx, esi
call fcn.005a8a10
mov eax, dword [esp + 0x1c]
inc ebx
jmp 0x5a97be
mov edx, dword [esi + 0x24]
lea ebx, [edx + edx + 1]
cmp ebx, dword [esp + 0x14]
jge 0x5a9800
push 0xffffffffffffffff
lea ecx, [edi + ebp]
push ebx
push ecx
push eax
mov ecx, esi
call fcn.005a8a10
mov eax, dword [esp + 0x1c]
inc ebx
jmp 0x5a97e4
mov ecx, ebp
mov edi, dword [esi + 0x24]
imul ecx, ebp
xor ebx, ebx
mov dword [esp + 0x30], ecx
test edi, edi
jbe 0x5a98a1
mov eax, ebx
mov edx, dword [esp + 0x2c]
imul eax, ebx
add eax, ecx
cmp eax, edx
mov dword [esp + 0x1c], eax
jg 0x5a9895
fild dword [esp + 0x1c]
fsqrt
call fcn.00460b50
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.005a8a10
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.005a8a10
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.005a8a10
mov ecx, dword [esp + 0x30]
mov edi, dword [esi + 0x24]
inc ebx
cmp ebx, edi
jb 0x5a9816
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 0x5a97a9
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 0x5a9912
lea edx, [esp + 0x38]
mov ecx, esi
push edx
push edi
call fcn.005a9960
test al, al
je 0x5a9938
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.005ef54d
mov al, 1
jmp 0x5a994b
lea ecx, [esp + 0x38]
mov dword [esp + 0x78], 0xffffffff
call fcn.005ef54d
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