Function at 0x14013c260
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x100]
sub rsp, 0x200
mov r14, rcx
xor edi, edi
mov dword [rsp + 0x20], edi
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], rdi
movzx eax, byte [0x140385b08]
nop
cmp al, 0xfe
jle 0x14013c2cb
mov ecx, dword [0x140388088]
mov rax, qword gs:[0x58]
mov edx, 0x58
mov rax, qword [rax + rcx*8]
mov eax, dword [rdx + rax]
cmp dword [0x140385b14], eax
jg 0x14013c946
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbp + 0x140], rdi
lea r8, [rbp + 0x140]
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov rbx, 0xffffffffffffffff
test eax, eax
je 0x14013c400
mov dword [rbp + 0x138], edi
lea r8, [rbp + 0x138]
xor edx, edx
mov rcx, qword [rbp + 0x140]
call qword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
test eax, eax
jne 0x14013c3f3
mov eax, dword [rbp + 0x138]
test eax, eax
je 0x14013c3f3
mov ecx, eax
mov eax, 2
mul rcx
cmovo rax, rbx
mov rcx, rax
call fcn.1402143a4
mov rsi, rax
lea r8, [rbp + 0x138]
mov rdx, rax
mov rcx, qword [rbp + 0x140]
call qword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
test eax, eax
je 0x14013c3eb
mov r8, rbx
mov rdx, rsi
lea rcx, [rbp + 0x70]
call fcn.14008e230
nop
mov rcx, qword [rax]
mov qword [rbp - 0x50], rcx
mov rcx, qword [rax + 8]
mov qword [rbp - 0x48], rcx
mov rcx, qword [rax + 0x10]
mov qword [rbp - 0x40], rcx
mov qword [rax], rdi
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rdi
mov dword [rsp + 0x20], 0x400
mov rcx, qword [rbp + 0x70]
test rcx, rcx
je 0x14013c3bd
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14013c3bd
mov rcx, qword [rbp + 0x70]
call fcn.14021b810
mov rcx, qword [rsp + 0x28]
movups xmm0, xmmword [rbp - 0x50]
movups xmmword [rsp + 0x28], xmm0
movsd xmm1, qword [rbp - 0x40]
movsd qword [rsp + 0x38], xmm1
test rcx, rcx
je 0x14013c3eb
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14013c3eb
call fcn.14021b810
mov rcx, rsi
call fcn.140214360
mov rcx, qword [rbp + 0x140]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x38], 0
je 0x14013c41a
lea rcx, [rsp + 0x28]
call fcn.1400431a0
test al, al
jne 0x14013c8fc
lea rdx, str.USERPROFILE
lea rcx, [rbp + 0x88]
call fcn.140125470
mov rsi, rax
mov r15, qword [rax + 0x10]
mov rcx, rax
call fcn.140042c70
lea r12, [0x14024eca0]
test al, al
je 0x14013c44c
mov rcx, rdi
jmp 0x14013c45a
mov rax, qword [rsi + 8]
mov rcx, r12
test rax, rax
cmovne rcx, rax
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], rcx
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rbp + 0x10], xmm0
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x80]
call fcn.14008e0a0
or dword [rsp + 0x20], 2
mov rdx, qword [rsp + 0x28]
mov rax, qword [rbp - 0x80]
mov qword [rsp + 0x28], rax
mov qword [rbp - 0x80], rdx
mov rcx, qword [rsp + 0x30]
mov rax, qword [rbp - 0x78]
mov qword [rsp + 0x30], rax
mov qword [rbp - 0x78], rcx
mov rcx, qword [rsp + 0x38]
mov rax, qword [rbp - 0x70]
mov qword [rsp + 0x38], rax
mov qword [rbp - 0x70], rcx
test rdx, rdx
je 0x14013c4d0
mov eax, ebx
lock xadd dword [rdx], eax
cmp eax, 1
jne 0x14013c4d0
mov rcx, qword [rbp - 0x80]
call fcn.14021b810
nop
mov rcx, qword [rbp + 0x88]
test rcx, rcx
je 0x14013c4f3
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14013c4f3
mov rcx, qword [rbp + 0x88]
call fcn.14021b810
cmp qword [rsp + 0x38], 0
je 0x14013c50d
lea rcx, [rsp + 0x28]
call fcn.1400431a0
test al, al
jne 0x14013c8fc
lea rdx, str.HOMEPATH
lea rcx, [rbp + 0xb8]
call fcn.140125470
mov rsi, rax
mov r15, qword [rax + 0x10]
mov rcx, rax
call fcn.140042c70
test al, al
je 0x14013c538
mov rcx, rdi
jmp 0x14013c546
mov rax, qword [rsi + 8]
mov rcx, r12
test rax, rax
cmovne rcx, rax
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], rcx
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rbp + 0x20], xmm0
lea rdx, [rbp + 0x20]
lea rcx, [rbp - 0x10]
call fcn.14008e0a0
or dword [rsp + 0x20], 4
lea rdx, str.HOMEDRIVE
lea rcx, [rbp + 0xa0]
call fcn.140125470
mov rsi, rax
mov r15, qword [rax + 0x10]
mov rcx, rax
call fcn.140042c70
test al, al
je 0x14013c597
mov rcx, rdi
jmp 0x14013c5a5
mov rax, qword [rsi + 8]
mov rcx, r12
test rax, rax
cmovne rcx, rax
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], rcx
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rbp + 0x30], xmm0
lea rdx, [rbp + 0x30]
lea rcx, [rbp - 0x38]
call fcn.14008e0a0
or dword [rsp + 0x20], 8
movups xmm1, xmmword [rbp - 0x38]
movups xmmword [rsp + 0x68], xmm1
movsd xmm0, qword [rbp - 0x28]
movsd qword [rsp + 0x78], xmm0
movq rax, xmm1
test rax, rax
je 0x14013c5ec
lock inc dword [rax]
or dword [rsp + 0x20], 0x10
lea rdx, [rbp - 0x10]
lea rcx, [rsp + 0x68]
call fcn.140088380
mov rdx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x68], rdx
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x70], rcx
mov rcx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x78], rcx
and dword [rsp + 0x20], 0xffffffef
test rdx, rdx
je 0x14013c65b
mov eax, ebx
lock xadd dword [rdx], eax
cmp eax, 1
jne 0x14013c65b
mov rcx, qword [rsp + 0x68]
call fcn.14021b810
nop
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x14013c679
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14013c679
mov rcx, qword [rbp - 0x38]
call fcn.14021b810
nop
mov rcx, qword [rbp + 0xa0]
test rcx, rcx
je 0x14013c69d
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14013c69d
mov rcx, qword [rbp + 0xa0]
call fcn.14021b810
nop
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x14013c6bb
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14013c6bb
mov rcx, qword [rbp - 0x10]
call fcn.14021b810
nop
mov rcx, qword [rbp + 0xb8]
test rcx, rcx
je 0x14013c6de
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14013c6de
mov rcx, qword [rbp + 0xb8]
call fcn.14021b810
cmp qword [rsp + 0x38], 0
je 0x14013c6f8
lea rcx, [rsp + 0x28]
call fcn.1400431a0
test al, al
jne 0x14013c8fc
lea rdx, str.HOME
lea rcx, [rbp + 0xd0]
call fcn.140125470
mov rsi, rax
mov r15, qword [rax + 0x10]
mov rcx, rax
call fcn.140042c70
test al, al
je 0x14013c723
mov rcx, rdi
jmp 0x14013c731
mov rax, qword [rsi + 8]
mov rcx, r12
test rax, rax
cmovne rcx, rax
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], rcx
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rbp + 0x40], xmm0
lea rdx, [rbp + 0x40]
lea rcx, [rbp - 0x68]
call fcn.14008e0a0
or dword [rsp + 0x20], 0x20
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 0x14013c7a7
mov eax, ebx
lock xadd dword [rdx], eax
cmp eax, 1
jne 0x14013c7a7
mov rcx, qword [rbp - 0x68]
call fcn.14021b810
nop
mov rcx, qword [rbp + 0xd0]
test rcx, rcx
je 0x14013c7ca
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14013c7ca
mov rcx, qword [rbp + 0xd0]
call fcn.14021b810
cmp qword [rsp + 0x38], 0
je 0x14013c7e4
lea rcx, [rsp + 0x28]
call fcn.1400431a0
test al, al
jne 0x14013c8fc
lea rdx, str.SystemDrive
lea rcx, [rbp + 0xe8]
call fcn.140125470
mov rsi, rax
mov r15, qword [rax + 0x10]
mov rcx, rax
call fcn.140042c70
test al, al
jne 0x14013c818
mov rax, qword [rsi + 8]
mov rdi, r12
test rax, rax
cmovne rdi, rax
mov qword [rsp + 0x40], r15
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.14008def0
or dword [rsp + 0x20], 0xc0
mov rcx, qword [rbp + 0xe8]
test rcx, rcx
je 0x14013c865
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14013c865
mov rcx, qword [rbp + 0xe8]
call fcn.14021b810
cmp qword [rsp + 0x60], 0
jne 0x14013c897
mov qword [rbp - 0x20], 2
lea rax, [0x1402cabec]
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.140087460
mov edx, 0x2f
lea rcx, [rsp + 0x50]
call fcn.1400884b0
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 0x14013c8fc
mov eax, ebx
lock xadd dword [rdx], eax
cmp eax, 1
jne 0x14013c8fc
mov rcx, qword [rsp + 0x50]
call fcn.14021b810
lea rdx, [rsp + 0x28]
mov rcx, r14
call fcn.1400a9040
nop
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x14013c927
lock xadd dword [rax], ebx
cmp ebx, 1
jne 0x14013c927
mov rcx, qword [rsp + 0x28]
call fcn.14021b810
mov rax, r14
lea r11, [rsp + 0x200]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
lea rcx, [0x140385b14]
call fcn.14021495c
cmp dword [0x140385b14], 0xffffffff
jne 0x14013c2cb
lea rcx, [0x140385b10]
call fcn.140139000
mov byte [0x140385b08], 0xff
lea rcx, [0x14024d5b0]
call fcn.14021489c
nop
lea rcx, [0x140385b14]
call fcn.1402148f0
jmp 0x14013c2cb