Function at 0x140147fcc
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 [0x14017a608]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r15, rdx
mov rsi, rcx
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
mov edx, 4
lea r13d, [rdx - 3]
cmp rcx, rax
je 0x140148039
test byte [rcx + 0x1c], r13b
je 0x140148039
cmp byte [rcx + 0x19], dl
jb 0x140148039
mov rcx, qword [rcx + 0x10]
lea edx, [r13 + 9]
lea r8, str.1F
call fcn.140006b98
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 0x1401480f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14017a048]
lea r15, [0x14017a048]
lea edi, [r14 + 3]
cmp rcx, r15
je 0x1401480da
test byte [rcx + 0x1c], r13b
je 0x1401480da
cmp byte [rcx + 0x19], dil
jb 0x1401480da
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 9]
mov r9, rsi
mov dword [rsp + 0x20], eax
lea r8, str.1F
call fcn.14003d060
mov rcx, qword [0x14017a048]
test ebx, ebx
jle 0x14014838d
movzx ebx, bx
or ebx, 0x80070000
jmp 0x14014838b
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 0x14014819d
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14017a048]
lea r15, [0x14017a048]
mov edi, 2
cmp rcx, r15
je 0x140148187
test byte [rcx + 0x1c], r13b
je 0x140148187
cmp byte [rcx + 0x19], dil
jb 0x140148187
lea edx, [rdi + 0xa]
mov rcx, qword [rcx + 0x10]
lea r8, str.1F
mov r9, rsi
mov dword [rsp + 0x20], ebx
call fcn.14003d060
test ebx, ebx
jle 0x140148375
movzx ebx, bx
or ebx, 0x80070000
jmp 0x140148375
cmp dword [rbp - 0x39], 0x20
je 0x1401481bb
lea r8, str.cbRet__sizeof_sadAdapterDesc_
mov edx, 0x52
lea rcx, str.base_stor_blbwsbutilwsbdeviceutils.cpp
call fcn.14008ac24
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 0x140148246
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14017a048]
lea r15, [0x14017a048]
mov edi, 2
cmp rcx, r15
je 0x140148187
test byte [rcx + 0x1c], r13b
je 0x140148187
cmp byte [rcx + 0x19], dil
jb 0x140148187
lea edx, [rdi + 0xb]
jmp 0x140148170
cmp dword [rbp - 0x39], edi
je 0x140148263
lea r8, str.cbRet__sizeof_hotPlugInfo_
mov edx, 0x66
lea rcx, str.base_stor_blbwsbutilwsbdeviceutils.cpp
call fcn.14008ac24
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 0x1401482e6
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14017a048]
lea r15, [0x14017a048]
mov edi, 2
cmp rcx, r15
je 0x140148187
test byte [rcx + 0x1c], r13b
je 0x140148187
cmp byte [rcx + 0x19], dil
jb 0x140148187
lea edx, [rdi + 0xc]
jmp 0x140148170
mov ecx, dword [r15]
xor eax, eax
mov r9b, byte [rbp - 1]
movzx r11d, byte [rbp - 0x2b]
mov r10, qword [rbp + 0xf]
test r11b, r11b
setne al
xor edx, edx
or ecx, eax
cmp r9b, 7
lea edi, [rdx + 2]
cmove edx, edi
xor eax, eax
or edx, ecx
lea ecx, [rdi + 2]
cmp r9b, cl
cmove eax, ecx
shl r10, 5
and r10d, 0x40
or r10d, edx
or r10d, eax
mov dword [r15], r10d
mov rdx, qword [0x14017a048]
lea r15, [0x14017a048]
cmp rdx, r15
je 0x140148375
test byte [rdx + 0x1c], r13b
je 0x140148375
cmp byte [rdx + 0x19], cl
jb 0x140148375
cmp r9b, cl
jne 0x140148414
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.140148430
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [0x14017a048]
test ebx, ebx
jns 0x1401483c3
cmp rcx, r15
je 0x1401483e9
test byte [rcx + 0x1c], r13b
je 0x1401483c3
cmp byte [rcx + 0x19], dil
jb 0x1401483c3
mov rcx, qword [rcx + 0x10]
lea r8, str.1F
mov edx, 0x10
mov dword [rsp + 0x20], ebx
mov r9, rsi
call fcn.140011330
mov rcx, qword [0x14017a048]
cmp rcx, r15
je 0x1401483e9
test byte [rcx + 0x1c], r13b
je 0x1401483e9
cmp byte [rcx + 0x19], 4
jb 0x1401483e9
mov rcx, qword [rcx + 0x10]
lea r8, str.1F
mov edx, 0x11
call fcn.140006b98
mov eax, ebx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140001d90
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 0x140148354
mov ecx, r13d
jmp 0x140148356