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

Disassembly:
mov ecx, dword [0x85d3cc]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x594f3e
sub esp, 0x64
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
lea eax, [esp + 0x54]
mov dword [esp], eax
mov dword [esp + 4], 0x20
call fcn.004cfb20
mov dword [esp + 0x39], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
xor edx, edx
jmp 0x594d94
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], ebp
mov dword [esp + 0x50], esi
add ebx, esi
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.00468970
mov eax, dword [esp + 0x30]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x2c]
lea edx, [eax + 1]
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
cmp eax, edx
jle 0x594ee3
mov dword [esp + 0x2c], edx
mov ebx, dword [ecx + edx*4]
test edx, edx
jle 0x594e2e
mov ebp, dword [esp + 0x54]
nop
nop
test ebp, ebp
je 0x594dc2
lea esi, [esp + 0x54]
cmp ebp, esi
je 0x594dca
jmp 0x594f25
lea ebp, [esp + 0x54]
mov dword [esp + 0x54], ebp
mov ebp, dword [esp + 0x60]
mov esi, dword [esp + 0x5c]
inc esi
mov edi, dword [esp + 0x58]
cmp ebp, esi
jae 0x594e25
mov dword [esp + 0x24], ebx
mov dword [esp], edi
mov dword [esp + 4], esi
mov dword [esp + 8], ebp
mov dword [esp + 0xc], 1
lea eax, [0x662020]
mov dword [esp + 0x10], eax
call fcn.0044d800
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x60], eax
mov dword [esp + 0x58], edi
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x5c], esi
mov byte [esi + edi - 1], 0x2e
lea eax, [esp + 0x39]
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0x13
mov ecx, ebx
sar ebx, 0x1f
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], 0xa
call fcn.0047e5b0
mov eax, dword [esp + 0x54]
nop
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
test eax, eax
je 0x594e7d
lea ebx, [esp + 0x54]
cmp eax, ebx
je 0x594e85
jmp 0x594f0d
lea eax, [esp + 0x54]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x60]
mov ebx, dword [esp + 0x5c]
lea ebp, [ebx + ecx]
mov esi, dword [esp + 0x58]
cmp eax, ebp
jae 0x594d4f
mov dword [esp + 0x34], ebx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x28], ecx
mov dword [esp], esi
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
lea eax, [0x662020]
mov dword [esp + 0x10], eax
call fcn.0044d800
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x34]
jmp 0x594d4f
mov eax, dword [esp + 0x58]
mov ecx, eax
neg eax
mov edx, dword [esp + 0x5c]
cmp edx, eax
ja 0x594eff
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], edx
add esp, 0x64
ret
test ecx, ecx
je 0x594f08
call fcn.0045f060
call fcn.0045f0a0
lea eax, [0x661ce0]
mov dword [esp], eax
lea eax, [0x6f1174]
mov dword [esp + 4], eax
call fcn.00437e60
lea eax, [0x661ce0]
mov dword [esp], eax
lea eax, [0x6f1174]
mov dword [esp + 4], eax
call fcn.00437e60
nop
call fcn.00466c30
jmp fcn.00594cd0