Function at 0x140144b84
Capabilities:
Get disk information via ioctl

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xd0
mov rax, qword [0x14017d140]
xor rax, rsp
mov qword [rbp + 0x27], rax
xor ebx, ebx
mov dword [rbp - 0x49], ecx
mov qword [rbp - 0x31], rdx
mov byte [rdx], bl
lea rcx, [0x140007da8]
lea r9d, [rbx + 0x12]
or rsi, 0xffffffffffffffff
xor r8d, r8d
xor edx, edx
xor r13d, r13d
mov qword [rbp - 0x41], rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov rdi, rax
mov qword [rbp - 0x51], rax
cmp rax, rsi
jne 0x140144c45
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [0x14017d3a8]
lea r14, [0x14017d3a8]
lea r15, [0x140014bc0]
lea edi, [rbx + 1]
cmp rcx, r14
je 0x140144c32
test byte [rcx + 0x1c], dil
je 0x140144c32
cmp byte [rcx + 0x19], 2
jb 0x140144c32
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x10]
mov r9d, eax
mov r8, r15
call fcn.14001de24
mov rcx, qword [0x14017d3a8]
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
jmp 0x14014504d
and dword [rbp - 0x45], ebx
mov r14d, 0x20
lea rcx, [rbp - 0x19]
mov r8d, r14d
xor edx, edx
call sub.msvcrt.dll_memset
lea rax, [rbp - 0x19]
lea r8, [0x140007da8]
xor r9d, r9d
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x20], rax
mov dword [rbp - 0x19], r14d
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
lea r14, [0x14017d3a8]
mov edi, 1
lea r15, [0x140014bc0]
test eax, eax
je 0x140144fac
mov rcx, qword [rbp - 0x51]
and qword [rsp + 0x28], rbx
lea rax, [rbp - 0x59]
lea rdx, [rbp - 0x19]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
test eax, eax
jne 0x140144cd4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 0x7a
jne 0x140144ea7
mov rsi, qword [rbp - 0x41]
test r13, r13
je 0x140144ce2
mov rcx, r13
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [rbp - 0x59]
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov r13, rax
test rax, rax
je 0x140144fa5
mov r8d, dword [rbp - 0x59]
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
xor edx, edx
lea rcx, [rbp + 7]
lea r8d, [rdx + 0x20]
mov dword [r13], 8
call sub.msvcrt.dll_memset
mov r9d, dword [rbp - 0x59]
mov rcx, qword [rbp - 0x51]
lea rax, [rbp + 7]
lea rdx, [rbp - 0x19]
mov r8, r13
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], rbx
mov dword [rbp + 7], 0x20
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
test eax, eax
je 0x140144f6f
cmp rsi, 0xffffffffffffffff
je 0x140144d5d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rsp + 0x30], rbx
and dword [rsp + 0x28], ebx
mov eax, 3
lea rsi, [r13 + 4]
xor r9d, r9d
mov r8d, eax
xor edx, edx
mov rcx, rsi
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp - 0x41], rax
cmp rax, 0xffffffffffffffff
jne 0x140144dd5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x14017d3a8]
cmp rcx, r14
je 0x140144e59
test byte [rcx + 0x1c], dil
je 0x140144e59
cmp byte [rcx + 0x19], 3
jb 0x140144e59
mov rcx, qword [rcx + 0x10]
mov edx, 0x14
mov r9, rsi
mov r8, r15
mov dword [rsp + 0x20], eax
call fcn.14001ecbc
jmp 0x140144e59
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
and qword [rsp + 0x38], rcx
mov qword [rbp - 0x29], rcx
mov dword [rbp - 0x21], ecx
lea rcx, [rbp - 0x59]
mov edx, 0x2d1080
mov qword [rsp + 0x30], rcx
lea rcx, [rbp - 0x29]
mov dword [rsp + 0x28], reloc.ADVAPI32.dll_GetTraceLoggerHandle
mov qword [rsp + 0x20], rcx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x140144e4d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x14017d3a8]
cmp rcx, r14
je 0x140144e59
test byte [rcx + 0x1c], dil
je 0x140144e59
cmp byte [rcx + 0x19], 3
jb 0x140144e59
mov rcx, qword [rcx + 0x10]
mov edx, 0x15
mov r9, rsi
mov r8, r15
mov dword [rsp + 0x20], eax
call fcn.14001ecbc
jmp 0x140144e59
mov eax, dword [rbp - 0x49]
cmp dword [rbp - 0x25], eax
je 0x140144ee6
mov esi, dword [rbp - 0x45]
xor edx, edx
lea rcx, [rbp - 0x19]
lea r8d, [rdx + 0x20]
add esi, edi
mov dword [rbp - 0x45], esi
call sub.msvcrt.dll_memset
mov rcx, qword [rbp - 0x51]
lea rax, [rbp - 0x19]
lea r8, [0x140007da8]
mov r9d, esi
xor edx, edx
mov dword [rbp - 0x19], 0x20
mov qword [rsp + 0x20], rax
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
je 0x140144fac
mov rsi, qword [rbp - 0x41]
jmp 0x140144c99
mov rcx, qword [0x14017d3a8]
cmp rcx, r14
je 0x140144ed3
test byte [rcx + 0x1c], dil
je 0x140144ed3
cmp byte [rcx + 0x19], 2
jb 0x140144ed3
mov edx, CoDisconnectObject
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov r8, r15
call fcn.14001de24
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
jmp 0x14014501b
mov rsi, qword [rbp - 0x51]
lea rax, [rbp - 0x59]
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x39]
lea r8d, [r9 + 0x1f]
lea rdx, [rbp + 7]
mov rcx, rsi
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
jne 0x140144f5a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [0x14017d3a8]
cmp rcx, r14
je 0x140144ed3
test byte [rcx + 0x1c], dil
je 0x140144ed3
cmp byte [rcx + 0x19], 2
jb 0x140144ed3
mov rcx, qword [rcx + 0x10]
lea r9, [r13 + 4]
mov edx, 0x16
mov r8, r15
mov dword [rsp + 0x20], eax
call fcn.14001ecbc
jmp 0x140144ed3
cmp dword [rbp - 0x39], edi
je 0x14014501f
mov rax, qword [rbp - 0x31]
mov byte [rax], dil
jmp 0x14014501f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [0x14017d3a8]
cmp rcx, r14
je 0x140144ed3
test byte [rcx + 0x1c], dil
je 0x140144ed3
cmp byte [rcx + 0x19], 2
jb 0x140144ed3
mov edx, reloc.ole32.dll_CoDisconnectObject
jmp 0x140144ec4
mov ebx, 0x8007000e
jmp 0x14014501b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 0x103
je 0x140144fe9
mov rcx, qword [0x14017d3a8]
cmp rcx, r14
je 0x140144ed3
test byte [rcx + 0x1c], dil
je 0x140144ed3
cmp byte [rcx + 0x19], 2
jb 0x140144ed3
mov edx, reloc.ole32.dll_CoRevokeClassObject
jmp 0x140144ec4
mov rcx, qword [0x14017d3a8]
cmp rcx, r14
je 0x140145016
test byte [rcx + 0x1c], dil
je 0x140145016
cmp byte [rcx + 0x19], 2
jb 0x140145016
mov r9d, dword [rbp - 0x49]
mov rcx, qword [rcx + 0x10]
mov edx, 0x17
mov r8, r15
call fcn.14001de24
mov ebx, 0x8000ffff
mov rsi, qword [rbp - 0x51]
mov rcx, qword [rbp - 0x41]
cmp rcx, 0xffffffffffffffff
je 0x14014502f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r13, r13
je 0x14014503d
mov rcx, r13
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov rcx, qword [0x14017d3a8]
test ebx, ebx
jns 0x14014507b
cmp rcx, r14
je 0x14014507b
test byte [rcx + 0x1c], dil
je 0x14014507b
cmp byte [rcx + 0x19], 2
jb 0x14014507b
mov r9d, dword [rbp - 0x49]
mov rcx, qword [rcx + 0x10]
mov edx, 0x18
mov r8, r15
mov dword [rsp + 0x20], ebx
call fcn.1400d357c
mov eax, ebx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140168920
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret