Function at 0x140120000
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 [0x140172608]
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 0x14012006e
lea r8, str.ppHeader
mov edx, 0x3f1
lea rcx, [0x14015a2f0]
call fcn.14008410c
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, [0x1401720a0]
mov r14d, 0x38
test eax, eax
jne 0x140120128
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x1401720a0]
mov sil, 2
cmp rcx, rbx
je 0x14012010e
test byte [rcx + 0x1c], 1
je 0x14012010e
cmp byte [rcx + 0x19], sil
jb 0x14012010e
mov rcx, qword [rcx + 0x10]
lea edx, [r14 - 6]
mov r9d, eax
lea r8, [0x14015a420]
call fcn.140004b98
mov rcx, qword [0x1401720a0]
movzx ebx, di
lea r15, [0x1401720a0]
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x1401203d7
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 0x140120153
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 0x1401203dd
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 0x140120370
test byte [rdi + 0x3a], 0xf
jne 0x14012031a
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 0x1401202d4
xor ebx, ebx
cmp r14d, r15d
jbe 0x14012024a
mov ecx, dword [rbp + 0xf]
mov r15d, r14d
jmp 0x14012013f
mov ecx, r14d
mov r13d, r14d
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov r15, rax
test rax, rax
jne 0x14012026f
mov ebx, 0x8007000e
lea r15, [0x1401720a0]
jmp 0x1401203c1
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 [0x1401720a0]
lea r15, [0x1401720a0]
cmp rcx, r15
je 0x1401203c1
test byte [rcx + 0x1c], 1
je 0x1401203c1
cmp byte [rcx + 0x19], 5
jb 0x1401203c1
mov eax, dword [rbp - 0x25]
lea r8, [0x14015a420]
mov rcx, qword [rcx + 0x10]
mov edx, 0x37
mov r9d, r14d
mov dword [rsp + 0x20], eax
call fcn.14000ffdc
jmp 0x1401203c1
mov rax, qword [0x1401720a0]
lea r15, [0x1401720a0]
cmp rax, r15
je 0x140120310
test byte [rax + 0x1c], 1
je 0x140120310
cmp byte [rax + 0x19], sil
jb 0x140120310
mov edx, 0x35
mov dword [rsp + 0x20], ecx
mov rcx, qword [rax + 0x10]
lea r8, [0x14015a420]
lea r9d, [rdx - 0x31]
call fcn.14000ffdc
mov ebx, 0x8000ffff
jmp 0x1401203c1
mov rcx, qword [0x1401720a0]
lea r15, [0x1401720a0]
cmp rcx, r15
je 0x140120369
test byte [rcx + 0x1c], 1
je 0x140120369
cmp byte [rcx + 0x19], sil
jb 0x140120369
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, [0x14015a420]
call fcn.140077fd4
mov ebx, 1
jmp 0x1401203c1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rcx, qword [0x1401720a0]
lea r15, [0x1401720a0]
cmp rcx, r15
je 0x1401203b0
test byte [rcx + 0x1c], 1
je 0x1401203b0
cmp byte [rcx + 0x19], sil
jb 0x1401203b0
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015a420]
mov edx, 0x33
mov r9d, eax
call fcn.140004b98
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 [0x1401720a0]
mov r14d, 0x38
test ebx, ebx
jns 0x14012041d
jmp 0x1401203f6
mov rcx, qword [0x1401720a0]
lea r15, [0x1401720a0]
mov ebx, 0x8007000e
mov r14d, 0x38
cmp rcx, r15
je 0x14012041d
test byte [rcx + 0x1c], 1
je 0x14012041d
cmp byte [rcx + 0x19], sil
jb 0x14012041d
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015a420]
mov edx, r14d
mov r9d, ebx
call fcn.140004b98
mov eax, ebx
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.140141cf0
mov rbx, qword [rsp + 0xd8]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret