Function at 0x1400c6ae7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov rdi, rcx
mov rax, qword [0x1401ac698]
xor rax, rsp
mov qword [rsp + 0x80], rax
call fcn.1400c6764
mov ebx, 0x1126
test al, al
jne 0x1400c6d8a
xorps xmm0, xmm0
lea rsi, [rsp + 0x50]
movaps xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
mov rcx, rdi
mov rdx, rsi
call fcn.1400c6db0
mov ebx, eax
mov rcx, rsi
call fcn.1400c6e9d
mov edi, eax
mov rcx, rsi
mov rdx, rsi
call fcn.1400c6ee8
test bl, bl
jne 0x1400c6b6c
test dil, dil
jne 0x1400c6b6c
mov ebx, 0x7b
test al, al
je 0x1400c6d79
test dil, dil
je 0x1400c6b7c
mov al, 1
mov dword [rsp + 0x34], eax
jmp 0x1400c6c62
lea rdx, [0x140173c70]
lea rdi, [rsp + 0x38]
mov rcx, rdi
call fcn.140002874
movzx r8d, byte [rsp + 0x50]
test r8b, 1
je 0x1400c6ba8
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
jmp 0x1400c6bb0
shr r8, 1
lea rdx, [rsp + 0x52]
mov rcx, rdi
call fcn.140022798
mov bl, byte [rax]
mov rcx, qword [rax + 8]
mov qword [rsp + 0x77], rcx
mov rcx, qword [rax + 1]
mov qword [rsp + 0x70], rcx
mov rdi, qword [rax + 0x10]
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
test byte [rsp + 0x50], 1
jne 0x1400c6bf3
mov word [rsp + 0x52], 0
mov byte [rsp + 0x50], 0
jmp 0x1400c6c20
mov rax, qword [rsp + 0x60]
mov word [rax], 0
mov qword [rsp + 0x58], 0
test byte [rsp + 0x50], 1
je 0x1400c6c20
mov rcx, qword [rsp + 0x60]
call fcn.14012c9c4
mov qword [rsp + 0x50], 0
mov byte [rsp + 0x50], bl
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x77]
mov qword [rsp + 0x51], rax
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], rdi
xor eax, eax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x77], rax
test byte [rsp + 0x38], 1
je 0x1400c6c5a
mov rcx, qword [rsp + 0x48]
call fcn.14012c9c4
mov dword [rsp + 0x34], 0
lea r12, [rsp + 0x68]
add rsi, 2
mov r15b, 1
mov rax, 0xffffffffffffffff
lea r14, [rsp + 0x38]
lea rbx, [rsp + 0x50]
mov rbp, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x20], r12
mov rcx, r14
mov rdx, rbx
xor r8d, r8d
mov r9, rax
call fcn.140022340
test byte [rsp + 0x50], 1
jne 0x1400c6cb6
mov word [rsi], 0
mov byte [rsp + 0x50], 0
jmp 0x1400c6ce3
mov rax, qword [rsp + 0x60]
mov word [rax], 0
mov qword [rsp + 0x58], 0
test byte [rsp + 0x50], 1
je 0x1400c6ce3
mov rcx, qword [rsp + 0x60]
call fcn.14012c9c4
mov qword [rsp + 0x50], 0
movups xmm0, xmmword [rsp + 0x38]
movaps xmmword [rsp + 0x50], xmm0
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x60], rcx
test byte [rsp + 0x50], 1
cmove rcx, rsi
call rbp
cmp eax, 0xffffffff
je 0x1400c6d0f
bt eax, 0xa
jae 0x1400c6d21
jmp 0x1400c6d48
call r13
mov edi, eax
lea eax, [rdi - 2]
cmp eax, 2
jb 0x1400c6d21
cmp edi, 0x7b
jne 0x1400c6d4c
mov rcx, rbx
mov dx, 0x5c
mov r8, 0xffffffffffffffff
call fcn.140023074
xor r15d, r15d
cmp rax, 2
ja 0x1400c6c8d
mov ebx, 0x1126
jmp 0x1400c6d79
xor ebx, ebx
jmp 0x1400c6d79
mov eax, dword [rsp + 0x34]
or al, r15b
test al, 1
jne 0x1400c6d77
lea rcx, [rsp + 0x50]
mov dx, 0x5c
mov r8, 0xffffffffffffffff
call fcn.140023074
mov ebx, 0x1126
cmp rax, 3
je 0x1400c6d79
mov ebx, edi
test byte [rsp + 0x50], 1
je 0x1400c6d8a
mov rcx, qword [rsp + 0x60]
call fcn.14012c9c4
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14012cde0
mov eax, ebx
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret