Function at 0x14011b3fc
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 [0x14016d608]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov r14, r8
mov qword [rsp + 0x48], rcx
mov r15, rdx
mov rsi, rcx
mov rcx, qword [0x14016d090]
lea rbp, [0x14016d090]
cmp rcx, rbp
je 0x14011b467
test byte [rcx + 0x1c], 1
je 0x14011b467
cmp byte [rcx + 0x19], 4
jb 0x14011b467
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155620]
mov edx, 0x33
call fcn.140004968
xor r12d, r12d
lea rcx, [rsp + 0x60]
xor edx, edx
mov ebx, r12d
lea r13d, [r12 + 0x20]
mov r8d, r13d
call sub.msvcrt.dll_memset
mov edi, r12d
test r15, r15
jne 0x14011b4a1
lea r8, str.pbIsWriteCapable
mov edx, 0x38a
lea rcx, str.base_stor_blbengine_blbengutils_blbdeviceutils.cpp
call fcn.140081b60
test r14, r14
jne 0x14011b4be
lea r8, str.pbDVD
mov edx, 0x38b
lea rcx, str.base_stor_blbengine_blbengutils_blbdeviceutils.cpp
call fcn.140081b60
xor eax, eax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x50], rax
lea r8, [rsp + 0x50]
mov qword [rsp + 0x54], rax
mov r9d, 0xc
lea rax, [rsp + 0x44]
mov byte [r15], r12b
mov qword [rsp + 0x30], rax
mov edx, 0x2d1400
lea rax, [rsp + 0x60]
mov dword [rsp + 0x28], r13d
mov rcx, rsi
mov qword [rsp + 0x20], rax
mov byte [r14], r12b
mov dword [rsp + 0x50], 1
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x14011b565
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x14016d090]
cmp rcx, rbp
je 0x14011b552
test byte [rcx + 0x1c], 1
je 0x14011b552
cmp byte [rcx + 0x19], 2
jb 0x14011b552
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155620]
mov edx, 0x34
mov r9d, eax
call fcn.140004988
mov rcx, qword [0x14016d090]
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x14011b714
mov ecx, dword [rsp + 0x70]
mov ebp, r12d
mov eax, ecx
not eax
lea edx, [rcx + 0x50]
and edx, eax
mov dword [rsp + 0x40], edx
mov eax, ebp
lea r13d, [rcx + 0x50]
neg eax
mov eax, ebp
sbb esi, esi
and esi, 4
add esi, 0x1c
neg eax
sbb edx, edx
and edx, 4
add edx, 0x1c
add r13d, edx
test rdi, rdi
je 0x14011b5a6
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, r13d
mov r12d, r13d
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rdi, rax
test rax, rax
je 0x14011b71a
mov r8d, r12d
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 word [rdi + 7], VarUI4FromDisp
neg eax
mov dword [rdi + 0xc], esi
sbb cl, cl
mov dword [rdi + 0x10], 0x14
mov qword [rdi + 0x18], rdx
and cl, 4
add cl, 6
xor r12d, r12d
mov byte [rdi + 6], cl
and byte [rdi + 0x26], 0xea
or byte [rdi + 0x26], 0x2a
or byte [rdi + 0x25], 8
test ebp, ebp
jne 0x14011b61d
mov byte [rdi + 0x24], 0x1a
lea eax, [rbp + 4]
mov byte [rdi + 0x28], sil
jmp 0x14011b632
mov eax, esi
mov byte [rdi + 0x24], 0x5a
shr eax, 8
mov byte [rdi + 0x2b], al
mov eax, 8
mov byte [rdi + 0x2c], sil
mov rcx, qword [rsp + 0x48]
lea rsi, [rdx + rax]
mov qword [rsp + 0x38], r12
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rax
mov r9d, r13d
mov dword [rsp + 0x28], r13d
mov r8, rdi
mov edx, 0x4d004
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14011b6a7
test byte [rdi + 0x3a], 0xf
je 0x14011b683
inc ebp
cmp ebp, 2
jae 0x14011b6fd
mov ecx, dword [rsp + 0x70]
jmp 0x14011b579
test byte [rsi + rdi + 3], 0x33
je 0x14011b68e
mov byte [r15], 1
test byte [rsi + rdi + 3], 0x30
jne 0x14011b6a1
mov al, byte [rsi + rdi + 2]
test al, 0x18
jne 0x14011b6a1
test al, 0x20
je 0x14011b6fd
mov byte [r14], 1
jmp 0x14011b6fd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [0x14016d090]
lea rax, [0x14016d090]
cmp rcx, rax
je 0x14011b6ef
test byte [rcx + 0x1c], 1
je 0x14011b6ef
cmp byte [rcx + 0x19], 2
jb 0x14011b6ef
mov rcx, qword [rcx + 0x10]
lea rax, str.SCSIOP_MODE_SENSE
test ebp, ebp
mov dword [rsp + 0x20], esi
lea r9, str.SCSIOP_MODE_SENSE10
cmove r9, rax
call fcn.140119d2c
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x14016d090]
lea rbp, [0x14016d090]
test ebx, ebx
jns 0x14011b75d
jmp 0x14011b72d
mov rcx, qword [0x14016d090]
lea rbp, [0x14016d090]
mov ebx, 0x8007000e
cmp rcx, rbp
je 0x14011b783
test byte [rcx + 0x1c], 1
je 0x14011b75d
cmp byte [rcx + 0x19], 2
jb 0x14011b75d
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155620]
mov edx, 0x36
mov r9d, ebx
call fcn.140004988
mov rcx, qword [0x14016d090]
cmp rcx, rbp
je 0x14011b783
test byte [rcx + 0x1c], 1
je 0x14011b783
cmp byte [rcx + 0x19], 4
jb 0x14011b783
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155620]
mov edx, 0x37
call fcn.140004968
mov eax, ebx
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14013cc00
mov rbx, qword [rsp + 0xe8]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret