Function at 0x140008cb0
Capabilities:
Get storage device properties

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rbp
push rdi
push r14
lea rbp, [rsp - 0x4390]
mov eax, 0x4490
call fcn.14002ef70
sub rsp, rax
xorps xmm0, xmm0
mov dword [rbp + 0x184], 0x104
lea rax, [rbp + 0x188]
mov rbx, rdx
mov qword [rbp + 0x178], rax
lea rcx, [rbp + 0x390]
lea rax, [0x1401b6698]
xor r14d, r14d
xor edx, edx
mov qword [rbp + 0x170], rax
mov r8d, 0x4000
mov dword [rbp + 0x180], r14d
mov word [rbp + 0x188], r14w
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
call fcn.14014d290
mov rax, qword [rbx + 8]
mov dword [rbp + 0x43b0], r14d
mov dword [rbx + 0x10], r14d
test rax, rax
je 0x140008d47
mov word [rax], r14w
mov r8d, 0x43
lea rdx, str.._c:
lea rcx, [rbp + 0x170]
call fcn.140003670
mov rcx, qword [rbp + 0x178]
xor r9d, r9d
mov qword [rsp + 0x30], r14
xor edx, edx
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140008df1
mov qword [rsp + 0x38], r14
lea rax, [rbp + 0x43b0]
mov qword [rsp + 0x30], rax
xor r9d, r9d
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], 0x20
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x560000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, rdi
test eax, eax
jne 0x140008deb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rbx, qword [rsp + 0x44c0]
add rsp, 0x4490
pop r14
pop rdi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, dword [rsp + 0x58]
lea rdx, str..PHYSICALDRIVE_u
lea rcx, [rbp + 0x170]
mov qword [rsp + 0x44b8], rsi
call fcn.140003670
mov rcx, qword [rbp + 0x178]
xor r9d, r9d
mov qword [rsp + 0x30], r14
xor edx, edx
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140008f87
xor eax, eax
mov qword [rsp + 0x38], r14
lea rdi, [rsp + 0x40]
mov ecx, 3
rep stosd dword [rdi], eax
lea rdi, [rbp + 0x390]
mov qword [rsp + 0x40], r14
mov ecx, 0x1000
lea r8, [rsp + 0x40]
rep stosd dword [rdi], eax
lea rax, [rbp + 0x43b0]
mov r9d, recv
mov qword [rsp + 0x30], rax
mov edx, 0x2d1400
lea rax, [rbp + 0x390]
mov dword [rsp + 0x28], 0x4000
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140008f7e
cmp dword [rbp + 0x43b0], 0x28
jb 0x140008f7e
xor edx, edx
lea rcx, [rbp + 0x70]
mov r8d, 0x100
call fcn.14014d290
xor edx, edx
lea rcx, [rsp + 0x70]
mov r8d, 0x100
call fcn.14014d290
mov rax, qword [rbp + 0x39c]
test eax, eax
je 0x140008f06
mov edx, 0x100
mov eax, eax
lea r8, [rbp + 0x390]
add r8, rax
lea rcx, [rbp + 0x70]
lea r9d, [rdx - 1]
call fcn.14003fbbc
mov rax, qword [rbp + 0x3a0]
test eax, eax
je 0x140008f30
mov edx, 0x100
mov eax, eax
lea r8, [rbp + 0x390]
add r8, rax
lea rcx, [rsp + 0x70]
lea r9d, [rdx - 1]
call fcn.14003fbbc
cmp byte [rbp + 0x70], r14b
je 0x140008f63
lea r8, [rbp + 0x70]
mov rcx, rbx
cmp byte [rsp + 0x70], r14b
je 0x140008f57
lea r9, [rsp + 0x70]
lea rdx, str._S__S
call fcn.140003670
jmp 0x140008f7e
lea rdx, [0x1401b97e4]
call fcn.140003670
cmp byte [rsp + 0x70], r14b
je 0x140008f7e
lea r8, [rsp + 0x70]
mov rcx, rbx
lea rdx, [0x1401b97e4]
call fcn.140003670
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rbx + 0x10], 1
mov rsi, qword [rsp + 0x44b8]
jb 0x140008dd5
mov rax, qword [rbx + 8]
test rax, rax
je 0x140008dd5
cmp word [rax], r14w
je 0x140008dd5
mov al, 1
jmp 0x140008dd7