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.140004b50
sub rsp, rax
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rsp + 0x1080], rax
mov r15, rcx
lea rdx, str.Hi_faggot1_n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400030c0
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r9d, 0x12
xor r8d, r8d
xor edx, edx
lea rcx, [0x140005968]
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x140001344
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.1400030c0
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, [0x140003290]
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 0x1400016b7
lea rdx, str.Hi_faggot2_n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400030c0
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
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, [0x140005968]
xor edx, edx
mov rcx, r14
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
je 0x140001672
nop word [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, r14
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 0x140001447
cmp rdi, 0x1000
jb 0x140001417
lea rcx, [rdi + 0x27]
cmp rcx, rdi
jbe 0x14000174e
call fcn.140003d20
test rax, rax
je 0x140001747
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x140001422
mov rcx, rdi
call fcn.140003d20
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 0x14000144c
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, r14
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
test eax, eax
jne 0x1400014e6
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.1400030c0
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, [0x140003290]
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 0x140001648
sub rsi, rbx
cmp rsi, 0x1000
jb 0x1400014de
add rsi, 0x27
mov rax, qword [rbx - 8]
sub rbx, rax
add rbx, 0xfffffffffffffff8
cmp rbx, 0x1f
ja 0x140001747
mov rbx, rax
mov rcx, rbx
jmp 0x140001640
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 0x140001529
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.CreateFile_failed._Error:
jmp 0x140001483
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 0x1400015d0
mov ebx, r13d
mov ecx, dword [rsp + 0x84]
test ecx, ecx
je 0x140001606
lea rax, [rsp + 0xd6]
mov rdx, qword [0x1400058d8]
nop dword [rax + rax]
cmp dword [rax - 0x26], 1
jne 0x1400015c2
cmp dword [rax - 6], 0xc12a7328
jne 0x1400015c2
mov r8d, 0xf81f
cmp word [rax - 2], r8w
jne 0x1400015c2
mov r8d, 0x11d2
cmp word [rax], r8w
jne 0x1400015c2
cmp qword [rax + 2], rdx
je 0x1400016f2
inc ebx
add rax, 0x90
cmp ebx, ecx
jb 0x140001590
jmp 0x140001606
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.1400030c0
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, [0x140003290]
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 0x140001648
sub rsi, rbp
mov rax, rbp
cmp rsi, 0x1000
jb 0x14000163d
add rsi, 0x27
mov rbp, qword [rbp - 8]
sub rax, rbp
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001747
mov rcx, rbp
mov rdx, rsi
call fcn.140003d5c
inc r12d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, r12d
lea r8, [0x140005968]
xor edx, edx
mov rcx, r14
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
jne 0x1400013a0
lea rdx, str.Hi_faggot3_n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400030c0
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, r14
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
lea rdx, str.Hi_faggot4_n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400030c0
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [r15], 0xffffffffffffffff
mov rax, r15
mov rcx, qword [rsp + 0x1080]
xor rcx, rsp
call fcn.140003d00
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, r14
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
lea eax, [rbx + 1]
mov dword [r15], r12d
mov dword [r15 + 4], eax
test rbp, rbp
je 0x1400016be
sub rsi, rbp
mov rax, rbp
cmp rsi, 0x1000
jb 0x140001737
add rsi, 0x27
mov rbp, qword [rbp - 8]
sub rax, rbp
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001747
mov rdx, rsi
mov rcx, rbp
call fcn.140003d5c
jmp 0x1400016be
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001110
int3