Function at 0x140012da4
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1a8]
sub rsp, 0x280
mov rax, qword [0x140039008]
xor rax, rsp
mov qword [rbp + 0x170], rax
xor r12d, r12d
or r13, 0xffffffffffffffff
mov ebx, r12d
mov qword [rsp + 0x50], r12
mov edi, r12d
mov r14, r13
mov esi, r12d
mov r15, r8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor ecx, ecx
mov qword [rsp + 0x48], r12
mov dword [rsp + 0x40], ecx
lea r8, [rsp + 0x48]
mov dword [rsp + 0x44], r12d
lea edx, [rcx + 8]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140012e29
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140012e7a
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x44]
mov r9d, 4
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x40]
lea edx, [r9 + 0x10]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x140012e5c
cmp dword [rsp + 0x40], r12d
setne sil
jmp 0x140012e7a
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
cmp ecx, 0x80070057
cmove esi, r12d
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140012e8a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x140012f1c
mov esi, 0x104
lea rcx, [rsp + 0x60]
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x140012ec4
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140013027
lea rcx, [rsp + 0x60]
mov rax, r13
inc rax
cmp word [rcx + rax*2], r12w
jne 0x140012ecc
cmp word [rsp + rax*2 + 0x5e], 0x5c
je 0x140012eff
mov r9, r13
lea r8, [0x140032ec8]
mov rdx, rsi
lea rcx, [rsp + 0x60]
call fcn.1400196c0
mov ebx, eax
test eax, eax
js 0x140013027
mov r9, r13
lea r8, str.Temp_
mov rdx, rsi
lea rcx, [rsp + 0x60]
call fcn.1400196c0
mov ebx, eax
test eax, eax
jmp 0x140012f46
lea rdx, [rsp + 0x60]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x140012f4c
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140013027
mov esi, r12d
cmp r14, r13
jne 0x140012ff5
lea rax, [0x140032fa8]
mov qword [rsp + 0x28], rax
lea r9, [0x140032fb0]
lea r8, [rsp + 0x60]
mov dword [rsp + 0x20], esi
lea rdx, str._s_s_05d._s
lea rcx, [rsp + 0x50]
call fcn.140012030
mov rdi, qword [rsp + 0x50]
mov ebx, eax
test eax, eax
js 0x14001300e
mov eax, 1
mov qword [rsp + 0x30], r12
mov r8d, eax
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov edx, 0x40000000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, r13
jne 0x140012fe7
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
cmp ebx, 0x80070050
jne 0x140012fe3
mov ebx, r12d
jmp 0x140012fe7
test ebx, ebx
js 0x14001300e
inc esi
cmp esi, 0x3e8
jl 0x140012f4f
test r15, r15
je 0x140013000
mov qword [r15], rdi
mov rdi, r12
cmp r14, r13
je 0x14001300e
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
je 0x140013027
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140015cc0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret