Function at 0x403a60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, dword [ebp + 8]
sub esp, 0x74
push ebx
push esi
push edi
push 0x4c83d8
mov dword [0x4c9500], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x4c9d10
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x403b75
xor ecx, ecx
mov word [0x4c9d10], cx
mov esi, 0x4a2868
mov eax, dword [0x4c7204]
mov ebx, 1
mov dword [0x4c9d0c], esi
mov byte [esp + 0x30], 0
mov byte [esp + 0x2a], 0
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], eax
cmp eax, ebx
jle 0x403c76
jmp 0x403ae0
cmp byte [esp + 0x2a], 0
mov eax, dword [0x4c720c]
mov edi, dword [eax + ebx*4]
je 0x403be9
mov ecx, dword [esp + 0x2c]
push ecx
lea edx, [esp + 0x44]
push 0x4a2914
push edx
call fcn.0048e963
add esp, 0xc
cmp word [esp + 0x40], 0
mov esi, eax
je 0x40403f
lea eax, [esp + 0x2b]
push eax
push 3
lea ecx, [esp + 0x40]
push ecx
push esi
lea edx, [esp + 0x50]
push edx
mov ecx, 0x4cb680
call fcn.00421e80
test eax, eax
jne 0x403b5f
cmp byte [esp + 0x2b], al
mov ecx, dword [esp + 0x38]
setne al
lea edx, [esp + 0x40]
inc eax
push eax
push ecx
push edx
push 0x4cb680
mov ecx, esi
call fcn.00422130
test eax, eax
je 0x40403f
push 1
push 0
push 0xffffffffffffffff
push edi
push eax
call fcn.00477e60
inc dword [esp + 0x2c]
jmp 0x403c69
cmp word [0x4c9d10], 0
je 0x403aa8
mov eax, 0x4c9d10
lea edx, [eax + 2]
jmp 0x403b90
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403b90
sub eax, edx
sar eax, 1
mov ebx, eax
lea edi, [ebx + ebx]
lea eax, [edi + 2]
call fcn.004723e0
mov esi, eax
test esi, esi
jne 0x403bcb
push 0x4c9d10
push str.Out_of_memory.
mov ecx, 0x4cb680
call fcn.0042ece0
jmp 0x403aad
test ebx, ebx
je 0x403bde
push edi
push 0x4c9d10
push esi
call fcn.004968e0
add esp, 0xc
xor edx, edx
mov word [edi + esi], dx
jmp 0x403aad
push 0x4a291c
push edi
call fcn.0048e559
add esp, 8
test eax, eax
je 0x403c64
push str._restart
push edi
call fcn.0048e559
add esp, 8
test eax, eax
je 0x403c64
push 0x4a2938
push edi
call fcn.0048e559
add esp, 8
test eax, eax
je 0x403c5b
push str._force
push edi
call fcn.0048e559
add esp, 8
test eax, eax
je 0x403c5b
push str._ErrorStdOut
push edi
call fcn.0048e559
add esp, 8
test eax, eax
jne 0x403c4c
mov byte [0x4cc14f], 1
jmp 0x403c69
dec ebx
lea eax, [ebx + 1]
mov byte [esp + 0x2a], 1
mov dword [esp + 0x34], eax
jmp 0x403c69
mov byte [0x4c9629], 1
jmp 0x403c69
mov byte [esp + 0x30], 1
inc ebx
cmp ebx, dword [0x4c7204]
jl 0x403ae0
lea ecx, [esp + 0x2b]
push ecx
push 3
lea edx, [esp + 0x40]
push edx
push 0
push 0x4a296c
mov ecx, 0x4cb680
call fcn.00421e80
test eax, eax
jne 0x403cbe
cmp byte [esp + 0x2b], al
mov ecx, dword [esp + 0x38]
setne al
inc eax
push eax
push ecx
push 0x4a296c
push 0x4cb680
xor ecx, ecx
call fcn.00422130
test eax, eax
je 0x40403f
cmp byte [eax + 0x17], 0
jne 0x403cc9
mov esi, dword [eax + 0xc]
jmp 0x403ccb
mov esi, eax
mov al, byte [esi + 0x15]
test al, 2
je 0x403ce1
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 + 0x2c]
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 0x403d05
mov eax, esi
call fcn.00401160
and byte [esi + 0x15], 0x8f
jmp 0x403d2a
cmp dword [0x4c9668], 0
je 0x403d12
test al, 0x10
jne 0x403d1f
cmp dword [0x4c966c], 0
je 0x403d2a
test al, 0x20
je 0x403d2a
test al, 8
je 0x403d2a
mov eax, esi
call fcn.00401160
lea ecx, [esp + 0x2a]
push ecx
push 0xc1
lea edx, [esp + 0x34]
push edx
push 6
push 0x4a2970
mov ecx, 0x4cb680
call fcn.00421e80
test eax, eax
jne 0x403d75
cmp byte [esp + 0x2a], al
mov ecx, dword [esp + 0x2c]
setne al
inc eax
or eax, 0xc0
push eax
push ecx
push 0x4a2970
push 0x4cb680
mov ecx, 6
call fcn.00422130
mov esi, eax
test esi, esi
je 0x40403f
mov ebx, dword [0x4c7204]
mov eax, dword [esp + 0x34]
mov edx, dword [0x4c720c]
sub ebx, eax
lea eax, [edx + eax*4]
push eax
call fcn.0046e710
add esp, 4
test eax, eax
je 0x40403f
mov edi, eax
mov ecx, esi
call fcn.00478190
call fcn.004038f0
mov ecx, dword [esp + 0x30]
push ecx
push 0x4cb680
call fcn.00415f00
cmp eax, 1
jne 0x40403f
mov esi, dword [0x4c590c]
mov ecx, 0x44
mov edi, 0x4c8138
mov eax, 0x4cb680
rep movsd dword es:[edi], dword [esi]
call fcn.00416d20
cmp eax, 0xffffffff
je 0x40403f
test eax, eax
je 0x404034
mov eax, dword [0x4c9658]
test eax, eax
jne 0x403e3c
mov edx, dword [0x4c6aec]
cmp word [edx], ax
jne 0x403e30
cmp dword [0x4caf10], eax
jne 0x403e30
cmp dword [0x4c9638], eax
jne 0x403e30
cmp dword [0x4c963c], eax
jne 0x403e30
cmp byte [0x4c965c], al
je 0x403eb3
mov dword [0x4c9658], 1
jmp 0x403e41
cmp eax, 4
je 0x403eb3
cmp byte [esp + 0x30], 0
jne 0x403ebe
cmp byte [0x4c9629], 0
jne 0x403f3f
mov eax, dword [0x4cc148]
push eax
push str.AutoHotkey
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
test edi, edi
je 0x403f3f
mov eax, dword [0x4c9658]
cmp eax, 3
je 0x404034
cmp eax, 2
je 0x403eac
fldz
mov ecx, dword [0x4cc13c]
push 0
sub esp, 8
fstp qword [esp]
push ecx
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.00479a00
add esp, 0x18
cmp eax, 7
je 0x404034
mov eax, 0x407
jmp 0x403edb
cmp byte [esp + 0x30], 0
je 0x403f3f
mov edx, dword [0x4cc148]
push edx
push str.AutoHotkey
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
test edi, edi
je 0x403f3f
mov eax, 0x406
push 0
push eax
push 0x44
push edi
call dword [sym.imp.USER32.dll_PostMessageW]
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 0x403f3b
mov edi, edi
cmp esi, 0x64
jne 0x403f2b
fldz
push 0
sub esp, 8
fstp qword [esp]
push 0
push 4
push str.Could_not_close_the_previous_instance_of_this_script.__Keep_waiting_
call fcn.00479a00
add esp, 0x18
cmp eax, 7
je 0x40403f
xor esi, esi
push 0x14
inc esi
call ebx
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x403f00
push 0x64
call ebx
mov esi, dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0
push 0x4c8024
push 0
push 0x2000
call esi
test eax, eax
je 0x403f6f
cmp dword [0x4c8024], 0
je 0x403f6f
push 2
push 0
push 0
push 0x2001
call esi
push 0x4cb680
call fcn.00416110
cmp eax, 1
jne 0x40403f
push 0
push 4
push 0
call fcn.0048eb0d
add eax, 0x20
push eax
call fcn.0048ea17
mov esi, dword [0x4c58e4]
add esp, 0x10
test esi, esi
je 0x403fc7
imul esi, esi, 0xd4
push esi
call fcn.0048e5e4
add esp, 4
mov dword [0x4c9f1c], eax
test eax, eax
je 0x403fc7
push esi
push 0
push eax
call fcn.00497430
add esp, 0xc
cmp byte [0x4cc32a], 0
jne 0x403feb
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x3c], 8
mov dword [esp + 0x40], 0x1ff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
call fcn.00409cf0
push 3
push 0
push str.Clipboard
mov ecx, 0x4cb680
mov byte [0x4cc14c], 1
mov byte [0x4c9d05], 0
call fcn.00421e20
test eax, eax
je 0x40401a
call fcn.00403a30
push 0x4cb680
call fcn.004166f0
test eax, eax
je 0x40403f
push 0
push 0xa
call fcn.00401360
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