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 0x4c73d8
mov dword [0x4c8500], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x4c8d10
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x403b75
xor ecx, ecx
mov word [0x4c8d10], cx
mov esi, 0x4ac474
mov eax, dword [0x4c6204]
mov ebx, 1
mov dword [0x4c8d0c], 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 [0x4c620c]
mov edi, dword [eax + ebx*4]
je 0x403be9
mov ecx, dword [esp + 0x2c]
push ecx
lea edx, [esp + 0x44]
push 0x4a1900
push edx
call fcn.0048e893
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, 0x4ca680
call fcn.00421ed0
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 0x4ca680
mov ecx, esi
call fcn.00422180
test eax, eax
je 0x40403f
push 1
push 0
push 0xffffffffffffffff
push edi
push eax
call fcn.00477d90
inc dword [esp + 0x2c]
jmp 0x403c69
cmp word [0x4c8d10], 0
je 0x403aa8
mov eax, 0x4c8d10
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.00472310
mov esi, eax
test esi, esi
jne 0x403bcb
push 0x4c8d10
push str.Out_of_memory.
mov ecx, 0x4ca680
call fcn.0042ecc0
jmp 0x403aad
test ebx, ebx
je 0x403bde
push edi
push 0x4c8d10
push esi
call fcn.00496810
add esp, 0xc
xor edx, edx
mov word [edi + esi], dx
jmp 0x403aad
push 0x4a1908
push edi
call fcn.0048e489
add esp, 8
test eax, eax
je 0x403c64
push str._restart
push edi
call fcn.0048e489
add esp, 8
test eax, eax
je 0x403c64
push 0x4a1924
push edi
call fcn.0048e489
add esp, 8
test eax, eax
je 0x403c5b
push str._force
push edi
call fcn.0048e489
add esp, 8
test eax, eax
je 0x403c5b
push str._ErrorStdOut
push edi
call fcn.0048e489
add esp, 8
test eax, eax
jne 0x403c4c
mov byte [0x4cb14f], 1
jmp 0x403c69
dec ebx
lea eax, [ebx + 1]
mov byte [esp + 0x2a], 1
mov dword [esp + 0x34], eax
jmp 0x403c69
mov byte [0x4c8629], 1
jmp 0x403c69
mov byte [esp + 0x30], 1
inc ebx
cmp ebx, dword [0x4c6204]
jl 0x403ae0
lea ecx, [esp + 0x2b]
push ecx
push 3
lea edx, [esp + 0x40]
push edx
push 0
push 0x4a1958
mov ecx, 0x4ca680
call fcn.00421ed0
test eax, eax
jne 0x403cbe
cmp byte [esp + 0x2b], al
mov ecx, dword [esp + 0x38]
setne al
inc eax
push eax
push ecx
push 0x4a1958
push 0x4ca680
xor ecx, ecx
call fcn.00422180
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 [0x4c8668], 0
je 0x403d12
test al, 0x10
jne 0x403d1f
cmp dword [0x4c866c], 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 0x4a195c
mov ecx, 0x4ca680
call fcn.00421ed0
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 0x4a195c
push 0x4ca680
mov ecx, 6
call fcn.00422180
mov esi, eax
test esi, esi
je 0x40403f
mov ebx, dword [0x4c6204]
mov eax, dword [esp + 0x34]
mov edx, dword [0x4c620c]
sub ebx, eax
lea eax, [edx + eax*4]
push eax
call fcn.0046e620
add esp, 4
test eax, eax
je 0x40403f
mov edi, eax
mov ecx, esi
call fcn.004780c0
call fcn.004038f0
mov ecx, dword [esp + 0x30]
push ecx
push 0x4ca680
call fcn.00415f50
cmp eax, 1
jne 0x40403f
mov esi, dword [0x4c490c]
mov ecx, 0x44
mov edi, 0x4c7138
mov eax, 0x4ca680
rep movsd dword es:[edi], dword [esi]
call fcn.00416d70
cmp eax, 0xffffffff
je 0x40403f
test eax, eax
je 0x404034
mov eax, dword [0x4c8658]
test eax, eax
jne 0x403e3c
mov edx, dword [0x4c5aec]
cmp word [edx], ax
jne 0x403e30
cmp dword [0x4c9f10], eax
jne 0x403e30
cmp dword [0x4c8638], eax
jne 0x403e30
cmp dword [0x4c863c], eax
jne 0x403e30
cmp byte [0x4c865c], al
je 0x403eb3
mov dword [0x4c8658], 1
jmp 0x403e41
cmp eax, 4
je 0x403eb3
cmp byte [esp + 0x30], 0
jne 0x403ebe
cmp byte [0x4c8629], 0
jne 0x403f3f
mov eax, dword [0x4cb148]
push eax
push str.AutoHotkey
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
test edi, edi
je 0x403f3f
mov eax, dword [0x4c8658]
cmp eax, 3
je 0x404034
cmp eax, 2
je 0x403eac
fldz
mov ecx, dword [0x4cb13c]
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.00479930
add esp, 0x18
cmp eax, 7
je 0x404034
mov eax, 0x407
jmp 0x403edb
cmp byte [esp + 0x30], 0
je 0x403f3f
mov edx, dword [0x4cb148]
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.00479930
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 0x4c7024
push 0
push 0x2000
call esi
test eax, eax
je 0x403f6f
cmp dword [0x4c7024], 0
je 0x403f6f
push 2
push 0
push 0
push 0x2001
call esi
push 0x4ca680
call fcn.00416160
cmp eax, 1
jne 0x40403f
push 0
push 4
push 0
call fcn.0048ea3d
add eax, 0x20
push eax
call fcn.0048e947
mov esi, dword [0x4c48e4]
add esp, 0x10
test esi, esi
je 0x403fc7
imul esi, esi, 0xd4
push esi
call fcn.0048e514
add esp, 4
mov dword [0x4c8f1c], eax
test eax, eax
je 0x403fc7
push esi
push 0
push eax
call fcn.00497360
add esp, 0xc
cmp byte [0x4cb32a], 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.00409d10
push 3
push 0
push str.Clipboard
mov ecx, 0x4ca680
mov byte [0x4cb14c], 1
mov byte [0x4c8d05], 0
call fcn.00421e70
test eax, eax
je 0x40401a
call fcn.00403a30
push 0x4ca680
call fcn.00416740
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