Function at 0x140145f78
Capabilities:
Get storage device properties

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov rax, qword [0x14017d140]
xor rax, rsp
mov qword [rbp + 0x2f], rax
and dword [rbp + 0xf], 0
mov rbx, r8
mov dword [rbp - 0x15], edx
xor edx, edx
mov r12, rcx
mov qword [rbp - 0x11], rcx
lea r8d, [rdx + 0x1c]
lea rcx, [rbp + 0x13]
mov qword [rbp - 9], rbx
call sub.msvcrt.dll_memset
and dword [rbp - 0x19], 0
xor edi, edi
test rbx, rbx
jne 0x140145fec
lea r8, [0x140014bb0]
lea rcx, [0x140014b08]
mov edx, 0x3f1
call fcn.1400a8be8
and qword [rbx], rdi
xor eax, eax
lea r8, [rbp - 1]
and qword [rsp + 0x38], rax
mov qword [rbp - 1], rax
and dword [rbp + 3], eax
mov dword [rbp + 7], eax
lea rax, [rbp - 0x19]
mov r9d, reloc.ADVAPI32.dll_GetTraceLoggerHandle
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0xf]
mov edx, 0x2d1400
mov rcx, r12
mov dword [rsp + 0x28], 0x20
mov dword [rbp - 1], 1
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
lea rbx, [0x14017d3a8]
mov r14d, reloc.ADVAPI32.dll_UnregisterTraceGuids
test eax, eax
jne 0x1401460a2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x14017d3a8]
cmp rcx, rbx
je 0x140146088
test byte [rcx + 0x1c], 1
je 0x140146088
cmp byte [rcx + 0x19], 2
jb 0x140146088
mov rcx, qword [rcx + 0x10]
lea edx, [r14 - 6]
lea r8, [0x140014bc0]
mov r9d, eax
call fcn.14001de24
mov rcx, qword [0x14017d3a8]
movzx ebx, di
lea r15, [0x14017d3a8]
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x140146359
mov ecx, dword [rbp + 0x1f]
mov r15d, 0x108
mov eax, ecx
lea r13d, [rcx + 0x50]
not eax
and r13d, eax
lea ebx, [r15 + 0x50]
add ebx, ecx
test rdi, rdi
je 0x1401460ca
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 0x14014635f
mov r8d, r14d
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov ecx, dword [rbp - 0x15]
and qword [rsp + 0x38], 0
and byte [rdi + 0x25], 0xfe
or byte [rdi + 0x25], 2
mov eax, r13d
mov qword [rdi + 0x18], rax
mov eax, ecx
mov r14d, reloc.ADVAPI32.dll_UnregisterTraceGuids
sar eax, 8
mov byte [rdi + 0x27], cl
mov r9d, ebx
mov byte [rdi + 0x26], al
mov eax, r15d
mov r8, rdi
shr eax, 8
mov edx, 0x4d004
mov rcx, r12
mov byte [rdi + 0x2b], al
lea rax, [rbp - 0x19]
mov word [rdi], r14w
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ebx
mov word [rdi + 7], 0x112
mov qword [rsp + 0x20], rdi
mov dword [rdi + 0xc], r15d
mov dword [rdi + 0x10], 0x14
mov dword [rdi + 0x20], r14d
mov byte [rdi + 6], 0xa
mov byte [rdi + 0x24], 0x46
mov byte [rdi + 0x2c], r15b
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1401462f2
test byte [rdi + 0x3a], 0xf
jne 0x14014629c
movsxd r12, r13d
add r12, rdi
movzx eax, byte [r12 + 1]
movzx ecx, byte [r12]
shl ecx, 8
or ecx, eax
movzx eax, byte [r12 + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [r12 + 3]
shl ecx, 8
or ecx, eax
lea r14d, [rcx + 4]
cmp r14d, 4
jb 0x140146256
xor ebx, ebx
cmp r14d, r15d
jbe 0x1401461cd
mov ecx, dword [rbp + 0x1f]
mov r12, qword [rbp - 0x11]
mov r15d, r14d
jmp 0x1401460b6
mov ecx, r14d
mov r13d, r14d
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov r15, rax
test rax, rax
jne 0x1401461f2
mov ebx, 0x8007000e
lea r15, [0x14017d3a8]
jmp 0x140146343
mov r8, r13
mov rdx, r12
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov r11, qword [rbp - 9]
mov qword [r11], r15
mov rcx, qword [0x14017d3a8]
lea r15, [0x14017d3a8]
cmp rcx, r15
je 0x140146343
test byte [rcx + 0x1c], 1
je 0x140146343
cmp byte [rcx + 0x19], 5
jb 0x140146343
mov eax, dword [rbp - 0x15]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140014bc0]
mov edx, EventEnabled
mov r9d, r14d
mov dword [rsp + 0x20], eax
call fcn.1400285b4
jmp 0x140146343
mov rax, qword [0x14017d3a8]
lea r15, [0x14017d3a8]
cmp rax, r15
je 0x140146292
test byte [rax + 0x1c], 1
je 0x140146292
cmp byte [rax + 0x19], 2
jb 0x140146292
mov edx, UnregisterTraceGuids
mov dword [rsp + 0x20], ecx
mov rcx, qword [rax + 0x10]
lea r9d, [rdx - 0x31]
lea r8, [0x140014bc0]
call fcn.1400285b4
mov ebx, 0x8000ffff
jmp 0x140146343
mov rcx, qword [0x14017d3a8]
lea r15, [0x14017d3a8]
cmp rcx, r15
je 0x1401462eb
test byte [rcx + 0x1c], 1
je 0x1401462eb
cmp byte [rcx + 0x19], 2
jb 0x1401462eb
movzx r8d, byte [rdi + 0x44]
movzx eax, byte [rdi + 0x45]
movzx r9d, byte [rdi + 0x3a]
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r8d
lea r8, [0x140014bc0]
and r9d, 0xf
mov edx, UnregisterTraceGuids
call fcn.14008ed38
mov ebx, 1
jmp 0x140146343
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rcx, qword [0x14017d3a8]
lea r15, [0x14017d3a8]
cmp rcx, r15
je 0x140146332
test byte [rcx + 0x1c], 1
je 0x140146332
cmp byte [rcx + 0x19], 2
jb 0x140146332
mov rcx, qword [rcx + 0x10]
lea r8, [0x140014bc0]
mov edx, 0x33
mov r9d, eax
call fcn.14001de24
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 [0x14017d3a8]
mov r14d, reloc.ADVAPI32.dll_UnregisterTraceGuids
test ebx, ebx
jns 0x14014639f
jmp 0x140146378
mov rcx, qword [0x14017d3a8]
mov ebx, 0x8007000e
lea r15, [0x14017d3a8]
mov r14d, reloc.ADVAPI32.dll_UnregisterTraceGuids
cmp rcx, r15
je 0x14014639f
test byte [rcx + 0x1c], 1
je 0x14014639f
cmp byte [rcx + 0x19], 2
jb 0x14014639f
mov rcx, qword [rcx + 0x10]
lea r8, [0x140014bc0]
mov edx, r14d
mov r9d, ebx
call fcn.14001de24
mov eax, ebx
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140168920
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret