Function at 0x1400129c0
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 [0x140039010]
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]
lea r8, [rsp + 0x48]
mov qword [rsp + 0x48], r12
mov rcx, rax
mov dword [rsp + 0x40], r12d
lea edx, [r12 + 8]
mov dword [rsp + 0x44], r12d
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140012a46
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140012a97
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 0x140012a79
cmp dword [rsp + 0x40], r12d
setne sil
jmp 0x140012a97
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 0x140012aa7
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x140012b39
mov esi, 0x104
lea rcx, [rsp + 0x60]
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x140012ae1
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140012c38
lea rcx, [rsp + 0x60]
mov rax, r13
inc rax
cmp word [rcx + rax*2], r12w
jne 0x140012ae9
cmp word [rsp + rax*2 + 0x5e], 0x5c
je 0x140012b1c
mov r9, r13
lea r8, [0x140032f08]
mov rdx, rsi
lea rcx, [rsp + 0x60]
call fcn.1400191f0
mov ebx, eax
test eax, eax
js 0x140012c38
mov r9, r13
lea r8, str.Temp_
mov rdx, rsi
lea rcx, [rsp + 0x60]
call fcn.1400191f0
mov ebx, eax
test eax, eax
jmp 0x140012b63
lea rdx, [rsp + 0x60]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x140012b69
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140012c38
mov esi, r12d
cmp r14, r13
jne 0x140012c12
lea rax, [0x140032fe8]
mov qword [rsp + 0x28], rax
lea r9, [0x140032ff0]
lea r8, [rsp + 0x60]
mov dword [rsp + 0x20], esi
lea rdx, str._s_s_05d._s
lea rcx, [rsp + 0x50]
call fcn.140011c6c
mov rdi, qword [rsp + 0x50]
mov ebx, eax
test eax, eax
js 0x140012c2b
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 0x140012c04
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
cmp ebx, 0x80070050
jne 0x140012c00
mov ebx, r12d
jmp 0x140012c04
test ebx, ebx
js 0x140012c2b
inc esi
cmp esi, 0x3e8
jl 0x140012b6c
test r15, r15
je 0x140012c1d
mov qword [r15], rdi
mov rdi, r12
cmp r14, r13
je 0x140012c2b
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
je 0x140012c38
mov rcx, rdi
call fcn.14001519c
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140015800
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