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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5caa52
sub esp, 0x68
lea eax, [0x81ebc0]
mov dword [esp], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 4], eax
lea eax, [0x83481e]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 6
call fcn.0040e910
mov eax, dword [esp + 0x10]
movzx ecx, byte [esp + 0x14]
mov edx, dword [eax + 4]
mov eax, dword [eax]
test cl, cl
je 0x5caa17
mov dword [esp + 0x2c], edx
mov dword [esp + 0x54], eax
lea eax, [0x79da20]
mov dword [esp], eax
call fcn.00409c40
mov eax, dword [esp + 4]
xor ecx, ecx
xor edx, edx
xor ebx, ebx
jmp 0x5ca696
mov ebp, dword [esp + 0x48]
inc ebp
mov ebx, eax
mov eax, edx
mov edx, ecx
mov ecx, ebp
mov ebp, dword [esp + 0x2c]
cmp ecx, ebp
jge 0x5caa04
mov dword [esp + 0x48], ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x54]
lea edx, [eax + ecx*8]
mov ebx, dword [edx + 4]
mov edx, dword [edx]
mov dword [esp], edx
mov dword [esp + 4], ebx
call fcn.004c88a0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [esp], ecx
mov dword [esp + 4], eax
lea eax, [0x832f58]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
call fcn.004c7710
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
cmp eax, 1
jne 0x5ca715
mov edx, dword [ecx + 4]
test edx, edx
jne 0x5ca715
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x64]
jmp 0x5ca689
mov dword [esp + 0x24], eax
mov dword [esp + 0x50], ecx
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x64]
xor esi, esi
jmp 0x5ca73e
lea esi, [eax + 1]
mov edi, dword [esp + 0x24]
mov eax, edi
mov eax, ebx
mov ebx, edx
mov edx, eax
mov eax, edi
cmp esi, eax
jge 0x5ca9f9
jae 0x5caa4b
mov dword [esp + 0x60], ebp
mov dword [esp + 0x30], esi
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], edx
lea eax, [ecx + esi*8]
mov dword [esp + 0x5c], eax
mov edx, dword [eax + 4]
mov ebx, dword [eax]
mov dword [esp], ebx
mov dword [esp + 4], edx
call fcn.004c88a0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x50]
lea edx, [ecx + eax*8 + 4]
mov ebx, dword [esp + 0xc]
mov ebp, dword [esp + 8]
mov dword [edx], ebx
mov edx, dword [0xb92b90]
test edx, edx
jne 0x5ca9e5
mov edx, dword [esp + 0x5c]
mov dword [edx], ebp
test ebx, ebx
jne 0x5ca7b3
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x40]
mov ebp, dword [esp + 0x60]
jmp 0x5ca72d
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x64], ebp
mov dword [esp], ebp
mov dword [esp + 4], ebx
lea eax, [0x832f5a]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
call fcn.004c8f30
mov eax, dword [esp + 0x10]
test eax, eax
jl 0x5ca9d4
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
ja 0x5caa44
lea edx, [eax + 1]
cmp edx, ecx
ja 0x5caa44
sub ecx, edx
mov ebx, ecx
neg ecx
sar ecx, 0x1f
and edx, ecx
mov ecx, dword [esp + 0x64]
add edx, ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x28], eax
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.005cb240
movzx eax, byte [esp + 8]
test al, al
je 0x5ca9bb
mov eax, dword [esp + 0x74]
test eax, eax
je 0x5ca882
mov ecx, dword [esp + 0x28]
cmp ecx, eax
je 0x5ca85b
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x40]
mov ebp, dword [esp + 0x60]
jmp 0x5ca72d
mov ecx, dword [esp + 0x70]
mov dword [esp], ecx
mov edx, dword [esp + 0x64]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call fcn.004021f0
movzx eax, byte [esp + 0xc]
test al, al
jne 0x5ca882
mov eax, dword [esp + 0x74]
jmp 0x5ca842
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov byte [esp + 8], 1
call fcn.005cb160
movzx eax, byte [esp + 0x14]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
test al, al
jne 0x5ca8c5
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x40]
mov ebp, dword [esp + 0x60]
jmp 0x5ca72d
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x20], edx
lea eax, [0x8170c0]
mov dword [esp], eax
call fcn.00409c40
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x28]
mov dword [eax + 4], ecx
mov ecx, dword [0xb92b90]
test ecx, ecx
jne 0x5ca9a9
mov ecx, dword [esp + 0x64]
mov dword [eax], ecx
mov ecx, dword [esp + 0x20]
mov dword [eax + 0xc], ecx
mov ecx, dword [0xb92b90]
test ecx, ecx
jne 0x5ca994
mov ecx, dword [esp + 0x4c]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x40]
lea edx, [ecx + 1]
mov ebx, dword [esp + 0x44]
cmp edx, ebx
jg 0x5ca955
mov ebp, dword [esp + 0x60]
mov esi, dword [0xb92b90]
lea edi, [ebp + ecx*4]
test esi, esi
jne 0x5ca94e
mov dword [ebp + ecx*4], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x50]
mov esi, edx
mov edx, ebx
mov ebx, esi
jmp 0x5ca72d
call fcn.0044c990
jmp 0x5ca93b
mov dword [esp + 0x58], eax
lea eax, [0x7c7260]
mov dword [esp], eax
mov ebp, dword [esp + 0x60]
mov dword [esp + 4], ebp
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edx
call fcn.00438ba0
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
lea edx, [eax + 1]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x40]
jmp 0x5ca929
lea edi, [eax + 8]
mov ecx, eax
mov eax, dword [esp + 0x4c]
call fcn.0044c990
mov eax, ecx
jmp 0x5ca916
mov edi, eax
mov eax, dword [esp + 0x64]
call fcn.0044c990
mov eax, edi
jmp 0x5ca8fa
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x40]
mov ebp, dword [esp + 0x60]
jmp 0x5ca72d
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x3c]
xor ebx, ebx
xor edx, edx
jmp 0x5ca80d
mov edi, dword [esp + 0x5c]
mov edx, eax
mov eax, ebp
call fcn.0044c990
mov eax, edx
jmp 0x5ca79e
mov eax, edx
mov ecx, ebx
mov edx, ebp
jmp 0x5ca689
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], edx
add esp, 0x68
ret
lea eax, [0x79da20]
mov dword [esp], eax
call fcn.00409c40
mov eax, dword [esp + 4]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
add esp, 0x68
ret
call fcn.004265e0
ud2
call fcn.004264e0
ud2
call fcn.0044b230
jmp fcn.005ca610