Function at 0x140142da0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x138]
sub rsp, 0x238
xor edi, edi
mov dword [rsp + 0x20], edi
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], rdi
movzx eax, byte [0x140395bd8]
nop
cmp al, 0xfe
jle 0x140142e07
mov ecx, dword [0x140398168]
mov rax, qword gs:[0x58]
mov edx, 0x58
mov rax, qword [rax + rcx*8]
mov eax, dword [rdx + rax]
cmp dword [0x140395be8], eax
jg 0x140143542
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbp + 0x190], rdi
lea r8, [rbp + 0x190]
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov rbx, 0xffffffffffffffff
test eax, eax
je 0x140142f27
mov dword [rbp + 0x188], edi
lea r8, [rbp + 0x188]
xor edx, edx
mov rcx, qword [rbp + 0x190]
call qword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
test eax, eax
jne 0x140142f1a
mov eax, dword [rbp + 0x188]
test eax, eax
je 0x140142f1a
mov ecx, eax
mov eax, 2
mul rcx
cmovo rax, rbx
mov rcx, rax
call fcn.140220114
mov rsi, rax
lea r8, [rbp + 0x188]
mov rdx, rax
mov rcx, qword [rbp + 0x190]
call qword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
test eax, eax
je 0x140142f12
mov r8, rbx
mov rdx, rsi
lea rcx, [rbp + 0x70]
call fcn.14008d720
nop
mov r14, qword [rax]
mov qword [rax], rdi
mov r15, qword [rax + 8]
mov qword [rax + 8], rdi
mov r12, qword [rax + 0x10]
mov qword [rax + 0x10], rdi
mov dword [rsp + 0x20], 0x800
mov rcx, qword [rbp + 0x70]
test rcx, rcx
je 0x140142ee9
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140142ee9
mov rcx, qword [rbp + 0x70]
call fcn.1402275a0
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], r12
test rcx, rcx
je 0x140142f12
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140142f12
call fcn.1402275a0
mov rcx, rsi
call fcn.1402200d0
mov rcx, qword [rbp + 0x190]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x38], 0
je 0x140142f41
lea rcx, [rsp + 0x28]
call fcn.140043040
test al, al
jne 0x1401434f9
lea rdx, str.USERPROFILE
lea rcx, [rbp + 0x88]
call fcn.140127400
mov rsi, rax
mov r14, qword [rax + 0x10]
mov rcx, rax
call fcn.140042b10
lea r15, [0x14025ad40]
test al, al
je 0x140142f73
mov rcx, rdi
jmp 0x140142f81
mov rax, qword [rsi + 8]
mov rcx, r15
test rax, rax
cmovne rcx, rax
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], rcx
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rbp + 0x10], xmm0
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x68]
call fcn.14008d590
or dword [rsp + 0x20], 2
mov rdx, qword [rsp + 0x28]
mov rax, qword [rbp - 0x68]
mov qword [rsp + 0x28], rax
mov qword [rbp - 0x68], rdx
mov rcx, qword [rsp + 0x30]
mov rax, qword [rbp - 0x60]
mov qword [rsp + 0x30], rax
mov qword [rbp - 0x60], rcx
mov rcx, qword [rsp + 0x38]
mov rax, qword [rbp - 0x58]
mov qword [rsp + 0x38], rax
mov qword [rbp - 0x58], rcx
test rdx, rdx
je 0x140142ff7
mov eax, ebx
lock xadd dword [rdx], eax
cmp eax, 1
jne 0x140142ff7
mov rcx, qword [rbp - 0x68]
call fcn.1402275a0
nop
mov rcx, qword [rbp + 0x88]
test rcx, rcx
je 0x14014301a
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14014301a
mov rcx, qword [rbp + 0x88]
call fcn.1402275a0
cmp qword [rsp + 0x38], 0
je 0x140143034
lea rcx, [rsp + 0x28]
call fcn.140043040
test al, al
jne 0x1401434f9
lea rdx, str.HOMEPATH
lea rcx, [rbp + 0xb8]
call fcn.140127400
mov rsi, rax
mov r14, qword [rax + 0x10]
mov rcx, rax
call fcn.140042b10
test al, al
je 0x14014305f
mov rcx, rdi
jmp 0x14014306d
mov rax, qword [rsi + 8]
mov rcx, r15
test rax, rax
cmovne rcx, rax
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], rcx
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rbp + 0x20], xmm0
lea rdx, [rbp + 0x20]
lea rcx, [rbp - 0x80]
call fcn.14008d590
or dword [rsp + 0x20], 4
lea rdx, str.HOMEDRIVE
lea rcx, [rbp + 0xa0]
call fcn.140127400
mov rsi, rax
mov r14, qword [rax + 0x10]
mov rcx, rax
call fcn.140042b10
test al, al
je 0x1401430be
mov rcx, rdi
jmp 0x1401430cc
mov rax, qword [rsi + 8]
mov rcx, r15
test rax, rax
cmovne rcx, rax
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], rcx
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rbp + 0x30], xmm0
lea rdx, [rbp + 0x30]
lea rcx, [rsp + 0x68]
call fcn.14008d590
or dword [rsp + 0x20], 8
mov rsi, qword [rsp + 0x68]
mov qword [rsp + 0x68], rdi
mov qword [rbp + 0x100], rsi
mov rax, qword [rsp + 0x70]
mov qword [rbp + 0x198], rax
mov qword [rsp + 0x70], rdi
mov qword [rbp + 0x108], rax
mov r15, qword [rsp + 0x78]
mov qword [rsp + 0x78], rdi
mov qword [rbp + 0x110], r15
mov r14, qword [rbp - 0x80]
mov qword [rbp - 0x80], rdi
mov qword [rbp + 0x118], r14
mov r13, qword [rbp - 0x78]
mov qword [rbp - 0x78], rdi
mov qword [rbp + 0x120], r13
mov r12, qword [rbp - 0x70]
mov qword [rbp - 0x70], rdi
mov qword [rbp + 0x128], r12
test rax, rax
jne 0x140143172
test r13, r13
jne 0x140143172
xorps xmm0, xmm0
mov qword [rbp - 0x28], rdi
movsd xmm1, qword [rbp - 0x28]
jmp 0x1401431e7
lea rdx, [r12 + r15]
xor r8d, r8d
lea rcx, [rbp - 0x10]
call fcn.140086b60
mov rcx, qword [rbp - 8]
mov qword [rsp + 0x40], rcx
lea rax, [0x14025be10]
test r15, r15
je 0x1401431bd
mov rdx, rax
mov rax, qword [rbp + 0x198]
test rax, rax
cmovne rdx, rax
lea r8, [r15 + r15]
call fcn.14024bde0
lea rax, [0x14025be10]
mov rcx, qword [rsp + 0x40]
lea rcx, [rcx + r15*2]
test r12, r12
je 0x1401431d9
test r13, r13
cmovne rax, r13
lea r8, [r12 + r12]
mov rdx, rax
call fcn.14024bde0
movups xmm0, xmmword [rbp - 0x10]
movsd xmm1, qword [rbp]
movsd qword [rbp - 0x28], xmm1
or dword [rsp + 0x20], 0x20
movdqu xmmword [rbp - 0x38], xmm0
or dword [rsp + 0x20], 0x10
mov rcx, qword [rsp + 0x28]
movups xmmword [rsp + 0x28], xmm0
movsd qword [rsp + 0x38], xmm1
test rcx, rcx
je 0x14014321c
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14014321c
call fcn.1402275a0
nop
test r14, r14
je 0x140143235
mov eax, ebx
lock xadd dword [r14], eax
cmp eax, 1
jne 0x140143235
mov rcx, r14
call fcn.1402275a0
test rsi, rsi
je 0x14014324e
mov eax, ebx
lock xadd dword [rsi], eax
cmp eax, 1
jne 0x14014324e
mov rcx, rsi
call fcn.1402275a0
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14014326e
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14014326e
mov rcx, qword [rsp + 0x68]
call fcn.1402275a0
nop
mov rcx, qword [rbp + 0xa0]
test rcx, rcx
je 0x140143292
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140143292
mov rcx, qword [rbp + 0xa0]
call fcn.1402275a0
nop
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x1401432b0
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1401432b0
mov rcx, qword [rbp - 0x80]
call fcn.1402275a0
nop
mov rcx, qword [rbp + 0xb8]
test rcx, rcx
je 0x1401432d3
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1401432d3
mov rcx, qword [rbp + 0xb8]
call fcn.1402275a0
cmp qword [rsp + 0x38], 0
je 0x1401432ed
lea rcx, [rsp + 0x28]
call fcn.140043040
test al, al
jne 0x1401434f9
lea rdx, str.HOME
lea rcx, [rbp + 0xd0]
call fcn.140127400
mov rsi, rax
mov r14, qword [rax + 0x10]
mov rcx, rax
call fcn.140042b10
test al, al
je 0x140143318
mov rcx, rdi
jmp 0x14014332a
mov rax, qword [rsi + 8]
lea rcx, [0x14025ad40]
test rax, rax
cmovne rcx, rax
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], rcx
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rbp + 0x40], xmm0
lea rdx, [rbp + 0x40]
lea rcx, [rbp - 0x50]
call fcn.14008d590
or dword [rsp + 0x20], 0x40
mov rdx, qword [rsp + 0x28]
mov rax, qword [rbp - 0x50]
mov qword [rsp + 0x28], rax
mov qword [rbp - 0x50], rdx
mov rcx, qword [rsp + 0x30]
mov rax, qword [rbp - 0x48]
mov qword [rsp + 0x30], rax
mov qword [rbp - 0x48], rcx
mov rcx, qword [rsp + 0x38]
mov rax, qword [rbp - 0x40]
mov qword [rsp + 0x38], rax
mov qword [rbp - 0x40], rcx
test rdx, rdx
je 0x1401433a0
mov eax, ebx
lock xadd dword [rdx], eax
cmp eax, 1
jne 0x1401433a0
mov rcx, qword [rbp - 0x50]
call fcn.1402275a0
nop
mov rcx, qword [rbp + 0xd0]
test rcx, rcx
je 0x1401433c3
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1401433c3
mov rcx, qword [rbp + 0xd0]
call fcn.1402275a0
cmp qword [rsp + 0x38], 0
je 0x1401433dd
lea rcx, [rsp + 0x28]
call fcn.140043040
test al, al
jne 0x1401434f9
lea rdx, str.SystemDrive
lea rcx, [rbp + 0xe8]
call fcn.140127400
mov rsi, rax
mov r14, qword [rax + 0x10]
mov rcx, rax
call fcn.140042b10
test al, al
jne 0x140143415
mov rax, qword [rsi + 8]
lea rdi, [0x14025ad40]
test rax, rax
cmovne rdi, rax
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], rdi
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rbp + 0x50], xmm0
lea rdx, [rbp + 0x50]
lea rcx, [rsp + 0x50]
call fcn.14008d3f0
or dword [rsp + 0x20], 0x180
mov rcx, qword [rbp + 0xe8]
test rcx, rcx
je 0x140143462
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140143462
mov rcx, qword [rbp + 0xe8]
call fcn.1402275a0
cmp qword [rsp + 0x60], 0
jne 0x140143494
mov qword [rbp - 0x20], 2
lea rax, [0x1402d81fc]
mov qword [rbp - 0x18], rax
movaps xmm0, xmmword [rbp - 0x20]
movdqa xmmword [rbp + 0x60], xmm0
lea rdx, [rbp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.140086c70
mov edx, 0x2f
lea rcx, [rsp + 0x50]
call fcn.140087d10
mov rdx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x50], rdx
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x58], rcx
mov rcx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x60], rcx
test rdx, rdx
je 0x1401434f9
mov eax, ebx
lock xadd dword [rdx], eax
cmp eax, 1
jne 0x1401434f9
mov rcx, qword [rsp + 0x50]
call fcn.1402275a0
lea rdx, [rsp + 0x28]
mov rdi, qword [rbp + 0x180]
mov rcx, rdi
call fcn.1400a8290
nop
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x14014352b
lock xadd dword [rax], ebx
cmp ebx, 1
jne 0x14014352b
mov rcx, qword [rsp + 0x28]
call fcn.1402275a0
mov rax, rdi
add rsp, 0x238
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rcx, [0x140395be8]
call fcn.1402206cc
cmp dword [0x140395be8], 0xffffffff
jne 0x140142e07
lea rcx, [0x140395be4]
call fcn.14013f940
mov byte [0x140395bd8], 0xff
lea rcx, [0x140258d20]
call fcn.14022060c
nop
lea rcx, [0x140395be8]
call fcn.140220660
jmp 0x140142e07