Function at 0x14012d504
Capabilities:
Get disk information via ioctl

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r12
push r13
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xd0
mov rax, qword [0x14017a608]
xor rax, rsp
mov qword [rbp + 0x27], rax
xor ebx, ebx
mov qword [rbp - 0x31], rdx
mov dword [rbp - 0x49], ecx
or rsi, 0xffffffffffffffff
mov byte [rdx], bl
lea rcx, [0x14015c198]
xor r8d, r8d
mov qword [rbp - 0x51], rsi
lea r9d, [rbx + 0x12]
xor edx, edx
xor r13d, r13d
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
nop dword [rax + rax]
mov qword [rbp - 0x41], rax
cmp rax, rsi
jne 0x14012d5c9
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14017a048]
lea r14, [0x14017a048]
lea r12, [0x140168aa0]
cmp rcx, r14
je 0x14012d5b3
test byte [rcx + 0x1c], 1
je 0x14012d5b3
cmp byte [rcx + 0x19], 2
jb 0x14012d5b3
mov rcx, qword [rcx + 0x10]
lea edx, [rsi + 0x11]
mov r9d, eax
mov r8, r12
call fcn.140006cec
mov rcx, qword [0x14017a048]
test ebx, ebx
jle 0x14012da46
movzx ebx, bx
or ebx, 0x80070000
jmp 0x14012da44
and dword [rbp - 0x45], ebx
lea rcx, [rbp - 0x19]
xorps xmm0, xmm0
mov qword [rsp + 0x20], rcx
movups xmmword [rbp - 0x19], xmm0
mov rcx, rax
mov dword [rbp - 0x19], 0x20
xor r9d, r9d
lea r8, [0x14015c198]
xor edx, edx
movups xmmword [rbp - 9], xmm0
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
nop dword [rax + rax]
lea r14, [0x14017a048]
lea r12, [0x140168aa0]
test eax, eax
je 0x14012d981
and qword [rsp + 0x28], rbx
lea rax, [rbp - 0x59]
mov rcx, qword [rbp - 0x41]
lea rdx, [rbp - 0x19]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
nop dword [rax + rax]
test eax, eax
jne 0x14012d65f
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov esi, eax
cmp eax, 0x7a
jne 0x14012d860
mov rsi, qword [rbp - 0x51]
test r13, r13
je 0x14012d673
mov rcx, r13
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov ecx, dword [rbp - 0x59]
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov r13, rax
test rax, rax
je 0x14012d977
mov r8d, dword [rbp - 0x59]
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov rcx, qword [rbp - 0x41]
lea rax, [rbp + 7]
mov dword [r13], 8
lea rdx, [rbp - 0x19]
mov r9d, dword [rbp - 0x59]
xorps xmm0, xmm0
movups xmmword [rbp + 7], xmm0
mov qword [rsp + 0x28], rax
mov r8, r13
and qword [rsp + 0x20], rbx
mov dword [rbp + 7], 0x20
movups xmmword [rbp + 0x17], xmm0
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
nop dword [rax + rax]
test eax, eax
je 0x14012d94a
cmp rsi, 0xffffffffffffffff
je 0x14012d6fc
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
and qword [rsp + 0x30], rbx
lea rsi, [r13 + 4]
and dword [rsp + 0x28], ebx
mov eax, 3
mov r8d, eax
mov dword [rsp + 0x20], eax
mov rcx, rsi
xor r9d, r9d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov qword [rbp - 0x51], rax
cmp rax, 0xffffffffffffffff
jne 0x14012d780
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14017a048]
cmp rcx, r14
je 0x14012d810
test byte [rcx + 0x1c], 1
je 0x14012d810
cmp byte [rcx + 0x19], 3
jb 0x14012d810
mov rcx, qword [rcx + 0x10]
mov edx, 0x14
mov r9, rsi
mov dword [rsp + 0x20], eax
mov r8, r12
call fcn.140011330
jmp 0x14012d810
xor ecx, ecx
xor r9d, r9d
and qword [rsp + 0x38], rcx
xor r8d, r8d
mov qword [rbp - 0x29], rcx
mov edx, 0x2d1080
mov dword [rbp - 0x21], ecx
lea rcx, [rbp - 0x59]
mov qword [rsp + 0x30], rcx
lea rcx, [rbp - 0x29]
mov dword [rsp + 0x28], 0xc
mov qword [rsp + 0x20], rcx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
nop dword [rax + rax]
test eax, eax
jne 0x14012d804
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14017a048]
cmp rcx, r14
je 0x14012d810
test byte [rcx + 0x1c], 1
je 0x14012d810
cmp byte [rcx + 0x19], 3
jb 0x14012d810
mov rcx, qword [rcx + 0x10]
mov edx, 0x15
mov r9, rsi
mov dword [rsp + 0x20], eax
mov r8, r12
call fcn.14003d060
jmp 0x14012d810
mov eax, dword [rbp - 0x49]
cmp dword [rbp - 0x25], eax
je 0x14012d89f
mov eax, dword [rbp - 0x45]
lea rcx, [rbp - 0x19]
inc eax
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbp - 0x41]
lea r8, [0x14015c198]
xorps xmm0, xmm0
mov dword [rbp - 0x45], eax
movups xmmword [rbp - 0x19], xmm0
mov r9d, eax
mov dword [rbp - 0x19], 0x20
xor edx, edx
movups xmmword [rbp - 9], xmm0
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
nop dword [rax + rax]
test eax, eax
je 0x14012d981
mov rsi, qword [rbp - 0x51]
jmp 0x14012d618
mov rcx, qword [0x14017a048]
cmp rcx, r14
je 0x14012d88c
test byte [rcx + 0x1c], 1
je 0x14012d88c
cmp byte [rcx + 0x19], 2
jb 0x14012d88c
mov rcx, qword [rcx + 0x10]
mov edx, 0x12
mov r9d, esi
mov r8, r12
call fcn.140006cec
test esi, esi
jg 0x14012d897
mov ebx, esi
jmp 0x14012da03
movzx ebx, si
jmp 0x14012d9c9
mov rcx, qword [rbp - 0x41]
lea rax, [rbp - 0x59]
mov qword [rsp + 0x30], rax
lea rdx, [rbp + 7]
xor r9d, r9d
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x39]
mov qword [rsp + 0x20], rax
lea r8d, [r9 + 0x1f]
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
nop dword [rax + rax]
test eax, eax
jne 0x14012d930
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14017a048]
cmp rcx, r14
je 0x14012d916
test byte [rcx + 0x1c], 1
je 0x14012d916
cmp byte [rcx + 0x19], 2
jb 0x14012d916
mov rcx, qword [rcx + 0x10]
mov edx, 0x16
mov r9, rsi
mov dword [rsp + 0x20], eax
mov r8, r12
call fcn.14003d060
mov rcx, qword [rbp - 0x51]
test ebx, ebx
jle 0x14012da0d
movzx ebx, bx
or ebx, 0x80070000
jmp 0x14012da0d
cmp dword [rbp - 0x39], 1
mov rcx, qword [rbp - 0x51]
je 0x14012da0d
mov rax, qword [rbp - 0x31]
mov byte [rax], 1
jmp 0x14012da0d
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14017a048]
cmp rcx, r14
je 0x14012d9c2
test byte [rcx + 0x1c], 1
je 0x14012d9c2
cmp byte [rcx + 0x19], 2
jb 0x14012d9c2
mov edx, 0x13
jmp 0x14012d9b3
mov ebx, 0x8007000e
jmp 0x14012da03
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0x103
je 0x14012d9d1
mov rcx, qword [0x14017a048]
cmp rcx, r14
je 0x14012d9c2
test byte [rcx + 0x1c], 1
je 0x14012d9c2
cmp byte [rcx + 0x19], 2
jb 0x14012d9c2
mov edx, 0x11
mov rcx, qword [rcx + 0x10]
mov r9d, ebx
mov r8, r12
call fcn.140006cec
test ebx, ebx
jle 0x14012da03
movzx ebx, bx
or ebx, 0x80070000
jmp 0x14012da03
mov rcx, qword [0x14017a048]
cmp rcx, r14
je 0x14012d9fe
test byte [rcx + 0x1c], 1
je 0x14012d9fe
cmp byte [rcx + 0x19], 2
jb 0x14012d9fe
mov r9d, dword [rbp - 0x49]
mov edx, 0x17
mov rcx, qword [rcx + 0x10]
mov r8, r12
call fcn.140006cec
mov ebx, 0x8000ffff
mov rcx, qword [rbp - 0x51]
cmp rcx, 0xffffffffffffffff
je 0x14012da19
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test r13, r13
je 0x14012da2d
mov rcx, r13
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
nop dword [rax + rax]
mov rcx, qword [0x14017a048]
test ebx, ebx
jns 0x14012da72
cmp rcx, r14
je 0x14012da72
test byte [rcx + 0x1c], 1
je 0x14012da72
cmp byte [rcx + 0x19], 2
jb 0x14012da72
mov r9d, dword [rbp - 0x49]
mov edx, 0x18
mov rcx, qword [rcx + 0x10]
mov r8, r12
mov dword [rsp + 0x20], ebx
call fcn.1400ce6a4
mov eax, ebx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140001d90
mov rbx, qword [rsp + 0x110]
add rsp, 0xd0
pop r14
pop r13
pop r12
pop rsi
pop rbp
ret