Function at 0x403e00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, dword [ebp + 8]
sub esp, 0x174
push ebx
push esi
push edi
push 0x4ab1c0
mov dword [0x4ac2c4], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea ecx, [esp + 0x78]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x403e47
lea eax, [esp + 0x78]
call fcn.0044f8b0
mov eax, dword [0x4a9aac]
test eax, eax
je 0x403ea4
mov ebx, dword [eax]
test ebx, ebx
je 0x403ea4
cmp byte [ebx], 0
je 0x403ea4
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403e60
sub eax, edx
mov edi, eax
lea eax, [edi + 1]
call fcn.00471420
mov esi, eax
test esi, esi
jne 0x403e8d
push ebx
push str.Out_of_memory.
mov ecx, 0x4ad268
call fcn.0042f200
xor eax, eax
jmp 0x403ea9
test edi, edi
je 0x403e9c
push edi
push ebx
push esi
call fcn.0048f9b0
add esp, 0xc
mov byte [esi + edi], 0
mov eax, esi
jmp 0x403ea9
mov eax, 0x49a87d
mov dword [0x4acad8], eax
mov eax, dword [0x4aa184]
mov ebx, 1
mov byte [esp + 0x47], 0
mov byte [esp + 0x45], 0
mov dword [esp + 0x48], 1
mov dword [esp + 0x54], eax
cmp eax, ebx
jle 0x404003
jmp 0x403ee0
cmp byte [esp + 0x45], 0
mov edx, dword [0x4aa188]
mov edi, dword [edx + ebx*4]
je 0x403f76
mov eax, dword [esp + 0x48]
push eax
lea ecx, [esp + 0x5c]
push 0x49a89c
push ecx
call fcn.004875f8
add esp, 0xc
cmp byte [esp + 0x58], 0
mov esi, eax
je 0x4043cc
lea edx, [esp + 0x46]
push edx
push 3
lea eax, [esp + 0x54]
push eax
push esi
lea ecx, [esp + 0x68]
push ecx
mov ecx, 0x4ad268
call fcn.004225c0
test eax, eax
jne 0x403f60
mov eax, dword [esp + 0x4c]
xor edx, edx
cmp byte [esp + 0x46], dl
mov ecx, esi
setne dl
inc edx
push edx
push eax
push 0x4ad268
lea edx, [esp + 0x64]
call fcn.00422860
test eax, eax
je 0x4043cc
push 1
push 0
push 0xffffffffffffffff
push edi
push eax
call fcn.00476f70
inc dword [esp + 0x48]
jmp 0x403ff6
push 0x49a8a0
push edi
call fcn.004870c1
add esp, 8
test eax, eax
je 0x403ff1
push str._restart
push edi
call fcn.004870c1
add esp, 8
test eax, eax
je 0x403ff1
push 0x49a8b0
push edi
call fcn.004870c1
add esp, 8
test eax, eax
je 0x403fe8
push str._force
push edi
call fcn.004870c1
add esp, 8
test eax, eax
je 0x403fe8
push str._ErrorStdOut
push edi
call fcn.004870c1
add esp, 8
test eax, eax
jne 0x403fd9
mov byte [0x4ad883], 1
jmp 0x403ff6
dec ebx
lea ecx, [ebx + 1]
mov byte [esp + 0x45], 1
mov dword [esp + 0x54], ecx
jmp 0x403ff6
mov byte [0x4ac2ee], 1
jmp 0x403ff6
mov byte [esp + 0x47], 1
inc ebx
cmp ebx, dword [0x4aa184]
jl 0x403ee0
lea edx, [esp + 0x46]
push edx
push 3
lea eax, [esp + 0x54]
push eax
push 0
push 0x49a898
mov ecx, 0x4ad268
call fcn.004225c0
test eax, eax
jne 0x40404d
mov edx, dword [esp + 0x4c]
xor ecx, ecx
cmp byte [esp + 0x46], cl
setne cl
inc ecx
push ecx
push edx
push 0x4ad268
xor ecx, ecx
mov edx, 0x49a898
call fcn.00422860
test eax, eax
je 0x4043cc
cmp byte [eax + 0x17], 0
jne 0x404058
mov esi, dword [eax + 0xc]
jmp 0x40405a
mov esi, eax
mov al, byte [esi + 0x15]
test al, 2
je 0x404070
and al, 0x3d
mov byte [esi + 0x15], al
mov eax, dword [esi]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x48]
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 0x404094
mov eax, esi
call fcn.00401150
and byte [esi + 0x15], 0x8f
jmp 0x4040b9
cmp dword [0x4ac42c], 0
je 0x4040a1
test al, 0x10
jne 0x4040ae
cmp dword [0x4ac430], 0
je 0x4040b9
test al, 0x20
je 0x4040b9
test al, 8
je 0x4040b9
mov eax, esi
call fcn.00401150
lea eax, [esp + 0x45]
push eax
push 0xc1
lea ecx, [esp + 0x50]
push ecx
push 6
push str.A_Args
mov ecx, 0x4ad268
call fcn.004225c0
test eax, eax
jne 0x404107
mov eax, dword [esp + 0x48]
xor edx, edx
cmp byte [esp + 0x45], dl
mov ecx, 6
setne dl
inc edx
or edx, 0xc0
push edx
push eax
push 0x4ad268
mov edx, str.A_Args
call fcn.00422860
mov esi, eax
test esi, esi
je 0x4043cc
mov eax, dword [esp + 0x54]
mov ecx, dword [0x4aa188]
mov ebx, dword [0x4aa184]
lea edx, [ecx + eax*4]
sub ebx, eax
push edx
call fcn.0046d710
add esp, 4
test eax, eax
je 0x4043cc
mov edi, eax
mov ecx, esi
call fcn.004772a0
call fcn.00403c90
mov bl, byte [esp + 0x47]
push 0x4ad268
mov al, bl
call fcn.00416500
cmp eax, 1
jne 0x4043cc
mov esi, dword [0x4a8978]
mov ecx, 0x3a
mov edi, 0x4aaf90
rep movsd dword es:[edi], dword [esi]
mov edi, 0x4ad268
call fcn.00417380
cmp eax, 0xffffffff
je 0x4043cc
test eax, eax
je 0x4043c1
mov eax, dword [0x4ac420]
test eax, eax
jne 0x4041d3
mov eax, dword [0x4a9ab4]
cmp word [eax], 0
jne 0x4041c7
cmp dword [0x4acb40], 0
jne 0x4041c7
cmp dword [0x4ac3fc], 0
jne 0x4041c7
cmp dword [0x4ac400], 0
jne 0x4041c7
cmp byte [0x4ac409], 0
je 0x404247
mov dword [0x4ac420], 1
jmp 0x4041d8
cmp eax, 4
je 0x404247
test bl, bl
jne 0x40424f
cmp byte [0x4ac2ee], bl
jne 0x4042cf
mov ecx, dword [0x4ad87c]
push ecx
push str.AutoHotkey
call dword [sym.imp.USER32.dll_FindWindowA]
mov edi, eax
test edi, edi
je 0x4042cf
mov eax, dword [0x4ac420]
cmp eax, 3
je 0x4043c1
cmp eax, 2
je 0x404240
fldz
mov edx, dword [0x4ad870]
sub esp, 8
fstp qword [esp]
push 0
push edx
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.00478b50
add esp, 0x18
cmp eax, 7
je 0x4043c1
mov eax, 0x407
jmp 0x40426b
test bl, bl
je 0x4042cf
mov eax, dword [0x4ad87c]
push eax
push str.AutoHotkey
call dword [sym.imp.USER32.dll_FindWindowA]
mov edi, eax
test edi, edi
je 0x4042cf
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 0x4042cb
mov edi, edi
cmp esi, 0x64
jne 0x4042bb
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.00478b50
add esp, 0x18
cmp eax, 7
je 0x4043cc
xor esi, esi
push 0x14
inc esi
call ebx
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x404290
push 0x64
call ebx
mov esi, dword [sym.imp.USER32.dll_SystemParametersInfoA]
push 0
push 0x4aaea4
push 0
push 0x2000
call esi
test eax, eax
je 0x4042ff
cmp dword [0x4aaea4], 0
je 0x4042ff
push 2
push 0
push 0
push 0x2001
call esi
push 0x4ad268
call fcn.00416800
cmp eax, 1
jne 0x4043cc
push 0
push 4
push 0
call fcn.00487787
add eax, 0x20
push eax
call fcn.00487691
mov esi, dword [0x4a88f0]
add esp, 0x10
test esi, esi
je 0x404354
imul esi, esi, 0x70
push esi
call fcn.00487279
add esp, 4
mov dword [0x4acae0], eax
test eax, eax
je 0x404354
push esi
push 0
push eax
call fcn.00490580
add esp, 0xc
cmp byte [0x4ada42], 0
jne 0x404378
lea ecx, [esp + 0x4c]
push ecx
mov dword [esp + 0x50], 8
mov dword [esp + 0x54], 0x1ff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
call fcn.00409920
push 3
push 0
push str.Clipboard
mov ecx, 0x4ad268
mov byte [0x4ad880], 1
mov byte [0x4acace], 0
call fcn.00422560
test eax, eax
je 0x4043a7
call fcn.00403dd0
push 0x4ad268
call fcn.00416de0
test eax, eax
je 0x4043cc
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