Function at 0x140004820
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x80
cmp qword [0x1400e5760], 0
lea rdi, [0x140117ad8]
mov rbx, rcx
je 0x140004865
mov r8d, 0xa
mov rdx, rdi
xor ecx, ecx
push rax
call 0x1401f1b07
mov qword [0x1401344c0], rax
lea rcx, [0x140134490]
mov qword [rsp + 0xb8], r14
mov qword [0x1401344b8], rbx
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [0x140134468]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
lea rbp, [0x1401341f0]
mov ecx, 0x104
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor esi, esi
test eax, eax
jne 0x1400048bd
mov word [0x1401341f0], si
jmp 0x140004922
cmp word [0x1401341f0], si
je 0x140004922
or rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp word [rbp + rbx*2], si
jne 0x1400048d0
lea r14, [rbx + rbx]
lea rcx, [r14 + 2]
call fcn.1400a3760
mov rdi, rax
test rax, rax
jne 0x14000490a
mov r8, rbp
lea rdx, str.Out_of_memory.
lea rcx, [0x1401395c0]
call fcn.1400410d0
mov rdi, rsi
jmp 0x140004922
test rbx, rbx
je 0x14000491d
mov r8, r14
mov rdx, rbp
mov rcx, rdi
call fcn.1400c64d0
mov word [r14 + rdi], si
mov ebp, 1
mov qword [0x140134460], rdi
mov r15d, ebp
xor r13b, r13b
xor r12b, r12b
call fcn.1400c8728
cmp dword [rax], ebp
jle 0x140004a95
lea edi, [rbp + 7]
call fcn.1400c8730
mov rcx, qword [rax]
mov rbx, qword [rdi + rcx]
test r12b, r12b
je 0x140004a03
mov r8d, r15d
lea rdx, [0x1400ee1d4]
lea rcx, [rsp + 0x40]
call fcn.140004f10
cmp word [rsp + 0x40], 0
movsxd r14, eax
je 0x140004cab
lea rax, [rsp + 0xb0]
mov r8, r14
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x20], 3
lea rcx, [0x1401395c0]
call fcn.140030b90
test rax, rax
jne 0x1400049e7
cmp byte [rsp + 0xb0], 0
lea rdx, [rsp + 0x40]
mov r9d, dword [rsp + 0x30]
lea rcx, [0x1401395c0]
mov eax, esi
mov r8, r14
setne al
inc eax
mov dword [rsp + 0x20], eax
call fcn.140031140
test rax, rax
je 0x140004cab
xor r9d, r9d
mov byte [rsp + 0x20], 1
or r8, 0xffffffffffffffff
mov rdx, rbx
mov rcx, rax
call fcn.1400ab090
inc r15d
jmp 0x140004a82
lea rdx, [0x1400ee1dc]
mov rcx, rbx
call fcn.1400c8580
test eax, eax
je 0x140004a7f
lea rdx, str._restart
mov rcx, rbx
call fcn.1400c8580
test eax, eax
je 0x140004a7f
lea rdx, [0x1400ee1fc]
mov rcx, rbx
call fcn.1400c8580
test eax, eax
je 0x140004a76
lea rdx, str._force
mov rcx, rbx
call fcn.1400c8580
test eax, eax
je 0x140004a76
lea rdx, str._ErrorStdOut
mov rcx, rbx
call fcn.1400c8580
test eax, eax
jne 0x140004a6b
mov byte [0x14013a183], 1
jmp 0x140004a82
dec ebp
mov r12b, 1
sub rdi, 8
jmp 0x140004a82
mov byte [0x140134435], 1
jmp 0x140004a82
mov r13b, 1
inc ebp
add rdi, 8
call fcn.1400c8728
cmp ebp, dword [rax]
jl 0x140004947
lea rax, [rsp + 0xb0]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
lea rdx, [0x1400ee234]
mov dword [rsp + 0x20], 3
lea rcx, [0x1401395c0]
call fcn.140030b90
mov rcx, rax
test rax, rax
jne 0x140004afd
cmp byte [rsp + 0xb0], cl
lea rdx, [0x1400ee234]
mov r9d, dword [rsp + 0x30]
lea rcx, [0x1401395c0]
mov eax, esi
setne al
xor r8d, r8d
inc eax
mov dword [rsp + 0x20], eax
call fcn.140031140
mov rcx, rax
test rcx, rcx
je 0x140004cab
lea eax, [r15 - 1]
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetElement
movsxd rdx, eax
call fcn.140001380
call fcn.140004690
lea rcx, [0x1401395c0]
movzx r9d, r13b
call fcn.140022430
cmp eax, 1
jne 0x140004cab
mov rax, qword [0x14012fa58]
lea rcx, [0x140134080]
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 0x140004b46
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
mov rax, qword [rax + 0x50]
mov qword [rcx + 0x50], rax
lea rcx, [0x1401395c0]
call fcn.140023850
cmp eax, 0xffffffff
je 0x140004cab
test eax, eax
je 0x140004ed0
mov eax, dword [0x140134458]
test eax, eax
jne 0x140004c26
cmp word [0x140137314], ax
jne 0x140004c1b
cmp dword [0x1401353c8], eax
jne 0x140004c1b
cmp qword [0x140134450], 0
jne 0x140004c1b
cmp qword [0x140134448], 0
jne 0x140004c1b
cmp byte [0x140134434], al
je 0x140004c26
mov eax, 1
mov dword [0x140134458], eax
test eax, 0xfffffffb
je 0x140004cb5
test r13b, r13b
jne 0x140004cbe
cmp byte [0x140134435], r13b
jne 0x140004d5f
mov rdx, qword [0x14013a178]
lea rcx, [0x1400ee238]
call qword [sym.imp.USER32.dll_FindWindowW]
mov rdi, rax
test rax, rax
je 0x140004d5f
mov eax, dword [0x140134458]
cmp eax, 3
je 0x140004ed0
cmp eax, 2
je 0x140004ca4
mov r8, qword [0x14013a160]
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], rsi
mov edx, 4
call fcn.1400ad390
cmp eax, 7
je 0x140004ed0
mov eax, 0x407
jmp 0x140004ce3
mov eax, 2
jmp 0x140004ed2
test r13b, r13b
je 0x140004d5f
mov rdx, qword [0x14013a178]
lea rcx, [0x1400ee238]
call qword [sym.imp.USER32.dll_FindWindowW]
mov rdi, rax
test rax, rax
je 0x140004d5f
mov eax, 0x406
xor r9d, r9d
mov r8d, eax
mov rcx, rdi
lea edx, [r9 + 0x44]
call qword [sym.imp.USER32.dll_PostMessageW]
mov ecx, gethostbyname
mov ebx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rdi
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x140004d54
cmp ebx, 0x64
jne 0x140004d3a
xorps xmm3, xmm3
mov qword [rsp + 0x20], rsi
xor r8d, r8d
lea edx, [rbx - 0x60]
lea rcx, str.Could_not_close_the_previous_instance_of_this_script.__Keep_waiting_
call fcn.1400ad390
cmp eax, 7
je 0x140004cab
mov ebx, esi
mov ecx, gethostbyname
inc ebx
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rdi
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x140004d10
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
xor r9d, r9d
lea r8, [0x140134658]
xor edx, edx
mov ecx, 0x2000
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
je 0x140004d99
cmp dword [0x140134658], 0
je 0x140004d99
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov ecx, 0x2001
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
lea rcx, [0x1401395c0]
call fcn.1400227e0
cmp eax, 1
jne 0x140004cab
mov ecx, eax
call fcn.1400caae0
xor r9d, r9d
mov rcx, rax
xor edx, edx
lea r8d, [r9 + 4]
call fcn.1400ca920
movsxd rax, dword [0x14012fa60]
test eax, eax
je 0x140004e01
imul rcx, rax, 0xd4
call fcn.1400c86f8
mov qword [0x140134440], rax
test rax, rax
je 0x140004e01
movsxd rcx, dword [0x14012fa60]
xor edx, edx
imul r8, rcx, 0xd4
mov rcx, rax
call fcn.1400c7510
lea rdx, [0x1400aa5d0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
mov qword [0x140134438], rax
call fcn.14000b8a0
lea rax, [rsp + 0xb0]
mov byte [0x14013a180], 1
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x20], 3
lea rdx, str.Clipboard
lea rcx, [0x1401395c0]
call fcn.140030b90
mov rbx, rax
test rax, rax
jne 0x140004e8a
cmp byte [rsp + 0xb0], al
lea rdx, str.Clipboard
mov r9d, dword [rsp + 0x30]
lea rcx, [0x1401395c0]
setne sil
xor r8d, r8d
inc esi
mov dword [rsp + 0x20], esi
call fcn.140031140
mov rbx, rax
test rbx, rbx
je 0x140004eb2
cmp byte [rbx + 0x23], 0
jne 0x140004e99
mov rbx, qword [rbx + 0x10]
cmp byte [rbx + 0x21], 0
jl 0x140004eb2
mov rcx, rbx
call fcn.140001420
movzx eax, byte [rbx + 0x21]
and al, 0xf
or al, 0x80
mov byte [rbx + 0x21], al
lea rcx, [0x1401395c0]
call fcn.140022fb0
test eax, eax
je 0x140004cab
xor edx, edx
lea ecx, [rdx + 0xa]
call fcn.1400018b0
xor eax, eax
mov r14, qword [rsp + 0xb8]
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r13
pop r12
pop rdi
pop rsi
ret