Function at 0x140004310
Capabilities:
Get common file path

Disassembly:
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov qword [0x1400eff60], rcx
lea rcx, [0x1400eff38]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
lea rdx, [0x1400efcc0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor r13d, r13d
test eax, eax
jne 0x140004361
mov word [0x1400efcc0], r13w
mov qword [rsp + 0xb8], rbx
lea rcx, [0x1400efcc0]
mov qword [rsp + 0xc0], rbp
or rdx, 0xffffffffffffffff
mov qword [rsp + 0xc8], rdi
call fcn.140075b30
mov esi, 1
mov qword [0x1400eff30], rax
mov r14d, esi
xor r12b, r12b
xor r15b, r15b
call fcn.140098398
cmp dword [rax], esi
jle 0x1400044fe
lea edi, [rsi + 7]
nop
call fcn.1400983a0
mov rcx, qword [rax]
mov rbx, qword [rdi + rcx]
test r15b, r15b
je 0x14000446c
mov r8d, r14d
lea rdx, [0x1400bc004]
lea rcx, [rsp + 0x40]
call fcn.140004910
movsxd rbp, eax
cmp word [rsp + 0x40], r13w
je 0x14000468d
lea rax, [rsp + 0xb0]
mov r8, rbp
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x20], 3
lea rcx, [0x1400f4390]
call fcn.1400229f0
test rax, rax
jne 0x140004450
mov r9d, dword [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov eax, r13d
lea rcx, [0x1400f4390]
cmp byte [rsp + 0xb0], al
mov r8, rbp
setne al
inc eax
mov dword [rsp + 0x20], eax
call fcn.140022cd0
test rax, rax
je 0x14000468d
xor r9d, r9d
mov byte [rsp + 0x20], 1
or r8, 0xffffffffffffffff
mov rdx, rbx
mov rcx, rax
call fcn.14007c070
inc r14d
jmp 0x1400044eb
lea rdx, [0x1400bc00c]
mov rcx, rbx
call fcn.1400981f0
test eax, eax
je 0x1400044e8
lea rdx, str._restart
mov rcx, rbx
call fcn.1400981f0
test eax, eax
je 0x1400044e8
lea rdx, [0x1400bc02c]
mov rcx, rbx
call fcn.1400981f0
test eax, eax
je 0x1400044df
lea rdx, str._force
mov rcx, rbx
call fcn.1400981f0
test eax, eax
je 0x1400044df
lea rdx, str._ErrorStdOut
mov rcx, rbx
call fcn.1400981f0
test eax, eax
jne 0x1400044d4
mov byte [0x1400f4f23], 1
jmp 0x1400044eb
dec esi
mov r15b, 1
sub rdi, 8
jmp 0x1400044eb
mov byte [0x1400eff0d], 1
jmp 0x1400044eb
mov r12b, 1
inc esi
add rdi, 8
call fcn.140098398
cmp esi, dword [rax]
jl 0x1400043b0
lea rax, [rsp + 0xb0]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
lea rdx, [0x1400bc064]
mov dword [rsp + 0x20], 3
lea rcx, [0x1400f4390]
call fcn.1400229f0
mov rcx, rax
test rax, rax
jne 0x140004567
mov r9d, dword [rsp + 0x30]
lea rdx, [0x1400bc064]
mov eax, r13d
lea rcx, [0x1400f4390]
cmp byte [rsp + 0xb0], al
setne al
xor r8d, r8d
inc eax
mov dword [rsp + 0x20], eax
call fcn.140022cd0
mov rcx, rax
test rcx, rcx
je 0x14000468d
lea eax, [r14 - 1]
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetElement
movsxd rdx, eax
call fcn.140001460
call fcn.140004170
movzx r9d, r12b
lea rcx, [0x1400f4390]
call fcn.140016ba0
cmp eax, 1
jne 0x14000468d
mov rax, qword [0x1400ebaa8]
lea rcx, [0x1400efb60]
mov edx, 2
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rax]
lea rax, [rax + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm1, xmmword [rax - 0x70]
movups xmmword [rcx - 0x70], xmm1
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rcx - 0x60], xmm0
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rcx - 0x50], xmm1
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rcx - 0x40], xmm0
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rcx - 0x30], xmm1
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rcx - 0x20], xmm0
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rcx - 0x10], xmm1
sub rdx, 1
jne 0x1400045b0
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x40], xmm0
lea rcx, [0x1400f4390]
call fcn.140017d20
cmp eax, 0xffffffff
je 0x14000468d
test eax, eax
je 0x1400048d3
mov eax, dword [0x1400eff28]
test eax, eax
jne 0x140004697
mov rax, qword [0x1400ede48]
cmp word [rax], r13w
jne 0x140004681
cmp dword [0x1400f0de4], r13d
jne 0x140004681
cmp qword [0x1400eff20], r13
jne 0x140004681
cmp qword [0x1400eff18], r13
jne 0x140004681
cmp byte [0x1400eff0c], r13b
je 0x140004712
mov dword [0x1400eff28], 1
jmp 0x14000469c
mov eax, 2
jmp 0x1400048d5
cmp eax, 4
je 0x140004712
test r12b, r12b
jne 0x14000471b
cmp byte [0x1400eff0d], r13b
jne 0x1400047c0
mov rdx, qword [0x1400f4f18]
lea rcx, [0x1400bc068]
call qword [sym.imp.USER32.dll_FindWindowW]
mov rdi, rax
test rax, rax
je 0x1400047c0
mov eax, dword [0x1400eff28]
cmp eax, 3
je 0x1400048d3
cmp eax, 2
je 0x14000470b
mov r8, qword [0x1400f4f00]
lea rcx, str.An_older_instance_of_this_script_is_already_running.__Replace_it_with_this_instance__nNote:_To_avoid_this_message__see_SingleInstance_in_the_help_file.
xorps xmm3, xmm3
mov qword [rsp + 0x20], r13
mov edx, 4
call fcn.14007e190
cmp eax, 7
je 0x1400048d3
mov eax, 0x407
jmp 0x140004740
test r12b, r12b
je 0x1400047c0
mov rdx, qword [0x1400f4f18]
lea rcx, [0x1400bc068]
call qword [sym.imp.USER32.dll_FindWindowW]
mov rdi, rax
test rax, rax
je 0x1400047c0
mov eax, 0x406
xor r9d, r9d
movsxd r8, eax
mov rcx, rdi
lea edx, [r9 + 0x44]
call qword [sym.imp.USER32.dll_PostMessageW]
mov ecx, reloc.OLEAUT32.dll_SafeArrayLock
mov ebx, r13d
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rdi
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1400047b5
nop
cmp ebx, 0x64
jne 0x14000479b
xorps xmm3, xmm3
mov qword [rsp + 0x20], r13
xor r8d, r8d
lea edx, [rbx - 0x60]
lea rcx, str.Could_not_close_the_previous_instance_of_this_script.__Keep_waiting_
call fcn.14007e190
cmp eax, 7
je 0x14000468d
mov ebx, r13d
mov ecx, reloc.OLEAUT32.dll_SafeArrayLock
inc ebx
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rdi
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x140004770
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
xor r9d, r9d
lea r8, [0x1400eff78]
xor edx, edx
mov ecx, 0x2000
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
je 0x1400047fa
cmp dword [0x1400eff78], r13d
je 0x1400047fa
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov ecx, 0x2001
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
lea rcx, [0x1400f4390]
call fcn.140016d70
cmp eax, 1
jne 0x14000468d
mov ecx, eax
call fcn.14009a750
xor r9d, r9d
mov rcx, rax
xor edx, edx
lea r8d, [r9 + 4]
call fcn.14009a590
movsxd rax, dword [0x1400ebab0]
test eax, eax
je 0x140004862
imul rcx, rax, 0xd4
call fcn.140098368
mov qword [0x1400eff10], rax
test rax, rax
je 0x140004862
movsxd rcx, dword [0x1400ebab0]
xor edx, edx
imul r8, rcx, 0xd4
mov rcx, rax
call fcn.140097200
call fcn.14000ad80
mov r9d, 3
mov byte [0x1400f4f20], 1
xor r8d, r8d
lea rdx, str.Clipboard
lea rcx, [0x1400f4390]
call fcn.140022960
mov rbx, rax
test rax, rax
je 0x1400048b5
cmp byte [rax + 0x23], r13b
jne 0x14000489c
mov rbx, qword [rax + 0x10]
test byte [rbx + 0x21], 0x80
jne 0x1400048b5
mov rcx, rbx
call fcn.140001500
movzx eax, byte [rbx + 0x21]
and al, 0xf
or al, 0x80
mov byte [rbx + 0x21], al
lea rcx, [0x1400f4390]
call fcn.140017530
test eax, eax
je 0x14000468d
xor edx, edx
lea ecx, [rdx + 0xa]
call fcn.140001800
xor eax, eax
mov rdi, qword [rsp + 0xc8]
mov rbp, qword [rsp + 0xc0]
mov rbx, qword [rsp + 0xb8]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rsi
ret