Function at 0x14042fd90
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, [0x1400495e0]
mov qword [rbp + 0x6f], rax
cmp dword [0x140586900], 0xfffffffe
jle 0x14042fdce
call fcn.140430570
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 0x14042fea8
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 0x14042fe9e
mov eax, dword [rbp + 0x67]
test eax, eax
je 0x14042fe9e
mov ecx, eax
mov eax, 2
mul rcx
cmovo rax, rdi
mov rcx, rax
call fcn.1404e21d4
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 0x14042fe96
mov r8d, edi
mov rdx, rbx
lea rcx, [rbp + 0x7f]
call fcn.1402d3550
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 0x14042fe88
cmp eax, edi
je 0x14042fe96
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14042fe96
mov rcx, qword [rbp + 0x7f]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140379300
mov rcx, rbx
call fcn.1404e1830
mov rcx, qword [rbp + 0x77]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp + 0x6f]
cmp dword [rax + 4], 0
je 0x14042fec3
lea rcx, [rbp + 0x6f]
call fcn.14035fd40
test al, al
jne 0x1404301ac
lea rdx, [0x1400a7ce0]
lea rcx, [rbp - 0x61]
call fcn.14037eaa0
nop
mov rdx, rax
lea rcx, [rbp - 0x69]
call fcn.14035c0c0
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 0x14042ff10
cmp eax, 0xffffffff
je 0x14042ff1f
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14042ff1f
mov rcx, qword [rbp - 0x69]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140379300
nop
mov rcx, qword [rbp - 0x61]
mov eax, dword [rcx]
test eax, eax
je 0x14042ff3d
cmp eax, 0xffffffff
je 0x14042ff4b
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14042ff4b
mov rcx, qword [rbp - 0x61]
mov edx, 1
lea r8d, [rdx + 7]
call fcn.140379300
mov rax, qword [rbp + 0x6f]
cmp dword [rax + 4], 0
je 0x14042ff66
lea rcx, [rbp + 0x6f]
call fcn.14035fd40
test al, al
jne 0x1404301ac
lea rdx, [0x1400a7cf0]
lea rcx, [rbp - 0x39]
call fcn.14037eaa0
nop
mov rdx, rax
lea rcx, [rbp - 0x41]
call fcn.14035c0c0
mov rbx, rax
lea rdx, [0x1400a7d00]
lea rcx, [rbp - 0x49]
call fcn.14037eaa0
nop
mov rdx, rax
lea rcx, [rbp - 0x51]
call fcn.14035c0c0
nop
mov qword [rbp - 0x11], rax
mov qword [rbp - 9], rbx
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x11]
call fcn.140371b00
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 0x14042ffe9
cmp eax, 0xffffffff
je 0x14042fff8
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14042fff8
mov rcx, qword [rbp - 0x59]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140379300
nop
mov rcx, qword [rbp - 0x51]
mov eax, dword [rcx]
test eax, eax
je 0x140430016
cmp eax, 0xffffffff
je 0x140430025
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140430025
mov rcx, qword [rbp - 0x51]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140379300
nop
mov rcx, qword [rbp - 0x49]
mov eax, dword [rcx]
test eax, eax
je 0x140430043
cmp eax, 0xffffffff
je 0x140430052
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140430052
mov rcx, qword [rbp - 0x49]
mov edx, 1
lea r8d, [rdx + 7]
call fcn.140379300
nop
mov rcx, qword [rbp - 0x41]
mov eax, dword [rcx]
test eax, eax
je 0x140430070
cmp eax, 0xffffffff
je 0x14043007f
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14043007f
mov rcx, qword [rbp - 0x41]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140379300
nop
mov rcx, qword [rbp - 0x39]
mov eax, dword [rcx]
test eax, eax
je 0x14043009d
cmp eax, 0xffffffff
je 0x1404300ab
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1404300ab
mov rcx, qword [rbp - 0x39]
mov edx, 1
lea r8d, [rdx + 7]
call fcn.140379300
mov rax, qword [rbp + 0x6f]
cmp dword [rax + 4], 0
je 0x1404300c6
lea rcx, [rbp + 0x6f]
call fcn.14035fd40
test al, al
jne 0x1404301ac
lea rdx, [0x1400a7d0c]
lea rcx, [rbp - 0x29]
call fcn.14037eaa0
nop
mov rdx, rax
lea rcx, [rbp - 0x31]
call fcn.14035c0c0
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 0x140430113
cmp eax, 0xffffffff
je 0x140430122
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140430122
mov rcx, qword [rbp - 0x31]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140379300
nop
mov rcx, qword [rbp - 0x29]
mov eax, dword [rcx]
test eax, eax
je 0x140430140
cmp eax, 0xffffffff
je 0x14043014e
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14043014e
mov rcx, qword [rbp - 0x29]
mov edx, 1
lea r8d, [rdx + 7]
call fcn.140379300
mov rax, qword [rbp + 0x6f]
cmp dword [rax + 4], 0
je 0x140430165
lea rcx, [rbp + 0x6f]
call fcn.14035fd40
test al, al
jne 0x1404301ac
lea rcx, [rbp - 0x21]
call fcn.1404320a0
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 0x14043019e
cmp eax, 0xffffffff
je 0x1404301ac
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1404301ac
mov rcx, qword [rbp - 0x21]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140379300
lea rdx, [rbp + 0x6f]
mov rcx, rsi
call fcn.140373170
nop
mov rcx, qword [rbp + 0x6f]
mov eax, dword [rcx]
test eax, eax
je 0x1404301d5
cmp eax, 0xffffffff
je 0x1404301e3
lock xadd dword [rcx], edi
cmp edi, 1
jne 0x1404301e3
mov rcx, qword [rbp + 0x6f]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140379300
mov rax, rsi
add rsp, 0xc8
pop rdi
pop rsi
pop rbx
pop rbp
ret