Function at 0x140001458
Capabilities:
Get storage device properties

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor edi, edi
xor r9d, r9d
mov qword [r11 - 0x58], rdi
xor edx, edx
mov dword [rsp + 0x28], edi
mov rbx, rcx
lea r8d, [rdi + 3]
mov dword [r11 - 0x68], r8d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400014b9
mov rdx, rbx
lea rcx, str.Failed_to_open_the_drive__ws___n
call fcn.140001008
xor eax, eax
jmp 0x140001692
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x48]
lea rax, [rsp + 0x58]
mov dword [rsp + 0x28], 8
mov r9d, 0xc
mov qword [rsp + 0x20], rax
mov edx, 0x2d1400
mov qword [rsp + 0x4c], rdi
mov rcx, rsi
mov dword [rsp + 0x48], edi
mov qword [rsp + 0x58], rdi
mov dword [rsp + 0x40], edi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov r14d, eax
test eax, eax
jne 0x14000152b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.IOCTL_STORAGE_QUERY_PROPERTY_failed___ErrorCode:__u__n
call fcn.140001008
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400014b2
mov ebp, dword [rsp + 0x5c]
test ebp, ebp
jne 0x140001544
lea rcx, str.IOCTL_STORAGE_QUERY_PROPERTY_failed___STORAGE_DESCRIPTOR_HEADER_size__0_
call fcn.14000d884
jmp 0x140001687
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x140001576
mov edx, ebp
lea rcx, str.HeapAlloc_failed___tried_to_allocate__u_bytes__n
call fcn.140001008
jmp 0x140001684
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x48]
mov dword [rsp + 0x28], ebp
mov r9d, 0xc
mov edx, 0x2d1400
mov qword [rsp + 0x20], rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov r14d, eax
test eax, eax
jne 0x1400015c7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.IOCTL_STORAGE_QUERY_PROPERTY_failed___ErrorCode:__u__n
call fcn.140001008
jmp 0x140001670
mov rax, rdi
cmp dword [rbx + 0x10], edi
je 0x1400015d5
mov eax, dword [rbx + 0x10]
add rax, rbx
test rax, rax
lea rbp, [0x140024ac0]
mov rdx, rbp
lea rcx, str.ProductID______________s_n
cmovne rdx, rax
call fcn.14000105c
mov rax, rdi
cmp dword [rbx + 0x14], edi
je 0x140001600
mov eax, dword [rbx + 0x14]
add rax, rbx
test rax, rax
lea rcx, str.ProductRevision________s_n
cmovne rbp, rax
mov rdx, rbp
call fcn.14000105c
movzx edx, byte [rbx + 8]
lea rcx, str.DeviceType_____________u_n
call fcn.14000105c
movzx edx, byte [rbx + 9]
lea rcx, str.DeviceTypeModifier_____u_n
call fcn.14000105c
mov cl, byte [rbx + 0x1c]
call fcn.140001310
mov edx, dword [rbx + 0x1c]
lea rcx, [0x140024b48]
mov r8, rax
call fcn.14000105c
movzx edx, byte [rbx + 0xb]
lea rcx, [0x140024b70]
call fcn.14000105c
movzx edx, byte [rbx + 0xa]
lea rcx, str.RemovableMedia_________ld_n_n
call fcn.14000105c
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, r14d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400021d0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret