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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x597a82
sub esp, 0x68
mov eax, 0
mov dword [esp + 0x64], eax
mov byte [esp + 0x23], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
lea eax, [0x597a90]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x70]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x50], eax
lea ecx, [esp + 0x48]
mov dword [esp + 0x64], ecx
mov byte [esp + 0x23], 1
mov ecx, dword [eax + 0x98]
test ecx, ecx
je 0x5979e2
mov edx, dword [esp + 0x70]
test edx, edx
jne 0x5978b5
mov edx, dword [eax + 0x70]
test edx, edx
sete dl
mov ebx, dword [eax + 0x6c]
test ebx, ebx
sete bl
and edx, ebx
test dl, dl
jne 0x59799b
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
lea eax, [esp + 0x38]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00405fb0
movzx eax, byte [esp + 8]
test al, al
jne 0x59797a
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax + 0x6c]
mov edx, dword [eax + 0x70]
mov dword [esp + 4], edx
mov dword [esp], ecx
call fcn.004835a0
mov eax, dword [esp + 8]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
mov ecx, dword [ecx]
mov edx, dword [eax + 0x98]
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x54], edx
lea ecx, [esp + 0x38]
mov dword [esp + 0x58], ecx
lea ecx, [esp + 0x54]
mov dword [esp], ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 4], ecx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 2
mov byte [esp + 0x14], 1
call fcn.00446c20
mov eax, dword [esp + 0x18]
test eax, eax
je 0x597959
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax + 0x80]
mov dword [esp + 0x34], ecx
mov edx, dword [eax + 0x84]
mov dword [esp + 0x24], edx
xor ebx, ebx
jmp 0x597a2a
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
mov byte [esp + 0x23], 0
mov edx, dword [esp + 0x64]
mov eax, dword [edx]
call eax
add esp, 0x68
ret
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
mov byte [esp + 0x23], 0
mov edx, dword [esp + 0x64]
mov eax, dword [edx]
call eax
add esp, 0x68
ret
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov eax, dword [eax + 0x98]
mov dword [esp], eax
lea eax, [esp + 0x38]
mov dword [esp + 4], eax
call fcn.00405790
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
mov byte [esp + 0x23], 0
mov edx, dword [esp + 0x64]
mov eax, dword [edx]
call eax
add esp, 0x68
ret
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov byte [esp + 0x23], 0
mov edx, dword [esp + 0x64]
mov eax, dword [edx]
call eax
add esp, 0x68
ret
mov dword [esp + 0x28], ebx
lea eax, [ecx + ebx*8]
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov edx, dword [edx + 0x10]
mov dword [esp], eax
call edx
mov eax, dword [esp + 0x28]
lea ebx, [eax + 1]
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x24]
cmp ebx, edx
jl 0x597a03
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov eax, dword [eax + 0x98]
mov dword [esp], eax
lea eax, [esp + 0x40]
mov dword [esp + 4], eax
call fcn.00405790
mov eax, dword [0x7f8520]
mov ecx, dword [0x7f8524]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
mov byte [esp + 0x23], 0
mov edx, dword [esp + 0x64]
mov eax, dword [edx]
call eax
add esp, 0x68
ret
call fcn.004610f0
jmp fcn.005977c0