Function at 0x140124a3c
Capabilities:
Get storage device properties

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x90
mov rax, qword [0x140178010]
xor rax, rsp
mov qword [rbp + 0x1f], rax
and dword [rbp - 1], 0
xor eax, eax
and dword [rbp - 0x29], eax
xor edi, edi
mov dword [rbp - 0x25], edx
mov r12, r8
mov qword [rbp - 0x21], rcx
mov rbx, rcx
mov qword [rbp + 3], rax
mov qword [rbp + 0xb], rax
mov qword [rbp + 0x13], rax
mov dword [rbp + 0x1b], eax
test r8, r8
jne 0x140124aaa
lea r8, str.ppHeader
mov edx, 0x3f1
lea rcx, str.base_stor_blbengine_blbengutils_blbdeviceutils.cpp
call fcn.14008624c
and qword [r12], rdi
lea r8, [rbp - 0x11]
xor eax, eax
mov r9d, 0xc
and qword [rsp + 0x38], rax
mov edx, 0x2d1400
mov qword [rbp - 0x11], rax
mov rcx, rbx
and dword [rbp - 0xd], eax
mov dword [rbp - 9], eax
lea rax, [rbp - 0x29]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 1]
mov dword [rsp + 0x28], 0x20
mov qword [rsp + 0x20], rax
mov dword [rbp - 0x11], 1
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
lea rbx, [0x1401782b0]
mov r14d, 0x38
test eax, eax
jne 0x140124b64
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x1401782b0]
mov sil, 2
cmp rcx, rbx
je 0x140124b4a
test byte [rcx + 0x1c], 1
je 0x140124b4a
cmp byte [rcx + 0x19], sil
jb 0x140124b4a
mov rcx, qword [rcx + 0x10]
lea edx, [r14 - 6]
mov r9d, eax
lea r8, [0x140160558]
call fcn.140004c90
mov rcx, qword [0x1401782b0]
movzx ebx, di
lea r15, [0x1401782b0]
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x140124e13
mov ecx, dword [rbp + 0xf]
mov r15d, 0x108
mov eax, ecx
mov sil, 2
not eax
lea r13d, [rcx + 0x50]
and r13d, eax
lea ebx, [r15 + 0x50]
add ebx, ecx
test rdi, rdi
je 0x140124b8f
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, ebx
mov r14d, ebx
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rdi, rax
test rax, rax
je 0x140124e19
mov r8d, r14d
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
and byte [rdi + 0x25], 0xfe
mov eax, 0x38
or byte [rdi + 0x25], sil
mov r9d, ebx
mov ecx, dword [rbp - 0x25]
mov r8, rdi
and qword [rsp + 0x38], 0
mov edx, 0x4d004
mov word [rdi], ax
mov dword [rdi + 0x20], eax
mov eax, ecx
sar eax, 8
mov word [rdi + 7], VarUI4FromDisp
mov dword [rdi + 0xc], r15d
mov dword [rdi + 0x10], 0x14
mov byte [rdi + 6], 0xa
mov byte [rdi + 0x24], 0x46
mov r14d, r13d
mov qword [rdi + 0x18], r14
mov byte [rdi + 0x26], al
mov eax, r15d
shr eax, 8
mov byte [rdi + 0x2b], al
lea rax, [rbp - 0x29]
mov qword [rsp + 0x30], rax
mov byte [rdi + 0x27], cl
mov rcx, qword [rbp - 0x21]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rdi
mov qword [rbp - 0x19], r14
mov byte [rdi + 0x2c], r15b
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140124dac
test byte [rdi + 0x3a], 0xf
jne 0x140124d56
lea rdx, [rdi + r13]
movzx eax, byte [rdx + 1]
movzx ecx, byte [rdx]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 3]
shl ecx, 8
or ecx, eax
lea r14d, [rcx + 4]
cmp r14d, 4
jb 0x140124d10
xor ebx, ebx
cmp r14d, r15d
jbe 0x140124c86
mov ecx, dword [rbp + 0xf]
mov r15d, r14d
jmp 0x140124b7b
mov ecx, r14d
mov r13d, r14d
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov r15, rax
test rax, rax
jne 0x140124cab
mov ebx, 0x8007000e
lea r15, [0x1401782b0]
jmp 0x140124dfd
mov rdx, qword [rbp - 0x19]
mov r8, r13
add rdx, rdi
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov qword [r12], r15
mov rcx, qword [0x1401782b0]
lea r15, [0x1401782b0]
cmp rcx, r15
je 0x140124dfd
test byte [rcx + 0x1c], 1
je 0x140124dfd
cmp byte [rcx + 0x19], 5
jb 0x140124dfd
mov eax, dword [rbp - 0x25]
lea r8, [0x140160558]
mov rcx, qword [rcx + 0x10]
mov edx, 0x37
mov r9d, r14d
mov dword [rsp + 0x20], eax
call fcn.1400103bc
jmp 0x140124dfd
mov rax, qword [0x1401782b0]
lea r15, [0x1401782b0]
cmp rax, r15
je 0x140124d4c
test byte [rax + 0x1c], 1
je 0x140124d4c
cmp byte [rax + 0x19], sil
jb 0x140124d4c
mov edx, 0x35
mov dword [rsp + 0x20], ecx
mov rcx, qword [rax + 0x10]
lea r8, [0x140160558]
lea r9d, [rdx - 0x31]
call fcn.1400103bc
mov ebx, 0x8000ffff
jmp 0x140124dfd
mov rcx, qword [0x1401782b0]
lea r15, [0x1401782b0]
cmp rcx, r15
je 0x140124da5
test byte [rcx + 0x1c], 1
je 0x140124da5
cmp byte [rcx + 0x19], sil
jb 0x140124da5
movzx r8d, byte [rdi + 0x44]
mov edx, 0x34
movzx eax, byte [rdi + 0x45]
movzx r9d, byte [rdi + 0x3a]
mov rcx, qword [rcx + 0x10]
and r9d, 0xf
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r8d
lea r8, [0x140160558]
call fcn.140079dfc
mov ebx, 1
jmp 0x140124dfd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rcx, qword [0x1401782b0]
lea r15, [0x1401782b0]
cmp rcx, r15
je 0x140124dec
test byte [rcx + 0x1c], 1
je 0x140124dec
cmp byte [rcx + 0x19], sil
jb 0x140124dec
mov rcx, qword [rcx + 0x10]
lea r8, [0x140160558]
mov edx, 0x33
mov r9d, eax
call fcn.140004c90
movzx ebx, r14w
or ebx, 0x80070000
test r14d, r14d
cmovle ebx, r14d
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x1401782b0]
mov r14d, 0x38
test ebx, ebx
jns 0x140124e59
jmp 0x140124e32
mov rcx, qword [0x1401782b0]
lea r15, [0x1401782b0]
mov ebx, 0x8007000e
mov r14d, 0x38
cmp rcx, r15
je 0x140124e59
test byte [rcx + 0x1c], 1
je 0x140124e59
cmp byte [rcx + 0x19], sil
jb 0x140124e59
mov rcx, qword [rcx + 0x10]
lea r8, [0x140160558]
mov edx, r14d
mov r9d, ebx
call fcn.140004c90
mov eax, ebx
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.1401474d0
mov rbx, qword [rsp + 0xd8]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret