Function at 0x14017f6c0
Capabilities:
Get common file path
Get storage device properties

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xed0]
sub rsp, 0xfd0
mov rax, qword [0x140418a10]
xor rax, rsp
mov qword [rbp + 0xec0], rax
xor r12d, r12d
xor r14b, r14b
cmp qword [rcx + 0x18], 0x10
mov qword [rcx + 0x10], r12
mov rdi, rcx
jb 0x14017f70b
mov rax, qword [rcx]
jmp 0x14017f70e
mov rax, rcx
lea rcx, [rbp + 0xb0]
or rbx, 0xffffffffffffffff
mov edx, 0x104
mov byte [rax], r12b
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movzx r8d, word [rbp + 0xb0]
lea rdx, str.._c:
lea rcx, [rsp + 0x58]
call fcn.140180100
mov qword [rsp + 0x30], r12
lea r8d, [rbx + 4]
lea rcx, [rsp + 0x58]
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
cmp rax, rbx
je 0x14017f92d
mov qword [rsp + 0x38], r12
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x50]
xor r8d, r8d
mov edx, 0x560000
mov rcx, r15
mov dword [rsp + 0x28], 0x100
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14017f7bb
cmp dword [rsp + 0x40], 0x20
jb 0x14017f7bb
cmp dword [rbp - 0x50], 1
cmove esi, dword [rbp - 0x48]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
js 0x14017f92d
lea rdx, str..PhysicalDrive_d
lea rcx, [rsp + 0x70]
mov r8d, esi
call fcn.140180130
xor r9d, r9d
mov qword [rsp + 0x30], r12
lea rcx, [rsp + 0x70]
lea r8d, [r9 + 3]
xor edx, edx
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14017f92d
lea rcx, [rbp + 0x2c1]
xor edx, edx
mov r8d, 0xbff
mov byte [rbp + 0x2c0], r12b
call fcn.1402c22a0
xor eax, eax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x4c], rax
mov qword [rsp + 0x38], r12
lea rax, [rsp + 0x40]
lea r8, [rsp + 0x48]
mov r9d, 0xc
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x2c0]
mov edx, 0x2d1400
mov rcx, rsi
mov dword [rsp + 0x28], 0xc00
mov dword [rsp + 0x48], r12d
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14017f924
mov eax, dword [rbp + 0x2cc]
test eax, eax
je 0x14017f8b5
lea rdx, [rbp + 0x2c0]
add rdx, rax
cmp byte [rdx], r12b
jne 0x14017f8a1
mov r8, r12
jmp 0x14017f8ad
mov r8, rbx
inc r8
cmp byte [rdx + r8], r12b
jne 0x14017f8a4
mov rcx, rdi
call fcn.1400b7f00
mov eax, dword [rbp + 0x2d0]
test eax, eax
je 0x14017f8e7
lea rdx, [rbp + 0x2c0]
add rdx, rax
cmp byte [rdx], r12b
jne 0x14017f8d3
mov r8, r12
jmp 0x14017f8df
mov r8, rbx
inc r8
cmp byte [rdx + r8], r12b
jne 0x14017f8d6
mov rcx, rdi
call fcn.1400b7f00
mov eax, dword [rbp + 0x2d8]
test eax, eax
je 0x14017f924
lea rdx, [rbp + 0x2c0]
add rdx, rax
nop dword [rax + rax]
inc rbx
cmp byte [rdx + rbx], r12b
jne 0x14017f900
cmp rbx, 6
jbe 0x14017f924
cmp byte [rdx], r12b
mov rcx, rdi
cmove rbx, r12
mov r8, rbx
call fcn.1400b7f00
mov r14b, 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, r14b
mov rcx, qword [rbp + 0xec0]
xor rcx, rsp
call fcn.1402b9610
lea r11, [rsp + 0xfd0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret