Function at 0x140061f50
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, [0x1401e6610]
mov qword [rbp + 0x6f], rax
cmp dword [0x1410d0998], 0xfffffffe
jle 0x140061f8e
call fcn.140062730
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 0x140062068
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 0x14006205e
mov eax, dword [rbp + 0x67]
test eax, eax
je 0x14006205e
mov ecx, eax
mov eax, 2
mul rcx
cmovo rax, rdi
mov rcx, rax
call fcn.14015cb34
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 0x140062056
mov r8d, edi
mov rdx, rbx
lea rcx, [rbp + 0x7f]
call fcn.1400091b0
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 0x140062048
cmp eax, edi
je 0x140062056
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140062056
mov rcx, qword [rbp + 0x7f]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cfa0
mov rcx, rbx
call fcn.14015c170
mov rcx, qword [rbp + 0x77]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp + 0x6f]
cmp dword [rax + 4], 0
je 0x140062083
lea rcx, [rbp + 0x6f]
call fcn.1400142f0
test al, al
jne 0x14006236c
lea rdx, [0x1401fca10]
lea rcx, [rbp - 0x61]
call fcn.1400318e0
nop
mov rdx, rax
lea rcx, [rbp - 0x69]
call fcn.140010500
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 0x1400620d0
cmp eax, 0xffffffff
je 0x1400620df
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400620df
mov rcx, qword [rbp - 0x69]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cfa0
nop
mov rcx, qword [rbp - 0x61]
mov eax, dword [rcx]
test eax, eax
je 0x1400620fd
cmp eax, 0xffffffff
je 0x14006210b
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14006210b
mov rcx, qword [rbp - 0x61]
mov edx, 1
lea r8d, [rdx + 7]
call fcn.14002cfa0
mov rax, qword [rbp + 0x6f]
cmp dword [rax + 4], 0
je 0x140062126
lea rcx, [rbp + 0x6f]
call fcn.1400142f0
test al, al
jne 0x14006236c
lea rdx, [0x1401fca20]
lea rcx, [rbp - 0x39]
call fcn.1400318e0
nop
mov rdx, rax
lea rcx, [rbp - 0x41]
call fcn.140010500
mov rbx, rax
lea rdx, [0x1401fca30]
lea rcx, [rbp - 0x49]
call fcn.1400318e0
nop
mov rdx, rax
lea rcx, [rbp - 0x51]
call fcn.140010500
nop
mov qword [rbp - 0x11], rax
mov qword [rbp - 9], rbx
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x11]
call fcn.140025ba0
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 0x1400621a9
cmp eax, 0xffffffff
je 0x1400621b8
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400621b8
mov rcx, qword [rbp - 0x59]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cfa0
nop
mov rcx, qword [rbp - 0x51]
mov eax, dword [rcx]
test eax, eax
je 0x1400621d6
cmp eax, 0xffffffff
je 0x1400621e5
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400621e5
mov rcx, qword [rbp - 0x51]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cfa0
nop
mov rcx, qword [rbp - 0x49]
mov eax, dword [rcx]
test eax, eax
je 0x140062203
cmp eax, 0xffffffff
je 0x140062212
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140062212
mov rcx, qword [rbp - 0x49]
mov edx, 1
lea r8d, [rdx + 7]
call fcn.14002cfa0
nop
mov rcx, qword [rbp - 0x41]
mov eax, dword [rcx]
test eax, eax
je 0x140062230
cmp eax, 0xffffffff
je 0x14006223f
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14006223f
mov rcx, qword [rbp - 0x41]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cfa0
nop
mov rcx, qword [rbp - 0x39]
mov eax, dword [rcx]
test eax, eax
je 0x14006225d
cmp eax, 0xffffffff
je 0x14006226b
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14006226b
mov rcx, qword [rbp - 0x39]
mov edx, 1
lea r8d, [rdx + 7]
call fcn.14002cfa0
mov rax, qword [rbp + 0x6f]
cmp dword [rax + 4], 0
je 0x140062286
lea rcx, [rbp + 0x6f]
call fcn.1400142f0
test al, al
jne 0x14006236c
lea rdx, [0x1401fca3c]
lea rcx, [rbp - 0x29]
call fcn.1400318e0
nop
mov rdx, rax
lea rcx, [rbp - 0x31]
call fcn.140010500
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 0x1400622d3
cmp eax, 0xffffffff
je 0x1400622e2
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400622e2
mov rcx, qword [rbp - 0x31]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cfa0
nop
mov rcx, qword [rbp - 0x29]
mov eax, dword [rcx]
test eax, eax
je 0x140062300
cmp eax, 0xffffffff
je 0x14006230e
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14006230e
mov rcx, qword [rbp - 0x29]
mov edx, 1
lea r8d, [rdx + 7]
call fcn.14002cfa0
mov rax, qword [rbp + 0x6f]
cmp dword [rax + 4], 0
je 0x140062325
lea rcx, [rbp + 0x6f]
call fcn.1400142f0
test al, al
jne 0x14006236c
lea rcx, [rbp - 0x21]
call fcn.140064330
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 0x14006235e
cmp eax, 0xffffffff
je 0x14006236c
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14006236c
mov rcx, qword [rbp - 0x21]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cfa0
lea rdx, [rbp + 0x6f]
mov rcx, rsi
call fcn.1400272b0
nop
mov rcx, qword [rbp + 0x6f]
mov eax, dword [rcx]
test eax, eax
je 0x140062395
cmp eax, 0xffffffff
je 0x1400623a3
lock xadd dword [rcx], edi
cmp edi, 1
jne 0x1400623a3
mov rcx, qword [rbp + 0x6f]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cfa0
mov rax, rsi
add rsp, 0xc8
pop rdi
pop rsi
pop rbx
pop rbp
ret