Function at 0x140138238
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 [0x14016a508]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r15, rdx
mov rsi, rcx
mov rcx, qword [0x14016a048]
lea rax, [0x14016a048]
mov edx, 4
lea r13d, [rdx - 3]
cmp rcx, rax
je 0x1401382a5
test byte [rcx + 0x1c], r13b
je 0x1401382a5
cmp byte [rcx + 0x19], dl
jb 0x1401382a5
mov rcx, qword [rcx + 0x10]
lea edx, [r13 + 9]
lea r8, str.1F
call fcn.14000c0e8
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 0x14013835c
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14016a048]
lea r15, [0x14016a048]
lea edi, [r14 + 3]
cmp rcx, r15
je 0x140138346
test byte [rcx + 0x1c], r13b
je 0x140138346
cmp byte [rcx + 0x19], dil
jb 0x140138346
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 9]
mov r9, rsi
mov dword [rsp + 0x20], eax
lea r8, str.1F
call fcn.14003fbc0
mov rcx, qword [0x14016a048]
test ebx, ebx
jle 0x1401385fa
movzx ebx, bx
or ebx, 0x80070000
jmp 0x1401385f8
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 0x140138409
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14016a048]
lea r15, [0x14016a048]
mov edi, 2
cmp rcx, r15
je 0x1401383f3
test byte [rcx + 0x1c], r13b
je 0x1401383f3
cmp byte [rcx + 0x19], dil
jb 0x1401383f3
lea edx, [rdi + 0xa]
mov rcx, qword [rcx + 0x10]
lea r8, str.1F
mov r9, rsi
mov dword [rsp + 0x20], ebx
call fcn.14003fbc0
test ebx, ebx
jle 0x1401385e2
movzx ebx, bx
or ebx, 0x80070000
jmp 0x1401385e2
cmp dword [rbp - 0x39], 0x20
je 0x140138427
lea r8, str.cbRet__sizeof_sadAdapterDesc_
mov edx, 0x52
lea rcx, str.base_stor_blbwsbutilwsbdeviceutils.cpp
call fcn.140088f60
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 0x1401384b2
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14016a048]
lea r15, [0x14016a048]
mov edi, 2
cmp rcx, r15
je 0x1401383f3
test byte [rcx + 0x1c], r13b
je 0x1401383f3
cmp byte [rcx + 0x19], dil
jb 0x1401383f3
lea edx, [rdi + 0xb]
jmp 0x1401383dc
cmp dword [rbp - 0x39], edi
je 0x1401384cf
lea r8, str.cbRet__sizeof_hotPlugInfo_
mov edx, 0x66
lea rcx, str.base_stor_blbwsbutilwsbdeviceutils.cpp
call fcn.140088f60
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 0x140138552
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14016a048]
lea r15, [0x14016a048]
mov edi, 2
cmp rcx, r15
je 0x1401383f3
test byte [rcx + 0x1c], r13b
je 0x1401383f3
cmp byte [rcx + 0x19], dil
jb 0x1401383f3
lea edx, [rdi + 0xc]
jmp 0x1401383dc
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 [0x14016a048]
lea r15, [0x14016a048]
cmp rdx, r15
je 0x1401385e2
test byte [rdx + 0x1c], r13b
je 0x1401385e2
cmp byte [rdx + 0x19], r8b
jb 0x1401385e2
cmp r9b, r8b
jne 0x140138681
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.14013869c
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [0x14016a048]
test ebx, ebx
jns 0x140138630
cmp rcx, r15
je 0x140138656
test byte [rcx + 0x1c], r13b
je 0x140138630
cmp byte [rcx + 0x19], dil
jb 0x140138630
mov rcx, qword [rcx + 0x10]
lea r8, str.1F
mov edx, 0x10
mov dword [rsp + 0x20], ebx
mov r9, rsi
call fcn.140014f78
mov rcx, qword [0x14016a048]
cmp rcx, r15
je 0x140138656
test byte [rcx + 0x1c], r13b
je 0x140138656
cmp byte [rcx + 0x19], 4
jb 0x140138656
mov rcx, qword [rcx + 0x10]
lea r8, str.1F
mov edx, 0x11
call fcn.14000c0e8
mov eax, ebx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400071e0
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 0x1401385c1
mov ecx, r13d
jmp 0x1401385c3