Function at 0x14006beec
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
mov rax, qword [0x14009b978]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov r15, qword [rbp + 0x400]
xor eax, eax
xorps xmm0, xmm0
mov qword [rsp + 0x78], rax
xor r13d, r13d
mov rdi, r9
mov ebx, r13d
mov rsi, r8
mov r14, rdx
movups xmmword [rsp + 0x58], xmm0
movups xmmword [rsp + 0x68], xmm0
mov rcx, qword [0x14009b020]
lea rax, [0x14009b020]
mov r12b, 2
cmp rcx, rax
je 0x14006bf7c
test byte [rcx + 0x1c], r12b
je 0x14006bf7c
cmp byte [rcx + 0x19], 5
jb 0x14006bf7c
mov rcx, qword [rcx + 0x10]
lea edx, [r13 + 0x11]
lea r8, [0x14008e4d0]
call fcn.1400042fc
test r14, r14
jne 0x14006bff8
lea rdx, [rbp - 0x80]
mov ecx, 0x208
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
nop dword [rax + rax]
test eax, eax
jne 0x14006bff4
mov rax, qword [0x14009b020]
lea rdx, [0x14009b020]
cmp rax, rdx
je 0x14006c27c
test byte [rax + 0x1c], r12b
je 0x14006c27c
cmp byte [rax + 0x19], r12b
jb 0x14006c27c
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b020]
lea edx, [r14 + 0x12]
mov r9d, eax
lea r8, [0x14008e4d0]
mov rcx, qword [rcx + 0x10]
call fcn.140023570
jmp 0x14006c27c
lea r14, [rbp - 0x80]
mov edx, 0x5c
mov rcx, r14
call qword [sym.imp.msvcrt.dll_wcsrchr]
nop dword [rax + rax]
test rax, rax
je 0x14006c02d
cmp word [rax + 2], r13w
jne 0x14006c02d
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 1]
call qword [sym.imp.msvcrt.dll__wcsnset]
nop dword [rax + rax]
test rdi, rdi
lea r12, [0x14008b578]
lea r13, [0x14008b4d8]
cmovne r12, rdi
test rsi, rsi
cmovne r13, rsi
xor edi, edi
test edi, edi
jne 0x14006c091
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
nop dword [rax + rax]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
nop dword [rax + rax]
test eax, eax
je 0x14006c16a
mov ebx, dword [rsp + 0x44]
mov eax, dword [rsp + 0x40]
shl rbx, 0x20
or rbx, rax
shr rbx, 8
mov qword [rsp + 0x38], r12
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rbx
lea r8, str._s_s_s_I64X._s
mov qword [rsp + 0x28], rax
mov r9, r14
mov edx, 0x104
mov qword [rsp + 0x20], r13
mov rcx, r15
call fcn.140004280
mov esi, eax
test eax, eax
js 0x14006c235
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 1
mov rcx, r15
call fcn.14006b8bc
cmp rax, 0xffffffffffffffff
jne 0x14006c221
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0xb7
je 0x14006c111
cmp eax, 0x50
jne 0x14006c1c5
inc rbx
inc edi
mov r8d, 0x100
cmp edi, r8d
jb 0x14006c04b
jne 0x14006c230
mov rcx, qword [0x14009b020]
lea rdx, [0x14009b020]
cmp rcx, rdx
je 0x14006c160
test byte [rcx + 0x1c], 2
je 0x14006c160
cmp byte [rcx + 0x19], 2
jb 0x14006c160
mov rcx, qword [rcx + 0x10]
mov r9d, r8d
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rbx
call fcn.14006d0a0
mov ecx, 4
jmp 0x14006c270
mov rax, qword [0x14009b020]
lea rdx, [0x14009b020]
cmp rax, rdx
je 0x14006c27c
test byte [rax + 0x1c], 2
je 0x14006c27c
cmp byte [rax + 0x19], 2
jb 0x14006c27c
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b020]
lea r8, [0x14008e4d0]
mov edx, 0x14
mov r9d, eax
mov rcx, qword [rcx + 0x10]
call fcn.1400046fc
jmp 0x14006c27c
mov rax, qword [0x14009b020]
lea rdx, [0x14009b020]
cmp rax, rdx
je 0x14006c27c
test byte [rax + 0x1c], 2
je 0x14006c27c
cmp byte [rax + 0x19], 2
jb 0x14006c27c
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b020]
lea r8, [0x14008e4d0]
mov edx, 0x16
mov dword [rsp + 0x20], eax
mov r9, r15
mov rcx, qword [rcx + 0x10]
call fcn.1400045e8
jmp 0x14006c27c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rax, rbx
jmp 0x14006c27e
mov rcx, qword [0x14009b020]
lea rdx, [0x14009b020]
cmp rcx, rdx
je 0x14006c26d
test byte [rcx + 0x1c], 2
je 0x14006c26d
cmp byte [rcx + 0x19], 2
jb 0x14006c26d
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008e4d0]
movzx r9d, si
mov edx, 0x15
call fcn.140023570
movzx ecx, si
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.1400018f0
mov rbx, qword [rsp + 0x4e0]
add rsp, 0x4a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret