Function at 0x14011ec78
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 [0x140170608]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov r15, r8
mov qword [rsp + 0x50], rcx
mov r13, rdx
mov rsi, rcx
mov rcx, qword [0x140170048]
lea rbp, [0x140170048]
cmp rcx, rbp
je 0x14011ece3
test byte [rcx + 0x1c], 1
je 0x14011ece3
cmp byte [rcx + 0x19], 4
jb 0x14011ece3
mov rcx, qword [rcx + 0x10]
lea r8, [0x140159780]
mov edx, 0x33
call fcn.140004c54
xor ebx, ebx
lea rcx, [rsp + 0x68]
xor edx, edx
lea r14d, [rbx + 0x20]
mov r8d, r14d
call sub.msvcrt.dll_memset
xor edi, edi
test r13, r13
jne 0x14011ed17
lea r8, str.pbIsWriteCapable
mov edx, 0x38a
lea rcx, [0x140159650]
call fcn.14008388c
test r15, r15
jne 0x14011ed34
lea r8, str.pbDVD
mov edx, 0x38b
lea rcx, [0x140159650]
call fcn.14008388c
and qword [rsp + 0x38], rbx
lea rax, [rsp + 0x40]
and dword [rsp + 0x60], ebx
lea r8, [rsp + 0x58]
and dword [rsp + 0x5c], ebx
mov r9d, 0xc
mov qword [rsp + 0x30], rax
mov edx, 0x2d1400
lea rax, [rsp + 0x68]
mov byte [r13], bl
mov dword [rsp + 0x28], r14d
mov rcx, rsi
mov qword [rsp + 0x20], rax
mov byte [r15], bl
mov dword [rsp + 0x58], 1
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x14011edd8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x140170048]
cmp rcx, rbp
je 0x14011edc5
test byte [rcx + 0x1c], 1
je 0x14011edc5
cmp byte [rcx + 0x19], 2
jb 0x14011edc5
mov rcx, qword [rcx + 0x10]
lea r8, [0x140159780]
mov edx, 0x34
mov r9d, eax
call fcn.140004c78
mov rcx, qword [0x140170048]
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x14011ef8f
mov ecx, dword [rsp + 0x78]
mov eax, ecx
not eax
lea r12d, [rcx + 0x50]
and r12d, eax
mov dword [rsp + 0x48], r12d
xor ebp, ebp
mov eax, ebp
lea r14d, [rcx + 0x50]
neg eax
sbb esi, esi
and esi, 4
add esi, 0x1c
add r14d, esi
mov dword [rsp + 0x44], r14d
test rdi, rdi
je 0x14011ee14
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, r14
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rdi, rax
test rax, rax
je 0x14011ef95
mov r8, r14
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov eax, 0x38
mov word [rdi + 7], VarUI4FromDisp
mov word [rdi], ax
mov dword [rdi + 0x20], eax
mov eax, ebp
neg eax
mov dword [rdi + 0xc], esi
mov dword [rdi + 0x10], 0x14
sbb cl, cl
mov edx, r12d
mov qword [rdi + 0x18], rdx
and cl, 4
add cl, 6
mov byte [rdi + 6], cl
mov al, byte [rdi + 0x26]
lea r14, [rdx + rdi]
or byte [rdi + 0x25], 8
and al, 0xea
or al, 0x2a
mov byte [rdi + 0x26], al
test ebp, ebp
jne 0x14011ee8e
mov byte [rdi + 0x28], sil
lea r12d, [rbp + 6]
lea esi, [rbp + 7]
mov byte [rdi + 0x24], 0x1a
jmp 0x14011eea7
mov byte [rdi + 0x24], 0x5a
mov eax, esi
mov byte [rdi + 0x2c], sil
mov esi, 0xb
shr eax, 8
mov byte [rdi + 0x2b], al
lea r12d, [rsi - 1]
and qword [rsp + 0x38], rbx
lea rax, [rsp + 0x40]
mov r9d, dword [rsp + 0x44]
mov r8, rdi
mov rcx, qword [rsp + 0x50]
mov edx, 0x4d004
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14011ef22
test byte [rdi + 0x3a], 0xf
je 0x14011eefb
inc ebp
cmp ebp, 2
jae 0x14011ef78
mov ecx, dword [rsp + 0x78]
mov r12d, dword [rsp + 0x48]
jmp 0x14011edee
mov al, byte [r14 + rsi]
test al, 0x33
je 0x14011ef0c
mov byte [r13], 1
mov al, byte [r14 + rsi]
test al, 0x30
jne 0x14011ef1c
mov al, byte [r14 + r12]
test al, 0x18
jne 0x14011ef1c
test al, 0x20
je 0x14011ef78
mov byte [r15], 1
jmp 0x14011ef78
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [0x140170048]
lea rax, [0x140170048]
cmp rcx, rax
je 0x14011ef6a
test byte [rcx + 0x1c], 1
je 0x14011ef6a
cmp byte [rcx + 0x19], 2
jb 0x14011ef6a
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.14011d590
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 [0x140170048]
lea rbp, [0x140170048]
test ebx, ebx
jns 0x14011efd8
jmp 0x14011efa8
mov rcx, qword [0x140170048]
lea rbp, [0x140170048]
mov ebx, 0x8007000e
cmp rcx, rbp
je 0x14011effe
test byte [rcx + 0x1c], 1
je 0x14011efd8
cmp byte [rcx + 0x19], 2
jb 0x14011efd8
mov rcx, qword [rcx + 0x10]
lea r8, [0x140159780]
mov edx, 0x36
mov r9d, ebx
call fcn.140004c78
mov rcx, qword [0x140170048]
cmp rcx, rbp
je 0x14011effe
test byte [rcx + 0x1c], 1
je 0x14011effe
cmp byte [rcx + 0x19], 4
jb 0x14011effe
mov rcx, qword [rcx + 0x10]
lea r8, [0x140159780]
mov edx, 0x37
call fcn.140004c54
mov eax, ebx
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140141360
mov rbx, qword [rsp + 0xe8]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret