Function at 0x140005b30
Capabilities:
Get disk information via ioctl

Disassembly:
push rbp
push rbx
push r13
push r14
lea rbp, [rsp - 0x818]
sub rsp, 0x918
mov rax, qword [0x1400321e8]
xor rax, rsp
mov qword [rbp + 0x800], rax
mov eax, dword [rcx + 0x18]
mov r13, rcx
test eax, 0xfffffffd
je 0x140005b7c
cmp eax, 1
jne 0x140005b72
lea r14, [0x140026270]
jmp 0x140005b83
mov eax, 0xffffe5b1
jmp 0x14000645c
lea r14, [0x140026260]
mov r9d, 0x12
mov qword [rsp + 0x910], r15
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x140005bc4
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140005d2b
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140006454
mov qword [rsp + 0x948], rsi
xorps xmm0, xmm0
mov qword [rsp + 0x958], r12
xor r12d, r12d
mov esi, r12d
mov qword [rsp + 0x950], rdi
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
nop
lea rax, [rbp - 0x60]
mov dword [rbp - 0x60], 0x20
mov r9d, esi
mov qword [rsp + 0x20], rax
mov r8, r14
xor edx, edx
mov rcx, r15
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
jne 0x140005c3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140005d6b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0x103
je 0x1400062d7
test eax, eax
jne 0x14000642b
lea rax, [rsp + 0x70]
mov dword [rbp], 8
mov qword [rsp + 0x28], rax
lea r8, [rbp]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], r12d
mov r9d, 0x800
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x60]
mov dword [rsp + 0x70], 0x20
mov rcx, r15
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
test eax, eax
jne 0x140005c9d
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140005d64
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140005d64
xor r9d, r9d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
lea rcx, [rbp + 4]
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140005ce9
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140005d64
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140005d64
mov qword [rsp + 0x38], r12
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
xor r9d, r9d
lea rax, [rbp - 0x70]
mov dword [rsp + 0x28], 0xc
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x2d1080
mov dword [rsp + 0x40], r12d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140005d35
mov ebx, r12d
jmp 0x140005d4e
mov eax, 0xffffe5d4
jmp 0x140006454
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140005d49
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x140005d4e
mov ebx, 0xffffe5d4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x140005d64
mov eax, dword [r13 + 0x1c]
cmp dword [rbp - 0x6c], eax
je 0x140005d75
inc esi
jmp 0x140005bf0
mov ebx, 0xffffe5d4
jmp 0x14000642b
xor dil, dil
cmp dword [r13 + 0x18], 2
je 0x14000610d
mov ecx, dword [rbp - 0x7c]
lea rdx, [rbp]
xor r9d, r9d
mov r8d, 0x800
call qword [sym.imp.SETUPAPI.dll_CM_Get_Device_IDW]
mov ebx, eax
test eax, eax
jne 0x14000642b
lea r8d, [rax + 4]
lea rdx, str.IDE_
lea rcx, [rbp]
call fcn.140011fb8
test eax, eax
jne 0x140006012
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], 0x800
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x4c]
lea rax, [rbp]
mov dword [rsp + 0x28], 0x800
lea r8d, [rbx + 0xd]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x70]
mov rcx, r15
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
jne 0x140005e1b
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140005d6b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jne 0x14000642b
lea rax, [rbp]
lea r8, [rsp + 0x58]
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x50]
lea rcx, [rbp]
call fcn.140005a50
mov ebx, eax
test eax, eax
jne 0x14000642b
mov rcx, qword [rsp + 0x58]
cmp word [rcx], r12w
je 0x140005e59
xor r8d, r8d
lea rdx, [rsp + 0x50]
call fcn.140005a50
cmp dword [rsp + 0x50], r12d
lea rcx, [rsp + 0x44]
mov edx, dword [rbp - 0x7c]
mov eax, 1
movzx edi, dil
cmovne edi, eax
xor r8d, r8d
call qword [sym.imp.SETUPAPI.dll_CM_Get_Parent]
mov ebx, eax
test eax, eax
jne 0x14000642b
mov ecx, dword [rsp + 0x44]
lea rdx, [rbp]
xor r9d, r9d
mov r8d, 0x800
call qword [sym.imp.SETUPAPI.dll_CM_Get_Device_IDW]
mov ebx, eax
test eax, eax
jne 0x14000642b
lea rax, [rsp + 0x70]
mov dword [rsp + 0x70], 0x20
lea r9d, [rbx + 2]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rbp]
mov rcx, r15
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenDeviceInfoW]
test eax, eax
jne 0x140005eee
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140005d6b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jne 0x14000642b
mov ecx, dword [rbp - 0x7c]
lea rdx, [rbp]
xor r9d, r9d
mov r8d, 0x800
call qword [sym.imp.SETUPAPI.dll_CM_Get_Device_IDW]
mov ebx, eax
test eax, eax
jne 0x14000642b
lea r8d, [rax + 7]
lea rdx, str.PCIIDE_
lea rcx, [rbp]
call fcn.140011fb8
test eax, eax
je 0x140005f30
mov ebx, 0xffffe5b0
jmp 0x14000642b
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], 0x800
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x4c]
lea rax, [rbp]
mov dword [rsp + 0x28], 0x800
mov r8d, 0xd
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x70]
mov rcx, r15
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
jne 0x140005f8e
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140005d6b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jne 0x14000642b
xor r8d, r8d
lea rdx, [rsp + 0x48]
lea rcx, [rbp]
call fcn.140005a50
test eax, eax
je 0x140005ffe
lea r8, [rbp]
mov edx, 0x10
lea r9, str.Primary_Channel
mov rcx, r12
nop word [rax + rax]
movzx eax, word [r8 + rcx*2]
cmp ax, word [r9 + rcx*2]
jne 0x140005fed
movzx eax, word [r8 + rcx*2 + 2]
cmp ax, word [r9 + rcx*2 + 2]
jne 0x140005fed
add rcx, 2
cmp rcx, rdx
jne 0x140005fc0
mov dword [rsp + 0x48], r12d
jmp 0x1400060c5
mov dword [rsp + 0x48], 0xffffffff
or dil, 0x10
jmp 0x1400060c5
cmp dword [rsp + 0x48], r12d
je 0x1400060c5
or dil, 0x10
jmp 0x1400060c5
mov r8d, 5
lea rdx, str.SCSI_
lea rcx, [rbp]
call fcn.140011fb8
test eax, eax
jne 0x140006103
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], 0x800
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x4c]
lea rax, [rbp]
mov dword [rsp + 0x28], 0x800
mov r8d, 0xd
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x70]
mov rcx, r15
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
jne 0x14000608e
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140005d6b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jne 0x14000642b
lea rax, [rbp]
lea r8, [rsp + 0x58]
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x60]
lea rcx, [rbp]
call fcn.140005a50
mov ebx, eax
test eax, eax
jne 0x14000642b
cmp dword [rsp + 0x60], r12d
mov edx, 0x10
movzx edi, dil
cmovne edi, edx
mov edx, dword [rbp - 0x7c]
lea rcx, [rsp + 0x44]
xor r8d, r8d
call qword [sym.imp.SETUPAPI.dll_CM_Get_Parent]
mov ebx, eax
test eax, eax
jne 0x14000642b
mov ecx, dword [rsp + 0x44]
lea rdx, [rbp]
xor r9d, r9d
mov r8d, 0x800
call qword [sym.imp.SETUPAPI.dll_CM_Get_Device_IDW]
mov ebx, eax
test eax, eax
jne 0x14000642b
jmp 0x140006167
mov ebx, 0xffffe5b1
jmp 0x14000642b
mov ebx, dword [rbp - 0x7c]
xor r8d, r8d
lea rcx, [rsp + 0x44]
mov edx, ebx
call qword [sym.imp.SETUPAPI.dll_CM_Get_Parent]
mov ebx, eax
test eax, eax
jne 0x14000642b
mov ecx, dword [rsp + 0x44]
lea rdx, [rbp]
xor r9d, r9d
mov r8d, 0x800
call qword [sym.imp.SETUPAPI.dll_CM_Get_Device_IDW]
mov ebx, eax
test eax, eax
jne 0x14000642b
mov ebx, dword [rsp + 0x44]
lea r8d, [rax + 4]
lea rdx, str.PCI_
lea rcx, [rbp]
call fcn.140011fb8
test eax, eax
jne 0x140006110
lea rax, [rsp + 0x70]
mov dword [rsp + 0x70], 0x20
mov r9d, 2
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rbp]
mov rcx, r15
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenDeviceInfoW]
test eax, eax
jne 0x1400061b1
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140005d6b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jne 0x14000642b
mov ecx, dword [rbp - 0x7c]
lea rdx, [rbp]
xor r9d, r9d
mov r8d, 0x800
call qword [sym.imp.SETUPAPI.dll_CM_Get_Device_IDW]
mov ebx, eax
test eax, eax
jne 0x14000642b
lea r8d, [rax + 4]
lea rdx, str.PCI_
lea rcx, [rbp]
call fcn.140011fb8
test eax, eax
je 0x1400061f3
mov ebx, 0xffffe5b0
jmp 0x14000642b
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], 0x800
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x4c]
lea rax, [rbp]
mov dword [rsp + 0x28], 0x800
mov r8d, 0xd
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x70]
mov rcx, r15
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
jne 0x140006251
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140005d6b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jne 0x14000642b
movzx eax, word [rbp]
lea rbx, [rbp]
test ax, ax
je 0x140006277
nop
sub ax, 0x30
cmp ax, 9
jbe 0x140006277
movzx eax, word [rbx + 2]
add rbx, 2
test ax, ax
jne 0x140006260
lea rcx, [rbp - 0x40]
nop dword [rax + rax]
movzx edx, word [rbx]
lea eax, [rdx - 0x30]
cmp ax, 9
lea rax, [rbp]
ja 0x1400062aa
mov word [rcx], dx
add rbx, 2
add rcx, 2
cmp rcx, rax
jb 0x140006280
mov ebx, 0xffffe5aa
jmp 0x14000642b
cmp rcx, rax
jb 0x1400062b9
mov ebx, 0xffffe5aa
jmp 0x14000642b
mov word [rcx], r12w
lea r8, [rsp + 0x64]
lea rcx, [rbp - 0x40]
lea rdx, [0x140021884]
call fcn.1400068d0
cmp eax, 1
je 0x1400062e1
mov ebx, 0xffffe5b9
jmp 0x14000642b
movzx eax, word [rbx]
test ax, ax
je 0x140006307
nop dword [rax]
sub ax, 0x30
cmp ax, 9
jbe 0x140006307
movzx eax, word [rbx + 2]
add rbx, 2
test ax, ax
jne 0x1400062f0
lea rcx, [rbp - 0x40]
nop dword [rax + rax]
movzx edx, word [rbx]
lea eax, [rdx - 0x30]
cmp ax, 9
lea rax, [rbp]
ja 0x14000633a
mov word [rcx], dx
add rbx, 2
add rcx, 2
cmp rcx, rax
jb 0x140006310
mov ebx, 0xffffe5aa
jmp 0x14000642b
cmp rcx, rax
jb 0x140006349
mov ebx, 0xffffe5aa
jmp 0x14000642b
mov word [rcx], r12w
lea r8, [rsp + 0x68]
lea rcx, [rbp - 0x40]
lea rdx, [0x140021884]
call fcn.1400068d0
cmp eax, 1
je 0x140006371
mov ebx, 0xffffe5b9
jmp 0x14000642b
movzx eax, word [rbx]
test ax, ax
je 0x140006397
nop dword [rax]
sub ax, 0x30
cmp ax, 9
jbe 0x140006397
movzx eax, word [rbx + 2]
add rbx, 2
test ax, ax
jne 0x140006380
lea rax, [rbp - 0x40]
sub rbx, rax
lea rcx, [rbp - 0x40]
nop dword [rax]
nop word [rax + rax]
movzx edx, word [rcx + rbx]
lea eax, [rdx - 0x30]
cmp ax, 9
lea rax, [rbp]
ja 0x1400063d4
mov word [rcx], dx
add rcx, 2
cmp rcx, rax
jb 0x1400063b0
mov ebx, 0xffffe5aa
jmp 0x14000642b
cmp rcx, rax
jb 0x1400063e0
mov ebx, 0xffffe5aa
jmp 0x14000642b
mov word [rcx], r12w
lea r8, [rsp + 0x6c]
lea rcx, [rbp - 0x40]
lea rdx, [0x140021884]
call fcn.1400068d0
cmp eax, 1
je 0x140006405
mov ebx, 0xffffe5b9
jmp 0x14000642b
movzx eax, byte [rsp + 0x64]
mov ebx, r12d
mov byte [r13 + 0x21], al
movzx eax, byte [rsp + 0x68]
mov byte [r13 + 0x22], al
movzx eax, byte [rsp + 0x6c]
mov byte [r13 + 0x23], al
mov byte [r13 + 0x20], r12b
mov byte [r13 + 0x24], dil
mov r12, qword [rsp + 0x958]
mov rdi, qword [rsp + 0x950]
mov rsi, qword [rsp + 0x948]
cmp r15, 0xffffffffffffffff
je 0x140006452
mov rcx, r15
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, ebx
mov r15, qword [rsp + 0x910]
mov rcx, qword [rbp + 0x800]
xor rcx, rsp
call fcn.140007800
add rsp, 0x918
pop r14
pop r13
pop rbx
pop rbp
ret