Function at 0x14013cd84
Capabilities:
Get disk information via ioctl

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x60
mov rax, qword [0x14017d140]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r14, rdx
mov rdi, rcx
mov rcx, qword [0x14017d3a8]
lea r13, [0x14017d3a8]
lea r12, [0x1400144c8]
cmp rcx, r13
je 0x14013cded
test byte [rcx + 0x1c], 1
je 0x14013cded
cmp byte [rcx + 0x19], 4
jb 0x14013cded
mov rcx, qword [rcx + 0x10]
mov edx, 0xb7
mov r8, r12
call fcn.14001dd24
mov rcx, qword [0x14017d3a8]
xor ebp, ebp
xor eax, eax
mov dword [rsp + 0x40], ebp
mov qword [rsp + 0x48], rbp
mov dword [rsp + 0x50], eax
mov ebx, ebp
test rdi, rdi
je 0x14013ce0a
cmp word [rdi], bp
jne 0x14013ce29
lea r8, [0x140014458]
lea rcx, [0x1400140a0]
mov edx, 0xd9d
call fcn.1400a8be8
mov rcx, qword [0x14017d3a8]
test r14, r14
jne 0x14013ce4d
lea r8, [0x1400144b0]
lea rcx, [0x1400140a0]
mov edx, 0xd9e
call fcn.1400a8be8
mov rcx, qword [0x14017d3a8]
test rdi, rdi
jne 0x14013ce5c
mov ebx, 0x80070057
jmp 0x14013cfbf
mov r8d, 3
mov qword [rsp + 0x30], rbp
xor r9d, r9d
xor edx, edx
mov rcx, rdi
mov dword [rsp + 0x28], reloc.ADVAPI32.dll_TraceEvent
mov dword [rsp + 0x20], r8d
mov dword [r14], ebp
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14013cee3
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x14017d3a8]
cmp rcx, r13
je 0x14013cfe1
test byte [rcx + 0x1c], 1
je 0x14013cfbf
cmp byte [rcx + 0x19], 2
jb 0x14013cfbf
mov rcx, qword [rcx + 0x10]
mov edx, 0xb8
mov r9, rdi
mov r8, r12
mov dword [rsp + 0x20], ebx
call fcn.14001ecbc
jmp 0x14013cfb8
mov qword [rsp + 0x38], rbp
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
xor r8d, r8d
mov edx, 0x2d1080
mov rcx, rsi
mov dword [rsp + 0x28], reloc.ADVAPI32.dll_GetTraceLoggerHandle
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x14013cf5e
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x14017d3a8]
cmp rcx, r13
je 0x14013cfaa
test byte [rcx + 0x1c], 1
je 0x14013cfaa
cmp byte [rcx + 0x19], 2
jb 0x14013cfaa
mov rcx, qword [rcx + 0x10]
mov edx, 0xb9
mov r9d, ebx
mov r8, r12
call fcn.14001de24
jmp 0x14013cfa3
mov rcx, qword [0x14017d3a8]
cmp rcx, r13
je 0x14013cf9c
test byte [rcx + 0x1c], 1
je 0x14013cf9c
cmp byte [rcx + 0x19], 4
jb 0x14013cf9c
mov eax, dword [rsp + 0x48]
mov r9d, dword [rsp + 0x4c]
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x50]
mov edx, 0xba
mov r8, r12
mov dword [rsp + 0x20], eax
call fcn.1400d3284
mov eax, dword [rsp + 0x4c]
mov dword [r14], eax
mov rcx, qword [0x14017d3a8]
test rsi, rsi
je 0x14013cfbf
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x14017d3a8]
cmp rcx, r13
je 0x14013cfe1
test byte [rcx + 0x1c], 1
je 0x14013cfe1
cmp byte [rcx + 0x19], 4
jb 0x14013cfe1
mov rcx, qword [rcx + 0x10]
mov edx, 0xbb
mov r8, r12
call fcn.14001dd24
mov eax, ebx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140168920
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret