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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5934bb
sub esp, 0x54
mov eax, dword [esp + 0x68]
mov dword [esp], eax
mov ecx, dword [esp + 0x6c]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x70]
mov dword [esp + 8], edx
call fcn.005947c0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
test edx, edx
jne 0x59349e
mov dword [esp + 0x2c], eax
mov dword [esp], eax
mov ecx, dword [esp + 0x68]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x6c]
mov dword [esp + 8], edx
movzx ebx, byte [esp + 0x74]
mov byte [esp + 0xc], bl
call fcn.00594d80
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
test eax, eax
jne 0x593460
nop
mov eax, dword [esp + 0x6c]
cmp eax, 2
je 0x593459
cmp eax, 3
setne cl
mov byte [esp + 0x2b], cl
lea eax, [0x94c7a0]
mov dword [esp], eax
call fcn.0040ae10
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x2c]
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x6c]
cmp ecx, 1
sete dl
mov byte [eax + 0x135], dl
movzx edx, byte [esp + 0x2b]
mov byte [eax + 0x136], dl
mov edx, dword [esp + 0x68]
mov dword [eax + 0x13c], edx
mov dword [eax + 0x140], ecx
mov edx, dword [esp + 0x64]
mov dword [eax + 0x14c], edx
mov edx, dword [0xdd7ec0]
test edx, edx
jne 0x593441
mov edx, dword [esp + 0x60]
mov dword [eax + 0x148], edx
mov dword [esp + 0x40], eax
mov edx, dword [esp + 0x78]
test edx, edx
je 0x593435
mov ebx, dword [esp + 0x80]
test ebx, ebx
je 0x5932f3
mov dword [esp], eax
mov ecx, dword [esp + 0x58]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x1c], ecx
call fcn.00593590
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x5932ce
mov dword [esp + 0x4c], eax
mov dword [esp + 0x30], ecx
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call fcn.0057fa50
mov dword [esp + 0x8c], 0
mov eax, dword [esp + 0x30]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x94], eax
add esp, 0x54
ret
mov eax, dword [esp + 0x40]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
add esp, 0x54
ret
cmp ecx, 1
jne 0x593399
call fcn.005902c0
mov eax, dword [esp]
mov ecx, dword [esp + 0x40]
mov dword [esp], ecx
mov edx, dword [esp + 0x78]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x7c]
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x10], eax
call fcn.00593d80
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x593374
mov dword [esp + 0x48], eax
mov dword [esp + 0x38], ecx
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call fcn.0057fa50
mov dword [esp + 0x8c], 0
mov eax, dword [esp + 0x38]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x94], eax
add esp, 0x54
ret
mov eax, dword [esp + 0x40]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
add esp, 0x54
ret
cmp ecx, 2
je 0x5933ac
cmp ecx, 5
je 0x5932fc
jmp 0x59324b
mov dword [esp], eax
mov dword [esp + 4], edx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x88]
mov dword [esp + 0xc], ecx
call fcn.00594230
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x593410
mov dword [esp + 0x44], eax
mov dword [esp + 0x34], ecx
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call fcn.0057fa50
mov dword [esp + 0x8c], 0
mov eax, dword [esp + 0x34]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x94], eax
add esp, 0x54
ret
mov eax, dword [esp + 0x40]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
add esp, 0x54
ret
mov ebx, dword [esp + 0x80]
jmp 0x59324b
lea edi, [eax + 0x148]
mov edx, eax
mov eax, dword [esp + 0x60]
call fcn.00456fe0
mov eax, edx
jmp 0x59322c
xor ecx, ecx
jmp 0x5931c2
mov dword [esp + 0x3c], eax
mov dword [esp + 0x50], ecx
mov edx, dword [0xdb9348]
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
mov eax, dword [edx]
call eax
mov dword [esp + 0x8c], 0
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x94], eax
add esp, 0x54
ret
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], edx
mov dword [esp + 0x94], ecx
add esp, 0x54
ret
call fcn.004557a0
jmp fcn.00593130