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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5ca854
sub esp, 0x64
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov eax, dword [esp + 0x68]
mov ecx, dword [eax + 0xc0]
mov edx, dword [eax + 0xc4]
mov dword [esp], ecx
mov dword [esp + 4], edx
call fcn.004096f0
mov eax, dword [esp + 8]
lea ecx, [0x5f0dc0]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
lea eax, [0x61c285]
mov dword [esp], eax
mov dword [esp + 4], 6
lea eax, [esp + 0x3c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004ce190
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov edx, dword [esp + 0x68]
mov ebx, dword [edx + 0xdc]
mov ebp, dword [edx + 0xe0]
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ecx
xor eax, eax
jmp 0x5ca4d2
inc eax
cmp eax, 2
jge 0x5ca52e
lea ebx, [esp + eax*8 + 0x54]
mov ebx, dword [ebx + 4]
test ebx, ebx
je 0x5ca4d1
cmp eax, 2
ja 0x5ca849
mov ecx, eax
shl eax, 3
add ecx, 0xfffffffe
neg ecx
mov edx, ecx
neg ecx
sar ecx, 0x1f
and eax, ecx
lea eax, [esp + eax + 0x54]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], edx
lea eax, [0x673380]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 1
call fcn.004a88c0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
jmp 0x5ca532
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x2c], eax
lea edx, [0x5fb6c0]
mov dword [esp], edx
call fcn.0040bdb0
mov eax, dword [esp + 4]
mov dword [esp + 0x38], eax
lea ecx, [0x7e32a4]
mov dword [eax + 4], ecx
call fcn.0040c890
mov eax, dword [0x7e34c0]
mov ecx, dword [esp]
test eax, eax
jne 0x5ca574
mov edx, dword [esp + 0x38]
mov dword [edx + 0x10], ecx
jmp 0x5ca582
mov edx, dword [esp + 0x38]
lea edi, [edx + 0x10]
mov eax, ecx
call fcn.00463860
mov dword [edx + 0x18], 0
mov ecx, dword [0x7e34c0]
test ecx, ecx
jne 0x5ca59c
mov dword [edx + 0x14], 0
jmp 0x5ca5a6
lea edi, [edx + 0x14]
xor eax, eax
call fcn.00463860
mov ecx, dword [esp + 0x6c]
mov dword [edx + 0x1c], ecx
mov ecx, dword [esp + 0x68]
lea ebx, [ecx + 0x108]
mov dword [esp + 0x34], ebx
mov ebp, dword [0x7e34c0]
test ebp, ebp
jne 0x5ca5d4
mov eax, dword [esp + 0x70]
mov dword [edx + 0x20], eax
mov dword [ecx + 0x108], edx
jmp 0x5ca5e9
lea edi, [edx + 0x20]
mov eax, dword [esp + 0x70]
call fcn.00463860
mov edi, ebx
mov eax, edx
call fcn.00463860
lea eax, [0x5e4fe0]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.005b36a0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
test ebx, ebx
jne 0x5ca6df
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov eax, dword [esp + 0x68]
mov ecx, dword [eax + 0xc0]
mov edx, dword [eax + 0xc4]
mov dword [esp], ecx
mov dword [esp + 4], edx
call fcn.004096f0
mov eax, dword [esp + 8]
lea ecx, [0x5f0dc0]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
lea eax, [0x61e4fe]
mov dword [esp], eax
mov dword [esp + 4], 0xd
lea eax, [esp + 0x3c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004ce190
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov edx, dword [esp + 0x68]
mov ebx, dword [edx + 0xe0]
mov edx, dword [edx + 0xdc]
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ecx
xor eax, eax
jmp 0x5ca6ec
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], esi
add esp, 0x64
ret
inc eax
cmp eax, 2
jge 0x5ca748
lea edx, [esp + eax*8 + 0x44]
mov edx, dword [edx + 4]
test edx, edx
je 0x5ca6eb
cmp eax, 2
ja 0x5ca83f
mov ecx, eax
shl eax, 3
add ecx, 0xfffffffe
neg ecx
mov edx, ecx
neg ecx
sar ecx, 0x1f
and eax, ecx
lea eax, [esp + eax + 0x44]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], edx
lea eax, [0x673380]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 1
call fcn.004a88c0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
jmp 0x5ca74c
xor ecx, ecx
xor eax, eax
mov dword [esp], eax
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x30]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0x1a4
call fcn.0049cd30
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
test eax, eax
jne 0x5ca833
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 4], ecx
call fcn.0049f130
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x5ca81f
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
call fcn.0049ca30
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
test ebx, ebx
je 0x5ca7e4
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], esi
add esp, 0x64
ret
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
lea eax, [0x5e40e0]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x10], eax
mov byte [esp + 0x14], 0
call fcn.005b31b0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
add esp, 0x64
ret
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
add esp, 0x64
ret
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], edx
add esp, 0x64
ret
mov ecx, 2
call fcn.00463940
mov ecx, 2
call fcn.00463940
nop
call fcn.00462450
jmp fcn.005ca400