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

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x74
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.005963bd
test eax, eax
jns 0x590e1e
mov eax, 0xffffffff
jmp 0x591008
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
and eax, 0xc000
cmp eax, 0x4000
jne 0x590e57
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00595c0e
mov dword [ebp - 0xc], eax
jmp 0x590ff4
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
and eax, 0xc000
cmp eax, 0x8000
jne 0x590e90
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00593564
mov dword [ebp - 0xc], eax
jmp 0x590ff4
mov eax, dword [ebp + 0x14]
mov edx, dword [eax + 0x3c]
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0x80]
add eax, edx
add eax, 3
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
add eax, 1
shl eax, 3
mov dword [esp], eax
call fcn.004ba857
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x590ed6
mov eax, dword [ebp + 0x14]
mov dword [esp], eax
call fcn.0059657b
mov eax, 0xffffffff
jmp 0x591008
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
lea edx, [eax*4]
mov eax, dword [ebp - 0x18]
add eax, edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0x80]
add eax, 1
shl eax, 2
add dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0x80]
add eax, 1
shl eax, 2
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.00596b9c
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
cmp eax, 0xff
jg 0x590f31
mov dword [ebp - 0x28], 0x100
mov dword [ebp - 0x24], 0x14
mov dword [ebp - 0x20], 0x100
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0x40]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0x38]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0x80]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0x84]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0x78]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0x7c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
and eax, 1
test eax, eax
setne al
movzx ecx, al
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x38]
lea ebx, [ebp - 0x28]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebp - 0x18]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], 0
lea edx, [ebp - 0x48]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], 0
lea eax, [ebp - 0x38]
mov dword [esp], eax
call fcn.00590b9d
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sub.cygwin1.dll_free
cmp dword [ebp - 0xc], 0
jns 0x591005
mov eax, dword [ebp + 0x14]
mov dword [esp], eax
call fcn.0059657b
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
leave
ret