Function at 0x14001bd90
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x3c0]
sub rsp, 0x4c0
mov rax, qword [0x1400400b0]
xor rax, rsp
mov qword [rbp + 0x3b0], rax
xor r14d, r14d
mov rsi, rcx
test rcx, rcx
jne 0x14001bdd0
xor eax, eax
jmp 0x14001bf1e
mov r8d, 0x104
mov qword [rbp + 0x148], r14
xor edx, edx
mov qword [rbp + 0x158], r8
lea rcx, [rsp + 0x40]
mov byte [rbp + 0x150], 1
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov al, byte [rbp + 0x150]
lea rcx, [rsp + 0x40]
neg al
sbb rdx, rdx
and edx, 0xfdc6
add rdx, 0x208
call fcn.140010e10
test eax, eax
js 0x14001bf0f
mov rax, qword [rbp + 0x148]
lea rdi, [rsp + 0x40]
mov ebx, dword [rbp + 0x158]
test rax, rax
mov rcx, rsi
cmovne rdi, rax
call fcn.140015950
lea r9, [rsp + 0x30]
mov r8, rdi
mov edx, ebx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFullPathNameW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
je 0x14001bfe5
mov rax, qword [rbp + 0x148]
lea rbx, [rsp + 0x40]
test rax, rax
lea rdx, str.._
mov r8d, 4
cmovne rbx, rax
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
nop dword [rax + rax]
test eax, eax
jne 0x14001bf46
add rbx, 8
mov rcx, rsi
mov rdx, rbx
mov qword [rsp + 0x30], rbx
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_wcsstr]
nop dword [rax + rax]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14001bef9
cmp rax, rsi
jbe 0x14001bef9
movzx ebx, word [rax]
mov rcx, rsi
mov word [rax], r14w
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x30]
mov edi, eax
mov word [rcx], bx
cmp eax, 0xffffffff
je 0x14001bf0f
lea rcx, [rsp + 0x40]
call fcn.14001e0bc
mov eax, edi
jmp 0x14001bf1e
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x14001bf12
mov ebx, r14d
lea rcx, [rsp + 0x40]
call fcn.14001e0bc
mov eax, ebx
mov rcx, qword [rbp + 0x3b0]
xor rcx, rsp
call fcn.14001f920
lea r11, [rsp + 0x4c0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x14001bfcc
cmp word [rax], r14w
je 0x14001bfcc
lea rax, [rsp + 0x38]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rcx, [0x14001e0f0]
lea rax, [rbp + 0x160]
mov r8d, 0x1037
mov rdx, rbx
mov qword [rsp + 0x20], rax
call fcn.14001da20
mov rcx, qword [rsp + 0x38]
movzx edi, al
call fcn.140019110
test edi, edi
jne 0x14001bfe5
cmp word [rbx + 2], 0x5c
je 0x14001bfb1
cmp word [rbx + 2], 0x3a
jne 0x14001bfe5
cmp word [rbx + 4], 0x5c
jne 0x14001bfe5
cmp word [rbx + 6], r14w
jne 0x14001bfe5
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetDriveTypeW]
nop dword [rax + rax]
cmp eax, 1
jbe 0x14001bfe5
mov edi, 1
jmp 0x14001bfe5
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
mov edi, r14d
setne dil
mov rcx, qword [rbp + 0x148]
mov qword [rbp + 0x148], r14
test rcx, rcx
je 0x14001bef5
call fcn.14001fe90
jmp 0x14001bef5