Function at 0x140133e94
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 [0x14016f608]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rsi, rdx
mov r14, rcx
mov rcx, qword [0x14016f048]
lea rax, [0x14016f048]
mov edx, 4
cmp rcx, rax
je 0x140133ef8
test byte [rcx + 0x1c], 1
je 0x140133ef8
cmp byte [rcx + 0x19], dl
jb 0x140133ef8
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157ff8]
mov edx, 0xa
call fcn.1400049d8
xor ebx, ebx
lea rcx, [rbp + 7]
xor edx, edx
lea edi, [rbx + 0x20]
mov r8d, edi
call sub.msvcrt.dll_memset
mov r8d, edi
lea rcx, [rbp - 0x19]
xor edx, edx
call sub.msvcrt.dll_memset
and qword [rsp + 0x30], rbx
lea r8d, [rbx + 1]
and dword [rsp + 0x28], ebx
xor r9d, r9d
and dword [rsi], ebx
mov edx, 0xc0000000
mov rcx, r14
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x140133fa8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [0x14016f048]
lea r15, [0x14016f048]
lea edi, [rbx + 2]
cmp rcx, r15
je 0x140133f95
test byte [rcx + 0x1c], 1
je 0x140133f95
cmp byte [rcx + 0x19], dil
jb 0x140133f95
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0xb]
mov r9, r14
mov dword [rsp + 0x20], eax
lea r8, [0x140157ff8]
call fcn.140005938
mov rcx, qword [0x14016f048]
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
jmp 0x140134224
xor eax, eax
lea r8, [rbp - 0x29]
and qword [rsp + 0x38], rax
mov r9d, 0xc
mov qword [rbp - 0x29], rax
mov edx, 0x2d1400
and dword [rbp - 0x25], eax
mov rcx, r15
mov dword [rbp - 0x21], eax
lea rax, [rbp - 0x39]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 7]
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
mov dword [rbp - 0x29], 1
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x14013404b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [0x14016f048]
lea rax, [0x14016f048]
mov edi, 2
cmp rcx, rax
je 0x140134038
test byte [rcx + 0x1c], 1
je 0x140134038
cmp byte [rcx + 0x19], dil
jb 0x140134038
lea edx, [rdi + 0xa]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157ff8]
mov r9, r14
mov dword [rsp + 0x20], esi
call fcn.140005938
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
jmp 0x14013420d
cmp dword [rbp - 0x39], edi
je 0x140134068
lea r8, [0x140157f88]
mov edx, 0x52
lea rcx, str.base_stor_blbwsbutilwsbdeviceutils.cpp
call fcn.140082070
xor eax, eax
xor r9d, r9d
and qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rbp - 0x31], rax
mov edx, 0x2d0c14
lea ecx, [rax + 8]
lea rax, [rbp - 0x39]
mov dword [rbp - 0x31], ecx
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x31]
mov dword [rsp + 0x28], ecx
mov rcx, r15
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1401340e7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [0x14016f048]
lea rax, [0x14016f048]
mov edi, 2
cmp rcx, rax
je 0x140134038
test byte [rcx + 0x1c], 1
je 0x140134038
cmp byte [rcx + 0x19], dil
jb 0x140134038
lea edx, [rdi + 0xb]
jmp 0x140134021
cmp dword [rbp - 0x39], 8
je 0x140134105
lea r8, str.cbRet__sizeof_hotPlugInfo_
mov edx, 0x66
lea rcx, str.base_stor_blbwsbutilwsbdeviceutils.cpp
call fcn.140082070
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], edi
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x70214
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x140134178
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [0x14016f048]
lea rax, [0x14016f048]
mov edi, 2
cmp rcx, rax
je 0x140134038
test byte [rcx + 0x1c], 1
je 0x140134038
cmp byte [rcx + 0x19], dil
jb 0x140134038
lea edx, [rdi + 0xc]
jmp 0x140134021
mov r10b, byte [rbp + 0x1f]
xor eax, eax
mov r9, qword [rbp - 0x11]
mov r11b, 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 [rsi]
mov dword [rsi], r9d
mov rcx, qword [0x14016f048]
lea rax, [0x14016f048]
cmp rcx, rax
je 0x14013420d
test byte [rcx + 0x1c], 1
je 0x14013420d
cmp byte [rcx + 0x19], dl
jb 0x14013420d
mov rcx, qword [rcx + 0x10]
xor r8d, r8d
cmp r10b, dl
mov dword [rsp + 0x38], r9d
movzx eax, r11b
mov r9, r14
sete r8b
xor edx, edx
mov dword [rsp + 0x30], r8d
cmp r10b, 7
sete dl
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], eax
call fcn.140133ddc
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x14016f048]
lea r15, [0x14016f048]
test ebx, ebx
jns 0x14013425c
cmp rcx, r15
je 0x140134282
test byte [rcx + 0x1c], 1
je 0x14013425c
cmp byte [rcx + 0x19], dil
jb 0x14013425c
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157ff8]
mov edx, 0x10
mov dword [rsp + 0x20], ebx
mov r9, r14
call fcn.140005938
mov rcx, qword [0x14016f048]
cmp rcx, r15
je 0x140134282
test byte [rcx + 0x1c], 1
je 0x140134282
cmp byte [rcx + 0x19], 4
jb 0x140134282
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157ff8]
mov edx, 0x11
call fcn.1400049d8
mov eax, ebx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14013e2a0
mov rbx, qword [rsp + 0xf0]
add rsp, 0xb0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret