Function at 0x14005bf80
Capabilities:
Get storage device properties

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xd0
mov qword [rbp - 0x69], 0xfffffffffffffffe
mov rax, qword [0x1400cc010]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov rbx, r8
mov r14d, edx
mov rdi, rcx
xor r13d, r13d
mov esi, r13d
movdqa xmm0, xmmword [0x1400b9680]
movdqu xmmword [rbp - 0x19], xmm0
mov word [rbp - 0x29], r13w
movdqu xmmword [rbp - 0x49], xmm0
mov word [rbp - 0x59], r13w
lea r9, [rbp - 0x29]
lea r8, str.DeviceID
mov rcx, qword [rcx]
call fcn.14005b860
test al, al
jne 0x14005bff6
xor bl, bl
jmp 0x14005c1dd
lea r9, [rbp - 0x59]
lea r8, str.InterfaceType
mov edx, r14d
mov rcx, qword [rdi]
call fcn.14005b860
test al, al
jne 0x14005c017
xor bl, bl
jmp 0x14005c1dd
lea rcx, [rbp - 0x29]
cmp qword [rbp - 0x11], 8
cmovae rcx, qword [rbp - 0x29]
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x14005c056
xor bl, bl
jmp 0x14005c1c6
mov qword [rbp - 0x35], r13
mov dword [rbp - 0x39], r13d
mov qword [rsp + 0x38], r13
lea rax, [rbp - 0x61]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x28
lea rax, [rbp - 9]
mov qword [rsp + 0x20], rax
mov r9d, 0xc
lea r8, [rbp - 0x39]
mov edx, 0x2d1400
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x14005c0a0
xor bl, bl
jmp 0x14005c1c1
mov ecx, dword [rbp - 0x61]
call fcn.140069164
mov rsi, rax
mov qword [rsp + 0x38], r13
lea rax, [rbp - 0x61]
mov qword [rsp + 0x30], rax
mov eax, dword [rbp - 0x61]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
mov r9d, 0xc
lea r8, [rbp - 0x39]
mov edx, 0x2d1400
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x14005c0e8
xor bl, bl
jmp 0x14005c1c1
movzx eax, byte [rsi + 0xa]
cmp al, 1
jne 0x14005c0fa
mov dword [rbx], 4
movzx eax, byte [rsi + 0xa]
test al, al
jne 0x14005c1bf
mov eax, dword [rsi + 0x1c]
add eax, 0xfffffff2
cmp eax, 1
ja 0x14005c118
mov dword [rbx], 3
jmp 0x14005c1bf
lea rcx, [rbp - 0x59]
cmp qword [rbp - 0x41], 8
cmovae rcx, qword [rbp - 0x59]
mov qword [rsp + 0x20], 3
lea r9, [0x1400b8928]
xor r8d, r8d
mov rdx, qword [rbp - 0x49]
call fcn.140001c70
cmp rax, 0xffffffffffffffff
je 0x14005c150
mov dword [rbx], 2
jmp 0x14005c1bf
lea rcx, [rbp - 0x59]
mov rdi, qword [rbp - 0x59]
mov r14, qword [rbp - 0x41]
cmp r14, 8
cmovae rcx, rdi
mov qword [rsp + 0x20], 3
lea r9, [0x1400b8930]
xor r8d, r8d
mov rdx, qword [rbp - 0x49]
call fcn.140001c70
cmp rax, 0xffffffffffffffff
jne 0x14005c1b9
lea rcx, [rbp - 0x59]
cmp r14, 8
cmovae rcx, rdi
mov qword [rsp + 0x20], 4
lea r9, str.SCSI
xor r8d, r8d
mov rdx, qword [rbp - 0x49]
call fcn.140001c70
cmp rax, 0xffffffffffffffff
jne 0x14005c1b9
mov dword [rbx], r13d
jmp 0x14005c1bf
mov dword [rbx], 1
mov bl, 1
test r15, r15
je 0x14005c1cf
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rsi, rsi
je 0x14005c1dd
mov rcx, rsi
call fcn.140069150
nop
mov r14, qword [rbp - 0x41]
cmp r14, 8
jb 0x14005c21c
lea rdx, [r14*2 + 2]
mov rdi, qword [rbp - 0x59]
mov rax, rdi
cmp rdx, 0x1000
jb 0x14005c214
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005c291
mov rcx, rdi
call fcn.14005da54
movdqa xmm0, xmmword [0x1400b9680]
movdqu xmmword [rbp - 0x49], xmm0
mov word [rbp - 0x59], r13w
mov rdx, qword [rbp - 0x11]
cmp rdx, 8
jb 0x14005c26a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005c265
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005c28b
call fcn.14005da54
movzx eax, bl
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.14005da30
add rsp, 0xd0
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.140064eec
nop
call fcn.140064eec
nop
int3