Function at 0x140132ebc
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 [0x14016d608]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rsi, rdx
mov r14, rcx
mov rcx, qword [0x14016d090]
lea rax, [0x14016d090]
mov edx, 4
cmp rcx, rax
je 0x140132f20
test byte [rcx + 0x1c], 1
je 0x140132f20
cmp byte [rcx + 0x19], dl
jb 0x140132f20
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157048]
mov edx, 0xa
call fcn.140004968
xor ebx, ebx
lea rcx, [rbp + 7]
xor edx, edx
lea edi, [rbx + 0x20]
mov r8d, edi
call sub.msvcrt.dll_memset
and dword [rbp - 0x19], ebx
lea r8d, [rbx + 1]
xor eax, eax
xor r9d, r9d
and qword [rsp + 0x30], rax
mov edx, 0xc0000000
and dword [rsp + 0x28], eax
mov rcx, r14
and dword [rsi], eax
mov dword [rsp + 0x20], 3
mov qword [rbp - 0x11], rax
mov qword [rbp - 9], rax
mov qword [rbp - 1], rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x140132fd3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [0x14016d090]
lea r15, [0x14016d090]
lea edi, [rbx + 2]
cmp rcx, r15
je 0x140132fc0
test byte [rcx + 0x1c], 1
je 0x140132fc0
cmp byte [rcx + 0x19], dil
jb 0x140132fc0
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0xb]
mov r9, r14
mov dword [rsp + 0x20], eax
lea r8, [0x140157048]
call fcn.1400058c8
mov rcx, qword [0x14016d090]
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
jmp 0x14013324a
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 0x140133076
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [0x14016d090]
lea rax, [0x14016d090]
mov edi, 2
cmp rcx, rax
je 0x140133063
test byte [rcx + 0x1c], 1
je 0x140133063
cmp byte [rcx + 0x19], dil
jb 0x140133063
lea edx, [rdi + 0xa]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157048]
mov r9, r14
mov dword [rsp + 0x20], esi
call fcn.1400058c8
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
jmp 0x140133233
cmp dword [rbp - 0x39], edi
je 0x140133093
lea r8, str.cbRet__sizeof_sadAdapterDesc_
mov edx, 0x52
lea rcx, str.base_stor_blbwsbutilwsbdeviceutils.cpp
call fcn.140081b60
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 0x140133112
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [0x14016d090]
lea rax, [0x14016d090]
mov edi, 2
cmp rcx, rax
je 0x140133063
test byte [rcx + 0x1c], 1
je 0x140133063
cmp byte [rcx + 0x19], dil
jb 0x140133063
lea edx, [rdi + 0xb]
jmp 0x14013304c
cmp dword [rbp - 0x39], 8
je 0x140133130
lea r8, str.cbRet__sizeof_hotPlugInfo_
mov edx, 0x66
lea rcx, str.base_stor_blbwsbutilwsbdeviceutils.cpp
call fcn.140081b60
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 0x1401331a3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [0x14016d090]
lea rax, [0x14016d090]
mov edi, 2
cmp rcx, rax
je 0x140133063
test byte [rcx + 0x1c], 1
je 0x140133063
cmp byte [rcx + 0x19], dil
jb 0x140133063
lea edx, [rdi + 0xc]
jmp 0x14013304c
mov r9b, byte [rbp + 0x1f]
xor eax, eax
mov rcx, qword [rbp - 0x11]
mov r10b, byte [rbp - 0x2b]
shl rcx, 5
and ecx, 0x40
lea edi, [rax + 2]
cmp r9b, 7
lea edx, [rdi + 2]
cmove eax, edi
or ecx, eax
xor eax, eax
cmp r9b, dl
cmove eax, edx
or ecx, eax
xor eax, eax
test r10b, r10b
setne al
or ecx, eax
or dword [rsi], ecx
mov r11d, dword [rsi]
mov rcx, qword [0x14016d090]
lea rax, [0x14016d090]
cmp rcx, rax
je 0x140133233
test byte [rcx + 0x1c], 1
je 0x140133233
cmp byte [rcx + 0x19], dl
jb 0x140133233
mov rcx, qword [rcx + 0x10]
xor r8d, r8d
cmp r9b, dl
mov dword [rsp + 0x38], r11d
movzx eax, r10b
sete r8b
xor edx, edx
cmp r9b, 7
mov dword [rsp + 0x30], r8d
mov r9, r14
sete dl
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], eax
call fcn.140132e04
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x14016d090]
lea r15, [0x14016d090]
test ebx, ebx
jns 0x140133282
cmp rcx, r15
je 0x1401332a8
test byte [rcx + 0x1c], 1
je 0x140133282
cmp byte [rcx + 0x19], dil
jb 0x140133282
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157048]
mov edx, 0x10
mov dword [rsp + 0x20], ebx
mov r9, r14
call fcn.1400058c8
mov rcx, qword [0x14016d090]
cmp rcx, r15
je 0x1401332a8
test byte [rcx + 0x1c], 1
je 0x1401332a8
cmp byte [rcx + 0x19], 4
jb 0x1401332a8
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157048]
mov edx, 0x11
call fcn.140004968
mov eax, ebx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14013cc00
mov rbx, qword [rsp + 0xf0]
add rsp, 0xb0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret