Function at 0x1400128a0
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 [0x14003e008]
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 0x140012926
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140012977
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 0x140012959
cmp dword [rsp + 0x40], r12d
setne sil
jmp 0x140012977
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 0x140012987
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x140012a19
mov esi, 0x104
lea rcx, [rsp + 0x60]
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x1400129c1
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140012b18
lea rcx, [rsp + 0x60]
mov rax, r13
inc rax
cmp word [rcx + rax*2], r12w
jne 0x1400129c9
cmp word [rsp + rax*2 + 0x5e], 0x5c
je 0x1400129fc
mov r9, r13
lea r8, [0x140038038]
mov rdx, rsi
lea rcx, [rsp + 0x60]
call fcn.14001b860
mov ebx, eax
test eax, eax
js 0x140012b18
mov r9, r13
lea r8, str.Temp_
mov rdx, rsi
lea rcx, [rsp + 0x60]
call fcn.14001b860
mov ebx, eax
test eax, eax
jmp 0x140012a43
lea rdx, [rsp + 0x60]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x140012a49
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140012b18
mov esi, r12d
cmp r14, r13
jne 0x140012af2
lea rax, [0x140038118]
mov qword [rsp + 0x28], rax
lea r9, [0x140038120]
lea r8, [rsp + 0x60]
mov dword [rsp + 0x20], esi
lea rdx, str._s_s_05d._s
lea rcx, [rsp + 0x50]
call fcn.1400119f4
mov rdi, qword [rsp + 0x50]
mov ebx, eax
test eax, eax
js 0x140012b0b
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 0x140012ae4
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
cmp ebx, 0x80070050
jne 0x140012ae0
mov ebx, r12d
jmp 0x140012ae4
test ebx, ebx
js 0x140012b0b
inc esi
cmp esi, 0x3e8
jl 0x140012a4c
test r15, r15
je 0x140012afd
mov qword [r15], rdi
mov rdi, r12
cmp r14, r13
je 0x140012b0b
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
je 0x140012b18
mov rcx, rdi
call fcn.1400152f4
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140015940
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