Function at 0x140032bd0
Capabilities:
Get disk information via ioctl

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xd8]
sub rsp, 0x1b0
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14014dcf0]
xor rax, rsp
mov qword [rbp + 0xa0], rax
mov r15, rcx
mov qword [rsp + 0x50], rcx
xor edi, edi
mov dword [rsp + 0x44], edi
mov qword [rcx], rdi
mov qword [rcx + 8], rdi
mov qword [rcx + 0x10], rdi
mov dword [rsp + 0x44], 1
mov eax, dword [0x1401311a8]
mov dword [rsp + 0x60], eax
mov eax, dword [0x1401311ac]
mov dword [rsp + 0x64], eax
mov eax, dword [0x1401311b0]
mov dword [rsp + 0x68], eax
mov eax, dword [0x1401311b4]
mov dword [rsp + 0x6c], eax
lea r9d, [rdi + 0x12]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x60]
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x140032e46
xor eax, eax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
mov dword [rsp + 0x70], 0x20
mov r14d, edi
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x60]
xor edx, edx
mov rcx, r12
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
je 0x140032e3d
nop
inc r14d
mov qword [rsp + 0x28], rdi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x70]
mov rcx, r12
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
test eax, eax
jne 0x140032e18
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140032e18
mov edi, dword [rsp + 0x40]
mov ecx, edi
call fcn.1400a4fcc
mov rbx, rax
test rax, rax
je 0x140032e16
mov r8d, edi
xor edx, edx
mov rcx, rax
call fcn.1400a4ea0
mov dword [rbx], 8
xor edi, edi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
mov r9d, dword [rsp + 0x40]
mov r8, rbx
lea rdx, [rsp + 0x70]
mov rcx, r12
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
test eax, eax
je 0x140032e0c
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor edx, edx
lea r8d, [rdi + 3]
lea rcx, [rbx + 4]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140032e0c
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0xc
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x2d1080
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140032e03
lea rcx, [rbp - 0x60]
call fcn.140021bf0
nop
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbx + 4]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rbx + 4]
lea rcx, [rbp - 8]
call fcn.140006260
mov edx, dword [rbp - 0x6c]
mov dword [rbp + 0x30], edx
lea rdx, [rbp - 0x60]
mov rcx, r15
call fcn.140031be0
nop
lea rcx, [rbp - 0x60]
call fcn.140005b70
xor edi, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call fcn.1400a4f8c
jmp 0x140032e18
xor edi, edi
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, r14d
lea r8, [rsp + 0x60]
xor edx, edx
mov rcx, r12
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
jne 0x140032cc0
mov rcx, r12
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov rax, r15
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.1400a4e70
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret