Function at 0x403ae0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, dword [ebp + 8]
sub esp, 0x34
push ebx
push esi
push edi
push 0x4aa170
mov dword [0x4ab298], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x4abaa8
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jne 0x403bf6
mov byte [0x4abaa8], al
mov eax, 0x499861
mov dword [0x4abaa4], eax
mov eax, dword [0x4a9144]
mov ebx, 1
mov byte [esp + 0xe], 0
mov byte [esp + 0xd], 0
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], eax
cmp eax, ebx
jle 0x403cef
jmp 0x403b60
cmp byte [esp + 0xd], 0
mov ecx, dword [0x4a9148]
mov edi, dword [ecx + ebx*4]
je 0x403c62
mov edx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x24]
push 0x499880
push eax
call fcn.00485d58
add esp, 0xc
cmp byte [esp + 0x20], 0
mov esi, eax
je 0x4040ac
lea ecx, [esp + 0xf]
push ecx
push 3
lea edx, [esp + 0x20]
push edx
push esi
lea eax, [esp + 0x30]
push eax
mov ecx, 0x4ac390
call fcn.00421780
test eax, eax
jne 0x403be0
mov edx, dword [esp + 0x18]
xor ecx, ecx
cmp byte [esp + 0xf], cl
setne cl
inc ecx
push ecx
push edx
push 0x4ac390
mov ecx, esi
lea edx, [esp + 0x2c]
call fcn.00421a20
test eax, eax
je 0x4040ac
push 1
push 0
push 0xffffffffffffffff
push edi
push eax
call fcn.004756d0
inc dword [esp + 0x10]
jmp 0x403ce2
cmp byte [0x4abaa8], 0
je 0x403b24
mov eax, 0x4abaa8
lea edx, [eax + 1]
jmp 0x403c10
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403c10
sub eax, edx
mov edi, eax
lea eax, [edi + 1]
call fcn.0046fd50
mov esi, eax
test esi, esi
jne 0x403c44
push 0x4abaa8
push str.Out_of_memory.
mov ecx, 0x4ac390
call fcn.0042dde0
xor eax, eax
jmp 0x403b29
test edi, edi
je 0x403c57
push edi
push 0x4abaa8
push esi
call fcn.0048e120
add esp, 0xc
mov byte [esi + edi], 0
mov eax, esi
jmp 0x403b29
push 0x499884
push edi
call fcn.00485821
add esp, 8
test eax, eax
je 0x403cdd
push str._restart
push edi
call fcn.00485821
add esp, 8
test eax, eax
je 0x403cdd
push 0x499894
push edi
call fcn.00485821
add esp, 8
test eax, eax
je 0x403cd4
push str._force
push edi
call fcn.00485821
add esp, 8
test eax, eax
je 0x403cd4
push str._ErrorStdOut
push edi
call fcn.00485821
add esp, 8
test eax, eax
jne 0x403cc5
mov byte [0x4ac9a7], 1
jmp 0x403ce2
dec ebx
lea eax, [ebx + 1]
mov byte [esp + 0xd], 1
mov dword [esp + 0x14], eax
jmp 0x403ce2
mov byte [0x4ab3c1], 1
jmp 0x403ce2
mov byte [esp + 0xe], 1
inc ebx
cmp ebx, dword [0x4a9144]
jl 0x403b60
lea ecx, [esp + 0xf]
push ecx
push 3
lea edx, [esp + 0x20]
push edx
push 0
push 0x49987c
mov ecx, 0x4ac390
call fcn.00421780
test eax, eax
jne 0x403d37
cmp byte [esp + 0xf], al
mov ecx, dword [esp + 0x18]
setne al
mov edx, 0x49987c
inc eax
push eax
push ecx
push 0x4ac390
xor ecx, ecx
call fcn.00421a20
test eax, eax
je 0x4040ac
cmp byte [eax + 0x17], 0
jne 0x403d42
mov esi, dword [eax + 0xc]
jmp 0x403d44
mov esi, eax
mov al, byte [esi + 0x15]
test al, 2
je 0x403d5a
and al, 0x3d
mov byte [esi + 0x15], al
mov eax, dword [esi]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esp + 0x10]
dec eax
cdq
mov dword [esi], eax
mov al, byte [esi + 0x15]
and al, 0x9b
or al, 0x18
mov dword [esi + 4], edx
mov byte [esi + 0x15], al
jns 0x403d7e
mov eax, esi
call fcn.00401150
and byte [esi + 0x15], 0x8f
jmp 0x403da3
cmp dword [0x4ab400], 0
je 0x403d8b
test al, 0x10
jne 0x403d98
cmp dword [0x4ab404], 0
je 0x403da3
test al, 0x20
je 0x403da3
test al, 8
je 0x403da3
mov eax, esi
call fcn.00401150
lea ecx, [esp + 0xd]
push ecx
push 0xc1
lea edx, [esp + 0x18]
push edx
push 6
push str.A_Args
mov ecx, 0x4ac390
call fcn.00421780
test eax, eax
jne 0x403dee
cmp byte [esp + 0xd], al
mov ecx, dword [esp + 0x10]
setne al
mov edx, str.A_Args
inc eax
or eax, 0xc0
push eax
push ecx
push 0x4ac390
mov ecx, 6
call fcn.00421a20
mov esi, eax
test esi, esi
je 0x4040ac
mov ebx, dword [0x4a9144]
mov eax, dword [esp + 0x14]
mov edx, dword [0x4a9148]
sub ebx, eax
lea eax, [edx + eax*4]
push eax
call fcn.0046c0c0
add esp, 4
test eax, eax
je 0x4040ac
mov edi, eax
mov ecx, esi
call fcn.00475a00
call fcn.00403970
mov bl, byte [esp + 0xe]
push 0x4ac390
mov al, bl
call fcn.00415740
cmp eax, 1
jne 0x4040ac
mov esi, dword [0x4a7978]
mov ecx, 0x3a
mov edi, 0x4a9f50
rep movsd dword es:[edi], dword [esi]
mov edi, 0x4ac390
call fcn.00416570
cmp eax, 0xffffffff
je 0x4040ac
test eax, eax
je 0x4040a1
mov eax, dword [0x4ab3f0]
test eax, eax
jne 0x403eb2
mov ecx, dword [0x4a8a8c]
cmp word [ecx], ax
jne 0x403ea6
cmp dword [0x4abc0c], eax
jne 0x403ea6
cmp dword [0x4ab3d0], eax
jne 0x403ea6
cmp dword [0x4ab3d4], eax
jne 0x403ea6
cmp byte [0x4ab3f4], al
je 0x403f25
mov dword [0x4ab3f0], 1
jmp 0x403eb7
cmp eax, 4
je 0x403f25
test bl, bl
jne 0x403f2d
cmp byte [0x4ab3c1], bl
jne 0x403faf
mov edx, dword [0x4ac9a0]
push edx
push str.AutoHotkey
call dword [sym.imp.USER32.dll_FindWindowA]
mov edi, eax
test edi, edi
je 0x403faf
mov eax, dword [0x4ab3f0]
cmp eax, 3
je 0x4040a1
cmp eax, 2
je 0x403f1e
fldz
mov eax, dword [0x4ac994]
sub esp, 8
fstp qword [esp]
push 0
push eax
push 4
push 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.
call fcn.004772b0
add esp, 0x18
cmp eax, 7
je 0x4040a1
mov eax, 0x407
jmp 0x403f4a
test bl, bl
je 0x403faf
mov ecx, dword [0x4ac9a0]
push ecx
push str.AutoHotkey
call dword [sym.imp.USER32.dll_FindWindowA]
mov edi, eax
test edi, edi
je 0x403faf
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]
push 0x14
xor esi, esi
call ebx
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x403fab
lea ecx, [ecx]
cmp esi, 0x64
jne 0x403f9b
fldz
sub esp, 8
fstp qword [esp]
push 0
push 0
push 4
push str.Could_not_close_the_previous_instance_of_this_script.__Keep_waiting_
call fcn.004772b0
add esp, 0x18
cmp eax, 7
je 0x4040ac
xor esi, esi
push 0x14
inc esi
call ebx
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x403f70
push 0x64
call ebx
mov esi, dword [sym.imp.USER32.dll_SystemParametersInfoA]
push 0
push 0x4a9e64
push 0
push 0x2000
call esi
test eax, eax
je 0x403fdf
cmp dword [0x4a9e64], 0
je 0x403fdf
push 2
push 0
push 0
push 0x2001
call esi
push 0x4ac390
call fcn.00415a00
cmp eax, 1
jne 0x4040ac
push 0
push 4
push 0
call fcn.00485ee7
add eax, 0x20
push eax
call fcn.00485df1
mov esi, dword [0x4a78f0]
add esp, 0x10
test esi, esi
je 0x404034
imul esi, esi, 0x70
push esi
call fcn.004859d9
add esp, 4
mov dword [0x4abbb0], eax
test eax, eax
je 0x404034
push esi
push 0
push eax
call fcn.0048ecf0
add esp, 0xc
cmp byte [0x4acb42], 0
jne 0x404058
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], 8
mov dword [esp + 0x20], 0x1ff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
call fcn.00409940
push 3
push 0
push str.Clipboard
mov ecx, 0x4ac390
mov byte [0x4ac9a4], 1
mov byte [0x4aba9d], 0
call fcn.00421720
test eax, eax
je 0x404087
call fcn.00403ab0
push 0x4ac390
call fcn.00415fe0
test eax, eax
je 0x4040ac
push 0
push 0xa
call fcn.004013c0
add esp, 8
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