Function at 0x1401ed000
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 [0x140672360]
xor rax, rsp
mov qword [rbp + 0xec0], rax
xor sil, sil
mov rdi, rcx
cmp qword [rcx + 0x18], 0x10
mov rax, rcx
jb 0x1401ed045
mov rax, qword [rcx]
xor r12d, r12d
mov rbx, 0xffffffffffffffff
mov qword [rcx + 0x10], r12
mov edx, 0x104
lea rcx, [rbp + 0xb0]
mov byte [rax], sil
mov r14d, ebx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movzx r8d, word [rbp + 0xb0]
lea rdx, str.._c:
lea rcx, [rsp + 0x58]
call fcn.1401ed2a0
mov qword [rsp + 0x30], r12
lea r8d, [r12 + 3]
mov dword [rsp + 0x28], r12d
lea rcx, [rsp + 0x58]
xor r9d, r9d
mov dword [rsp + 0x20], 3
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
cmp rax, rbx
je 0x1401ed269
mov qword [rsp + 0x38], r12
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rax
xor r9d, r9d
lea rax, [rbp - 0x50]
mov dword [rsp + 0x28], 0x100
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x560000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1401ed0ff
cmp dword [rsp + 0x44], 0x20
jb 0x1401ed0ff
cmp dword [rbp - 0x50], 1
cmove r14d, dword [rbp - 0x48]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r14d, r14d
js 0x1401ed269
lfence
mov r8d, r14d
lea rdx, str..PhysicalDrive_d
lea rcx, [rsp + 0x70]
call fcn.1401d7680
xor r9d, r9d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
lea rcx, [rsp + 0x70]
xor edx, edx
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, rbx
je 0x1401ed269
xor edx, edx
lea rcx, [rbp + 0x2c0]
mov r8d, 0xc00
call fcn.14035c350
mov qword [rsp + 0x38], r12
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x48]
lea rax, [rbp + 0x2c0]
mov dword [rsp + 0x28], 0xc00
mov r9d, 0xc
mov qword [rsp + 0x20], rax
mov edx, 0x2d1400
mov qword [rsp + 0x4c], r12
mov rcx, r14
mov dword [rsp + 0x48], r12d
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1401ed260
mov rax, qword [rbp + 0x2cc]
test eax, eax
je 0x1401ed1f1
cmp eax, dword [rsp + 0x40]
jae 0x1401ed1f1
mov eax, eax
lea rdx, [rbp + 0x2c0]
add rdx, rax
mov r8, rbx
nop dword [rax]
inc r8
cmp byte [rdx + r8], sil
jne 0x1401ed1e0
mov rcx, rdi
call fcn.1400729d0
mov rax, qword [rbp + 0x2d0]
test eax, eax
je 0x1401ed222
cmp eax, dword [rsp + 0x40]
jae 0x1401ed222
mov eax, eax
lea rdx, [rbp + 0x2c0]
add rdx, rax
mov r8, rbx
inc r8
cmp byte [rdx + r8], sil
jne 0x1401ed211
mov rcx, rdi
call fcn.1400729d0
mov rax, qword [rbp + 0x2d8]
test eax, eax
je 0x1401ed260
cmp eax, dword [rsp + 0x40]
jae 0x1401ed260
mov eax, eax
lea rdx, [rbp + 0x2c0]
add rdx, rax
nop
inc rbx
cmp byte [rdx + rbx], sil
jne 0x1401ed240
cmp rbx, 6
jbe 0x1401ed260
lfence
mov r8, rbx
mov rcx, rdi
call fcn.1400729d0
mov sil, 1
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, sil
mov rcx, qword [rbp + 0xec0]
xor rcx, rsp
call fcn.140359070
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