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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x490
mov rax, qword [0x1400a3ac8]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x270]
mov r8d, 0x208
call sub.msvcrt.dll_memset
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x250
call sub.msvcrt.dll_memset
mov rcx, qword [str._0_n_]
lea rbp, str._0_n_
lea r14, [0x140095738]
mov sil, 2
cmp rcx, rbp
je 0x14006cea3
test byte [rcx + 0x1c], sil
je 0x14006cea3
cmp byte [rcx + 0x19], 5
jb 0x14006cea3
mov rcx, qword [rcx + 0x10]
mov edx, 0x56
mov r8, r14
call fcn.14000459c
mov rcx, rbx
call fcn.14006b2d4
mov rdi, rax
test rax, rax
jne 0x14006cefc
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [str._0_n_]
cmp rcx, rbp
je 0x14006d0ad
test byte [rcx + 0x1c], sil
je 0x14006d0ad
cmp byte [rcx + 0x19], sil
jb 0x14006d0ad
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x57]
mov r9d, eax
mov r8, r14
call fcn.1400238ac
jmp 0x14006d0ad
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x14006d06b
test al, 0x10
je 0x14006d06b
lea r9, [rsp + 0x270]
xor r8d, r8d
lea rdx, [0x140095708]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
nop dword [rax + rax]
test eax, eax
jne 0x14006cf8c
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [str._0_n_]
cmp rcx, rbp
je 0x14006d0a5
test byte [rcx + 0x1c], sil
je 0x14006d0a5
cmp byte [rcx + 0x19], sil
jb 0x14006d0a5
mov edx, 0x59
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov r8, r14
call fcn.140004994
jmp 0x14006d0a5
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
nop dword [rax + rax]
cmp rax, 0xffffffffffffffff
jne 0x14006cfd8
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [str._0_n_]
cmp rcx, rbp
je 0x14006d02a
test byte [rcx + 0x1c], sil
je 0x14006d02a
cmp byte [rcx + 0x19], sil
jb 0x14006d02a
mov edx, 0x5a
jmp 0x14006d01b
mov rcx, rax
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_FindClose]
nop dword [rax + rax]
test eax, eax
jne 0x14006d02a
mov rax, qword [str._0_n_]
cmp rax, rbp
je 0x14006d02a
test byte [rax + 0x1c], sil
je 0x14006d02a
cmp byte [rax + 0x19], sil
jb 0x14006d02a
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [str._0_n_]
lea edx, [rbx + 0x5b]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov r8, r14
call fcn.140004994
lea rcx, [rsp + 0x270]
call fcn.14006c384
test eax, eax
jne 0x14006d0a5
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [str._0_n_]
cmp rcx, rbp
je 0x14006d0a5
test byte [rcx + 0x1c], sil
je 0x14006d0a5
cmp byte [rcx + 0x19], sil
jb 0x14006d0a5
mov edx, 0x5c
jmp 0x14006cf78
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [str._0_n_]
cmp rcx, rbp
je 0x14006d0a5
test byte [rcx + 0x1c], sil
je 0x14006d0a5
cmp byte [rcx + 0x19], sil
jb 0x14006d0a5
mov rcx, qword [rcx + 0x10]
mov edx, 0x58
mov r9d, eax
mov r8, r14
call fcn.1400238ac
mov rcx, rdi
call fcn.14006a328
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.140001b10
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret