Function at 0x1001269e0
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, [0x100008038]
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 0x100126a97
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [0x1001653b8]
lea rbp, [0x1001653b8]
lea r13, [0x100002f20]
cmp rcx, rbp
je 0x100126a84
test byte [rcx + 0x1c], 1
je 0x100126a84
cmp byte [rcx + 0x19], 2
jb 0x100126a84
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x10]
mov r9d, eax
mov r8, r13
call fcn.10001c7dc
mov rcx, qword [0x1001653b8]
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
jmp 0x100126eba
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, [0x100008038]
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, [0x100002f20]
test eax, eax
je 0x100126e18
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 0x100126b25
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 0x7a
jne 0x100126d09
mov rsi, qword [rsp + 0x48]
test r14, r14
je 0x100126b33
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 0x100126e11
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 0x100126ddb
cmp r15, 0xffffffffffffffff
je 0x100126bbc
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 0x100126c30
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1001653b8]
cmp rcx, rbp
je 0x100126cbe
test byte [rcx + 0x1c], 1
je 0x100126cbe
cmp byte [rcx + 0x19], 3
jb 0x100126cbe
mov rcx, qword [rcx + 0x10]
lea edx, [r15 + 0x15]
lea r9, [r14 + 4]
mov r8, r13
mov dword [rsp + 0x20], eax
call fcn.10001daa4
jmp 0x100126cbe
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 0x100126cb0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1001653b8]
cmp rcx, rbp
je 0x100126cbe
test byte [rcx + 0x1c], 1
je 0x100126cbe
cmp byte [rcx + 0x19], 3
jb 0x100126cbe
mov rcx, qword [rcx + 0x10]
lea r9, [r14 + 4]
mov edx, 0x15
mov r8, r13
mov dword [rsp + 0x20], eax
call fcn.10001daa4
jmp 0x100126cbe
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x64], eax
je 0x100126d48
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, [0x100008038]
xor edx, edx
mov rcx, rsi
mov dword [rsp + 0x78], 0x20
mov qword [rsp + 0x20], rax
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
jmp 0x100126ae0
mov rcx, qword [0x1001653b8]
cmp rcx, rbp
je 0x100126d35
test byte [rcx + 0x1c], 1
je 0x100126d35
cmp byte [rcx + 0x19], 2
jb 0x100126d35
mov edx, 0x12
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov r8, r13
call fcn.10001c7dc
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
jmp 0x100126e88
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 0x100126dc3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [0x1001653b8]
cmp rcx, rbp
je 0x100126d35
test byte [rcx + 0x1c], 1
je 0x100126d35
cmp byte [rcx + 0x19], 2
jb 0x100126d35
mov rcx, qword [rcx + 0x10]
lea r9, [r14 + 4]
mov edx, 0x16
mov r8, r13
mov dword [rsp + 0x20], eax
call fcn.10001daa4
jmp 0x100126d35
cmp dword [rsp + 0x58], 1
je 0x100126e8d
mov rax, qword [rsp + 0x70]
mov byte [rax], 1
jmp 0x100126e8d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [0x1001653b8]
cmp rcx, rbp
je 0x100126d35
test byte [rcx + 0x1c], 1
je 0x100126d35
cmp byte [rcx + 0x19], 2
jb 0x100126d35
mov edx, 0x13
jmp 0x100126d26
mov ebx, 0x8007000e
jmp 0x100126e88
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 0x103
je 0x100126e55
mov rcx, qword [0x1001653b8]
cmp rcx, rbp
je 0x100126d35
test byte [rcx + 0x1c], 1
je 0x100126d35
cmp byte [rcx + 0x19], 2
jb 0x100126d35
mov edx, 0x11
jmp 0x100126d26
mov rcx, qword [0x1001653b8]
cmp rcx, rbp
je 0x100126e83
test byte [rcx + 0x1c], 1
je 0x100126e83
cmp byte [rcx + 0x19], 2
jb 0x100126e83
mov r9d, dword [rsp + 0x50]
mov rcx, qword [rcx + 0x10]
mov edx, 0x17
mov r8, r13
call fcn.10001c7dc
mov ebx, 0x8000ffff
mov rsi, qword [rsp + 0x48]
cmp r15, 0xffffffffffffffff
je 0x100126e9c
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r14, r14
je 0x100126eaa
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 0x100126ee9
cmp rcx, rbp
je 0x100126ee9
test byte [rcx + 0x1c], 1
je 0x100126ee9
cmp byte [rcx + 0x19], 2
jb 0x100126ee9
mov r9d, dword [rsp + 0x50]
mov rcx, qword [rcx + 0x10]
mov edx, 0x18
mov r8, r13
mov dword [rsp + 0x20], ebx
call fcn.10001e8b4
mov eax, ebx
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.10014e480
mov rbx, qword [rsp + 0x100]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop rsi
pop rbp
ret