Function at 0x140145bb4
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
lea rbp, [rsp - 0x27]
sub rsp, 0x90
mov rax, qword [0x14017d140]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov rsi, r8
mov qword [rbp - 0x19], r8
mov r13, rdx
mov r14, rcx
mov qword [rbp - 0x21], rcx
mov rcx, qword [0x14017d3a8]
lea r12, [0x14017d3a8]
cmp rcx, r12
je 0x140145c23
test byte [rcx + 0x1c], 1
je 0x140145c23
cmp byte [rcx + 0x19], 4
jb 0x140145c23
mov rcx, qword [rcx + 0x10]
lea r8, [0x140014bc0]
mov edx, 0x2d
call fcn.14001dd24
xor r15d, r15d
lea rcx, [rbp + 3]
xor edx, edx
lea r8d, [r15 + 0x1c]
mov ebx, r15d
mov dword [rbp - 1], r15d
call sub.msvcrt.dll_memset
mov edi, r15d
test r13, r13
jne 0x140145c5c
lea r8, [0x140014b68]
lea rcx, [0x140014b08]
mov edx, 0x325
call fcn.1400a8be8
test rsi, rsi
jne 0x140145c79
lea r8, [0x140014b60]
lea rcx, [0x140014b08]
mov edx, 0x326
call fcn.1400a8be8
xor eax, eax
mov qword [rsp + 0x38], r15
mov byte [r13], r15b
mov qword [rbp - 0x11], rax
mov qword [rbp - 0xd], rax
lea rax, [rbp - 0x25]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 1]
lea r8, [rbp - 0x11]
mov r9d, reloc.ADVAPI32.dll_GetTraceLoggerHandle
mov edx, 0x2d1400
mov rcx, r14
mov dword [rsp + 0x28], 0x20
mov byte [rsi], r15b
mov dword [rbp - 0x11], 1
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x140145d1e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x14017d3a8]
cmp rcx, r12
je 0x140145d0b
test byte [rcx + 0x1c], 1
je 0x140145d0b
cmp byte [rcx + 0x19], 2
jb 0x140145d0b
mov rcx, qword [rcx + 0x10]
lea r8, [0x140014bc0]
mov edx, 0x2e
mov r9d, eax
call fcn.14001de24
mov rcx, qword [0x14017d3a8]
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x140145e7c
mov ecx, dword [rbp + 0xf]
mov r14d, r15d
mov eax, ecx
lea edx, [rcx + 0x50]
not eax
and edx, eax
mov dword [rbp - 0x29], edx
mov eax, r14d
lea r12d, [rcx + 0x50]
neg eax
sbb esi, esi
and esi, 4
add esi, 0x1c
add r12d, esi
test rdi, rdi
je 0x140145d52
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, r12d
mov r15d, r12d
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rdi, rax
test rax, rax
je 0x140145ede
mov r8d, r15d
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov edx, dword [rbp - 0x29]
mov eax, reloc.ADVAPI32.dll_UnregisterTraceGuids
mov word [rdi], ax
mov dword [rdi + 0x20], eax
mov word [rdi + 7], 0x112
mov dword [rdi + 0xc], esi
mov dword [rdi + 0x10], 0x14
mov qword [rdi + 0x18], rdx
mov eax, r14d
neg eax
sbb cl, cl
xor r15d, r15d
and cl, 4
add cl, 6
mov byte [rdi + 6], cl
and byte [rdi + 0x26], 0xea
or byte [rdi + 0x26], 0x2a
or byte [rdi + 0x25], 8
test r14d, r14d
jne 0x140145dcb
mov byte [rdi + 0x28], sil
mov byte [rdi + 0x24], 0x1a
lea rsi, [rdx + 4]
jmp 0x140145ddf
mov eax, esi
mov byte [rdi + 0x2c], sil
mov byte [rdi + 0x24], 0x5a
shr eax, 8
lea rsi, [rdx + 8]
mov byte [rdi + 0x2b], al
mov rcx, qword [rbp - 0x21]
mov qword [rsp + 0x38], r15
lea rax, [rbp - 0x25]
mov qword [rsp + 0x30], rax
mov r9d, r12d
mov r8, rdi
mov edx, 0x4d004
mov dword [rsp + 0x28], r12d
add rsi, rdi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140145e86
test byte [rdi + 0x3a], 0xf
je 0x140145e2a
inc r14d
cmp r14d, 2
jae 0x140145e65
mov ecx, dword [rbp + 0xf]
jmp 0x140145d30
mov al, byte [rsi + 3]
mov cl, CoRevokeClassObject
test al, 1
jne 0x140145e3f
test al, 2
jne 0x140145e3f
test cl, al
jne 0x140145e3f
test al, 0x20
je 0x140145e44
mov byte [r13], 1
mov al, byte [rsi + 3]
test cl, al
jne 0x140145e5e
test al, 0x20
jne 0x140145e5e
mov al, byte [rsi + 2]
test al, 8
jne 0x140145e5e
test cl, al
jne 0x140145e5e
test al, 0x20
je 0x140145e65
mov rax, qword [rbp - 0x19]
mov byte [rax], 1
lea r12, [0x14017d3a8]
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x14017d3a8]
test ebx, ebx
jns 0x140145f21
jmp 0x140145ef1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [0x14017d3a8]
lea r12, [0x14017d3a8]
cmp rcx, r12
je 0x140145ece
test byte [rcx + 0x1c], 1
je 0x140145ece
cmp byte [rcx + 0x19], 2
jb 0x140145ece
mov rcx, qword [rcx + 0x10]
lea rax, [0x140014b98]
test r14d, r14d
lea rdx, [0x140014b80]
mov r8d, esi
cmove rdx, rax
call fcn.140144824
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
jmp 0x140145e6c
mov rcx, qword [0x14017d3a8]
mov ebx, 0x8007000e
lea r12, [0x14017d3a8]
cmp rcx, r12
je 0x140145f47
test byte [rcx + 0x1c], 1
je 0x140145f21
cmp byte [rcx + 0x19], 2
jb 0x140145f21
mov rcx, qword [rcx + 0x10]
lea r8, [0x140014bc0]
mov edx, 0x30
mov r9d, ebx
call fcn.14001de24
mov rcx, qword [0x14017d3a8]
cmp rcx, r12
je 0x140145f47
test byte [rcx + 0x1c], 1
je 0x140145f47
cmp byte [rcx + 0x19], 4
jb 0x140145f47
mov rcx, qword [rcx + 0x10]
lea r8, [0x140014bc0]
mov edx, 0x31
call fcn.14001dd24
mov eax, ebx
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.140168920
mov rbx, qword [rsp + 0xe8]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret