Function at 0x1400caf40
Capabilities:
Get disk information via ioctl

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x688
mov rax, qword [0x1403c6400]
xor rax, rsp
mov qword [rsp + 0x670], rax
mov qword [rsp + 0x50], 0xffffffffffffffff
xor eax, eax
mov word [rsp + 0x48], ax
xor eax, eax
mov word [rsp + 0x44], ax
xor eax, eax
mov word [rsp + 0x58], ax
mov r9d, sendto
xor r8d, r8d
xor edx, edx
lea rcx, [0x14034def8]
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0xffffffffffffffff
jne 0x1400cafc4
mov rax, qword [rsp + 0x6b8]
mov dword [rax], 4
xor eax, eax
jmp 0x1400cb3d0
mov dword [rsp + 0x5c], 0
jmp 0x1400cafd8
mov eax, dword [rsp + 0x5c]
inc eax
mov dword [rsp + 0x5c], eax
mov dword [rsp + 0xc0], 0x20
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x5c]
lea r8, [0x14034def8]
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x1400cb019
jmp 0x1400cb188
mov r8d, 0x400
xor edx, edx
lea rcx, [rsp + 0x270]
call fcn.140268ee0
lea rax, [rsp + 0x270]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov dword [rax], 8
mov r8d, 0x20
xor edx, edx
lea rcx, [rsp + 0xa0]
call fcn.140268ee0
mov dword [rsp + 0xa0], 0x20
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov r9d, 0x400
mov r8, qword [rsp + 0x80]
lea rdx, [rsp + 0xc0]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x1400cb0b7
jmp 0x1400cafce
mov rax, qword [rsp + 0x80]
add rax, 4
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 3
mov edx, 0xc0000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0xffffffffffffffff
jne 0x1400cb105
jmp 0x1400cafce
mov r8d, reloc.WS2_32.dll_inet_ntoa
xor edx, edx
lea rcx, [rsp + 0x90]
call fcn.140268ee0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x8c]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], reloc.WS2_32.dll_inet_ntoa
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x2d1080
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x1400cb178
mov eax, dword [rsp + 0x690]
cmp dword [rsp + 0x94], eax
jne 0x1400cb178
jmp 0x1400cb188
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400cafce
mov eax, dword [rsp + 0x690]
cmp dword [rsp + 0x94], eax
je 0x1400cb1b8
mov rax, qword [rsp + 0x6b8]
mov dword [rax], 7
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400cb3d0
xor r8d, r8d
mov edx, dword [rsp + 0xb4]
lea rcx, [rsp + 0x70]
call qword [sym.imp.SETUPAPI.dll_CM_Get_Parent]
test eax, eax
je 0x1400cb1f1
mov rax, qword [rsp + 0x6b8]
mov dword [rax], 6
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400cb3d0
xor r9d, r9d
mov r8d, reloc.OLEAUT32.dll_SetErrorInfo
lea rdx, [rsp + 0xe0]
mov ecx, dword [rsp + 0x70]
call qword [sym.imp.SETUPAPI.dll_CM_Get_Device_IDW]
test eax, eax
je 0x1400cb230
mov rax, qword [rsp + 0x6b8]
mov dword [rax], 5
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400cb3d0
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x44]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0xe0]
call fcn.1400ca500
test eax, eax
jne 0x1400cb270
mov rax, qword [rsp + 0x6b8]
mov dword [rax], 2
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400cb3d0
mov rax, qword [rsp + 0x6a8]
movzx ecx, word [rsp + 0x48]
mov word [rax], cx
mov rax, qword [rsp + 0x6b0]
movzx ecx, word [rsp + 0x44]
mov word [rax], cx
movzx r8d, word [rsp + 0x58]
movzx edx, word [rsp + 0x44]
movzx ecx, word [rsp + 0x48]
call fcn.1400ca470
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x1400cb2d2
mov rax, qword [rsp + 0x6b8]
mov dword [rax], 1
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400cb3d0
mov rax, qword [rsp + 0x68]
movzx eax, byte [rax + 0x10]
test eax, eax
jne 0x1400cb2ff
mov rax, qword [rsp + 0x6b8]
mov dword [rax], 8
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400cb3d0
mov rax, qword [rsp + 0x68]
movzx eax, byte [rax + 0x10]
mov byte [rsp + 0x60], al
cmp byte [rsp + 0x60], 1
je 0x1400cb323
cmp byte [rsp + 0x60], 3
je 0x1400cb345
cmp byte [rsp + 0x60], 4
je 0x1400cb36a
jmp 0x1400cb38f
mov r9, qword [rsp + 0x6a0]
mov r8, qword [rsp + 0x698]
xor edx, edx
mov rcx, qword [rsp + 0x50]
call fcn.1400c9c40
mov dword [rsp + 0x40], eax
jmp 0x1400cb3ac
mov r9, qword [rsp + 0x6a0]
mov r8, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x698]
mov rcx, qword [rsp + 0x50]
call fcn.1400ca7b0
mov dword [rsp + 0x40], eax
jmp 0x1400cb3ac
mov r9, qword [rsp + 0x6a0]
mov r8, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x698]
mov rcx, qword [rsp + 0x50]
call fcn.1400cac10
mov dword [rsp + 0x40], eax
jmp 0x1400cb3ac
mov rax, qword [rsp + 0x6b8]
mov dword [rax], 3
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400cb3d0
cmp dword [rsp + 0x40], 0
jne 0x1400cb3c1
mov rax, qword [rsp + 0x6b8]
mov dword [rax], 9
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x670]
xor rcx, rsp
call fcn.140263a60
add rsp, 0x688
ret