Function at 0x592779
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.00597d4d
test eax, eax
jns 0x5927ae
mov eax, 0xffffffff
jmp 0x592998
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
and eax, 0xc000
cmp eax, 0x4000
jne 0x5927e7
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.0059759e
mov dword [ebp - 0xc], eax
jmp 0x592984
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
and eax, 0xc000
cmp eax, 0x8000
jne 0x592820
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.00594ef4
mov dword [ebp - 0xc], eax
jmp 0x592984
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.004b42bb
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x592866
mov eax, dword [ebp + 0x14]
mov dword [esp], eax
call fcn.00597f0b
mov eax, 0xffffffff
jmp 0x592998
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.0059852c
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
cmp eax, 0xff
jg 0x5928c1
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.0059252d
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 0x592995
mov eax, dword [ebp + 0x14]
mov dword [esp], eax
call fcn.00597f0b
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
leave
ret