Function at 0x14002c1b8
Capabilities:
Get storage device properties

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0xc8]
sub rsp, 0x1a0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x140121108]
xor rax, rsp
mov qword [rbp + 0x98], rax
mov r14, r8
mov rdi, rdx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
xor r12d, r12d
mov qword [rsp + 0x50], r12
or rsi, 0xffffffffffffffff
movabs rax, 0x7fffffffffffffff
mov qword [rsp + 0x68], rax
mov r15d, 0x227
mov ecx, r15d
call fcn.140068280
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
add rax, r15
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x40]
lea rbx, [rcx + 0x227]
mov r8d, r15d
xor edx, edx
call fcn.140086ad0
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x60], r12
mov rbx, qword [rsp + 0x40]
mov dword [rbx + 4], r15d
mov qword [rbp + 0x88], r12
mov qword [rsp + 0x38], r12
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rbx
lea r9d, [r12 + 0xc]
lea r8, [rbp + 0x88]
mov edx, 0x2d1400
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x14002c349
call fcn.14005f3e4
lea r9d, [r12 + 1]
mov r8, qword [rax]
lea edi, [rsi + 3]
mov edx, edi
lea rcx, [rbp - 0x80]
call fcn.14000c28c
nop
lea rbx, [rax + 0x10]
lea rdx, str.IOCTL_STORAGE_QUERY_PROPERTY_ec
mov rcx, rbx
call fcn.140015984
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.1400138fc
nop
lea rcx, [rbp + 0x28]
call fcn.14000c21c
lea rax, [rbp + 0x28]
mov qword [rsp + 0x68], rax
lea rax, vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + 0x28], rax
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x28], rax
lea rcx, [rbp + 0x28]
call fcn.140066758
call fcn.14005f3e4
mov rcx, qword [rax]
mov rax, qword [rcx]
lea r8, str.GetDriveProperty_Failed
mov edx, edi
mov rax, qword [rax + 0x38]
call qword [case.0x14004f9b0.0]
mov bl, r12b
jmp 0x14002c450
mov ecx, dword [rbx + 0x1c]
mov r8d, 7
cmp ecx, 6
jg 0x14002c3c0
je 0x14002c3b7
sub ecx, 1
je 0x14002c3a8
sub ecx, 1
je 0x14002c399
sub ecx, 1
je 0x14002c390
sub ecx, 1
je 0x14002c37e
cmp ecx, 1
jne 0x14002c3d9
lea rdx, [0x1400f0d00]
jmp 0x14002c40d
lea rdx, str.IEEE_1394
mov r8d, 9
jmp 0x14002c413
lea rdx, [0x1400f0ce0]
jmp 0x14002c40d
lea rdx, str.ATAPI
mov r8d, 5
jmp 0x14002c413
lea rdx, str.SCSI
mov r8d, 4
jmp 0x14002c413
lea rdx, str.FIBRE
jmp 0x14002c3a0
sub ecx, r8d
je 0x14002c406
sub ecx, 1
je 0x14002c3fd
sub ecx, 1
je 0x14002c3f4
sub ecx, 1
je 0x14002c3eb
cmp ecx, 1
je 0x14002c3e2
lea rdx, [0x1400e49d8]
jmp 0x14002c413
lea rdx, str.Sata
jmp 0x14002c3af
lea rdx, [0x1400f0d38]
jmp 0x14002c40d
lea rdx, str.Scsi
jmp 0x14002c3af
lea rdx, str.RAID
jmp 0x14002c3af
lea rdx, [0x1400e7238]
mov r8d, 3
lea rcx, [r14 + 0x48]
call fcn.140001a78
lea rax, str.Removable
lea rdx, str.Fixed
cmp byte [rbx + 0xa], r12b
cmovne rdx, rax
inc rsi
cmp word [rdx + rsi*2], r12w
jne 0x14002c432
lea rcx, [r14 + 0x88]
mov r8, rsi
call fcn.140001a78
mov ebx, 1
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14002c49b
mov rdx, qword [rsp + 0x50]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x14002c488
lfence
add rdx, 0x27
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002c4c8
call fcn.1400682c0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r12
mov al, bl
mov rcx, qword [rbp + 0x98]
xor rcx, rsp
call fcn.1400683e0
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.14008a39c
int3