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

Disassembly:
push 0xffffffffffffffff
push 0x667788
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.00627dd9
mov eax, dword [esp + 0x80]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x78], ebp
jne 0x5dde34
xor eax, eax
jmp 0x5dde37
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x3c]
call fcn.00627e90
cmp eax, ebp
je 0x5de0d8
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 0x5de0d8
mov edx, dword [esp + 0x24]
cmp dword [edx], ebp
je 0x5de0d8
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 0x5ddefe
xor eax, eax
jmp 0x5ddf01
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 0x5de065
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 0x5ddf7d
mov ecx, dword [esp + 0x28]
push 0xffffffffffffffff
add ecx, ebp
add ecx, edi
push ecx
push ebx
push eax
mov ecx, esi
call fcn.005dd1b0
mov eax, dword [esp + 0x1c]
inc ebx
jmp 0x5ddf5e
mov edx, dword [esi + 0x24]
lea ebx, [edx + edx + 1]
cmp ebx, dword [esp + 0x14]
jge 0x5ddfa0
push 0xffffffffffffffff
lea ecx, [edi + ebp]
push ebx
push ecx
push eax
mov ecx, esi
call fcn.005dd1b0
mov eax, dword [esp + 0x1c]
inc ebx
jmp 0x5ddf84
mov ecx, ebp
mov edi, dword [esi + 0x24]
imul ecx, ebp
xor ebx, ebx
mov dword [esp + 0x30], ecx
test edi, edi
jbe 0x5de041
mov eax, ebx
mov edx, dword [esp + 0x2c]
imul eax, ebx
add eax, ecx
cmp eax, edx
mov dword [esp + 0x1c], eax
jg 0x5de035
fild dword [esp + 0x1c]
fsqrt
call fcn.0046664c
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.005dd1b0
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.005dd1b0
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.005dd1b0
mov ecx, dword [esp + 0x30]
mov edi, dword [esi + 0x24]
inc ebx
cmp ebx, edi
jb 0x5ddfb6
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 0x5ddf49
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 0x5de0b2
lea edx, [esp + 0x38]
mov ecx, esi
push edx
push edi
call fcn.005de100
test al, al
je 0x5de0d8
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.00627f0e
mov al, 1
jmp 0x5de0eb
lea ecx, [esp + 0x38]
mov dword [esp + 0x78], 0xffffffff
call fcn.00627f0e
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