Function at 0x140012c1c
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 [0x14003a008]
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 0x140012ca1
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140012cf2
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 0x140012cd4
cmp dword [rsp + 0x40], r12d
setne sil
jmp 0x140012cf2
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 0x140012d02
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x140012d94
mov esi, 0x104
lea rcx, [rsp + 0x60]
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x140012d3c
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140012e9f
lea rcx, [rsp + 0x60]
mov rax, r13
inc rax
cmp word [rcx + rax*2], r12w
jne 0x140012d44
cmp word [rsp + rax*2 + 0x5e], 0x5c
je 0x140012d77
mov r9, r13
lea r8, [0x1400340c8]
mov rdx, rsi
lea rcx, [rsp + 0x60]
call fcn.1400195e0
mov ebx, eax
test eax, eax
js 0x140012e9f
mov r9, r13
lea r8, str.Temp_
mov rdx, rsi
lea rcx, [rsp + 0x60]
call fcn.1400195e0
mov ebx, eax
test eax, eax
jmp 0x140012dbe
lea rdx, [rsp + 0x60]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x140012dc4
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140012e9f
mov esi, r12d
cmp r14, r13
jne 0x140012e6d
lea rax, [0x1400341a8]
mov qword [rsp + 0x28], rax
lea r9, [0x1400341b0]
lea r8, [rsp + 0x60]
mov dword [rsp + 0x20], esi
lea rdx, str._s_s_05d._s
lea rcx, [rsp + 0x50]
call fcn.140011ea4
mov rdi, qword [rsp + 0x50]
mov ebx, eax
test eax, eax
js 0x140012e86
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 0x140012e5f
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
cmp ebx, 0x80070050
jne 0x140012e5b
mov ebx, r12d
jmp 0x140012e5f
test ebx, ebx
js 0x140012e86
inc esi
cmp esi, 0x3e8
jl 0x140012dc7
test r15, r15
je 0x140012e78
mov qword [r15], rdi
mov rdi, r12
cmp r14, r13
je 0x140012e86
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
je 0x140012e9f
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.140015ba0
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