Function at 0x14005bc60
Capabilities:
Get storage device properties

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rdi
sub rsp, 0x368
mov rax, qword [0x140230a00]
xor rax, rsp
mov qword [rsp + 0x350], rax
mov dword [rsp + 0x40], 1
lea rax, [rsp + 0x44]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x45]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x46]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rsp + 0x44]
movzx r8d, byte [rsp + 0x45]
movzx edx, byte [rsp + 0x46]
lea rcx, [rsp + 0x190]
call fcn.1400572b0
mov rcx, rax
call fcn.14005b9f0
mov rdx, rax
mov rcx, qword [rsp + 0x380]
call fcn.140002510
nop
mov eax, dword [rsp + 0x40]
or eax, 1
mov dword [rsp + 0x40], eax
call fcn.140057060
mov qword [rsp + 0xa0], rax
lea rax, [rsp + 0x47]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x48]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x49]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rsp + 0x47]
movzx r8d, byte [rsp + 0x48]
movzx edx, byte [rsp + 0x49]
lea rcx, [rsp + 0x2c0]
call fcn.140057340
mov rcx, rax
call fcn.14005bab0
mov rdx, rax
lea rcx, [rsp + 0x1a0]
call fcn.140002510
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x90], rax
mov rcx, qword [rsp + 0x90]
call fcn.1400024a0
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 3
xor edx, edx
mov rcx, qword [rsp + 0x98]
call qword [rsp + 0xa0]
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x1a0]
call fcn.1400024b0
cmp qword [rsp + 0x68], 0xffffffffffffffff
jne 0x14005be1f
mov dword [rsp + 0x40], 0
mov eax, dword [rsp + 0x40]
and eax, 1
test eax, eax
je 0x14005be12
and dword [rsp + 0x40], 0xfffffffe
mov rcx, qword [rsp + 0x380]
call fcn.1400024b0
mov rax, qword [rsp + 0x380]
jmp 0x14005c381
lea rax, [rsp + 0x308]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov dword [rsp + 0x308], 0
mov dword [rsp + 0x30c], 0
lea rax, [rsp + 0x318]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
mov dword [rsp + 0x300], 0
call fcn.140056be0
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x300]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 8
lea rax, [rsp + 0x318]
mov qword [rsp + 0x20], rax
mov r9d, 0xc
lea r8, [rsp + 0x308]
mov edx, 0x2d1400
mov rcx, qword [rsp + 0x68]
call qword [rsp + 0xa8]
mov eax, dword [rsp + 0x31c]
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x58]
mov ecx, eax
call fcn.14007a280
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x58]
mov qword [rsp + 0xb8], rax
mov rdi, qword [rsp + 0x50]
xor eax, eax
mov rcx, qword [rsp + 0xb8]
rep stosb byte [rdi], al
call fcn.140056be0
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x300]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0xc
lea r8, [rsp + 0x308]
mov edx, 0x2d1400
mov rcx, qword [rsp + 0x68]
call qword [rsp + 0xc0]
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
cmp dword [rax + 0x18], 0
je 0x14005bfce
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x18]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov rdx, rax
lea rcx, [rsp + 0x1c0]
call fcn.140002510
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0xd0], rax
mov rdx, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0x380]
call fcn.14003a6e0
nop
lea rcx, [rsp + 0x1c0]
call fcn.1400024b0
mov rax, qword [rsp + 0x60]
cmp dword [rax + 0x14], 0
je 0x14005c037
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x14]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov rdx, rax
lea rcx, [rsp + 0x1e0]
call fcn.140002510
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0xe0], rax
mov rdx, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0x380]
call fcn.14003a6e0
nop
lea rcx, [rsp + 0x1e0]
call fcn.1400024b0
mov rax, qword [rsp + 0x60]
cmp dword [rax + 0x10], 0
je 0x14005c0a0
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x10]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov rdx, rax
lea rcx, [rsp + 0x200]
call fcn.140002510
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0xf0], rax
mov rdx, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0x380]
call fcn.14003a6e0
nop
lea rcx, [rsp + 0x200]
call fcn.1400024b0
xor eax, eax
xor ecx, ecx
cpuid
lea rdi, [rsp + 0x340]
mov dword [rdi], eax
mov dword [rdi + 4], ebx
mov dword [rdi + 8], ecx
mov dword [rdi + 0xc], edx
lea rcx, [rsp + 0x320]
call fcn.140007110
nop
mov eax, 4
imul rax, rax, 1
lea rax, [rsp + rax + 0x340]
mov r8d, 4
mov rdx, rax
lea rcx, [rsp + 0x168]
call fcn.1400228d0
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x100], rax
mov rdx, qword [rsp + 0x100]
lea rcx, [rsp + 0x320]
call fcn.14003a6e0
nop
lea rcx, [rsp + 0x168]
call fcn.1400024b0
mov eax, 4
imul rax, rax, 3
lea rax, [rsp + rax + 0x340]
mov r8d, 4
mov rdx, rax
lea rcx, [rsp + 0x220]
call fcn.1400228d0
mov qword [rsp + 0x108], rax
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0x110], rax
mov rdx, qword [rsp + 0x110]
lea rcx, [rsp + 0x320]
call fcn.14003a6e0
nop
lea rcx, [rsp + 0x220]
call fcn.1400024b0
mov eax, 4
imul rax, rax, 2
lea rax, [rsp + rax + 0x340]
mov r8d, 4
mov rdx, rax
lea rcx, [rsp + 0x240]
call fcn.1400228d0
mov qword [rsp + 0x118], rax
mov rax, qword [rsp + 0x118]
mov qword [rsp + 0x120], rax
mov rdx, qword [rsp + 0x120]
lea rcx, [rsp + 0x320]
call fcn.14003a6e0
nop
lea rcx, [rsp + 0x240]
call fcn.1400024b0
lea rdx, [rsp + 0x320]
lea rcx, [rsp + 0x260]
call fcn.140004b70
mov qword [rsp + 0x128], rax
mov rax, qword [rsp + 0x128]
mov qword [rsp + 0x130], rax
mov rdx, qword [rsp + 0x130]
mov rcx, qword [rsp + 0x380]
call fcn.14003a6e0
nop
lea rcx, [rsp + 0x260]
call fcn.1400024b0
mov rcx, qword [rsp + 0x380]
call fcn.14005d720
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x70]
call fcn.140079aa4
cmp qword [rsp + 0x70], 0
jne 0x14005c274
mov qword [rsp + 0x138], 0
jmp 0x14005c28a
mov qword [rsp + 0x50], 0x8123
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x138], rax
call fcn.140056b20
mov qword [rsp + 0x140], rax
mov rcx, qword [rsp + 0x68]
call qword [rsp + 0x140]
lea rax, [rsp + 0x2e0]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x2a0]
mov qword [rsp + 0x148], rax
mov rdx, qword [rsp + 0x380]
mov rcx, qword [rsp + 0x148]
call fcn.140004b70
mov qword [rsp + 0x150], rax
mov rdx, qword [rsp + 0x150]
mov rcx, qword [rsp + 0x158]
call fcn.14005aed0
mov qword [rsp + 0x160], rax
mov rax, qword [rsp + 0x160]
mov qword [rsp + 0x78], rax
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x280]
call fcn.14005aed0
mov qword [rsp + 0x80], rax
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x380]
call fcn.140004e00
lea rcx, [rsp + 0x280]
call fcn.1400024b0
mov dword [rsp + 0x40], 0
lea rcx, [rsp + 0x320]
call fcn.1400024b0
nop
mov eax, dword [rsp + 0x40]
and eax, 1
test eax, eax
je 0x14005c379
and dword [rsp + 0x40], 0xfffffffe
mov rcx, qword [rsp + 0x380]
call fcn.1400024b0
mov rax, qword [rsp + 0x380]
mov rcx, qword [rsp + 0x350]
xor rcx, rsp
call fcn.140079bc0
add rsp, 0x368
pop rdi
pop rbx
ret