Function at 0x14000cdb0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xc0
mov rax, qword [0x1400131e8]
xor rax, rsp
mov qword [rbp + 0x27], rax
and dword [rbp - 0x45], 0
mov r15, rdx
mov rbx, rcx
xor r14d, r14d
xor edx, edx
lea rcx, [rbp - 0x19]
or rsi, 0xffffffffffffffff
lea r8d, [r14 + 0x40]
call sub.msvcrt.dll_memset
movups xmm0, xmmword [rbx]
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rbp - 0x41], xmm0
movsd xmm0, qword [rbx + 0x20]
movsd qword [rbp - 0x21], xmm0
movups xmmword [rbp - 0x31], xmm1
cmp byte [rbp - 0x1d], r14b
je 0x14000cece
mov r9d, dword [r15 + 0x70]
cmp r9d, 0xffffffff
je 0x14000cece
lea r8, str..PhysicalDrive_d
lea edx, [rsi + 0x21]
lea rcx, [rbp - 0x19]
call fcn.140009748
and qword [rsp + 0x30], r14
lea r8d, [r14 + 7]
mov dword [rsp + 0x28], 0x80
lea rcx, [rbp - 0x19]
xor r9d, r9d
mov dword [rsp + 0x20], 3
mov edx, 0xc0000000
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
nop dword [rax + rax]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000ce82
xor ebx, ebx
lea rdi, str.CreateFile
jmp 0x14000cf4c
and qword [rsp + 0x38], r14
lea rax, [rbp - 0x49]
and dword [rbp - 0x49], r14d
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
and dword [rsp + 0x28], r14d
mov edx, 0x70140
and qword [rsp + 0x20], r14
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_io_l1_1_0.dll_DeviceIoControl]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x14000ceca
lea rdi, str.SiUpdateProperties
jmp 0x14000cf4c
mov byte [rbp - 0x1d], r14b
and qword [rsp + 0x38], r14
lea rax, [rbp - 0x45]
mov r9d, dword [rbp - 0x41]
lea r8, [rbp - 0x41]
mov rcx, qword [0x140013208]
mov edx, 0xe7041c
mov qword [rsp + 0x30], rax
and dword [rsp + 0x28], r14d
and qword [rsp + 0x20], r14
call qword [sym.imp.api_ms_win_core_io_l1_1_0.dll_DeviceIoControl]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x14000cfa3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x48f
je 0x14000cf90
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x37
je 0x14000cf90
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
je 0x14000cf90
lea rdi, str.DeviceIoControl___IOCTL_SPACEPORT_REFRESH_DRIVE
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test byte [0x140013ac0], 2
mov r14d, eax
je 0x14000cfa3
mov dword [rsp + 0x38], eax
lea rcx, [r15 + 0x38]
mov qword [rsp + 0x30], rdi
lea rax, str.SiRefreshDrive
mov qword [rsp + 0x28], rcx
lea rdx, [0x14000fff8]
mov qword [rsp + 0x20], rax
call fcn.14000b5fc
jmp 0x14000cfa3
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov ebx, 1
cmp rsi, 0xffffffffffffffff
je 0x14000cfb8
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
test ebx, ebx
jne 0x14000cfcb
mov ecx, r14d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140001740
mov rbx, qword [rsp + 0x100]
add rsp, 0xc0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret