Function at 0x140120bdc
Capabilities:
Get storage device properties

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov rax, qword [0x14016a508]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov r12, r8
mov qword [rsp + 0x50], rcx
mov r15, rdx
mov rsi, rcx
mov rcx, qword [0x14016a048]
lea r14, [0x14016a048]
cmp rcx, r14
je 0x140120c47
test byte [rcx + 0x1c], 1
je 0x140120c47
cmp byte [rcx + 0x19], 4
jb 0x140120c47
mov rcx, qword [rcx + 0x10]
lea r8, [0x140158c00]
mov edx, 0x33
call fcn.14000c0e8
xor r13d, r13d
xorps xmm0, xmm0
mov ebx, r13d
mov edi, r13d
movups xmmword [rsp + 0x68], xmm0
movups xmmword [rsp + 0x78], xmm0
test r15, r15
jne 0x140120c7a
lea r8, str.pbIsWriteCapable
mov edx, 0x38a
lea rcx, str.base_stor_blbengine_blbengutils_blbdeviceutils.cpp
call fcn.140088f60
test r12, r12
jne 0x140120c97
lea r8, str.pbDVD
mov edx, 0x38b
lea rcx, str.base_stor_blbengine_blbengutils_blbdeviceutils.cpp
call fcn.140088f60
mov qword [rsp + 0x38], r13
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x58]
lea rax, [rsp + 0x68]
mov byte [r15], r13b
mov dword [rsp + 0x28], 0x20
mov r9d, 0xc
mov edx, 0x2d1400
mov qword [rsp + 0x20], rax
mov rcx, rsi
mov byte [r12], r13b
mov qword [rsp + 0x5c], r13
mov dword [rsp + 0x58], 1
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
nop dword [rax + rax]
test eax, eax
jne 0x140120d4a
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14016a048]
cmp rcx, r14
je 0x140120d34
test byte [rcx + 0x1c], 1
je 0x140120d34
cmp byte [rcx + 0x19], 2
jb 0x140120d34
mov rcx, qword [rcx + 0x10]
lea r8, [0x140158c00]
mov edx, 0x34
mov r9d, eax
call fcn.14000c23c
mov rcx, qword [0x14016a048]
test ebx, ebx
jle 0x140120ed4
movzx ebx, bx
or ebx, 0x80070000
jmp 0x140120ed2
mov ecx, dword [rsp + 0x78]
mov ebp, r13d
mov eax, ecx
not eax
lea edx, [rcx + 0x50]
and edx, eax
mov dword [rsp + 0x40], edx
mov rax, rdi
cmp ebp, 2
jae 0x140120fd6
mov eax, ebp
lea r13d, [rcx + 0x50]
neg eax
sbb esi, esi
and esi, 4
add esi, 0x1c
add r13d, esi
test rdi, rdi
je 0x140120d91
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov ecx, r13d
mov r14d, r13d
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x140120fbe
mov r8d, r14d
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov edx, dword [rsp + 0x40]
mov eax, 0x38
mov word [rdi], ax
mov dword [rdi + 0x20], eax
mov eax, ebp
mov qword [rdi + 0x18], rdx
neg eax
mov word [rdi + 7], VarUI4FromDisp
lea r14, [rdx + rdi]
sbb cl, cl
mov dword [rdi + 0xc], esi
and cl, 4
mov dword [rdi + 0x10], 0x14
add cl, 6
mov byte [rdi + 6], cl
mov cl, byte [rdi + 0x26]
mov dl, byte [rdi + 0x25]
and cl, 0xea
or cl, 0x2a
or dl, 8
test ebp, ebp
jne 0x140120e1a
mov byte [rdi + 0x28], sil
mov r10b, 0x1a
lea esi, [rbp + 7]
mov qword [rsp + 0x48], 6
jmp 0x140120e32
mov byte [rdi + 0x2c], sil
mov r10b, 0x5a
mov esi, 0xb
mov byte [rdi + 0x2b], bl
mov qword [rsp + 0x48], 0xa
and qword [rsp + 0x38], rbx
lea rax, [rsp + 0x44]
mov byte [rdi + 0x24], r10b
mov r9d, r13d
mov byte [rdi + 0x25], dl
mov r8, rdi
mov qword [rsp + 0x30], rax
mov edx, 0x4d004
mov byte [rdi + 0x26], cl
mov rcx, qword [rsp + 0x50]
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
nop dword [rax + rax]
xor r13d, r13d
test eax, eax
je 0x140120f5a
test byte [rdi + 0x3a], 0xf
je 0x140120e8d
mov ecx, dword [rsp + 0x78]
inc ebp
jmp 0x140120d5e
test byte [r14 + rsi], 0x33
je 0x140120e98
mov byte [r15], 1
test byte [r14 + rsi], 0x30
jne 0x140120eb0
mov rax, qword [rsp + 0x48]
mov al, byte [r14 + rax]
test al, 0x18
jne 0x140120eb0
test al, 0x20
je 0x140120eb5
mov byte [r12], 1
lea r14, [0x14016a048]
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x14016a048]
test ebx, ebx
jns 0x140120f06
cmp rcx, r14
je 0x140120f2c
test byte [rcx + 0x1c], 1
je 0x140120f06
cmp byte [rcx + 0x19], 2
jb 0x140120f06
mov rcx, qword [rcx + 0x10]
lea r8, [0x140158c00]
mov edx, 0x36
mov r9d, ebx
call fcn.14000c114
mov rcx, qword [0x14016a048]
cmp rcx, r14
je 0x140120f2c
test byte [rcx + 0x1c], 1
je 0x140120f2c
cmp byte [rcx + 0x19], 4
jb 0x140120f2c
mov rcx, qword [rcx + 0x10]
lea r8, [0x140158c00]
mov edx, 0x37
call fcn.14000c0e8
mov eax, ebx
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400071e0
mov rbx, qword [rsp + 0xe8]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14016a048]
lea r14, [0x14016a048]
cmp rcx, r14
je 0x140120fa8
test byte [rcx + 0x1c], 1
je 0x140120fa8
cmp byte [rcx + 0x19], 2
jb 0x140120fa8
mov rcx, qword [rcx + 0x10]
lea rax, str.SCSIOP_MODE_SENSE10
test ebp, ebp
mov dword [rsp + 0x20], ebx
lea r9, str.SCSIOP_MODE_SENSE
cmovne r9, rax
call fcn.14012205c
test ebx, ebx
jle 0x140120ebc
movzx ebx, bx
or ebx, 0x80070000
jmp 0x140120ebc
mov rcx, qword [0x14016a048]
lea r14, [0x14016a048]
mov ebx, 0x8007000e
jmp 0x140120ed6
lea r14, [0x14016a048]
mov ebx, r13d
test rax, rax
je 0x140120eff
jmp 0x140120ebc