Function at 0x140001290
Capabilities:
Get disk information via ioctl

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1090
call fcn.140004a20
sub rsp, rax
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rsp + 0x1080], rax
mov r14, rcx
mov r9d, 0x12
xor r8d, r8d
xor edx, edx
lea rcx, [0x1400058b8]
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x140001326
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.SetupDiGetClassDevs_failed._Error:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140002f90
mov rcx, rax
mov edx, ebx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x140003160]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x14000163b
mov dword [rsp + 0x60], 0x20
xor r13d, r13d
mov r12d, r13d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [0x1400058b8]
xor edx, edx
mov rcx, r15
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
je 0x140001632
nop dword [rax + rax]
mov dword [rsp + 0x40], r13d
mov qword [rsp + 0x28], r13
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, r15
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
xorps xmm0, xmm0
mov edi, dword [rsp + 0x40]
movdqu xmmword [rsp + 0x48], xmm0
mov rsi, r13
mov qword [rsp + 0x58], r13
mov rbx, r13
test rdi, rdi
je 0x140001407
cmp rdi, 0x1000
jb 0x1400013d7
lea rcx, [rdi + 0x27]
cmp rcx, rdi
jbe 0x1400016d2
call fcn.140003bf0
test rax, rax
je 0x1400016cb
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x1400013e2
mov rcx, rdi
call fcn.140003bf0
mov rbx, rax
mov rbp, rbx
mov qword [rsp + 0x48], rbx
lea rsi, [rbx + rdi]
mov qword [rsp + 0x58], rsi
mov r8, rdi
xor edx, edx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x50], rsi
jmp 0x14000140c
mov rbp, qword [rsp + 0x48]
mov dword [rbx], 8
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
mov r9d, dword [rsp + 0x40]
mov r8, rbx
lea rdx, [rsp + 0x60]
mov rcx, r15
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
test eax, eax
jne 0x1400014a6
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.SetupDiGetDeviceInterfaceDetail_failed._Error:
mov edi, eax
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140002f90
mov rcx, rax
mov edx, edi
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x140003160]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
test rbx, rbx
je 0x140001608
sub rsi, rbx
cmp rsi, 0x1000
jb 0x14000149e
add rsi, 0x27
mov rax, qword [rbx - 8]
sub rbx, rax
add rbx, 0xfffffffffffffff8
cmp rbx, 0x1f
ja 0x1400016cb
mov rbx, rax
mov rcx, rbx
jmp 0x140001600
lea rcx, [rbx + 4]
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400014e9
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.CreateFile_failed._Error:
jmp 0x140001443
mov dword [rsp + 0x44], r13d
mov qword [rsp + 0x38], r13
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x1000
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x70050
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140001590
mov ebx, r13d
mov ecx, dword [rsp + 0x84]
test ecx, ecx
je 0x1400015c6
lea rax, [rsp + 0xd6]
mov rdx, qword [0x140005828]
nop dword [rax + rax]
cmp dword [rax - 0x26], 1
jne 0x140001582
cmp dword [rax - 6], 0xc12a7328
jne 0x140001582
mov r8d, 0xf81f
cmp word [rax - 2], r8w
jne 0x140001582
mov r8d, 0x11d2
cmp word [rax], r8w
jne 0x140001582
cmp qword [rax + 2], rdx
je 0x140001676
inc ebx
add rax, 0x90
cmp ebx, ecx
jb 0x140001550
jmp 0x1400015c6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.DeviceIoControl_failed._Error:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140002f90
mov rcx, rax
mov edx, ebx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x140003160]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
test rbp, rbp
je 0x140001608
sub rsi, rbp
mov rax, rbp
cmp rsi, 0x1000
jb 0x1400015fd
add rsi, 0x27
mov rbp, qword [rbp - 8]
sub rax, rbp
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400016cb
mov rcx, rbp
mov rdx, rsi
call fcn.140003c2c
inc r12d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, r12d
lea r8, [0x1400058b8]
xor edx, edx
mov rcx, r15
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
jne 0x140001360
mov rcx, r15
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov qword [r14], 0xffffffffffffffff
mov rax, r14
mov rcx, qword [rsp + 0x1080]
xor rcx, rsp
call fcn.140003bd0
lea r11, [rsp + 0x1090]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r15
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
lea eax, [rbx + 1]
mov dword [r14], r12d
mov dword [r14 + 4], eax
test rbp, rbp
je 0x140001642
sub rsi, rbp
mov rax, rbp
cmp rsi, 0x1000
jb 0x1400016bb
add rsi, 0x27
mov rbp, qword [rbp - 8]
sub rax, rbp
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400016cb
mov rdx, rsi
mov rcx, rbp
call fcn.140003c2c
jmp 0x140001642
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001110
int3