Function at 0x1414178d0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x3f]
sub rsp, 0xc8
mov qword [rbp - 1], 0xfffffffffffffffe
mov rsi, rcx
xor ebx, ebx
mov dword [rbp - 0x19], ebx
lea rax, [0x140036840]
mov qword [rbp + 0x6f], rax
cmp dword [0x14154c1b8], 0xfffffffe
jle 0x14141790e
call fcn.141417f80
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbp + 0x77], rbx
lea r8, [rbp + 0x77]
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
or rdi, 0xffffffffffffffff
test eax, eax
je 0x1414179e8
mov dword [rbp + 0x67], ebx
lea r8, [rbp + 0x67]
xor edx, edx
mov rcx, qword [rbp + 0x77]
call qword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
test eax, eax
jne 0x1414179de
mov eax, dword [rbp + 0x67]
test eax, eax
je 0x1414179de
mov ecx, eax
mov eax, 2
mul rcx
cmovo rax, rdi
mov rcx, rax
call fcn.1414c53a4
mov rbx, rax
lea r8, [rbp + 0x67]
mov rdx, rax
mov rcx, qword [rbp + 0x77]
call qword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
test eax, eax
je 0x1414179d6
mov r8d, edi
mov rdx, rbx
lea rcx, [rbp + 0x7f]
call fcn.1413c12d0
mov rdx, qword [rbp + 0x6f]
mov qword [rbp + 7], rdx
mov rcx, qword [rax]
mov qword [rbp + 0x6f], rcx
mov qword [rax], rdx
mov rcx, qword [rbp + 0x7f]
mov eax, dword [rcx]
test eax, eax
je 0x1414179c8
cmp eax, edi
je 0x1414179d6
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1414179d6
mov rcx, qword [rbp + 0x7f]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1413e6510
mov rcx, rbx
call fcn.1414c4b20
mov rcx, qword [rbp + 0x77]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp + 0x6f]
cmp dword [rax + 4], 0
je 0x141417a03
lea rcx, [rbp + 0x6f]
call fcn.1413cce70
test al, al
jne 0x141417cec
lea rdx, [0x14004c450]
lea rcx, [rbp - 0x61]
call fcn.1413ea950
nop
mov rdx, rax
lea rcx, [rbp - 0x69]
call fcn.1413c9470
mov rdx, qword [rbp + 0x6f]
mov qword [rbp + 0xf], rdx
mov rcx, qword [rax]
mov qword [rbp + 0x6f], rcx
mov qword [rax], rdx
mov rcx, qword [rbp - 0x69]
mov eax, dword [rcx]
test eax, eax
je 0x141417a50
cmp eax, 0xffffffff
je 0x141417a5f
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x141417a5f
mov rcx, qword [rbp - 0x69]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1413e6510
nop
mov rcx, qword [rbp - 0x61]
mov eax, dword [rcx]
test eax, eax
je 0x141417a7d
cmp eax, 0xffffffff
je 0x141417a8b
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x141417a8b
mov rcx, qword [rbp - 0x61]
mov edx, 1
lea r8d, [rdx + 7]
call fcn.1413e6510
mov rax, qword [rbp + 0x6f]
cmp dword [rax + 4], 0
je 0x141417aa6
lea rcx, [rbp + 0x6f]
call fcn.1413cce70
test al, al
jne 0x141417cec
lea rdx, [0x14004c460]
lea rcx, [rbp - 0x39]
call fcn.1413ea950
nop
mov rdx, rax
lea rcx, [rbp - 0x41]
call fcn.1413c9470
mov rbx, rax
lea rdx, [0x14004c470]
lea rcx, [rbp - 0x49]
call fcn.1413ea950
nop
mov rdx, rax
lea rcx, [rbp - 0x51]
call fcn.1413c9470
nop
mov qword [rbp - 0x11], rax
mov qword [rbp - 9], rbx
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x11]
call fcn.1413dee10
mov rdx, qword [rbp + 0x6f]
mov qword [rbp + 0x17], rdx
mov rcx, qword [rax]
mov qword [rbp + 0x6f], rcx
mov qword [rax], rdx
mov rcx, qword [rbp - 0x59]
mov eax, dword [rcx]
test eax, eax
je 0x141417b29
cmp eax, 0xffffffff
je 0x141417b38
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x141417b38
mov rcx, qword [rbp - 0x59]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1413e6510
nop
mov rcx, qword [rbp - 0x51]
mov eax, dword [rcx]
test eax, eax
je 0x141417b56
cmp eax, 0xffffffff
je 0x141417b65
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x141417b65
mov rcx, qword [rbp - 0x51]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1413e6510
nop
mov rcx, qword [rbp - 0x49]
mov eax, dword [rcx]
test eax, eax
je 0x141417b83
cmp eax, 0xffffffff
je 0x141417b92
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x141417b92
mov rcx, qword [rbp - 0x49]
mov edx, 1
lea r8d, [rdx + 7]
call fcn.1413e6510
nop
mov rcx, qword [rbp - 0x41]
mov eax, dword [rcx]
test eax, eax
je 0x141417bb0
cmp eax, 0xffffffff
je 0x141417bbf
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x141417bbf
mov rcx, qword [rbp - 0x41]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1413e6510
nop
mov rcx, qword [rbp - 0x39]
mov eax, dword [rcx]
test eax, eax
je 0x141417bdd
cmp eax, 0xffffffff
je 0x141417beb
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x141417beb
mov rcx, qword [rbp - 0x39]
mov edx, 1
lea r8d, [rdx + 7]
call fcn.1413e6510
mov rax, qword [rbp + 0x6f]
cmp dword [rax + 4], 0
je 0x141417c06
lea rcx, [rbp + 0x6f]
call fcn.1413cce70
test al, al
jne 0x141417cec
lea rdx, [0x14004c47c]
lea rcx, [rbp - 0x29]
call fcn.1413ea950
nop
mov rdx, rax
lea rcx, [rbp - 0x31]
call fcn.1413c9470
mov rdx, qword [rbp + 0x6f]
mov qword [rbp + 0x1f], rdx
mov rcx, qword [rax]
mov qword [rbp + 0x6f], rcx
mov qword [rax], rdx
mov rcx, qword [rbp - 0x31]
mov eax, dword [rcx]
test eax, eax
je 0x141417c53
cmp eax, 0xffffffff
je 0x141417c62
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x141417c62
mov rcx, qword [rbp - 0x31]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1413e6510
nop
mov rcx, qword [rbp - 0x29]
mov eax, dword [rcx]
test eax, eax
je 0x141417c80
cmp eax, 0xffffffff
je 0x141417c8e
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x141417c8e
mov rcx, qword [rbp - 0x29]
mov edx, 1
lea r8d, [rdx + 7]
call fcn.1413e6510
mov rax, qword [rbp + 0x6f]
cmp dword [rax + 4], 0
je 0x141417ca5
lea rcx, [rbp + 0x6f]
call fcn.1413cce70
test al, al
jne 0x141417cec
lea rcx, [rbp - 0x21]
call fcn.1414195a0
mov rdx, qword [rbp + 0x6f]
mov qword [rbp + 0x27], rdx
mov rcx, qword [rax]
mov qword [rbp + 0x6f], rcx
mov qword [rax], rdx
mov rcx, qword [rbp - 0x21]
mov eax, dword [rcx]
test eax, eax
je 0x141417cde
cmp eax, 0xffffffff
je 0x141417cec
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x141417cec
mov rcx, qword [rbp - 0x21]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1413e6510
lea rdx, [rbp + 0x6f]
mov rcx, rsi
call fcn.1413e05a0
nop
mov rcx, qword [rbp + 0x6f]
mov eax, dword [rcx]
test eax, eax
je 0x141417d15
cmp eax, 0xffffffff
je 0x141417d23
lock xadd dword [rcx], edi
cmp edi, 1
jne 0x141417d23
mov rcx, qword [rbp + 0x6f]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1413e6510
mov rax, rsi
add rsp, 0xc8
pop rdi
pop rsi
pop rbx
pop rbp
ret