Function at 0x100126a84
Capabilities:
Get disk information via ioctl

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r13
push r14
push r15
sub rsp, 0xc0
mov rax, qword [0x100165138]
xor rax, rsp
mov qword [rsp + 0xb8], rax
xor ebx, ebx
mov dword [rsp + 0x50], ecx
mov qword [rsp + 0x70], rdx
mov byte [rdx], bl
lea rcx, [0x100007fb8]
lea r9d, [rbx + 0x12]
xor r8d, r8d
xor edx, edx
xor r14d, r14d
or r15, 0xffffffffffffffff
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov rsi, rax
mov qword [rsp + 0x48], rax
cmp rax, r15
jne 0x100126b3b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [0x1001653b8]
lea rbp, [0x1001653b8]
lea r13, [0x100002ee0]
cmp rcx, rbp
je 0x100126b28
test byte [rcx + 0x1c], 1
je 0x100126b28
cmp byte [rcx + 0x19], 2
jb 0x100126b28
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x10]
mov r9d, eax
mov r8, r13
call fcn.10001c878
mov rcx, qword [0x1001653b8]
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
jmp 0x100126f5e
and dword [rsp + 0x54], ebx
xor edx, edx
lea rcx, [rsp + 0x78]
lea r8d, [rdx + 0x20]
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x78]
lea r8, [0x100007fb8]
xor r9d, r9d
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x78], 0x20
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
lea rbp, [0x1001653b8]
lea r13, [0x100002ee0]
test eax, eax
je 0x100126ebc
and qword [rsp + 0x28], rbx
lea rax, [rsp + 0x40]
lea rdx, [rsp + 0x78]
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
test eax, eax
jne 0x100126bc9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 0x7a
jne 0x100126dad
mov rsi, qword [rsp + 0x48]
test r14, r14
je 0x100126bd7
mov rcx, r14
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov r14, rax
test rax, rax
je 0x100126eb5
mov r8d, dword [rsp + 0x40]
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
xor edx, edx
lea rcx, [rsp + 0x98]
lea r8d, [rdx + 0x20]
mov dword [r14], 8
call sub.msvcrt.dll_memset
mov r9d, dword [rsp + 0x40]
lea rax, [rsp + 0x98]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], rbx
lea rdx, [rsp + 0x78]
mov r8, r14
mov rcx, rsi
mov dword [rsp + 0x98], 0x20
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
test eax, eax
je 0x100126e7f
cmp r15, 0xffffffffffffffff
je 0x100126c60
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rsp + 0x30], rbx
and dword [rsp + 0x28], ebx
mov eax, 3
lea rcx, [r14 + 4]
mov r8d, eax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x100126cd4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1001653b8]
cmp rcx, rbp
je 0x100126d62
test byte [rcx + 0x1c], 1
je 0x100126d62
cmp byte [rcx + 0x19], 3
jb 0x100126d62
mov rcx, qword [rcx + 0x10]
lea edx, [r15 + 0x15]
lea r9, [r14 + 4]
mov r8, r13
mov dword [rsp + 0x20], eax
call fcn.10001ddb0
jmp 0x100126d62
xor eax, eax
xor r9d, r9d
xor r8d, r8d
and qword [rsp + 0x38], rax
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x64], eax
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x40]
mov edx, 0x2d1080
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
mov rcx, r15
mov dword [rsp + 0x28], 0xc
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x100126d54
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1001653b8]
cmp rcx, rbp
je 0x100126d62
test byte [rcx + 0x1c], 1
je 0x100126d62
cmp byte [rcx + 0x19], 3
jb 0x100126d62
mov rcx, qword [rcx + 0x10]
lea r9, [r14 + 4]
mov edx, 0x15
mov r8, r13
mov dword [rsp + 0x20], eax
call fcn.10001ddb0
jmp 0x100126d62
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x64], eax
je 0x100126dec
mov esi, dword [rsp + 0x54]
xor edx, edx
lea rcx, [rsp + 0x78]
lea r8d, [rdx + 0x20]
inc esi
mov dword [rsp + 0x54], esi
call sub.msvcrt.dll_memset
mov r9d, esi
mov rsi, qword [rsp + 0x48]
lea rax, [rsp + 0x78]
lea r8, [0x100007fb8]
xor edx, edx
mov rcx, rsi
mov dword [rsp + 0x78], 0x20
mov qword [rsp + 0x20], rax
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
jmp 0x100126b84
mov rcx, qword [0x1001653b8]
cmp rcx, rbp
je 0x100126dd9
test byte [rcx + 0x1c], 1
je 0x100126dd9
cmp byte [rcx + 0x19], 2
jb 0x100126dd9
mov edx, 0x12
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov r8, r13
call fcn.10001c878
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
jmp 0x100126f2c
mov rsi, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x58]
lea r8d, [r9 + 0x1f]
lea rdx, [rsp + 0x98]
mov rcx, rsi
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
jne 0x100126e67
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [0x1001653b8]
cmp rcx, rbp
je 0x100126dd9
test byte [rcx + 0x1c], 1
je 0x100126dd9
cmp byte [rcx + 0x19], 2
jb 0x100126dd9
mov rcx, qword [rcx + 0x10]
lea r9, [r14 + 4]
mov edx, 0x16
mov r8, r13
mov dword [rsp + 0x20], eax
call fcn.10001ddb0
jmp 0x100126dd9
cmp dword [rsp + 0x58], 1
je 0x100126f31
mov rax, qword [rsp + 0x70]
mov byte [rax], 1
jmp 0x100126f31
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [0x1001653b8]
cmp rcx, rbp
je 0x100126dd9
test byte [rcx + 0x1c], 1
je 0x100126dd9
cmp byte [rcx + 0x19], 2
jb 0x100126dd9
mov edx, 0x13
jmp 0x100126dca
mov ebx, 0x8007000e
jmp 0x100126f2c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 0x103
je 0x100126ef9
mov rcx, qword [0x1001653b8]
cmp rcx, rbp
je 0x100126dd9
test byte [rcx + 0x1c], 1
je 0x100126dd9
cmp byte [rcx + 0x19], 2
jb 0x100126dd9
mov edx, 0x11
jmp 0x100126dca
mov rcx, qword [0x1001653b8]
cmp rcx, rbp
je 0x100126f27
test byte [rcx + 0x1c], 1
je 0x100126f27
cmp byte [rcx + 0x19], 2
jb 0x100126f27
mov r9d, dword [rsp + 0x50]
mov rcx, qword [rcx + 0x10]
mov edx, 0x17
mov r8, r13
call fcn.10001c878
mov ebx, 0x8000ffff
mov rsi, qword [rsp + 0x48]
cmp r15, 0xffffffffffffffff
je 0x100126f40
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r14, r14
je 0x100126f4e
mov rcx, r14
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov rcx, qword [0x1001653b8]
test ebx, ebx
jns 0x100126f8d
cmp rcx, rbp
je 0x100126f8d
test byte [rcx + 0x1c], 1
je 0x100126f8d
cmp byte [rcx + 0x19], 2
jb 0x100126f8d
mov r9d, dword [rsp + 0x50]
mov rcx, qword [rcx + 0x10]
mov edx, 0x18
mov r8, r13
mov dword [rsp + 0x20], ebx
call fcn.10001d914
mov eax, ebx
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.10014e600
mov rbx, qword [rsp + 0x100]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop rsi
pop rbp
ret