Function at 0x1400def40
Capabilities:
Get common file path
Get disk information

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x370
mov qword [rsp + 0x2d0], 0xfffffffffffffffe
mov rax, qword [0x1402bd5c0]
xor rax, rsp
mov qword [rsp + 0x368], rax
mov dword [rsp + 0x2c8], 0
cmp dword [rsp + 0x388], 2
jne 0x1400df03b
xor edx, edx
lea rcx, [rsp + 0x280]
call fcn.14004fb10
mov qword [rsp + 0x2d8], rax
mov rax, qword [rsp + 0x2d8]
mov qword [rsp + 0x2e0], rax
mov rcx, qword [rsp + 0x2e0]
call fcn.140050200
mov rdx, rax
lea rcx, [rsp + 0x288]
call fcn.14004f600
mov qword [rsp + 0x2e8], rax
mov rax, qword [rsp + 0x2e8]
mov qword [rsp + 0x2f0], rax
mov r9d, reloc.OLEAUT32.dll_SafeArrayGetDim
xor r8d, r8d
mov rdx, qword [rsp + 0x380]
mov rcx, qword [rsp + 0x2f0]
call fcn.1400021f0
mov eax, dword [rsp + 0x2c8]
or eax, 1
mov dword [rsp + 0x2c8], eax
lea rcx, [rsp + 0x288]
call fcn.140007060
nop
lea rcx, [rsp + 0x280]
call fcn.140007060
mov rax, qword [rsp + 0x380]
jmp 0x1400df37d
cmp dword [rsp + 0x388], 0
jne 0x1400df0fa
lea rcx, [rsp + 0x290]
call fcn.1400dd9f0
mov qword [rsp + 0x2f8], rax
mov rax, qword [rsp + 0x2f8]
mov qword [rsp + 0x300], rax
mov rcx, qword [rsp + 0x300]
call fcn.140050200
mov rdx, rax
lea rcx, [rsp + 0x298]
call fcn.14004f600
mov qword [rsp + 0x308], rax
mov rax, qword [rsp + 0x308]
mov qword [rsp + 0x310], rax
mov r9d, reloc.OLEAUT32.dll_SafeArrayGetDim
xor r8d, r8d
mov rdx, qword [rsp + 0x380]
mov rcx, qword [rsp + 0x310]
call fcn.1400021f0
mov eax, dword [rsp + 0x2c8]
or eax, 1
mov dword [rsp + 0x2c8], eax
lea rcx, [rsp + 0x298]
call fcn.140007060
nop
lea rcx, [rsp + 0x290]
call fcn.140007060
mov rax, qword [rsp + 0x380]
jmp 0x1400df37d
cmp dword [rsp + 0x388], 3
jne 0x1400df236
mov edx, 1
lea rcx, [rsp + 0x2a0]
call fcn.1400def40
mov qword [rsp + 0x318], rax
mov rax, qword [rsp + 0x318]
mov qword [rsp + 0x320], rax
xor edx, edx
lea rcx, [rsp + 0x2a8]
call fcn.1400def40
mov qword [rsp + 0x328], rax
mov rax, qword [rsp + 0x328]
mov qword [rsp + 0x330], rax
mov r8, qword [rsp + 0x320]
mov rdx, qword [rsp + 0x330]
lea rcx, [rsp + 0x2b0]
call fcn.140006c50
mov qword [rsp + 0x338], rax
mov rax, qword [rsp + 0x338]
mov qword [rsp + 0x340], rax
mov rcx, qword [rsp + 0x340]
call fcn.140050200
mov rdx, rax
lea rcx, [rsp + 0x2b8]
call fcn.14004f600
mov qword [rsp + 0x348], rax
mov rax, qword [rsp + 0x348]
mov qword [rsp + 0x350], rax
mov r9d, reloc.OLEAUT32.dll_SafeArrayGetDim
xor r8d, r8d
mov rdx, qword [rsp + 0x380]
mov rcx, qword [rsp + 0x350]
call fcn.1400021f0
mov eax, dword [rsp + 0x2c8]
or eax, 1
mov dword [rsp + 0x2c8], eax
lea rcx, [rsp + 0x2b8]
call fcn.140007060
nop
lea rcx, [rsp + 0x2b0]
call fcn.140007060
nop
lea rcx, [rsp + 0x2a8]
call fcn.140007060
nop
lea rcx, [rsp + 0x2a0]
call fcn.140007060
mov rax, qword [rsp + 0x380]
jmp 0x1400df37d
xor eax, eax
mov word [rsp + 0x70], ax
lea rdi, [rsp + 0x72]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
mov edx, 0x104
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov dword [rsp + 0x58], 0
lea rcx, [rsp + 0x48]
call fcn.140002d10
nop
movzx r8d, word [rsp + 0x70]
lea rdx, [0x14022b330]
lea rcx, [rsp + 0x48]
call fcn.140002ba0
lea rcx, [rsp + 0x48]
call fcn.140050200
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x58]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov dword [rsp + 0x40], eax
lea rdx, [0x14022accc]
lea rcx, [rsp + 0x50]
call fcn.140002050
nop
mov r8d, dword [rsp + 0x58]
lea rdx, [0x14022b340]
lea rcx, [rsp + 0x50]
call fcn.140002ba0
lea rcx, [rsp + 0x50]
call fcn.140050200
mov rdx, rax
lea rcx, [rsp + 0x2c0]
call fcn.14004f600
mov qword [rsp + 0x358], rax
mov rax, qword [rsp + 0x358]
mov qword [rsp + 0x360], rax
mov r9d, reloc.OLEAUT32.dll_SafeArrayGetDim
xor r8d, r8d
mov rdx, qword [rsp + 0x380]
mov rcx, qword [rsp + 0x360]
call fcn.1400021f0
mov eax, dword [rsp + 0x2c8]
or eax, 1
mov dword [rsp + 0x2c8], eax
lea rcx, [rsp + 0x2c0]
call fcn.140007060
nop
lea rcx, [rsp + 0x50]
call fcn.140007060
nop
lea rcx, [rsp + 0x48]
call fcn.140007060
mov rax, qword [rsp + 0x380]
mov rcx, qword [rsp + 0x368]
xor rcx, rsp
call fcn.1400a9820
add rsp, 0x370
pop rdi
ret