Function at 0x14013c230
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 0x14013c29b
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 0x14013c916
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 0x14013c3d0
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 0x14013c3c3
mov eax, dword [rbp + 0x138]
test eax, eax
je 0x14013c3c3
mov ecx, eax
mov eax, 2
mul rcx
cmovo rax, rbx
mov rcx, rax
call fcn.140214374
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 0x14013c3bb
mov r8, rbx
mov rdx, rsi
lea rcx, [rbp + 0x70]
call fcn.14008e200
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 0x14013c38d
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14013c38d
mov rcx, qword [rbp + 0x70]
call fcn.14021b7f0
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 0x14013c3bb
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14013c3bb
call fcn.14021b7f0
mov rcx, rsi
call fcn.140214330
mov rcx, qword [rbp + 0x140]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x38], 0
je 0x14013c3ea
lea rcx, [rsp + 0x28]
call fcn.140043170
test al, al
jne 0x14013c8cc
lea rdx, str.USERPROFILE
lea rcx, [rbp + 0x88]
call fcn.140125440
mov rsi, rax
mov r15, qword [rax + 0x10]
mov rcx, rax
call fcn.140042c40
lea r12, [0x14024ecc0]
test al, al
je 0x14013c41c
mov rcx, rdi
jmp 0x14013c42a
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.14008e070
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 0x14013c4a0
mov eax, ebx
lock xadd dword [rdx], eax
cmp eax, 1
jne 0x14013c4a0
mov rcx, qword [rbp - 0x80]
call fcn.14021b7f0
nop
mov rcx, qword [rbp + 0x88]
test rcx, rcx
je 0x14013c4c3
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14013c4c3
mov rcx, qword [rbp + 0x88]
call fcn.14021b7f0
cmp qword [rsp + 0x38], 0
je 0x14013c4dd
lea rcx, [rsp + 0x28]
call fcn.140043170
test al, al
jne 0x14013c8cc
lea rdx, str.HOMEPATH
lea rcx, [rbp + 0xb8]
call fcn.140125440
mov rsi, rax
mov r15, qword [rax + 0x10]
mov rcx, rax
call fcn.140042c40
test al, al
je 0x14013c508
mov rcx, rdi
jmp 0x14013c516
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.14008e070
or dword [rsp + 0x20], 4
lea rdx, str.HOMEDRIVE
lea rcx, [rbp + 0xa0]
call fcn.140125440
mov rsi, rax
mov r15, qword [rax + 0x10]
mov rcx, rax
call fcn.140042c40
test al, al
je 0x14013c567
mov rcx, rdi
jmp 0x14013c575
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.14008e070
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 0x14013c5bc
lock inc dword [rax]
or dword [rsp + 0x20], 0x10
lea rdx, [rbp - 0x10]
lea rcx, [rsp + 0x68]
call fcn.140088350
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 0x14013c62b
mov eax, ebx
lock xadd dword [rdx], eax
cmp eax, 1
jne 0x14013c62b
mov rcx, qword [rsp + 0x68]
call fcn.14021b7f0
nop
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x14013c649
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14013c649
mov rcx, qword [rbp - 0x38]
call fcn.14021b7f0
nop
mov rcx, qword [rbp + 0xa0]
test rcx, rcx
je 0x14013c66d
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14013c66d
mov rcx, qword [rbp + 0xa0]
call fcn.14021b7f0
nop
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x14013c68b
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14013c68b
mov rcx, qword [rbp - 0x10]
call fcn.14021b7f0
nop
mov rcx, qword [rbp + 0xb8]
test rcx, rcx
je 0x14013c6ae
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14013c6ae
mov rcx, qword [rbp + 0xb8]
call fcn.14021b7f0
cmp qword [rsp + 0x38], 0
je 0x14013c6c8
lea rcx, [rsp + 0x28]
call fcn.140043170
test al, al
jne 0x14013c8cc
lea rdx, str.HOME
lea rcx, [rbp + 0xd0]
call fcn.140125440
mov rsi, rax
mov r15, qword [rax + 0x10]
mov rcx, rax
call fcn.140042c40
test al, al
je 0x14013c6f3
mov rcx, rdi
jmp 0x14013c701
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.14008e070
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 0x14013c777
mov eax, ebx
lock xadd dword [rdx], eax
cmp eax, 1
jne 0x14013c777
mov rcx, qword [rbp - 0x68]
call fcn.14021b7f0
nop
mov rcx, qword [rbp + 0xd0]
test rcx, rcx
je 0x14013c79a
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14013c79a
mov rcx, qword [rbp + 0xd0]
call fcn.14021b7f0
cmp qword [rsp + 0x38], 0
je 0x14013c7b4
lea rcx, [rsp + 0x28]
call fcn.140043170
test al, al
jne 0x14013c8cc
lea rdx, str.SystemDrive
lea rcx, [rbp + 0xe8]
call fcn.140125440
mov rsi, rax
mov r15, qword [rax + 0x10]
mov rcx, rax
call fcn.140042c40
test al, al
jne 0x14013c7e8
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.14008dec0
or dword [rsp + 0x20], 0xc0
mov rcx, qword [rbp + 0xe8]
test rcx, rcx
je 0x14013c835
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14013c835
mov rcx, qword [rbp + 0xe8]
call fcn.14021b7f0
cmp qword [rsp + 0x60], 0
jne 0x14013c867
mov qword [rbp - 0x20], 2
lea rax, [0x1402cac0c]
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.140087430
mov edx, 0x2f
lea rcx, [rsp + 0x50]
call fcn.140088480
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 0x14013c8cc
mov eax, ebx
lock xadd dword [rdx], eax
cmp eax, 1
jne 0x14013c8cc
mov rcx, qword [rsp + 0x50]
call fcn.14021b7f0
lea rdx, [rsp + 0x28]
mov rcx, r14
call fcn.1400a9010
nop
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x14013c8f7
lock xadd dword [rax], ebx
cmp ebx, 1
jne 0x14013c8f7
mov rcx, qword [rsp + 0x28]
call fcn.14021b7f0
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.14021492c
cmp dword [0x140385b14], 0xffffffff
jne 0x14013c29b
lea rcx, [0x140385b10]
call fcn.140138fd0
mov byte [0x140385b08], 0xff
lea rcx, [0x14024d590]
call fcn.14021486c
nop
lea rcx, [0x140385b14]
call fcn.1402148c0
jmp 0x14013c29b