Function at 0x14006422c
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x4a0
mov rax, qword [0x140094940]
xor rax, rsp
mov qword [rsp + 0x490], rax
mov r14, qword [rsp + 0x500]
lea rcx, [rsp + 0x58]
mov rbp, rdx
mov rsi, r8
xor edx, edx
mov rdi, r9
lea r8d, [rdx + 0x28]
call sub.msvcrt.dll_memset
xor r12d, r12d
mov ebx, r12d
mov rcx, qword [str.___t_]
lea r15, str.___t_
cmp rcx, r15
je 0x1400642ab
test byte [rcx + 0x1c], 2
je 0x1400642ab
cmp byte [rcx + 0x19], 5
jb 0x1400642ab
mov rcx, qword [rcx + 0x10]
lea edx, [r12 + 0x11]
lea r8, [0x140083e00]
call fcn.140001010
test rbp, rbp
jne 0x14006431b
lea rdx, [rsp + 0x80]
mov ecx, 0x208
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x140064313
mov rax, qword [str.___t_]
cmp rax, r15
je 0x14006456c
test byte [rax + 0x1c], 2
je 0x14006456c
cmp byte [rax + 0x19], 2
jb 0x14006456c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
lea edx, [rbp + 0x12]
mov r9d, eax
lea r8, [0x140083e00]
mov rcx, qword [rcx + 0x10]
call fcn.140001030
jmp 0x14006456c
lea rbp, [rsp + 0x80]
mov edx, 0x5c
mov rcx, rbp
call qword [sym.imp.msvcrt.dll_wcsrchr]
test rax, rax
je 0x140064344
cmp word [rax + 2], r12w
jne 0x140064344
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 1]
call qword [sym.imp.msvcrt.dll__wcsnset]
test rdi, rdi
lea r15, [0x140080ea8]
lea r12, [0x140080e08]
cmovne r15, rdi
test rsi, rsi
cmovne r12, rsi
xor edi, edi
test edi, edi
jne 0x14006439c
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
je 0x140064428
mov ebx, dword [rsp + 0x44]
mov eax, dword [rsp + 0x40]
shl rbx, 0x20
or rbx, rax
shr rbx, 8
mov qword [rsp + 0x38], r15
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rbx
lea r8, str._s_s_s_I64X._s
mov qword [rsp + 0x28], rax
mov r9, rbp
mov edx, 0x104
mov qword [rsp + 0x20], r12
mov rcx, r14
call fcn.1400028c0
mov esi, eax
test eax, eax
js 0x14006452b
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 1
mov rcx, r14
call fcn.140064fd4
cmp rax, 0xffffffffffffffff
jne 0x1400644d6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140064412
cmp eax, 0x50
jne 0x14006447d
inc rbx
inc edi
cmp edi, 0x100
jae 0x1400644e5
jmp 0x140064362
mov rax, qword [str.___t_]
lea rdx, str.___t_
cmp rax, rdx
je 0x14006456c
test byte [rax + 0x1c], 2
je 0x14006456c
cmp byte [rax + 0x19], 2
jb 0x14006456c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
lea r8, [0x140083e00]
mov r9d, eax
mov edx, 0x14
mov rcx, qword [rcx + 0x10]
call fcn.140001030
jmp 0x14006456c
mov rax, qword [str.___t_]
lea rdx, str.___t_
cmp rax, rdx
je 0x14006456c
test byte [rax + 0x1c], 2
je 0x14006456c
cmp byte [rax + 0x19], 2
jb 0x14006456c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
lea r8, [0x140083e00]
mov edx, 0x16
mov dword [rsp + 0x20], eax
mov r9, r14
mov rcx, qword [rcx + 0x10]
call fcn.140001250
jmp 0x14006456c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0x100
jne 0x140064526
mov rcx, qword [str.___t_]
lea rdx, str.___t_
cmp rcx, rdx
je 0x14006451f
test byte [rcx + 0x1c], 2
je 0x14006451f
cmp byte [rcx + 0x19], 2
jb 0x14006451f
mov rcx, qword [rcx + 0x10]
mov r9d, 0x100
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rbx
call fcn.140064188
mov ecx, 4
jmp 0x140064566
mov rax, rbx
jmp 0x14006456e
mov rcx, qword [str.___t_]
lea rdx, str.___t_
cmp rcx, rdx
je 0x140064563
test byte [rcx + 0x1c], 2
je 0x140064563
cmp byte [rcx + 0x19], 2
jb 0x140064563
mov rcx, qword [rcx + 0x10]
lea r8, [0x140083e00]
movzx r9d, si
mov edx, 0x15
call fcn.140001030
movzx ecx, si
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.140077900
add rsp, 0x4a0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret