Function at 0x1401406f4
Capabilities:
Get storage device properties

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov rax, qword [0x14017a608]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r14, rdx
mov rsi, rcx
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
mov edx, 4
cmp rcx, rax
je 0x140140758
test byte [rcx + 0x1c], 1
je 0x140140758
cmp byte [rcx + 0x19], dl
jb 0x140140758
mov rcx, qword [rcx + 0x10]
lea r8, str.1F
mov edx, 0xa
call fcn.140004b70
xor ebx, ebx
xorps xmm0, xmm0
and qword [rsp + 0x30], rbx
xorps xmm1, xmm1
and dword [rsp + 0x28], ebx
xor r9d, r9d
and dword [r14], ebx
mov edx, 0xc0000000
lea r8d, [rbx + 1]
mov dword [rsp + 0x20], 3
mov rcx, rsi
movups xmmword [rbp + 7], xmm0
movups xmmword [rbp + 0x17], xmm0
movups xmmword [rbp - 0x19], xmm1
movups xmmword [rbp - 9], xmm1
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x140140810
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r14d, eax
mov rcx, qword [0x14017a048]
lea r15, [0x14017a048]
lea edi, [rbx + 2]
cmp rcx, r15
je 0x1401407fa
test byte [rcx + 0x1c], 1
je 0x1401407fa
cmp byte [rcx + 0x19], dil
jb 0x1401407fa
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0xb]
mov r9, rsi
mov dword [rsp + 0x20], eax
lea r8, str.1F
call fcn.140005ca0
mov rcx, qword [0x14017a048]
movzx ebx, r14w
or ebx, 0x80070000
test r14d, r14d
cmovle ebx, r14d
jmp 0x140140abd
and qword [rsp + 0x38], rbx
lea rax, [rbp - 0x39]
and dword [rbp - 0x21], ebx
lea r8, [rbp - 0x29]
and dword [rbp - 0x25], ebx
mov r9d, 0xc
mov qword [rsp + 0x30], rax
mov edx, 0x2d1400
lea rax, [rbp + 7]
mov dword [rsp + 0x28], 0x20
mov rcx, r15
mov qword [rsp + 0x20], rax
mov dword [rbp - 0x29], 1
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
nop dword [rax + rax]
test eax, eax
jne 0x1401408c2
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r14d, eax
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
mov edi, 2
cmp rcx, rax
je 0x1401408ac
test byte [rcx + 0x1c], 1
je 0x1401408ac
cmp byte [rcx + 0x19], dil
jb 0x1401408ac
lea edx, [rdi + 0xa]
mov rcx, qword [rcx + 0x10]
lea r8, str.1F
mov r9, rsi
mov dword [rsp + 0x20], r14d
call fcn.140005ca0
movzx ebx, r14w
or ebx, 0x80070000
test r14d, r14d
cmovle ebx, r14d
jmp 0x140140aa0
cmp dword [rbp - 0x39], 0x20
je 0x1401408e0
lea r8, str.cbRet__sizeof_sadAdapterDesc_
mov edx, 0x52
lea rcx, str.base_stor_blbwsbutilwsbdeviceutils.cpp
call fcn.1400876c8
and qword [rsp + 0x38], rbx
lea rax, [rbp - 0x39]
and qword [rbp - 0x31], rbx
mov edi, 8
mov qword [rsp + 0x30], rax
xor r9d, r9d
lea rax, [rbp - 0x31]
mov dword [rsp + 0x28], edi
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x2d0c14
mov dword [rbp - 0x31], edi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
nop dword [rax + rax]
test eax, eax
jne 0x14014096c
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r14d, eax
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
mov edi, 2
cmp rcx, rax
je 0x1401408ac
test byte [rcx + 0x1c], 1
je 0x1401408ac
cmp byte [rcx + 0x19], dil
jb 0x1401408ac
lea edx, [rdi + 0xb]
jmp 0x140140894
cmp dword [rbp - 0x39], edi
je 0x140140989
lea r8, str.cbRet__sizeof_hotPlugInfo_
mov edx, 0x66
lea rcx, str.base_stor_blbwsbutilwsbdeviceutils.cpp
call fcn.1400876c8
and qword [rsp + 0x38], rbx
lea rax, [rbp - 0x39]
mov qword [rsp + 0x30], rax
xor r9d, r9d
lea rax, [rbp - 0x19]
mov dword [rsp + 0x28], 0x20
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x70214
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
nop dword [rax + rax]
test eax, eax
jne 0x140140a0d
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r14d, eax
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
mov edi, 2
cmp rcx, rax
je 0x1401408ac
test byte [rcx + 0x1c], 1
je 0x1401408ac
cmp byte [rcx + 0x19], dil
jb 0x1401408ac
lea edx, [rdi + 0xc]
jmp 0x140140894
mov r10b, byte [rbp + 0x1f]
xor eax, eax
mov r9, qword [rbp - 0x11]
movzx r11d, byte [rbp - 0x2b]
shl r9, 5
and r9d, 0x40
lea edi, [rax + 2]
cmp r10b, 7
lea edx, [rdi + 2]
cmove eax, edi
or r9d, eax
xor eax, eax
cmp r10b, dl
cmove eax, edx
or r9d, eax
xor eax, eax
test r11b, r11b
setne al
or r9d, eax
or r9d, dword [r14]
mov dword [r14], r9d
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
cmp rcx, rax
je 0x140140aa0
test byte [rcx + 0x1c], 1
je 0x140140aa0
cmp byte [rcx + 0x19], dl
jb 0x140140aa0
mov rcx, qword [rcx + 0x10]
xor r8d, r8d
cmp r10b, dl
mov dword [rsp + 0x38], r9d
mov r9, rsi
sete r8b
xor edx, edx
mov dword [rsp + 0x30], r8d
cmp r10b, 7
sete dl
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], r11d
call fcn.14014062c
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [0x14017a048]
lea r15, [0x14017a048]
test ebx, ebx
jns 0x140140af5
cmp rcx, r15
je 0x140140b1b
test byte [rcx + 0x1c], 1
je 0x140140af5
cmp byte [rcx + 0x19], dil
jb 0x140140af5
mov rcx, qword [rcx + 0x10]
lea r8, str.1F
mov edx, 0x10
mov dword [rsp + 0x20], ebx
mov r9, rsi
call fcn.140005ca0
mov rcx, qword [0x14017a048]
cmp rcx, r15
je 0x140140b1b
test byte [rcx + 0x1c], 1
je 0x140140b1b
cmp byte [rcx + 0x19], 4
jb 0x140140b1b
mov rcx, qword [rcx + 0x10]
lea r8, str.1F
mov edx, 0x11
call fcn.140004b70
mov eax, ebx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14014b700
mov rbx, qword [rsp + 0xf0]
add rsp, 0xb0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret