Function at 0x140136bfc
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 [0x140170608]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rsi, rdx
mov r14, rcx
mov rcx, qword [0x140170048]
lea rax, [0x140170048]
mov edx, 4
cmp rcx, rax
je 0x140136c60
test byte [rcx + 0x1c], 1
je 0x140136c60
cmp byte [rcx + 0x19], dl
jb 0x140136c60
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015b0c8]
mov edx, 0xa
call fcn.140004c54
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 0x140136d10
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [0x140170048]
lea r15, [0x140170048]
lea edi, [rbx + 2]
cmp rcx, r15
je 0x140136cfd
test byte [rcx + 0x1c], 1
je 0x140136cfd
cmp byte [rcx + 0x19], dil
jb 0x140136cfd
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0xb]
mov r9, r14
mov dword [rsp + 0x20], eax
lea r8, [0x14015b0c8]
call fcn.140005c44
mov rcx, qword [0x140170048]
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
jmp 0x140136f86
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], edi
mov rcx, r15
mov qword [rsp + 0x20], rax
mov dword [rbp - 0x29], 1
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x140136dad
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [0x140170048]
lea rax, [0x140170048]
mov edi, 2
cmp rcx, rax
je 0x140136d9a
test byte [rcx + 0x1c], 1
je 0x140136d9a
cmp byte [rcx + 0x19], dil
jb 0x140136d9a
lea edx, [rdi + 0xa]
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015b0c8]
mov r9, r14
mov dword [rsp + 0x20], esi
call fcn.140005c44
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
jmp 0x140136f6f
cmp dword [rbp - 0x39], edi
je 0x140136dca
lea r8, [0x14015b058]
mov edx, 0x52
lea rcx, str.base_stor_blbwsbutilwsbdeviceutils.cpp
call fcn.14008388c
and qword [rsp + 0x38], rbx
lea rax, [rbp - 0x39]
and qword [rbp - 0x31], rbx
mov ecx, 8
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov dword [rsp + 0x28], ecx
lea rax, [rbp - 0x31]
mov dword [rbp - 0x31], ecx
xor r8d, r8d
mov rcx, r15
mov qword [rsp + 0x20], rax
mov edx, 0x2d0c14
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x140136e49
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [0x140170048]
lea rax, [0x140170048]
mov edi, 2
cmp rcx, rax
je 0x140136d9a
test byte [rcx + 0x1c], 1
je 0x140136d9a
cmp byte [rcx + 0x19], dil
jb 0x140136d9a
lea edx, [rdi + 0xb]
jmp 0x140136d83
cmp dword [rbp - 0x39], 8
je 0x140136e67
lea r8, str.cbRet__sizeof_hotPlugInfo_
mov edx, 0x66
lea rcx, str.base_stor_blbwsbutilwsbdeviceutils.cpp
call fcn.14008388c
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 0x140136eda
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [0x140170048]
lea rax, [0x140170048]
mov edi, 2
cmp rcx, rax
je 0x140136d9a
test byte [rcx + 0x1c], 1
je 0x140136d9a
cmp byte [rcx + 0x19], dil
jb 0x140136d9a
lea edx, [rdi + 0xc]
jmp 0x140136d83
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 [0x140170048]
lea rax, [0x140170048]
cmp rcx, rax
je 0x140136f6f
test byte [rcx + 0x1c], 1
je 0x140136f6f
cmp byte [rcx + 0x19], dl
jb 0x140136f6f
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.140136b3c
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140170048]
lea r15, [0x140170048]
test ebx, ebx
jns 0x140136fbe
cmp rcx, r15
je 0x140136fe4
test byte [rcx + 0x1c], 1
je 0x140136fbe
cmp byte [rcx + 0x19], dil
jb 0x140136fbe
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015b0c8]
mov edx, 0x10
mov dword [rsp + 0x20], ebx
mov r9, r14
call fcn.140005c44
mov rcx, qword [0x140170048]
cmp rcx, r15
je 0x140136fe4
test byte [rcx + 0x1c], 1
je 0x140136fe4
cmp byte [rcx + 0x19], 4
jb 0x140136fe4
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015b0c8]
mov edx, 0x11
call fcn.140004c54
mov eax, ebx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140141340
mov rbx, qword [rsp + 0xf0]
add rsp, 0xb0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret