Function at 0x14011c0ec
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 [0x14016f608]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov r15, r8
mov qword [rsp + 0x48], rcx
mov r12, rdx
mov rsi, rcx
mov rcx, qword [0x14016f048]
lea rbp, [0x14016f048]
cmp rcx, rbp
je 0x14011c157
test byte [rcx + 0x1c], 1
je 0x14011c157
cmp byte [rcx + 0x19], 4
jb 0x14011c157
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401565e0]
mov edx, 0x33
call fcn.1400049d8
xor ebx, ebx
lea rcx, [rsp + 0x60]
xor edx, edx
lea r14d, [rbx + 0x20]
mov r8d, r14d
call sub.msvcrt.dll_memset
xor edi, edi
test r12, r12
jne 0x14011c18b
lea r8, str.pbIsWriteCapable
mov edx, 0x38a
lea rcx, [0x1401565f0]
call fcn.140082070
test r15, r15
jne 0x14011c1a8
lea r8, str.pbDVD
mov edx, 0x38b
lea rcx, [0x1401565f0]
call fcn.140082070
xor eax, eax
mov byte [r12], bl
and qword [rsp + 0x38], rax
lea r8, [rsp + 0x50]
mov qword [rsp + 0x50], rax
mov r9d, 0xc
and dword [rsp + 0x54], eax
mov edx, 0x2d1400
mov dword [rsp + 0x58], eax
mov rcx, rsi
lea rax, [rsp + 0x44]
mov byte [r15], bl
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x50], 1
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x14011c253
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x14016f048]
cmp rcx, rbp
je 0x14011c240
test byte [rcx + 0x1c], 1
je 0x14011c240
cmp byte [rcx + 0x19], 2
jb 0x14011c240
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401565e0]
mov edx, 0x34
mov r9d, eax
call fcn.1400049f8
mov rcx, qword [0x14016f048]
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x14011c406
mov ecx, dword [rsp + 0x70]
mov eax, ecx
not eax
lea edx, [rcx + 0x50]
and edx, eax
mov dword [rsp + 0x40], edx
xor ebp, ebp
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 0x14011c293
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, r13d
mov r14d, r13d
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rdi, rax
test rax, rax
je 0x14011c40c
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
neg eax
mov word [rdi + 7], VarUI4FromDisp
mov dword [rdi + 0xc], esi
lea r14, [rdx + rdi]
sbb cl, cl
mov dword [rdi + 0x10], 0x14
mov qword [rdi + 0x18], rdx
and cl, 4
add cl, 6
mov byte [rdi + 6], cl
mov al, byte [rdi + 0x26]
or byte [rdi + 0x25], 8
and al, 0xea
or al, 0x2a
mov byte [rdi + 0x26], al
test ebp, ebp
jne 0x14011c30d
mov byte [rdi + 0x28], sil
lea esi, [rbp + 4]
mov byte [rdi + 0x24], 0x1a
jmp 0x14011c322
mov eax, esi
mov byte [rdi + 0x24], 0x5a
shr eax, 8
mov byte [rdi + 0x2c], sil
mov esi, 8
mov byte [rdi + 0x2b], al
and qword [rsp + 0x38], rbx
lea rax, [rsp + 0x44]
mov rcx, qword [rsp + 0x48]
mov r9d, r13d
mov qword [rsp + 0x30], rax
mov r8, rdi
mov dword [rsp + 0x28], r13d
mov edx, 0x4d004
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14011c399
test byte [rdi + 0x3a], 0xf
je 0x14011c36f
inc ebp
cmp ebp, 2
jae 0x14011c3ef
mov ecx, dword [rsp + 0x70]
jmp 0x14011c266
mov al, byte [r14 + rsi + 3]
test al, 0x33
je 0x14011c382
mov byte [r12], 1
mov al, byte [r14 + rsi + 3]
test al, 0x30
jne 0x14011c393
mov al, byte [r14 + rsi + 2]
test al, 0x18
jne 0x14011c393
test al, 0x20
je 0x14011c3ef
mov byte [r15], 1
jmp 0x14011c3ef
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [0x14016f048]
lea rax, [0x14016f048]
cmp rcx, rax
je 0x14011c3e1
test byte [rcx + 0x1c], 1
je 0x14011c3e1
cmp byte [rcx + 0x19], 2
jb 0x14011c3e1
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.14011aa2c
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 [0x14016f048]
lea rbp, [0x14016f048]
test ebx, ebx
jns 0x14011c44f
jmp 0x14011c41f
mov rcx, qword [0x14016f048]
lea rbp, [0x14016f048]
mov ebx, 0x8007000e
cmp rcx, rbp
je 0x14011c475
test byte [rcx + 0x1c], 1
je 0x14011c44f
cmp byte [rcx + 0x19], 2
jb 0x14011c44f
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401565e0]
mov edx, 0x36
mov r9d, ebx
call fcn.1400049f8
mov rcx, qword [0x14016f048]
cmp rcx, rbp
je 0x14011c475
test byte [rcx + 0x1c], 1
je 0x14011c475
cmp byte [rcx + 0x19], 4
jb 0x14011c475
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401565e0]
mov edx, 0x37
call fcn.1400049d8
mov eax, ebx
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14013e290
mov rbx, qword [rsp + 0xe8]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret