Function at 0x14006deb8
Capabilities:
Get disk information via ioctl
Get storage device properties

Disassembly:
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1570
call fcn.1401b8d00
sub rsp, rax
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x15a8], rbx
mov qword [rsp + 0x15b0], rbp
mov qword [rsp + 0x15b8], rsi
mov rax, qword [0x14028b7c8]
xor rax, rsp
mov qword [rsp + 0x1560], rax
mov rbx, rcx
xor r15d, r15d
or rdi, 0xffffffffffffffff
mov rbp, qword [rsp + 0x50]
mov r9d, r15d
lea r8, str..PhysicalDrive_d
mov edx, 0x80
lea rcx, [rsp + 0x12e0]
call fcn.140044464
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [r9 + 3]
lea rcx, [rsp + 0x12e0]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r14, rax
cmp rax, rdi
je 0x14006e8e6
and dword [rsp + 0x78], 0
and dword [rsp + 0x7c], 0
xor r12d, r12d
xor r13d, r13d
xor edi, edi
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x200
lea rax, [rsp + 0x1360]
mov qword [rsp + 0x20], rax
lea r9d, [r12 + 0xc]
lea r8, [rsp + 0x78]
mov edx, 0x2d1400
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, edi
je 0x14006dfd3
lea rbp, [rsp + 0x1360]
lea r13, [rsp + 0x1388]
mov r12d, dword [rsp + 0x137c]
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x2d1080
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov esi, edi
cmp eax, edi
cmovne esi, dword [rsp + 0x64]
mov ecx, r12d
sub ecx, 7
je 0x14006e5ed
sub ecx, 9
je 0x14006e8d9
cmp ecx, 1
je 0x14006e435
xor edx, edx
mov r8d, 0x200
lea rcx, [rsp + 0xe0]
call fcn.140158a90
mov dword [rsp + 0x30], 0x200
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x28], rax
mov byte [rsp + 0x20], dil
mov r9b, 0xec
mov r8d, r15d
mov rdx, r14
mov rcx, rbx
call fcn.1400a68f8
cmp eax, edi
je 0x14006e0e9
lea rdx, [rsp + 0xe0]
mov rcx, rbx
call fcn.14006c650
cmp eax, edi
je 0x14006e0e9
mov ecx, 0x130
call fcn.14013f12c
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14006e0bd
or rcx, 0xffffffffffffffff
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], ecx
mov r9d, ecx
mov r8d, esi
mov edx, r15d
mov rcx, rax
call fcn.1400a7274
mov rdi, rax
jmp 0x14006e0bf
xor edi, edi
mov dword [rdi + 0xfc], r12d
mov rdx, rdi
mov rcx, rbx
call fcn.14006cb60
lea r8, [rsp + 0xe0]
mov rdx, rdi
mov rcx, rbx
call fcn.14006c6f4
jmp 0x14006e8d9
xor edx, edx
mov r8d, 0x200
lea rcx, [rsp + 0xe0]
call fcn.140158a90
mov dword [rsp + 0x30], 0x200
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x28], rax
mov byte [rsp + 0x20], dil
mov r9b, 0xec
mov r8d, r15d
mov rdx, r14
mov rcx, rbx
call fcn.1400a67c8
cmp eax, edi
je 0x14006e1a3
lea rdx, [rsp + 0xe0]
mov rcx, rbx
call fcn.14006c650
cmp eax, edi
je 0x14006e1a3
mov ecx, 0x130
call fcn.14013f12c
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14006e177
or rcx, 0xffffffffffffffff
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], ecx
mov r9d, ecx
mov r8d, esi
mov edx, r15d
mov rcx, rax
call fcn.1400a7274
mov rdi, rax
jmp 0x14006e179
xor edi, edi
mov dword [rdi + 0xfc], r12d
mov rdx, rdi
mov rcx, rbx
call fcn.14006cb60
lea r8, [rsp + 0xe0]
mov rdx, rdi
mov rcx, rbx
call fcn.14006c6f4
jmp 0x14006e35e
xor edx, edx
mov r8d, 0x200
lea rcx, [rsp + 0xe0]
call fcn.140158a90
mov dword [rsp + 0x30], 0x200
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x28], rax
mov byte [rsp + 0x20], dil
mov r9b, 0xec
mov r8d, r15d
mov rdx, r14
mov rcx, rbx
call fcn.1400a6a60
cmp eax, edi
je 0x14006e27a
lea rdx, [rsp + 0xe0]
mov rcx, rbx
call fcn.14006c650
cmp eax, edi
je 0x14006e27a
mov ecx, 0x130
call fcn.14013f12c
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14006e235
or rcx, 0xffffffffffffffff
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], ecx
mov r9d, ecx
mov r8d, esi
mov edx, r15d
mov rcx, rax
call fcn.1400a7274
mov rdi, rax
jmp 0x14006e237
xor edi, edi
mov dword [rdi + 0xfc], r12d
mov r9d, dword [rdi + 0x28]
lea r8, str.HDD__d
mov edx, 0x200
mov rcx, qword [rdi + 0x50]
call fcn.140044464
mov rdx, rdi
mov rcx, rbx
call fcn.14006cb60
lea r8, [rsp + 0xe0]
mov rdx, rdi
mov rcx, rbx
call fcn.14006c6f4
jmp 0x14006e35e
mov ecx, 0x130
call fcn.14013f12c
mov qword [rsp + 0x40], rax
cmp rax, rdi
je 0x14006e2ae
or rcx, 0xffffffffffffffff
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], ecx
mov r9d, ecx
mov r8d, esi
mov edx, r15d
mov rcx, rax
call fcn.1400a7274
mov rdi, rax
mov dword [rdi + 0xfc], r12d
test r13, r13
je 0x14006e331
mov rcx, r13
call fcn.140159970
mov r13d, 0x200
cmp rax, r13
jae 0x14006e337
mov eax, dword [rbp + 0xc]
test eax, eax
je 0x14006e2ea
cmp eax, dword [rbp + 4]
jae 0x14006e2ea
lea r8, [rbp + rax]
mov rdx, r13
mov rcx, qword [rdi + 0x50]
call fcn.140158644
mov eax, dword [rbp + 0x10]
test eax, eax
je 0x14006e337
cmp eax, dword [rbp + 4]
jae 0x14006e337
lea rsi, [rbp + rax]
mov rcx, qword [rdi + 0x50]
cmp byte [rcx], 0
je 0x14006e324
lea r8, [0x1401db000]
mov rdx, r13
call fcn.14004453c
mov r8, rsi
mov rdx, r13
mov rcx, qword [rdi + 0x50]
call fcn.14004453c
jmp 0x14006e337
mov r8, rsi
mov rdx, r13
call fcn.140158644
jmp 0x14006e337
mov r13d, 0x200
mov rcx, qword [rdi + 0x50]
cmp byte [rcx], 0
jne 0x14006e353
mov r9d, dword [rdi + 0x28]
lea r8, str.HDD__d
mov rdx, r13
call fcn.140044464
mov rdx, rdi
mov rcx, rbx
call fcn.14006cb60
cmp r12d, 9
je 0x14006e36e
cmp r12d, 0xa
jne 0x14006e8d9
and dword [rdi + 0x118], 0
xor edx, edx
lea r8d, [rdx + 0x44]
lea rcx, [rsp + 0x90]
call fcn.140158a90
lea r9, [rsp + 0x90]
xor r8d, r8d
mov rdx, r14
mov rcx, rbx
call fcn.1400a70d4
test eax, eax
je 0x14006e8d9
movzx esi, byte [rsp + 0x92]
shl esi, 8
movzx eax, byte [rsp + 0x93]
add esi, eax
mov r12d, 0x40
cmp esi, r12d
cmovg esi, r12d
mov dword [rdi + 0x118], esi
cmp qword [rdi + 0x120], 0
jne 0x14006e3fd
movsxd rcx, esi
lea eax, [r12 - 0x38]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14013f170
mov qword [rdi + 0x120], rax
xor edx, edx
movsxd r8, esi
test esi, esi
jle 0x14006e8d9
movzx ecx, byte [rsp + rdx + 0x94]
mov rax, qword [rdi + 0x120]
mov dword [rax + rdx*8], ecx
mov rax, qword [rdi + 0x120]
and dword [rax + rdx*8 + 4], 0
inc rdx
cmp rdx, r8
jl 0x14006e40a
jmp 0x14006e8d9
mov ecx, 0x130
call fcn.14013f12c
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14006e46b
or rcx, 0xffffffffffffffff
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], ecx
mov r9d, ecx
mov r8d, esi
mov edx, r15d
mov rcx, rax
call fcn.1400a7274
mov rdi, rax
jmp 0x14006e46d
xor edi, edi
mov r9d, dword [rdi + 0x28]
lea r8, str.NVMe_Drive__d
mov r12d, 0x200
mov rdx, r12
mov rcx, qword [rdi + 0x50]
call fcn.140044464
mov dword [rdi + 0xfc], 0x11
or dword [rdi + 0x44], 1
mov rdx, rdi
mov rcx, rbx
call fcn.14006cb60
lea r8, [rsp + 0x2e0]
mov rdx, r14
mov rcx, rbx
call fcn.1400a8128
test eax, eax
je 0x14006e4d9
mov dword [rdi + 0x48], 1
lea r8, [rsp + 0x2e0]
mov rdx, rdi
mov rcx, rbx
call fcn.1400a9a94
jmp 0x14006e8d9
lea r8, [rsp + 0x2e0]
mov rdx, r14
mov rcx, rbx
call fcn.1400a8398
test eax, eax
je 0x14006e50f
mov dword [rdi + 0x48], 2
lea r8, [rsp + 0x2e0]
mov rdx, rdi
mov rcx, rbx
call fcn.1400a9a94
jmp 0x14006e8d9
lea r8, [rsp + 0x2e0]
mov rdx, r14
mov rcx, rbx
call fcn.1400a890c
test eax, eax
je 0x14006e545
mov dword [rdi + 0x48], 3
lea r8, [rsp + 0x2e0]
mov rdx, rdi
mov rcx, rbx
call fcn.1400a9a94
jmp 0x14006e8d9
lea r8, [rsp + 0x2e0]
mov rdx, r14
mov rcx, rbx
call fcn.1400a9b30
test eax, eax
je 0x14006e57b
mov dword [rdi + 0x48], 4
lea r8, [rsp + 0x2e0]
mov rdx, rdi
mov rcx, rbx
call fcn.1400a9a94
jmp 0x14006e8d9
mov eax, dword [rbp + 0xc]
test eax, eax
je 0x14006e598
cmp eax, dword [rbp + 4]
jae 0x14006e598
lea r8, [rbp + rax]
mov rdx, r12
mov rcx, qword [rdi + 0x50]
call fcn.140158644
mov eax, dword [rbp + 0x10]
test eax, eax
je 0x14006e8d9
cmp eax, dword [rbp + 4]
jae 0x14006e8d9
lea rsi, [rbp + rax]
mov rcx, qword [rdi + 0x50]
cmp byte [rcx], 0
je 0x14006e5dd
lea r8, [0x1401db000]
mov rdx, r12
call fcn.14004453c
mov r8, rsi
mov rdx, r12
mov rcx, qword [rdi + 0x50]
call fcn.14004453c
jmp 0x14006e8d9
mov r8, rsi
mov rdx, r12
call fcn.140158644
jmp 0x14006e8d9
bt dword [rbx + 0x18], 0x1a
jae 0x14006e8d9
mov ecx, 0x130
call fcn.14013f12c
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14006e62e
or rcx, 0xffffffffffffffff
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], ecx
mov r9d, ecx
mov r8d, esi
mov edx, r15d
mov rcx, rax
call fcn.1400a7274
mov rdi, rax
jmp 0x14006e630
xor edi, edi
mov r9d, dword [rdi + 0x28]
lea r8, str.USB_Drive__d
mov r12d, 0x200
mov rdx, r12
mov rcx, qword [rdi + 0x50]
call fcn.140044464
mov dword [rdi + 0xfc], 7
mov rdx, rdi
mov rcx, rbx
call fcn.14006cb60
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x50]
mov edx, esi
mov rcx, rbx
call fcn.1400a5f2c
mov r8, r12
xor edx, edx
lea rcx, [rsp + 0xe0]
call fcn.140158a90
mov dword [rsp + 0x38], r12d
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], 0
mov byte [rsp + 0x20], 0xec
mov r9d, 4
mov r8d, r15d
mov rdx, r14
mov rcx, rbx
call fcn.1400a6e28
test eax, eax
je 0x14006e6ec
lea rdx, [rsp + 0xe0]
mov rcx, rbx
call fcn.14006c650
test eax, eax
je 0x14006e6ec
mov dword [rdi + 0x48], 4
lea r8, [rsp + 0xe0]
mov rdx, rdi
call fcn.14006c6f4
jmp 0x14006e8d9
mov r8, r12
xor edx, edx
lea rcx, [rsp + 0xe0]
call fcn.140158a90
mov dword [rsp + 0x38], r12d
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], 0
mov byte [rsp + 0x20], 0xec
mov r9d, 5
mov r8d, r15d
mov rdx, r14
mov rcx, rbx
call fcn.1400a6e28
test eax, eax
je 0x14006e762
lea rdx, [rsp + 0xe0]
mov rcx, rbx
call fcn.14006c650
test eax, eax
je 0x14006e762
mov dword [rdi + 0x48], 5
lea r8, [rsp + 0xe0]
mov rdx, rdi
call fcn.14006c6f4
jmp 0x14006e8d9
mov r8, r12
xor edx, edx
lea rcx, [rsp + 0xe0]
call fcn.140158a90
mov dword [rsp + 0x38], r12d
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], 0
mov byte [rsp + 0x20], 0xec
mov r9d, 6
mov r8d, r15d
mov rdx, r14
mov rcx, rbx
call fcn.1400a6e28
test eax, eax
je 0x14006e7d8
lea rdx, [rsp + 0xe0]
mov rcx, rbx
call fcn.14006c650
test eax, eax
je 0x14006e7d8
mov dword [rdi + 0x48], 6
lea r8, [rsp + 0xe0]
mov rdx, rdi
call fcn.14006c6f4
jmp 0x14006e8d9
lea r8, [rsp + 0x2e0]
mov rdx, r14
mov rcx, rbx
call fcn.1400a92ec
test eax, eax
je 0x14006e80e
mov dword [rdi + 0x48], reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [rsp + 0x2e0]
mov rdx, rdi
mov rcx, rbx
call fcn.1400a9a94
jmp 0x14006e8d9
lea r8, [rsp + 0x2e0]
mov rdx, r14
mov rcx, rbx
call fcn.1400a9054
test eax, eax
je 0x14006e844
mov dword [rdi + 0x48], VariantTimeToDosDateTime
lea r8, [rsp + 0x2e0]
mov rdx, rdi
mov rcx, rbx
call fcn.1400a9a94
jmp 0x14006e8d9
lea r8, [rsp + 0x2e0]
mov rdx, r14
mov rcx, rbx
call fcn.1400a956c
test eax, eax
je 0x14006e877
mov dword [rdi + 0x48], 0xd
lea r8, [rsp + 0x2e0]
mov rdx, rdi
mov rcx, rbx
call fcn.1400a9a94
jmp 0x14006e8d9
mov eax, dword [rbp + 0xc]
test eax, eax
je 0x14006e894
cmp eax, dword [rbp + 4]
jae 0x14006e894
lea r8, [rbp + rax]
mov rdx, r12
mov rcx, qword [rdi + 0x50]
call fcn.140158644
mov eax, dword [rbp + 0x10]
test eax, eax
je 0x14006e8d9
cmp eax, dword [rbp + 4]
jae 0x14006e8d9
lea rsi, [rbp + rax]
mov rcx, qword [rdi + 0x50]
cmp byte [rcx], 0
je 0x14006e8ce
lea r8, [0x1401db000]
mov rdx, r12
call fcn.14004453c
mov r8, rsi
mov rdx, r12
mov rcx, qword [rdi + 0x50]
call fcn.14004453c
jmp 0x14006e8d9
mov r8, rsi
mov rdx, r12
call fcn.140158644
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or rdi, 0xffffffffffffffff
inc r15d
cmp r15d, 0x38
jl 0x14006df11
mov eax, 1
mov rcx, qword [rsp + 0x1560]
xor rcx, rsp
call fcn.140156fd0
lea r11, [rsp + 0x1570]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret