Function at 0x14007bd70
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 [0x1419a4988]
nop
cmp al, 0xfe
jle 0x14007bdda
mov ecx, dword [0x1419a6f28]
mov rax, qword gs:[0x58]
mov edx, 0x58
mov rax, qword [rax + rcx*8]
mov eax, dword [rdx + rax]
cmp dword [0x1419a4994], eax
jg 0x14007c417
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 0x14007bed0
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 0x14007bec6
mov eax, dword [rbp + 0x67]
test eax, eax
je 0x14007bec6
mov ecx, eax
mov eax, 2
mul rcx
cmovb rax, rbx
mov rcx, rax
call fcn.14016cb10
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 0x14007bebe
mov r8, rbx
mov rdx, rsi
lea rcx, [rbp - 0x31]
call fcn.140002ce0
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 0x14007bebe
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14007bebe
mov edx, 2
mov r8d, 8
mov rcx, qword [rbp - 0x31]
call fcn.140030bb0
mov rcx, rsi
call fcn.14016c230
mov rcx, qword [rbp + 0x6f]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbp - 0x59], 0
je 0x14007bee8
lea rcx, [rbp - 0x69]
call fcn.140023880
test al, al
jne 0x14007c3c5
lea rdx, [0x140214c00]
lea rcx, [rbp - 0x31]
call fcn.1400531a0
mov rsi, rax
mov r15, qword [rax + 0x10]
mov rcx, rax
call fcn.1400355c0
lea r12, [0x1401e4f90]
test al, al
je 0x14007bf17
mov rcx, rdi
jmp 0x14007bf25
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.140017590
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 0x14007bf98
mov eax, ebx
lock xadd dword [rdx], eax
cmp eax, 1
jne 0x14007bf98
mov edx, 2
mov r8d, 8
mov rcx, qword [rbp - 0x51]
call fcn.140030bb0
nop
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x14007bfc0
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14007bfc0
mov edx, 1
mov r8d, 8
mov rcx, qword [rbp - 0x31]
call fcn.140030bb0
cmp qword [rbp - 0x59], 0
je 0x14007bfd8
lea rcx, [rbp - 0x69]
call fcn.140023880
test al, al
jne 0x14007c3c5
lea rdx, [0x140214c10]
lea rcx, [rbp - 0x19]
call fcn.1400531a0
mov rsi, rax
mov r15, qword [rax + 0x10]
mov rcx, rax
call fcn.1400355c0
test al, al
je 0x14007c000
mov rcx, rdi
jmp 0x14007c00e
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.140017590
nop
lea rdx, [0x140214c20]
lea rcx, [rbp + 0x17]
call fcn.1400531a0
mov rsi, rax
mov r15, qword [rax + 0x10]
mov rcx, rax
call fcn.1400355c0
test al, al
je 0x14007c055
mov rcx, rdi
jmp 0x14007c063
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.140017590
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 0x14007c0a1
lock inc dword [rax]
mov dword [rbp - 0x39], 0x1e
lea rdx, [rbp - 0x31]
lea rcx, [rbp - 0x51]
call fcn.140013940
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 0x14007c10a
mov eax, ebx
lock xadd dword [rdx], eax
cmp eax, 1
jne 0x14007c10a
mov edx, 2
mov r8d, 8
mov rcx, qword [rbp - 0x51]
call fcn.140030bb0
nop
mov rcx, qword [rbp - 1]
test rcx, rcx
je 0x14007c133
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14007c133
mov edx, 2
mov r8d, 8
mov rcx, qword [rbp - 1]
call fcn.140030bb0
nop
mov rcx, qword [rbp + 0x17]
test rcx, rcx
je 0x14007c15c
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14007c15c
mov edx, 1
mov r8d, 8
mov rcx, qword [rbp + 0x17]
call fcn.140030bb0
nop
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x14007c185
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14007c185
mov edx, 2
mov r8d, 8
mov rcx, qword [rbp - 0x31]
call fcn.140030bb0
nop
mov rcx, qword [rbp - 0x19]
test rcx, rcx
je 0x14007c1ad
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14007c1ad
mov edx, 1
mov r8d, 8
mov rcx, qword [rbp - 0x19]
call fcn.140030bb0
cmp qword [rbp - 0x59], 0
je 0x14007c1c5
lea rcx, [rbp - 0x69]
call fcn.140023880
test al, al
jne 0x14007c3c5
lea rdx, [0x140214c2c]
lea rcx, [rbp - 0x19]
call fcn.1400531a0
mov rsi, rax
mov r15, qword [rax + 0x10]
mov rcx, rax
call fcn.1400355c0
test al, al
je 0x14007c1ed
mov rcx, rdi
jmp 0x14007c1fb
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.140017590
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 0x14007c275
mov eax, ebx
lock xadd dword [rdx], eax
cmp eax, 1
jne 0x14007c275
mov edx, 2
mov r8d, 8
mov rcx, qword [rbp - 0x51]
call fcn.140030bb0
nop
mov rcx, qword [rbp - 0x19]
test rcx, rcx
je 0x14007c29d
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14007c29d
mov edx, 1
mov r8d, 8
mov rcx, qword [rbp - 0x19]
call fcn.140030bb0
cmp qword [rbp - 0x59], 0
je 0x14007c2b5
lea rcx, [rbp - 0x69]
call fcn.140023880
test al, al
jne 0x14007c3c5
lea rdx, [0x140214bf0]
lea rcx, [rbp - 0x19]
call fcn.1400531a0
mov rsi, rax
mov r15, qword [rax + 0x10]
mov rcx, rax
call fcn.1400355c0
test al, al
jne 0x14007c2e6
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.1400174b0
mov dword [rbp - 0x39], 0xee
mov rcx, qword [rbp - 0x19]
test rcx, rcx
je 0x14007c333
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14007c333
mov edx, 1
mov r8d, 8
mov rcx, qword [rbp - 0x19]
call fcn.140030bb0
cmp qword [rbp - 0x41], 0
jne 0x14007c363
mov qword [rbp - 0x79], 2
lea rax, [0x140214bfc]
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.140012c30
mov edx, 0x2f
lea rcx, [rbp - 0x51]
call fcn.140013a10
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 0x14007c3c5
mov eax, ebx
lock xadd dword [rdx], eax
cmp eax, 1
jne 0x14007c3c5
mov edx, 2
mov r8d, 8
mov rcx, qword [rbp - 0x51]
call fcn.140030bb0
lea rdx, [rbp - 0x69]
mov rcx, r14
call fcn.14002a2d0
nop
mov rax, qword [rbp - 0x69]
test rax, rax
je 0x14007c3f8
lock xadd dword [rax], ebx
cmp ebx, 1
jne 0x14007c3f8
mov edx, 2
mov r8d, 8
mov rcx, qword [rbp - 0x69]
call fcn.140030bb0
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, [0x1419a4994]
call fcn.14016c7fc
cmp dword [0x1419a4994], 0xffffffff
jne 0x14007bdda
lea rcx, [0x1419a4991]
call fcn.140078a50
mov byte [0x1419a4988], 0xff
lea rcx, [0x14019d160]
call fcn.14016c4c8
nop
lea rcx, [0x1419a4994]
call fcn.14016c790
jmp 0x14007bdda