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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5ca4b4
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, [0x5f0d80]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
lea eax, [0x61c22a]
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.004ce1a0
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 0x5ca132
inc eax
cmp eax, 2
jge 0x5ca18e
lea ebx, [esp + eax*8 + 0x54]
mov ebx, dword [ebx + 4]
test ebx, ebx
je 0x5ca131
cmp eax, 2
ja 0x5ca4a9
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, [0x672e60]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 1
call fcn.004a88d0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
jmp 0x5ca192
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x2c], eax
lea edx, [0x5fb6e0]
mov dword [esp], edx
call fcn.0040bdb0
mov eax, dword [esp + 4]
mov dword [esp + 0x38], eax
lea ecx, [0x7e2564]
mov dword [eax + 4], ecx
call fcn.0040c890
mov eax, dword [0x7e2780]
mov ecx, dword [esp]
test eax, eax
jne 0x5ca1d4
mov edx, dword [esp + 0x38]
mov dword [edx + 0x10], ecx
jmp 0x5ca1e2
mov edx, dword [esp + 0x38]
lea edi, [edx + 0x10]
mov eax, ecx
call fcn.00463860
mov dword [edx + 0x18], 0
mov ecx, dword [0x7e2780]
test ecx, ecx
jne 0x5ca1fc
mov dword [edx + 0x14], 0
jmp 0x5ca206
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 [0x7e2780]
test ebp, ebp
jne 0x5ca234
mov eax, dword [esp + 0x70]
mov dword [edx + 0x20], eax
mov dword [ecx + 0x108], edx
jmp 0x5ca249
lea edi, [edx + 0x20]
mov eax, dword [esp + 0x70]
call fcn.00463860
mov edi, ebx
mov eax, edx
call fcn.00463860
lea eax, [0x5e5040]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.005b3380
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 0x5ca33f
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, [0x5f0d80]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
lea eax, [0x61e4a6]
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.004ce1a0
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 0x5ca34c
mov dword [esp + 0x74], ebp
mov dword [esp + 0x78], esi
add esp, 0x64
ret
inc eax
cmp eax, 2
jge 0x5ca3a8
lea edx, [esp + eax*8 + 0x44]
mov edx, dword [edx + 4]
test edx, edx
je 0x5ca34b
cmp eax, 2
ja 0x5ca49f
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, [0x672e60]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 1
call fcn.004a88d0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
jmp 0x5ca3ac
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.0049cd40
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
test eax, eax
jne 0x5ca493
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 4], ecx
call fcn.0049f140
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x5ca47f
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
call fcn.0049ca40
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 0x5ca444
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, [0x5e40c0]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x10], eax
mov byte [esp + 0x14], 0
call fcn.005b2e90
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.005ca060