Function at 0x141228dd0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xd0
mov r14, rcx
xor edi, edi
mov dword [rbp - 0x39], edi
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x69], xmm0
mov qword [rbp - 0x59], rdi
movzx eax, byte [0x141372a40]
nop
cmp al, 0xfe
jle 0x141228e3a
mov ecx, dword [0x141374db0]
mov rax, qword gs:[0x58]
mov edx, 0x58
mov rax, qword [rax + rcx*8]
mov eax, dword [rdx + rax]
cmp dword [0x141372a4c], eax
jg 0x141229477
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbp + 0x6f], rdi
lea r8, [rbp + 0x6f]
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov rbx, 0xffffffffffffffff
test eax, eax
je 0x141228f30
mov dword [rbp + 0x67], edi
lea r8, [rbp + 0x67]
xor edx, edx
mov rcx, qword [rbp + 0x6f]
call qword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
test eax, eax
jne 0x141228f26
mov eax, dword [rbp + 0x67]
test eax, eax
je 0x141228f26
mov ecx, eax
mov eax, 2
mul rcx
cmovb rax, rbx
mov rcx, rax
call fcn.141316da0
mov rsi, rax
lea r8, [rbp + 0x67]
mov rdx, rax
mov rcx, qword [rbp + 0x6f]
call qword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
test eax, eax
je 0x141228f1e
mov r8, rbx
mov rdx, rsi
lea rcx, [rbp - 0x31]
call fcn.1411af5d0
mov rdx, qword [rbp - 0x69]
mov rcx, qword [rax]
mov qword [rbp - 0x69], rcx
mov qword [rax], rdx
mov rdx, qword [rbp - 0x61]
mov rcx, qword [rax + 8]
mov qword [rbp - 0x61], rcx
mov qword [rax + 8], rdx
mov rdx, qword [rbp - 0x59]
mov rcx, qword [rax + 0x10]
mov qword [rbp - 0x59], rcx
mov qword [rax + 0x10], rdx
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x141228f1e
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x141228f1e
mov edx, 2
mov r8d, 8
mov rcx, qword [rbp - 0x31]
call fcn.1411dba10
mov rcx, rsi
call fcn.1413164c0
mov rcx, qword [rbp + 0x6f]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbp - 0x59], 0
je 0x141228f48
lea rcx, [rbp - 0x69]
call fcn.1411ce720
test al, al
jne 0x141229425
lea rdx, [0x14007a8a0]
lea rcx, [rbp - 0x31]
call fcn.1411e3b40
mov rsi, rax
mov r15, qword [rax + 0x10]
mov rcx, rax
call fcn.1411e3570
lea r12, [0x14004798c]
test al, al
je 0x141228f77
mov rcx, rdi
jmp 0x141228f85
mov rax, qword [rsi + 8]
mov rcx, r12
test rax, rax
cmovne rcx, rax
mov qword [rbp - 0x79], r15
mov qword [rbp - 0x71], rcx
movaps xmm0, xmmword [rbp - 0x79]
movdqa xmmword [rbp - 0x79], xmm0
lea rdx, [rbp - 0x79]
lea rcx, [rbp - 0x51]
call fcn.1411c2350
mov rdx, qword [rbp - 0x69]
mov rax, qword [rbp - 0x51]
mov qword [rbp - 0x69], rax
mov qword [rbp - 0x51], rdx
mov rcx, qword [rbp - 0x61]
mov rax, qword [rbp - 0x49]
mov qword [rbp - 0x61], rax
mov qword [rbp - 0x49], rcx
mov rcx, qword [rbp - 0x59]
mov rax, qword [rbp - 0x41]
mov qword [rbp - 0x59], rax
mov qword [rbp - 0x41], rcx
test rdx, rdx
je 0x141228ff8
mov eax, ebx
lock xadd dword [rdx], eax
cmp eax, 1
jne 0x141228ff8
mov edx, 2
mov r8d, 8
mov rcx, qword [rbp - 0x51]
call fcn.1411dba10
nop
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x141229020
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x141229020
mov edx, 1
mov r8d, 8
mov rcx, qword [rbp - 0x31]
call fcn.1411dba10
cmp qword [rbp - 0x59], 0
je 0x141229038
lea rcx, [rbp - 0x69]
call fcn.1411ce720
test al, al
jne 0x141229425
lea rdx, [0x14007a8b0]
lea rcx, [rbp - 0x19]
call fcn.1411e3b40
mov rsi, rax
mov r15, qword [rax + 0x10]
mov rcx, rax
call fcn.1411e3570
test al, al
je 0x141229060
mov rcx, rdi
jmp 0x14122906e
mov rax, qword [rsi + 8]
mov rcx, r12
test rax, rax
cmovne rcx, rax
mov qword [rbp - 0x79], r15
mov qword [rbp - 0x71], rcx
movaps xmm0, xmmword [rbp - 0x79]
movdqa xmmword [rbp - 0x79], xmm0
lea rdx, [rbp - 0x79]
lea rcx, [rbp - 0x31]
call fcn.1411c2350
nop
lea rdx, [0x14007a8c0]
lea rcx, [rbp + 0x17]
call fcn.1411e3b40
mov rsi, rax
mov r15, qword [rax + 0x10]
mov rcx, rax
call fcn.1411e3570
test al, al
je 0x1412290b5
mov rcx, rdi
jmp 0x1412290c3
mov rax, qword [rsi + 8]
mov rcx, r12
test rax, rax
cmovne rcx, rax
mov qword [rbp - 0x79], r15
mov qword [rbp - 0x71], rcx
movaps xmm0, xmmword [rbp - 0x79]
movdqa xmmword [rbp - 0x79], xmm0
lea rdx, [rbp - 0x79]
lea rcx, [rbp - 1]
call fcn.1411c2350
nop
movups xmm1, xmmword [rbp - 1]
movups xmmword [rbp - 0x51], xmm1
movsd xmm0, qword [rbp + 0xf]
movsd qword [rbp - 0x41], xmm0
movq rax, xmm1
test rax, rax
je 0x141229101
lock inc dword [rax]
mov dword [rbp - 0x39], 0x1e
lea rdx, [rbp - 0x31]
lea rcx, [rbp - 0x51]
call fcn.1411be670
mov rdx, qword [rbp - 0x69]
mov rax, qword [rbp - 0x51]
mov qword [rbp - 0x69], rax
mov qword [rbp - 0x51], rdx
mov rcx, qword [rbp - 0x61]
mov rax, qword [rbp - 0x49]
mov qword [rbp - 0x61], rax
mov qword [rbp - 0x49], rcx
mov rcx, qword [rbp - 0x59]
mov rax, qword [rbp - 0x41]
mov qword [rbp - 0x59], rax
mov qword [rbp - 0x41], rcx
test rdx, rdx
je 0x14122916a
mov eax, ebx
lock xadd dword [rdx], eax
cmp eax, 1
jne 0x14122916a
mov edx, 2
mov r8d, 8
mov rcx, qword [rbp - 0x51]
call fcn.1411dba10
nop
mov rcx, qword [rbp - 1]
test rcx, rcx
je 0x141229193
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x141229193
mov edx, 2
mov r8d, 8
mov rcx, qword [rbp - 1]
call fcn.1411dba10
nop
mov rcx, qword [rbp + 0x17]
test rcx, rcx
je 0x1412291bc
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1412291bc
mov edx, 1
mov r8d, 8
mov rcx, qword [rbp + 0x17]
call fcn.1411dba10
nop
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x1412291e5
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1412291e5
mov edx, 2
mov r8d, 8
mov rcx, qword [rbp - 0x31]
call fcn.1411dba10
nop
mov rcx, qword [rbp - 0x19]
test rcx, rcx
je 0x14122920d
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14122920d
mov edx, 1
mov r8d, 8
mov rcx, qword [rbp - 0x19]
call fcn.1411dba10
cmp qword [rbp - 0x59], 0
je 0x141229225
lea rcx, [rbp - 0x69]
call fcn.1411ce720
test al, al
jne 0x141229425
lea rdx, [0x14007a8cc]
lea rcx, [rbp - 0x19]
call fcn.1411e3b40
mov rsi, rax
mov r15, qword [rax + 0x10]
mov rcx, rax
call fcn.1411e3570
test al, al
je 0x14122924d
mov rcx, rdi
jmp 0x14122925b
mov rax, qword [rsi + 8]
mov rcx, r12
test rax, rax
cmovne rcx, rax
mov qword [rbp - 0x79], r15
mov qword [rbp - 0x71], rcx
movaps xmm0, xmmword [rbp - 0x79]
movdqa xmmword [rbp - 0x79], xmm0
lea rdx, [rbp - 0x79]
lea rcx, [rbp - 0x51]
call fcn.1411c2350
mov dword [rbp - 0x39], 0x2e
mov rdx, qword [rbp - 0x69]
mov rax, qword [rbp - 0x51]
mov qword [rbp - 0x69], rax
mov qword [rbp - 0x51], rdx
mov rcx, qword [rbp - 0x61]
mov rax, qword [rbp - 0x49]
mov qword [rbp - 0x61], rax
mov qword [rbp - 0x49], rcx
mov rcx, qword [rbp - 0x59]
mov rax, qword [rbp - 0x41]
mov qword [rbp - 0x59], rax
mov qword [rbp - 0x41], rcx
test rdx, rdx
je 0x1412292d5
mov eax, ebx
lock xadd dword [rdx], eax
cmp eax, 1
jne 0x1412292d5
mov edx, 2
mov r8d, 8
mov rcx, qword [rbp - 0x51]
call fcn.1411dba10
nop
mov rcx, qword [rbp - 0x19]
test rcx, rcx
je 0x1412292fd
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1412292fd
mov edx, 1
mov r8d, 8
mov rcx, qword [rbp - 0x19]
call fcn.1411dba10
cmp qword [rbp - 0x59], 0
je 0x141229315
lea rcx, [rbp - 0x69]
call fcn.1411ce720
test al, al
jne 0x141229425
lea rdx, [0x14007a890]
lea rcx, [rbp - 0x19]
call fcn.1411e3b40
mov rsi, rax
mov r15, qword [rax + 0x10]
mov rcx, rax
call fcn.1411e3570
test al, al
jne 0x141229346
mov rax, qword [rsi + 8]
mov rdi, r12
test rax, rax
cmovne rdi, rax
mov qword [rbp - 0x79], r15
mov qword [rbp - 0x71], rdi
movaps xmm0, xmmword [rbp - 0x79]
movdqa xmmword [rbp - 0x79], xmm0
lea rdx, [rbp - 0x79]
lea rcx, [rbp - 0x51]
call fcn.1411c2270
mov dword [rbp - 0x39], 0xee
mov rcx, qword [rbp - 0x19]
test rcx, rcx
je 0x141229393
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x141229393
mov edx, 1
mov r8d, 8
mov rcx, qword [rbp - 0x19]
call fcn.1411dba10
cmp qword [rbp - 0x41], 0
jne 0x1412293c3
mov qword [rbp - 0x79], 2
lea rax, [0x14007a89c]
mov qword [rbp - 0x71], rax
movaps xmm0, xmmword [rbp - 0x79]
movdqa xmmword [rbp - 0x79], xmm0
lea rdx, [rbp - 0x79]
lea rcx, [rbp - 0x51]
call fcn.1411bdb40
mov edx, 0x2f
lea rcx, [rbp - 0x51]
call fcn.1411be750
mov rdx, qword [rbp - 0x69]
mov rax, qword [rbp - 0x51]
mov qword [rbp - 0x69], rax
mov qword [rbp - 0x51], rdx
mov rcx, qword [rbp - 0x61]
mov rax, qword [rbp - 0x49]
mov qword [rbp - 0x61], rax
mov qword [rbp - 0x49], rcx
mov rcx, qword [rbp - 0x59]
mov rax, qword [rbp - 0x41]
mov qword [rbp - 0x59], rax
mov qword [rbp - 0x41], rcx
test rdx, rdx
je 0x141229425
mov eax, ebx
lock xadd dword [rdx], eax
cmp eax, 1
jne 0x141229425
mov edx, 2
mov r8d, 8
mov rcx, qword [rbp - 0x51]
call fcn.1411dba10
lea rdx, [rbp - 0x69]
mov rcx, r14
call fcn.1411d5160
nop
mov rax, qword [rbp - 0x69]
test rax, rax
je 0x141229458
lock xadd dword [rax], ebx
cmp ebx, 1
jne 0x141229458
mov edx, 2
mov r8d, 8
mov rcx, qword [rbp - 0x69]
call fcn.1411dba10
mov rax, r14
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
lea rcx, [0x141372a4c]
call fcn.141316a8c
cmp dword [0x141372a4c], 0xffffffff
jne 0x141228e3a
lea rcx, [0x141372a49]
call fcn.141225ad0
mov byte [0x141372a40], 0xff
lea rcx, [0x14134c8d0]
call fcn.141316758
nop
lea rcx, [0x141372a4c]
call fcn.141316a20
jmp 0x141228e3a