Function at 0x14008a0d0
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 [0x1401761c0]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r12, qword [rbp + 0x30]
xor r13d, r13d
mov qword [rbp - 0x30], r13
call fcn.140043c30
mov rcx, rax
test rax, rax
je 0x14008a4ab
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x1400a96cf.0]
lea rsi, [rax + 0x18]
mov qword [rbp - 0x30], rsi
mov qword [rbp - 0x38], r13
call fcn.140043c30
mov rcx, rax
test rax, rax
je 0x14008a4b6
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x1400a96cf.0]
lea rdi, [rax + 0x18]
mov qword [rbp - 0x38], rdi
mov qword [rbp - 0x40], r13
call fcn.140043c30
mov rcx, rax
test rax, rax
je 0x14008a495
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x1400a96cf.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 0x14008a1c1
mov edx, 0x105
lea rcx, [rbp - 0x30]
call fcn.14008cb80
mov rsi, qword [rbp - 0x30]
mov edx, 0x104
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x14008a1de
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
jmp 0x14008a1e1
mov r14d, r13d
movsxd rdx, dword [rsi - 0xc]
mov rcx, rsi
call fcn.1400db314
test eax, eax
js 0x14008a4a0
cmp eax, dword [rsi - 0xc]
jg 0x14008a4a0
mov dword [rsi - 0x10], eax
cdqe
mov word [rsi + rax*2], r13w
test r14d, r14d
jne 0x14008a3f8
mov ecx, r15d
sub ecx, dword [rdi - 8]
mov eax, dword [rdi - 0xc]
sub eax, 0x105
or eax, ecx
jge 0x14008a235
mov edx, 0x105
lea rcx, [rbp - 0x38]
call fcn.14008cb80
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 0x14008a254
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
movsxd rdx, dword [rdi - 0xc]
mov rcx, rdi
call fcn.1400db314
test eax, eax
js 0x14008a4a0
cmp eax, dword [rdi - 0xc]
jg 0x14008a4a0
mov dword [rdi - 0x10], eax
cdqe
mov word [rdi + rax*2], r13w
test r14d, r14d
jne 0x14008a3f8
mov ecx, r15d
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, 0x105
or eax, ecx
jge 0x14008a2a8
mov edx, 0x105
lea rcx, [rbp - 0x40]
call fcn.14008cb80
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 0x14008a2c7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.1400db314
test eax, eax
js 0x14008a4a0
cmp eax, dword [rbx - 0xc]
jg 0x14008a4a0
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], r13w
test r14d, r14d
jne 0x14008a3f8
mov rcx, rbx
mov rdi, r13
movzx eax, word [rbx]
test ax, ax
je 0x14008a36d
cmp ax, 0x5c
jne 0x14008a31a
mov rax, rcx
test rdi, rdi
cmovne rax, rdi
mov rdi, rax
jmp 0x14008a31d
mov rdi, r13
add rcx, 2
movzx eax, word [rcx]
test ax, ax
jne 0x14008a305
test rdi, rdi
je 0x14008a36d
sub rdi, rbx
sar rdi, 1
test edi, edi
js 0x14008a4a0
sub r15d, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, r15d
jge 0x14008a359
mov edx, edi
lea rcx, [rbp - 0x40]
call fcn.14008cb80
mov rbx, qword [rbp - 0x40]
cmp edi, dword [rbx - 0xc]
jg 0x14008a4a0
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 0x14008a3a5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
jmp 0x14008a3f8
mov qword [rsp + 0x38], r13
lea rax, [rbp - 0x28]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0xc
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 0x14008a3e7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
jmp 0x14008a3ee
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 0x14008a41e
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400a96cf.0]
nop
mov rdx, qword [rbp - 0x38]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14008a443
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400a96cf.0]
nop
mov rdx, qword [rbp - 0x30]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x14008a465
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400a96cf.0]
mov eax, r14d
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400b89f0
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.140043a70
nop
mov ecx, 0x80070057
call fcn.140043a70
nop
mov ecx, 0x80004005
call fcn.140043a70
nop
mov ecx, 0x80004005
call fcn.140043a70
int3