Function at 0x1000ca20
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x10050291
mov eax, dword fs:[0]
push eax
sub esp, 0x7f4
mov eax, dword [0x100638a4]
xor eax, esp
mov dword [esp + 0x7f0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100638a4]
xor eax, esp
push eax
lea eax, [esp + 0x808]
mov dword fs:[0], eax
mov esi, dword [esp + 0x818]
xor eax, eax
push 0x7d0
push eax
lea ecx, [esp + 0x3a]
push ecx
mov word [esp + 0x3c], ax
call fcn.10038ae0
add esp, 0xc
push 0x3e8
lea edx, [esp + 0x34]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebp, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [esp + 0x30]
push eax
call ebp
xor ecx, ecx
mov word [esp + 0x800], cx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0
push eax
call fcn.100096a0
add esp, 8
test eax, eax
je 0x1000cad6
lea edx, [esp + 0x30]
push edx
push esi
call fcn.1003a009
add esp, 8
test eax, eax
je 0x1000cad6
mov eax, 1
jmp 0x1000ccc4
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push str.360base.dll
lea eax, [esp + 0x34]
push eax
mov ecx, eax
push ecx
call edi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea edx, [esp + 0x30]
push edx
call ebx
test eax, eax
jne 0x1000cbbf
lea edx, [esp + 0x30]
mov eax, esi
sub edx, esi
jmp 0x1000cb10
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x1000cb10
lea eax, [esp + 0x30]
push eax
call ebp
push str.360base.dll
lea ecx, [esp + 0x34]
push ecx
mov edx, ecx
push edx
call edi
lea eax, [esp + 0x30]
push eax
call ebx
test eax, eax
jne 0x1000cbbf
push esi
call fcn.10002450
add esp, 4
test eax, eax
jne 0x1000cacc
cmp dword [esp + 0x81c], eax
je 0x1000cbb8
xor ecx, ecx
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], eax
mov word [esp + 0x18], cx
push eax
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x818], eax
call fcn.1000c5b0
add esp, 8
test al, al
je 0x1000cba6
push 1
push 0x10062320
push esi
call fcn.1000af90
add esp, 0xc
lea ecx, [esp + 0x14]
call fcn.10010e30
xor eax, eax
jmp 0x1000ccc4
push esi
call fcn.1000c2b0
add esp, 4
lea ecx, [esp + 0x14]
call fcn.10010e30
xor eax, eax
jmp 0x1000ccc4
xor ebx, ebx
cmp dword [0x10065320], ebx
jne 0x1000cc53
lea eax, [esp + 0x30]
push eax
call fcn.1000aae0
add esp, 4
test eax, eax
jne 0x1000cc49
push esi
call fcn.10002450
add esp, 4
test eax, eax
jne 0x1000cacc
cmp dword [esp + 0x81c], ebx
je 0x1000cbb8
xor ecx, ecx
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebx
mov word [esp + 0x18], cx
lea edx, [esp + 0x14]
push ebx
push edx
mov dword [esp + 0x818], 1
call fcn.1000c5b0
add esp, 8
test al, al
je 0x1000cba6
push 1
push 0x10062320
push esi
call fcn.1000af90
add esp, 0xc
lea ecx, [esp + 0x14]
call fcn.10010e30
xor eax, eax
jmp 0x1000ccc4
mov dword [0x10065320], 1
push ebx
push esi
mov ecx, 0x10061568
call fcn.100098a0
mov edi, eax
cmp edi, ebx
jne 0x1000ccc2
cmp dword [esp + 0x81c], ebx
je 0x1000ccc2
xor eax, eax
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebx
mov word [esp + 0x18], ax
lea ecx, [esp + 0x14]
push ebx
push ecx
mov dword [esp + 0x818], 2
call fcn.1000c5b0
add esp, 8
test al, al
je 0x1000ccb0
push 1
push 0x10062320
push esi
call fcn.1000af90
add esp, 0xc
jmp 0x1000ccb9
push esi
call fcn.1000c2b0
add esp, 4
lea ecx, [esp + 0x14]
call fcn.10010e30
mov eax, edi
mov ecx, dword [esp + 0x808]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x7f0]
xor ecx, esp
call fcn.10038723
add esp, 0x800
ret