Function at 0x403a70
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 0x4c7378
mov dword [0x4c84a0], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x4c8cb0
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x403b85
xor ecx, ecx
mov word [0x4c8cb0], cx
mov esi, 0x4ac2b4
mov eax, dword [0x4c61a4]
mov ebx, 1
mov dword [0x4c8cac], 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 0x403c86
jmp 0x403af0
cmp byte [esp + 0x2a], 0
mov eax, dword [0x4c61ac]
mov edi, dword [eax + ebx*4]
je 0x403bf9
mov ecx, dword [esp + 0x2c]
push ecx
lea edx, [esp + 0x44]
push 0x4a18d0
push edx
call fcn.0048df13
add esp, 0xc
cmp word [esp + 0x40], 0
mov esi, eax
je 0x40404d
lea eax, [esp + 0x2b]
push eax
push 3
lea ecx, [esp + 0x40]
push ecx
push esi
lea edx, [esp + 0x50]
push edx
mov ecx, 0x4ca618
call fcn.00421760
test eax, eax
jne 0x403b6f
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 0x4ca618
mov ecx, esi
call fcn.00421a10
test eax, eax
je 0x40404d
push 1
push 0
push 0xffffffffffffffff
push edi
push eax
call fcn.00477420
inc dword [esp + 0x2c]
jmp 0x403c79
cmp word [0x4c8cb0], 0
je 0x403ab8
mov eax, 0x4c8cb0
lea edx, [eax + 2]
jmp 0x403ba0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403ba0
sub eax, edx
sar eax, 1
mov ebx, eax
lea edi, [ebx + ebx]
lea eax, [edi + 2]
call fcn.00471a20
mov esi, eax
test esi, esi
jne 0x403bdb
push 0x4c8cb0
push str.Out_of_memory.
mov ecx, 0x4ca618
call fcn.0042e560
jmp 0x403abd
test ebx, ebx
je 0x403bee
push edi
push 0x4c8cb0
push esi
call fcn.00495e90
add esp, 0xc
xor edx, edx
mov word [edi + esi], dx
jmp 0x403abd
push 0x4a18d8
push edi
call fcn.0048db09
add esp, 8
test eax, eax
je 0x403c74
push str._restart
push edi
call fcn.0048db09
add esp, 8
test eax, eax
je 0x403c74
push 0x4a18f4
push edi
call fcn.0048db09
add esp, 8
test eax, eax
je 0x403c6b
push str._force
push edi
call fcn.0048db09
add esp, 8
test eax, eax
je 0x403c6b
push str._ErrorStdOut
push edi
call fcn.0048db09
add esp, 8
test eax, eax
jne 0x403c5c
mov byte [0x4cb0e7], 1
jmp 0x403c79
dec ebx
lea eax, [ebx + 1]
mov byte [esp + 0x2a], 1
mov dword [esp + 0x34], eax
jmp 0x403c79
mov byte [0x4c85c9], 1
jmp 0x403c79
mov byte [esp + 0x30], 1
inc ebx
cmp ebx, dword [0x4c61a4]
jl 0x403af0
lea ecx, [esp + 0x2b]
push ecx
push 3
lea edx, [esp + 0x40]
push edx
push 0
push 0x4a1928
mov ecx, 0x4ca618
call fcn.00421760
test eax, eax
jne 0x403cce
cmp byte [esp + 0x2b], al
mov ecx, dword [esp + 0x38]
setne al
inc eax
push eax
push ecx
push 0x4a1928
push 0x4ca618
xor ecx, ecx
call fcn.00421a10
test eax, eax
je 0x40404d
cmp byte [eax + 0x17], 0
jne 0x403cd9
mov esi, dword [eax + 0xc]
jmp 0x403cdb
mov esi, eax
mov al, byte [esi + 0x15]
test al, 2
je 0x403cf1
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 0x403d15
mov eax, esi
call fcn.00401160
and byte [esi + 0x15], 0x8f
jmp 0x403d3a
cmp dword [0x4c8608], 0
je 0x403d22
test al, 0x10
jne 0x403d2f
cmp dword [0x4c860c], 0
je 0x403d3a
test al, 0x20
je 0x403d3a
test al, 8
je 0x403d3a
mov eax, esi
call fcn.00401160
lea ecx, [esp + 0x2a]
push ecx
push 0xc1
lea edx, [esp + 0x34]
push edx
push 6
push 0x4a192c
mov ecx, 0x4ca618
call fcn.00421760
test eax, eax
jne 0x403d85
cmp byte [esp + 0x2a], al
mov ecx, dword [esp + 0x2c]
setne al
inc eax
or eax, 0xc0
push eax
push ecx
push 0x4a192c
push 0x4ca618
mov ecx, 6
call fcn.00421a10
mov esi, eax
test esi, esi
je 0x40404d
mov ebx, dword [0x4c61a4]
mov eax, dword [esp + 0x34]
mov edx, dword [0x4c61ac]
sub ebx, eax
lea eax, [edx + eax*4]
push eax
call fcn.0046dd50
add esp, 4
test eax, eax
je 0x40404d
mov edi, eax
mov ecx, esi
call fcn.00477750
call fcn.00403900
mov ecx, dword [esp + 0x30]
push ecx
push 0x4ca618
call fcn.004158b0
cmp eax, 1
jne 0x40404d
mov esi, dword [0x4c49ac]
mov ecx, 0x44
mov edi, 0x4c70d8
mov eax, 0x4ca618
rep movsd dword es:[edi], dword [esi]
call fcn.004166d0
cmp eax, 0xffffffff
je 0x40404d
test eax, eax
je 0x404042
mov eax, dword [0x4c85f8]
test eax, eax
jne 0x403e4c
mov edx, dword [0x4c5ac0]
cmp word [edx], ax
jne 0x403e40
cmp dword [0x4c9eac], eax
jne 0x403e40
cmp dword [0x4c85d8], eax
jne 0x403e40
cmp dword [0x4c85dc], eax
jne 0x403e40
cmp byte [0x4c85fc], al
je 0x403ec3
mov dword [0x4c85f8], 1
jmp 0x403e51
cmp eax, 4
je 0x403ec3
cmp byte [esp + 0x30], 0
jne 0x403ece
cmp byte [0x4c85c9], 0
jne 0x403f4f
mov eax, dword [0x4cb0e0]
push eax
push str.AutoHotkey
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
test edi, edi
je 0x403f4f
mov eax, dword [0x4c85f8]
cmp eax, 3
je 0x404042
cmp eax, 2
je 0x403ebc
fldz
mov ecx, dword [0x4cb0d4]
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.00478fc0
add esp, 0x18
cmp eax, 7
je 0x404042
mov eax, 0x407
jmp 0x403eeb
cmp byte [esp + 0x30], 0
je 0x403f4f
mov edx, dword [0x4cb0e0]
push edx
push str.AutoHotkey
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
test edi, edi
je 0x403f4f
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 0x403f4b
mov edi, edi
cmp esi, 0x64
jne 0x403f3b
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.00478fc0
add esp, 0x18
cmp eax, 7
je 0x40404d
xor esi, esi
push 0x14
inc esi
call ebx
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x403f10
push 0x64
call ebx
mov esi, dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0
push 0x4c6fc4
push 0
push 0x2000
call esi
test eax, eax
je 0x403f7f
cmp dword [0x4c6fc4], 0
je 0x403f7f
push 2
push 0
push 0
push 0x2001
call esi
push 0x4ca618
call fcn.00415ac0
cmp eax, 1
jne 0x40404d
push 0
push 4
push 0
call fcn.0048e0bd
add eax, 0x20
push eax
call fcn.0048dfc7
mov esi, dword [0x4c48b8]
add esp, 0x10
test esi, esi
je 0x403fd7
imul esi, esi, 0xd4
push esi
call fcn.0048db94
add esp, 4
mov dword [0x4c8ebc], eax
test eax, eax
je 0x403fd7
push esi
push 0
push eax
call fcn.004969e0
add esp, 0xc
cmp byte [0x4cb2c2], 0
jne 0x403ffb
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.00411f90
call fcn.00409e30
push 3
push 0
push str.Clipboard
mov ecx, 0x4ca618
mov byte [0x4cb0e4], 1
call fcn.00421700
test eax, eax
je 0x404028
call fcn.00403a40
push 0x4ca618
call fcn.004160a0
test eax, eax
je 0x40404d
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