Function at 0x403fe0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, dword [ebp + 8]
sub esp, 0x34
mov dword [0x4ad120], eax
push ebx
push esi
push edi
push 0x4ad108
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x4acfc0
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jne 0x4040f5
mov byte [0x4acfc0], al
mov edi, 0x49bc4d
mov ecx, 1
mov dword [0x4ad104], edi
mov edi, dword [0x4ac0a4]
xor bl, bl
xor dl, dl
mov byte [esp + 0x18], bl
mov byte [esp + 0xe], dl
mov esi, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edi
cmp edi, ecx
jle 0x4041fb
jmp 0x404060
mov eax, dword [0x4ac0a8]
mov edi, dword [eax + esi*4]
test dl, dl
je 0x40415c
push ecx
lea eax, [esp + 0x24]
push 0x49bcac
push eax
call fcn.0048498d
add esp, 0xc
mov ebx, eax
cmp byte [esp + 0x20], 0
je 0x404592
lea eax, [esp + 0xf]
mov ecx, 0x4ae9b0
push eax
push 3
lea eax, [esp + 0x24]
push eax
push ebx
lea eax, [esp + 0x30]
push eax
call fcn.00420860
test eax, eax
jne 0x4040d5
cmp byte [esp + 0xf], al
mov ecx, 0x4ae9b0
setne al
inc eax
push eax
push dword [esp + 0x20]
lea eax, [esp + 0x28]
push ebx
push eax
call fcn.00420af0
test eax, eax
je 0x404592
push 1
push 0
push 0xffffffffffffffff
push edi
mov ecx, eax
call fcn.004744e0
mov ecx, dword [esp + 0x10]
mov bl, byte [esp + 0x18]
inc ecx
mov dword [esp + 0x10], ecx
jmp 0x4041e6
cmp byte [0x4acfc0], 0
je 0x404024
mov esi, 0x4acfc0
lea ecx, [esi + 1]
lea ebx, [ebx]
mov al, byte [esi]
inc esi
test al, al
jne 0x404110
sub esi, ecx
lea ecx, [esi + 1]
call fcn.0046eaf0
mov edi, eax
test edi, edi
jne 0x404140
push 0x4acfc0
push str.Out_of_memory.
mov ecx, 0x4ae9b0
call fcn.0042ce80
jmp 0x404029
test esi, esi
je 0x404153
push esi
push 0x4acfc0
push edi
call fcn.0048cfd0
add esp, 0xc
mov byte [edi + esi], 0
jmp 0x404029
push 0x49bcb0
push edi
call fcn.00484212
add esp, 8
test eax, eax
je 0x4041dc
push str._restart
push edi
call fcn.00484212
add esp, 8
test eax, eax
je 0x4041dc
push 0x49bcc0
push edi
call fcn.00484212
add esp, 8
test eax, eax
je 0x4041d3
push str._force
push edi
call fcn.00484212
add esp, 8
test eax, eax
je 0x4041d3
push str._ErrorStdOut
push edi
call fcn.00484212
mov ecx, dword [esp + 0x18]
add esp, 8
test eax, eax
jne 0x4041c3
mov byte [0x4aefc7], 1
jmp 0x4041e6
dec esi
mov dl, 1
mov byte [esp + 0xe], dl
lea edi, [esi + 1]
mov dword [esp + 0x14], edi
jmp 0x4041ee
mov byte [0x4ad0f2], 1
jmp 0x4041e2
mov bl, 1
mov byte [esp + 0x18], bl
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov dl, byte [esp + 0xe]
inc esi
cmp esi, dword [0x4ac0a4]
jl 0x404060
lea eax, [esp + 0xf]
mov ecx, 0x4ae9b0
push eax
push 3
lea eax, [esp + 0x24]
push eax
push 0
push 0x49bca8
call fcn.00420860
mov esi, eax
test esi, esi
jne 0x404245
cmp byte [esp + 0xf], al
mov ecx, 0x4ae9b0
setne al
inc eax
push eax
push dword [esp + 0x20]
push esi
push 0x49bca8
call fcn.00420af0
mov esi, eax
test esi, esi
je 0x404592
cmp byte [esi + 0x17], 0
jne 0x40424e
mov esi, dword [esi + 0xc]
mov al, byte [esi + 0x15]
test al, 2
je 0x404262
and al, 0x3d
mov byte [esi + 0x15], al
mov eax, dword [esi]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
dec eax
cdq
mov dword [esi], eax
mov al, byte [esi + 0x15]
and al, 0x8b
mov dword [esi + 4], edx
or al, 0x18
mov byte [esi + 0x15], al
jns 0x404286
mov ecx, esi
call fcn.004013b0
and byte [esi + 0x15], 0x8f
jmp 0x4042ab
cmp dword [0x4ad0ec], 0
je 0x404293
test al, 0x10
jne 0x4042a0
cmp dword [0x4ad0e8], 0
je 0x4042ab
test al, 0x20
je 0x4042ab
test al, 8
je 0x4042ab
mov ecx, esi
call fcn.004013b0
lea eax, [esp + 0xe]
mov ecx, 0x4ae9b0
push eax
push 0xc1
lea eax, [esp + 0x1c]
push eax
push 6
push str.A_Args
call fcn.00420860
mov esi, eax
test esi, esi
jne 0x4042fe
cmp byte [esp + 0xe], al
mov ecx, 0x4ae9b0
setne al
inc eax
or eax, 0xc0
push eax
push dword [esp + 0x18]
push 6
push str.A_Args
call fcn.00420af0
mov esi, eax
test esi, esi
je 0x404592
mov ecx, dword [0x4ac0a8]
mov edx, dword [0x4ac0a4]
sub edx, edi
lea ecx, [ecx + edi*4]
call fcn.0046ad60
test eax, eax
je 0x404592
push eax
mov ecx, esi
call fcn.004747c0
call fcn.00403e70
push dword [esp + 0x18]
mov ecx, 0x4ae9b0
sub esp, 8
call fcn.00415800
cmp eax, 1
jne 0x404592
mov esi, dword [0x4aa1d8]
mov ecx, 0x3a
mov edi, 0x4acec8
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x4ae9b0
call fcn.004165c0
cmp eax, 0xffffffff
je 0x404592
test eax, eax
je 0x404587
mov eax, dword [0x4ad100]
test eax, eax
jne 0x4043b8
mov eax, dword [0x4ab8fc]
cmp word [eax], 0
jne 0x4043ac
cmp dword [0x4adb44], 0
jne 0x4043ac
cmp dword [0x4ad0fc], 0
jne 0x4043ac
cmp dword [0x4ad0f8], 0
jne 0x4043ac
cmp byte [0x4ad0f1], 0
je 0x404430
mov dword [0x4ad100], 1
jmp 0x4043bd
cmp eax, 4
je 0x404430
test bl, bl
jne 0x404438
cmp byte [0x4ad0f2], bl
jne 0x4044ba
push dword [0x4aefc0]
push str.AutoHotkey
call dword [sym.imp.USER32.dll_FindWindowA]
mov edi, eax
test edi, edi
je 0x4044ba
mov eax, dword [0x4ad100]
cmp eax, 3
je 0x404587
cmp eax, 2
je 0x404429
sub esp, 8
xorps xmm0, xmm0
mov edx, 4
mov ecx, 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.
movsd qword [esp], xmm0
push 0
push dword [0x4aefb4]
call fcn.00476030
add esp, 0x10
cmp eax, 7
je 0x404587
mov eax, 0x407
jmp 0x404454
test bl, bl
je 0x4044ba
push dword [0x4aefc0]
push str.AutoHotkey
call dword [sym.imp.USER32.dll_FindWindowA]
mov edi, eax
test edi, edi
je 0x4044ba
mov eax, 0x406
push 0
push eax
push 0x44
push edi
call dword [sym.imp.USER32.dll_PostMessageA]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
push 0x14
call ebx
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4044b6
cmp esi, 0x64
jne 0x4044a6
sub esp, 8
lea edx, [esi - 0x60]
xorps xmm0, xmm0
mov ecx, str.Could_not_close_the_previous_instance_of_this_script.__Keep_waiting_
movsd qword [esp], xmm0
push 0
push 0
call fcn.00476030
add esp, 0x10
cmp eax, 7
je 0x404592
xor esi, esi
push 0x14
inc esi
call ebx
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x404477
push 0x64
call ebx
mov esi, dword [sym.imp.USER32.dll_SystemParametersInfoA]
push 0
push 0x4ad134
push 0
push 0x2000
call esi
test eax, eax
je 0x4044ea
cmp dword [0x4ad134], 0
je 0x4044ea
push 2
push 0
push 0
push 0x2001
call esi
mov ecx, 0x4ae9b0
call fcn.00415a80
cmp eax, 1
jne 0x404592
push 0
push 4
push 0
call fcn.00484bb1
add eax, 0x20
push eax
call fcn.00484a11
mov eax, dword [0x4aa1dc]
add esp, 0x10
test eax, eax
je 0x40453e
imul esi, eax, 0x70
push esi
call fcn.00484535
add esp, 4
mov dword [0x4ad0f4], eax
test eax, eax
je 0x40453e
push esi
push 0
push eax
call fcn.0048e820
add esp, 0xc
call fcn.00409f50
push 3
push 0
push str.Clipboard
mov ecx, 0x4ae9b0
mov byte [0x4aefc4], 1
mov byte [0x4ad0f0], 0
call fcn.00420800
test eax, eax
je 0x40456f
mov ecx, eax
call fcn.00403fb0
mov ecx, 0x4ae9b0
call fcn.00416060
test eax, eax
je 0x404592
xor edx, edx
lea ecx, [edx + 0xa]
call fcn.00401790
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
pop edi
pop esi
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret 0x10