Function at 0x14008c880
Capabilities:
Get storage device properties

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x120]
sub rsp, 0x220
mov rax, qword [0x14016b010]
xor rax, rsp
mov qword [rbp + 0x110], rax
mov edi, edx
xorps xmm0, xmm0
movups xmmword [rbp + 0x100], xmm0
mov rax, qword gs:[0x58]
mov rbx, qword [rax]
mov ecx, 0x18
mov eax, dword [rcx + rbx]
mov esi, 0x10
test al, 1
jne 0x14008c8ec
or eax, 1
mov dword [rcx + rbx], eax
xor eax, eax
mov qword [rsi + rbx], rax
call fcn.1400ad5c0
mov qword [rsi + rbx], rax
lea r8, str.Windows::SystemPaths::is_drive_external
mov rdx, qword [rsi + rbx]
lea rcx, [rbp + 0x100]
call fcn.140016d60
nop
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.14008b370
nop
mov r9d, 0x11
lea r8, str..PhysicalDrive
mov rcx, rax
call fcn.140038fa0
xor r14d, r14d
mov qword [rbp + 0xa0], r14
mov qword [rbp + 0xb0], r14
mov qword [rbp + 0xb8], r14
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0xa0], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0xb0], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 7
mov word [rax], r14w
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x14008c9a5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008c9a0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14008cc34
call fcn.1400d45f0
lea rcx, [rbp + 0xa0]
cmp qword [rbp + 0xb8], 8
cmovae rcx, qword [rbp + 0xa0]
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov qword [rbp + 0xd0], rax
cmp rax, 0xffffffffffffffff
je 0x14008cc3a
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0xd8], xmm0
movups xmmword [rbp + 0xe8], xmm0
mov qword [rbp + 0xf8], rax
mov qword [rbp + 0xc0], rax
mov dword [rbp + 0xc8], eax
mov dword [rbp + 0x80], r14d
mov qword [rsp + 0x38], r14
lea rax, [rbp + 0x80]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x28
lea rax, [rbp + 0xd8]
mov qword [rsp + 0x20], rax
mov r9d, 0xc
lea r8, [rbp + 0xc0]
mov edx, 0x2d1400
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x14008cb6c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x14008cc7f
mov esi, dword [rbp + 0xdc]
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x88], xmm0
mov qword [rbp + 0x98], r14
test esi, esi
je 0x14008cacb
lfence
mov ecx, esi
call fcn.140010170
mov qword [rbp + 0x88], rax
lea rbx, [rax + rsi]
mov qword [rbp + 0x98], rbx
mov r8d, esi
xor edx, edx
mov rcx, rax
call fcn.1400d9a00
mov qword [rbp + 0x90], rbx
mov rbx, qword [rbp + 0xd0]
mov qword [rsp + 0x38], r14
lea rax, [rbp + 0x80]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], esi
mov rax, qword [rbp + 0x88]
mov qword [rsp + 0x20], rax
mov r9d, 0xc
lea r8, [rbp + 0xc0]
mov edx, 0x2d1400
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14008ccbe
mov rcx, qword [rbp + 0x88]
movups xmm0, xmmword [rcx]
movups xmmword [rbp + 0xd8], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rbp + 0xe8], xmm1
movsd xmm0, qword [rcx + 0x20]
movsd qword [rbp + 0xf8], xmm0
mov rdx, qword [rbp + 0x98]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008cb67
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14008cd01
call fcn.1400d45f0
cmp dword [rbp + 0x80], 0xc
jb 0x14008cd07
mov eax, dword [rbp + 0xf4]
cmp eax, 7
je 0x14008cb8e
cmp eax, 4
je 0x14008cb8e
xor dil, dil
jmp 0x14008cb91
mov dil, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbp + 0xb8]
cmp rdx, 8
jb 0x14008cbdd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xa0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14008cbd8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14008cc2e
call fcn.1400d45f0
mov qword [rbp + 0xb0], r14
mov qword [rbp + 0xb8], 7
mov word [rbp + 0xa0], r14w
lea rcx, [rbp + 0x100]
call fcn.140016f70
movzx eax, dil
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.1400d45d0
lea r11, [rsp + 0x220]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.1400e6180
nop
call fcn.1400e6180
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp - 0x40]
call fcn.1400155b0
nop
mov r8, rax
lea rdx, str.CreateFileW_failed_to_get_device_handle_with_error:
lea rcx, [rbp - 0x20]
call fcn.140016540
nop
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.140007810
lea rdx, [0x140167958]
lea rcx, [rsp + 0x60]
call fcn.1400d9ba0
nop
mov edx, eax
lea rcx, [rbp]
call fcn.1400155b0
nop
mov r8, rax
lea rdx, str.Call_to_DeviceIoControl_failed_with_error:
lea rcx, [rbp + 0x20]
call fcn.140016540
nop
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.140007810
lea rdx, [0x140167958]
lea rcx, [rsp + 0x78]
call fcn.1400d9ba0
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp + 0x40]
call fcn.1400155b0
nop
mov r8, rax
lea rdx, str.Third_call_to_DeviceIoControl_failed_with_error:
lea rcx, [rbp + 0x60]
call fcn.140016540
nop
mov rdx, rax
lea rcx, [rbp - 0x70]
call fcn.140007810
lea rdx, [0x140167958]
lea rcx, [rbp - 0x70]
call fcn.1400d9ba0
nop
call fcn.1400e6180
int3
lea rdx, str.DeviceIoControl_failed_to_return_expected_buffer_size.
lea rcx, [rbp - 0x58]
call fcn.140007880
lea rdx, [0x140167958]
lea rcx, [rbp - 0x58]
call fcn.1400d9ba0
int3