Function at 0x1400c5f10
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x2b8
movaps xmmword [rsp + 0x2a0], xmm6
mov rax, qword [0x14029a038]
xor rax, rsp
mov qword [rsp + 0x298], rax
mov sil, 1
cmp qword [0x1402a0cc0], 0
jne 0x1400c60f0
movabs rdi, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x70]
mov qword [rsi + 0x10], rdi
movaps xmm6, xmmword [0x140270690]
movaps xmmword [rsi], xmm6
mov rcx, rsi
call fcn.1400c6210
mov qword [rsp + 0x60], rdi
movaps xmmword [rsp + 0x50], xmm6
cmp byte [rsi + 0x17], 0
jns 0x1400c5f7e
mov rsi, qword [rsp + 0x70]
mov qword [rsp + 0x40], rsi
test rsi, rsi
je 0x1400c61fa
mov rcx, rsi
call fcn.14017bd98
lea rdx, [rsp + 0x40]
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x50]
mov rcx, rsi
call fcn.14014b0f0
cmp byte [rsi + 0x17], 0
jns 0x1400c5fb5
mov rsi, qword [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400c6011
movabs rax, 0xaaaaaaaaaaaa0000
lea rdx, [rsp + 0x90]
mov qword [rdx + 8], rax
xor eax, eax
mov qword [rdx], rax
xorps xmm0, xmm0
movups xmmword [rdx + 0x10], xmm0
mov qword [rdx + 0x20], rax
lea rcx, [rsp + 0x50]
call fcn.14005e520
test al, al
je 0x1400c6011
cmp qword [rsp + 0x90], 0x400001
jl 0x1400c6011
lea rcx, [rsp + 0x50]
xor edx, edx
call fcn.140031100
mov rdi, qword [0x1402a0cb0]
test rdi, rdi
jne 0x1400c6039
mov ecx, 0x18
call fcn.14017b1d8
mov rdi, rax
mov rcx, rax
call fcn.1400c6210
mov qword [0x1402a0cb0], rdi
mov sil, 1
test byte [0x14029bf48], 1
je 0x1400c60cb
cmp byte [rdi + 0x17], 0
jns 0x1400c6052
mov rdi, qword [rdi]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov rcx, rdi
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1402a0cc0], rax
inc rax
cmp rax, 1
ja 0x1400c60cb
lea rdi, [rsp + 0x90]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1401808d0
mov word [rdi], 0
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xfffffefb
cmp eax, 0xfffffefc
jae 0x1400c6114
xor esi, esi
cmp byte [rsp + 0x67], 0
jns 0x1400c60dc
mov rcx, qword [rsp + 0x50]
call fcn.14017b254
cmp byte [rsp + 0x87], 0
jns 0x1400c60f0
mov rcx, qword [rsp + 0x70]
call fcn.14017b254
mov rcx, qword [rsp + 0x298]
xor rcx, rsp
call fcn.14017e7b0
mov eax, esi
movaps xmm6, xmmword [rsp + 0x2a0]
add rsp, 0x2b8
pop rdi
pop rsi
ret
lea rdi, [rsp + 0x90]
mov rcx, rdi
call fcn.14017bd98
mov rcx, qword [0x1402a0cb0]
mov rdx, rdi
mov r8, rax
call fcn.14001c5a0
mov rcx, qword [0x1402a0cb0]
movzx eax, byte [rcx + 0x17]
test al, al
jns 0x1400c61ed
mov rax, qword [rcx + 8]
test rax, rax
je 0x1400c6206
mov rdx, qword [rcx]
cmp word [rdx + rax*2 - 2], 0x5c
je 0x1400c617a
lea rdx, [0x140271d5c]
mov r8d, 1
call fcn.140017700
mov rcx, qword [0x1402a0cb0]
lea rdx, str.debug.log
mov r8d, 9
call fcn.140017700
mov rcx, qword [0x1402a0cb0]
cmp byte [rcx + 0x17], 0
jns 0x1400c619c
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1402a0cc0], rax
inc rax
cmp rax, 1
ja 0x1400c60cb
mov qword [0x1402a0cc0], 0
jmp 0x1400c60c9
test rax, rax
je 0x1400c6206
mov rdx, rcx
jmp 0x1400c6159
mov qword [rsp + 0x48], 0
int3
int3