Function at 0x14002ae94
Capabilities:
Get disk information via ioctl

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
mov rax, qword [0x1400d1548]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov qword [rbp - 0x21], rdx
call fcn.14002b3a8
mov r15, rax
mov qword [rbp - 0x19], rax
xor r13d, r13d
mov ebx, 0x80070000
cmp rax, 0xffffffffffffffff
je 0x14004d69e
mov qword [rbp - 0x39], r13
lea rdx, [rbp - 0x39]
mov rcx, r15
call fcn.14002b2e8
mov rdi, qword [rbp - 0x39]
test eax, eax
js 0x14004d737
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.DEVOBJ.dll_DevObjCreateDeviceInfoList]
nop dword [rax + rax]
mov r12, rax
mov qword [rbp - 0x11], rax
cmp rax, 0xffffffffffffffff
je 0x14004d6be
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
mov r9d, SafeArrayGetLBound
xor r8d, r8d
lea rdx, [0x1400abd58]
mov rcx, r12
call qword [sym.imp.DEVOBJ.dll_DevObjGetClassDevs]
nop dword [rax + rax]
test eax, eax
je 0x14004d6de
mov r14d, r13d
mov dword [rbp - 0x49], r13d
mov dword [rbp + 0xf], 0x20
lea rax, [rbp + 0xf]
mov qword [rsp + 0x20], rax
mov r9d, r14d
lea r8, [0x1400abd58]
xor edx, edx
mov rcx, r12
call qword [sym.imp.DEVOBJ.dll_DevObjEnumDeviceInterfaces]
nop dword [rax + rax]
test eax, eax
je 0x14002b0c2
mov qword [rbp - 0x41], r13
lea r8, [rbp - 0x41]
mov rdx, r12
lea rcx, [rbp + 0xf]
call fcn.14002b1f8
mov esi, eax
mov rbx, qword [rbp - 0x41]
test eax, eax
js 0x14002b0a4
lea rax, [rbx + 4]
mov qword [rbp - 0x29], rax
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 1]
mov rcx, rax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
nop dword [rax + rax]
mov r13, rax
mov qword [rbp - 9], rax
cmp rax, 0xffffffffffffffff
je 0x14004d6ff
xor eax, eax
mov qword [rbp - 1], rax
mov dword [rbp + 7], eax
and qword [rsp + 0x38], rax
lea rax, [rbp - 0x31]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], SafeArrayGetLBound
lea rax, [rbp - 1]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x2d1080
mov rcx, r13
call qword [sym.imp.api_ms_win_core_io_l1_1_0.dll_DeviceIoControl]
nop dword [rax + rax]
test eax, eax
je 0x14004d723
xor esi, esi
xor r14d, r14d
mov rbx, qword [rbp - 0x29]
mov r15, qword [rbp - 0x21]
cmp r14d, dword [rdi]
jae 0x14002b07c
lea rcx, [r14 + r14*2]
mov eax, dword [rbp + 3]
cmp dword [rdi + rcx*8 + 8], eax
jne 0x14002b075
mov rdx, rbx
mov rcx, r15
call fcn.14002abcc
mov esi, eax
inc r14d
test esi, esi
jns 0x14002b056
mov rbx, qword [rbp - 0x41]
mov r15, qword [rbp - 0x19]
mov r14d, dword [rbp - 0x49]
lea rax, [r13 - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14002b0a1
mov rcx, r13
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
xor r13d, r13d
mov edx, 8
mov rcx, rbx
call fcn.140037528
inc r14d
mov dword [rbp - 0x49], r14d
test esi, esi
jns 0x14002af67
jmp 0x14002b0d7
call fcn.14001d618
mov esi, eax
cmp eax, 0x80070103
jne 0x14004d6f2
mov esi, r13d
mov rcx, r12
call qword [sym.imp.DEVOBJ.dll_DevObjDestroyDeviceInfoList]
nop dword [rax + rax]
nop
mov edx, 0x20
mov rcx, rdi
call fcn.140037528
nop
lea rax, [r15 - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14002b10e
mov rcx, r15
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov eax, esi
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140036e80
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
test esi, esi
jns 0x14002aee7
jmp 0x14002b0f5
test esi, esi
jns 0x14002af2f
jmp 0x14002b0d7
test esi, esi
jns 0x14002afff
jmp 0x14002b088
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov esi, eax
test eax, eax
jle 0x14002b13e
movzx esi, ax
or esi, ebx
jmp 0x14002b13e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov esi, eax
test eax, eax
jle 0x14002b148
movzx esi, ax
or esi, ebx
jmp 0x14002b148
call fcn.14001d618
mov esi, eax
test eax, eax
js 0x14002b0d7
jmp 0x14002af60
test eax, eax
js 0x14002b0b1
jmp 0x14002af9a
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov esi, eax
test eax, eax
jle 0x14002b152
movzx esi, ax
or esi, 0x80070000
jmp 0x14002b152
call fcn.14001d618
mov esi, eax
test eax, eax
js 0x14002b088
jmp 0x14002b04b
mov esi, r13d
jmp 0x14002b0e7