Function at 0x403ac0
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 0x403bd6
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 0x403ccf
jmp 0x403b40
cmp byte [esp + 0xd], 0
mov ecx, dword [0x4a9148]
mov edi, dword [ecx + ebx*4]
je 0x403c42
mov edx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x24]
push 0x49987c
push eax
call fcn.00485988
add esp, 0xc
cmp byte [esp + 0x20], 0
mov esi, eax
je 0x40408c
lea ecx, [esp + 0xf]
push ecx
push 3
lea edx, [esp + 0x20]
push edx
push esi
lea eax, [esp + 0x30]
push eax
mov ecx, 0x4ad328
call fcn.00421330
test eax, eax
jne 0x403bc0
mov edx, dword [esp + 0x18]
xor ecx, ecx
cmp byte [esp + 0xf], cl
setne cl
inc ecx
push ecx
push edx
push 0x4ad328
mov ecx, esi
lea edx, [esp + 0x2c]
call fcn.004215d0
test eax, eax
je 0x40408c
push 1
push 0
push 0xffffffffffffffff
push edi
push eax
call fcn.00475300
inc dword [esp + 0x10]
jmp 0x403cc2
cmp byte [0x4abaa8], 0
je 0x403b04
mov eax, 0x4abaa8
lea edx, [eax + 1]
jmp 0x403bf0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403bf0
sub eax, edx
mov edi, eax
lea eax, [edi + 1]
call fcn.0046f980
mov esi, eax
test esi, esi
jne 0x403c24
push 0x4abaa8
push str.Out_of_memory.
mov ecx, 0x4ad328
call fcn.0042d970
xor eax, eax
jmp 0x403b09
test edi, edi
je 0x403c37
push edi
push 0x4abaa8
push esi
call fcn.0048dd50
add esp, 0xc
mov byte [esi + edi], 0
mov eax, esi
jmp 0x403b09
push 0x499880
push edi
call fcn.00485451
add esp, 8
test eax, eax
je 0x403cbd
push str._restart
push edi
call fcn.00485451
add esp, 8
test eax, eax
je 0x403cbd
push 0x499890
push edi
call fcn.00485451
add esp, 8
test eax, eax
je 0x403cb4
push str._force
push edi
call fcn.00485451
add esp, 8
test eax, eax
je 0x403cb4
push str._ErrorStdOut
push edi
call fcn.00485451
add esp, 8
test eax, eax
jne 0x403ca5
mov byte [0x4ad93f], 1
jmp 0x403cc2
dec ebx
lea eax, [ebx + 1]
mov byte [esp + 0xd], 1
mov dword [esp + 0x14], eax
jmp 0x403cc2
mov byte [0x4ab3c1], 1
jmp 0x403cc2
mov byte [esp + 0xe], 1
inc ebx
cmp ebx, dword [0x4a9144]
jl 0x403b40
lea ecx, [esp + 0xf]
push ecx
push 3
lea edx, [esp + 0x20]
push edx
push 0
push 0x4998ac
mov ecx, 0x4ad328
call fcn.00421330
test eax, eax
jne 0x403d17
cmp byte [esp + 0xf], al
mov ecx, dword [esp + 0x18]
setne al
mov edx, 0x4998ac
inc eax
push eax
push ecx
push 0x4ad328
xor ecx, ecx
call fcn.004215d0
test eax, eax
je 0x40408c
cmp byte [eax + 0x17], 0
jne 0x403d22
mov esi, dword [eax + 0xc]
jmp 0x403d24
mov esi, eax
mov al, byte [esi + 0x15]
test al, 2
je 0x403d3a
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 0x403d5e
mov eax, esi
call fcn.00401150
and byte [esi + 0x15], 0x8f
jmp 0x403d83
cmp dword [0x4ab400], 0
je 0x403d6b
test al, 0x10
jne 0x403d78
cmp dword [0x4ab404], 0
je 0x403d83
test al, 0x20
je 0x403d83
test al, 8
je 0x403d83
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, 0x4ad328
call fcn.00421330
test eax, eax
jne 0x403dce
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 0x4ad328
mov ecx, 6
call fcn.004215d0
mov esi, eax
test esi, esi
je 0x40408c
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.0046bd10
add esp, 4
test eax, eax
je 0x40408c
mov edi, eax
mov ecx, esi
call fcn.00475630
call fcn.00403950
mov bl, byte [esp + 0xe]
push 0x4ad328
mov al, bl
call fcn.00415690
cmp eax, 1
jne 0x40408c
mov esi, dword [0x4a7978]
mov ecx, 0x3a
mov edi, 0x4a9f50
rep movsd dword es:[edi], dword [esi]
mov edi, 0x4ad328
call fcn.004164c0
cmp eax, 0xffffffff
je 0x40408c
test eax, eax
je 0x404081
mov eax, dword [0x4ab3f0]
test eax, eax
jne 0x403e92
mov ecx, dword [0x4a8a8c]
cmp word [ecx], ax
jne 0x403e86
cmp dword [0x4acba4], eax
jne 0x403e86
cmp dword [0x4ab3d0], eax
jne 0x403e86
cmp dword [0x4ab3d4], eax
jne 0x403e86
cmp byte [0x4ab3f4], al
je 0x403f05
mov dword [0x4ab3f0], 1
jmp 0x403e97
cmp eax, 4
je 0x403f05
test bl, bl
jne 0x403f0d
cmp byte [0x4ab3c1], bl
jne 0x403f8f
mov edx, dword [0x4ad938]
push edx
push str.AutoHotkey
call dword [sym.imp.USER32.dll_FindWindowA]
mov edi, eax
test edi, edi
je 0x403f8f
mov eax, dword [0x4ab3f0]
cmp eax, 3
je 0x404081
cmp eax, 2
je 0x403efe
fldz
mov eax, dword [0x4ad92c]
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.00476ee0
add esp, 0x18
cmp eax, 7
je 0x404081
mov eax, 0x407
jmp 0x403f2a
test bl, bl
je 0x403f8f
mov ecx, dword [0x4ad938]
push ecx
push str.AutoHotkey
call dword [sym.imp.USER32.dll_FindWindowA]
mov edi, eax
test edi, edi
je 0x403f8f
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 0x403f8b
lea ecx, [ecx]
cmp esi, 0x64
jne 0x403f7b
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.00476ee0
add esp, 0x18
cmp eax, 7
je 0x40408c
xor esi, esi
push 0x14
inc esi
call ebx
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x403f50
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 0x403fbf
cmp dword [0x4a9e64], 0
je 0x403fbf
push 2
push 0
push 0
push 0x2001
call esi
push 0x4ad328
call fcn.00415950
cmp eax, 1
jne 0x40408c
push 0
push 4
push 0
call fcn.00485b17
add eax, 0x20
push eax
call fcn.00485a21
mov esi, dword [0x4a78f0]
add esp, 0x10
test esi, esi
je 0x404014
imul esi, esi, 0x70
push esi
call fcn.00485609
add esp, 4
mov dword [0x4abbb0], eax
test eax, eax
je 0x404014
push esi
push 0
push eax
call fcn.0048e920
add esp, 0xc
cmp byte [0x4adada], 0
jne 0x404038
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.00409860
push 3
push 0
push str.Clipboard
mov ecx, 0x4ad328
mov byte [0x4ad93c], 1
mov byte [0x4aba9d], 0
call fcn.004212d0
test eax, eax
je 0x404067
call fcn.00403a90
push 0x4ad328
call fcn.00415f30
test eax, eax
je 0x40408c
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