Function at 0x14007e130
Capabilities:
Get common file path
Get disk information
Get disk information via ioctl

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
mov qword [rsp + 8], rcx
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140212c80]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r12, qword [rbp + 0x30]
xor r13d, r13d
mov qword [rbp - 0x30], r13
call fcn.140050400
mov rcx, rax
test rax, rax
je 0x14007e50b
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x1400cc851.0]
lea rsi, [rax + 0x18]
mov qword [rbp - 0x30], rsi
mov qword [rbp - 0x38], r13
call fcn.140050400
mov rcx, rax
test rax, rax
je 0x14007e516
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x1400cc851.0]
lea rdi, [rax + 0x18]
mov qword [rbp - 0x38], rdi
mov qword [rbp - 0x40], r13
call fcn.140050400
mov rcx, rax
test rax, rax
je 0x14007e4f5
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x1400cc851.0]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x40], rbx
xor eax, eax
mov qword [rbp - 0x20], rax
mov dword [rbp - 0x18], eax
mov dword [rbp - 0x28], r13d
mov r15d, 1
mov ecx, r15d
sub ecx, dword [rsi - 8]
mov eax, dword [rsi - 0xc]
sub eax, 0x105
or eax, ecx
jge 0x14007e221
mov edx, 0x105
lea rcx, [rbp - 0x30]
call fcn.140080c80
mov rsi, qword [rbp - 0x30]
mov edx, 0x104
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x14007e23e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
jmp 0x14007e241
mov r14d, r13d
movsxd rdx, dword [rsi - 0xc]
mov rcx, rsi
call fcn.140159838
test eax, eax
js 0x14007e500
cmp eax, dword [rsi - 0xc]
jg 0x14007e500
mov dword [rsi - 0x10], eax
cdqe
mov word [rsi + rax*2], r13w
test r14d, r14d
jne 0x14007e458
mov ecx, r15d
sub ecx, dword [rdi - 8]
mov eax, dword [rdi - 0xc]
sub eax, 0x105
or eax, ecx
jge 0x14007e295
mov edx, 0x105
lea rcx, [rbp - 0x38]
call fcn.140080c80
mov rdi, qword [rbp - 0x38]
mov r8d, 0x104
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
test eax, eax
jne 0x14007e2b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
movsxd rdx, dword [rdi - 0xc]
mov rcx, rdi
call fcn.140159838
test eax, eax
js 0x14007e500
cmp eax, dword [rdi - 0xc]
jg 0x14007e500
mov dword [rdi - 0x10], eax
cdqe
mov word [rdi + rax*2], r13w
test r14d, r14d
jne 0x14007e458
mov ecx, r15d
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, 0x105
or eax, ecx
jge 0x14007e308
mov edx, 0x105
lea rcx, [rbp - 0x40]
call fcn.140080c80
mov rbx, qword [rbp - 0x40]
mov r8d, 0x104
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x14007e327
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.140159838
test eax, eax
js 0x14007e500
cmp eax, dword [rbx - 0xc]
jg 0x14007e500
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], r13w
test r14d, r14d
jne 0x14007e458
mov rcx, rbx
mov rdi, r13
movzx eax, word [rbx]
test ax, ax
je 0x14007e3cd
cmp ax, 0x5c
jne 0x14007e37a
mov rax, rcx
test rdi, rdi
cmovne rax, rdi
mov rdi, rax
jmp 0x14007e37d
mov rdi, r13
add rcx, 2
movzx eax, word [rcx]
test ax, ax
jne 0x14007e365
test rdi, rdi
je 0x14007e3cd
sub rdi, rbx
sar rdi, 1
test edi, edi
js 0x14007e500
sub r15d, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, r15d
jge 0x14007e3b9
mov edx, edi
lea rcx, [rbp - 0x40]
call fcn.140080c80
mov rbx, qword [rbp - 0x40]
cmp edi, dword [rbx - 0xc]
jg 0x14007e500
mov dword [rbx - 0x10], edi
movsxd rax, edi
mov word [rbx + rax*2], r13w
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 3]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14007e405
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
jmp 0x14007e458
mov qword [rsp + 0x38], r13
lea rax, [rbp - 0x28]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], recvfrom
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x2d1080
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x14007e447
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
jmp 0x14007e44e
mov eax, dword [rbp - 0x1c]
mov dword [r12], eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rdx, [rbx - 0x18]
mov ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14007e47e
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400cc851.0]
nop
mov rdx, qword [rbp - 0x38]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14007e4a3
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400cc851.0]
nop
mov rdx, qword [rbp - 0x30]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x14007e4c5
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400cc851.0]
mov eax, r14d
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140133600
lea r11, [rsp + 0x80]
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
mov ecx, 0x80004005
call fcn.140050240
nop
mov ecx, 0x80070057
call fcn.140050240
nop
mov ecx, 0x80004005
call fcn.140050240
nop
mov ecx, 0x80004005
call fcn.140050240
int3