Function at 0x14013f9b8
Capabilities:
Get storage device properties

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov rax, qword [0x140173708]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r15, rdx
mov rsi, rcx
mov rcx, qword [0x140173048]
lea rax, [0x140173048]
mov edx, 4
lea r13d, [rdx - 3]
cmp rcx, rax
je 0x14013fa25
test byte [rcx + 0x1c], r13b
je 0x14013fa25
cmp byte [rcx + 0x19], dl
jb 0x14013fa25
mov rcx, qword [rcx + 0x10]
lea edx, [r13 + 9]
lea r8, str.1F
call fcn.14000c328
xor ebx, ebx
xorps xmm0, xmm0
and qword [rsp + 0x30], rbx
xorps xmm1, xmm1
and dword [rsp + 0x28], ebx
xor r9d, r9d
and dword [r15], ebx
mov r8d, r13d
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
mov rcx, rsi
movups xmmword [rbp - 0x19], xmm0
movups xmmword [rbp - 9], xmm0
movups xmmword [rbp + 7], xmm1
movups xmmword [rbp + 0x17], xmm1
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x14013fadc
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x140173048]
lea r15, [0x140173048]
lea edi, [r14 + 3]
cmp rcx, r15
je 0x14013fac6
test byte [rcx + 0x1c], r13b
je 0x14013fac6
cmp byte [rcx + 0x19], dil
jb 0x14013fac6
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 9]
mov r9, rsi
mov dword [rsp + 0x20], eax
lea r8, str.1F
call fcn.14003fe00
mov rcx, qword [0x140173048]
test ebx, ebx
jle 0x14013fd7a
movzx ebx, bx
or ebx, 0x80070000
jmp 0x14013fd78
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 - 0x19]
mov dword [rsp + 0x28], 0x20
mov rcx, r14
mov qword [rsp + 0x20], rax
mov dword [rbp - 0x29], r13d
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
nop dword [rax + rax]
test eax, eax
jne 0x14013fb89
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x140173048]
lea r15, [0x140173048]
mov edi, 2
cmp rcx, r15
je 0x14013fb73
test byte [rcx + 0x1c], r13b
je 0x14013fb73
cmp byte [rcx + 0x19], dil
jb 0x14013fb73
lea edx, [rdi + 0xa]
mov rcx, qword [rcx + 0x10]
lea r8, str.1F
mov r9, rsi
mov dword [rsp + 0x20], ebx
call fcn.14003fe00
test ebx, ebx
jle 0x14013fd62
movzx ebx, bx
or ebx, 0x80070000
jmp 0x14013fd62
cmp dword [rbp - 0x39], 0x20
je 0x14013fba7
lea r8, str.cbRet__sizeof_sadAdapterDesc_
mov edx, 0x52
lea rcx, str.base_stor_blbwsbutilwsbdeviceutils.cpp
call fcn.1400906e0
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, r14
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
nop dword [rax + rax]
test eax, eax
jne 0x14013fc32
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x140173048]
lea r15, [0x140173048]
mov edi, 2
cmp rcx, r15
je 0x14013fb73
test byte [rcx + 0x1c], r13b
je 0x14013fb73
cmp byte [rcx + 0x19], dil
jb 0x14013fb73
lea edx, [rdi + 0xb]
jmp 0x14013fb5c
cmp dword [rbp - 0x39], edi
je 0x14013fc4f
lea r8, str.cbRet__sizeof_hotPlugInfo_
mov edx, 0x66
lea rcx, str.base_stor_blbwsbutilwsbdeviceutils.cpp
call fcn.1400906e0
and qword [rsp + 0x38], rbx
lea rax, [rbp - 0x39]
mov qword [rsp + 0x30], rax
xor r9d, r9d
lea rax, [rbp + 7]
mov dword [rsp + 0x28], 0x20
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x70214
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
nop dword [rax + rax]
test eax, eax
jne 0x14013fcd2
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x140173048]
lea r15, [0x140173048]
mov edi, 2
cmp rcx, r15
je 0x14013fb73
test byte [rcx + 0x1c], r13b
je 0x14013fb73
cmp byte [rcx + 0x19], dil
jb 0x14013fb73
lea edx, [rdi + 0xc]
jmp 0x14013fb5c
mov r9b, byte [rbp - 1]
xor eax, eax
movzx r11d, byte [rbp - 0x2b]
mov r10, qword [rbp + 0xf]
test r11b, r11b
setne al
xor ecx, ecx
or eax, dword [r15]
cmp r9b, 7
lea edi, [rcx + 2]
cmove ecx, edi
lea r8d, [rdi + 2]
or ecx, eax
xor eax, eax
cmp r9b, r8b
cmove eax, r8d
shl r10, 5
and r10d, 0x40
or r10d, ecx
or r10d, eax
mov dword [r15], r10d
mov rdx, qword [0x140173048]
lea r15, [0x140173048]
cmp rdx, r15
je 0x14013fd62
test byte [rdx + 0x1c], r13b
je 0x14013fd62
cmp byte [rdx + 0x19], r8b
jb 0x14013fd62
cmp r9b, r8b
jne 0x14013fe01
mov r8d, r13d
xor ecx, ecx
mov dword [rsp + 0x38], r10d
mov r9, rsi
mov dword [rsp + 0x30], r8d
mov dword [rsp + 0x28], ecx
mov rcx, qword [rdx + 0x10]
mov dword [rsp + 0x20], r11d
call fcn.14013fe1c
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [0x140173048]
test ebx, ebx
jns 0x14013fdb0
cmp rcx, r15
je 0x14013fdd6
test byte [rcx + 0x1c], r13b
je 0x14013fdb0
cmp byte [rcx + 0x19], dil
jb 0x14013fdb0
mov rcx, qword [rcx + 0x10]
lea r8, str.1F
mov edx, 0x10
mov dword [rsp + 0x20], ebx
mov r9, rsi
call fcn.1400151b8
mov rcx, qword [0x140173048]
cmp rcx, r15
je 0x14013fdd6
test byte [rcx + 0x1c], r13b
je 0x14013fdd6
cmp byte [rcx + 0x19], 4
jb 0x14013fdd6
mov rcx, qword [rcx + 0x10]
lea r8, str.1F
mov edx, 0x11
call fcn.14000c328
mov eax, ebx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140007410
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
xor r8d, r8d
cmp r9b, 7
jne 0x14013fd41
mov ecx, r13d
jmp 0x14013fd43