Function at 0x403b20
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 0x4aa140
mov dword [0x4ab268], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x4aba78
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jne 0x403c36
mov byte [0x4aba78], al
mov eax, 0x499821
mov dword [0x4aba74], eax
mov eax, dword [0x4a9104]
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 0x403d2f
jmp 0x403ba0
cmp byte [esp + 0xd], 0
mov ecx, dword [0x4a9108]
mov edi, dword [ecx + ebx*4]
je 0x403ca2
mov edx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x24]
push 0x499894
push eax
call fcn.00486318
add esp, 0xc
cmp byte [esp + 0x20], 0
mov esi, eax
je 0x4040ec
lea ecx, [esp + 0xf]
push ecx
push 3
lea edx, [esp + 0x20]
push edx
push esi
lea eax, [esp + 0x30]
push eax
mov ecx, 0x4ad2f8
call fcn.00421460
test eax, eax
jne 0x403c20
mov edx, dword [esp + 0x18]
xor ecx, ecx
cmp byte [esp + 0xf], cl
setne cl
inc ecx
push ecx
push edx
push 0x4ad2f8
mov ecx, esi
lea edx, [esp + 0x2c]
call fcn.00421700
test eax, eax
je 0x4040ec
push 1
push 0
push 0xffffffffffffffff
push edi
push eax
call fcn.00475c90
inc dword [esp + 0x10]
jmp 0x403d22
cmp byte [0x4aba78], 0
je 0x403b64
mov eax, 0x4aba78
lea edx, [eax + 1]
jmp 0x403c50
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403c50
sub eax, edx
mov edi, eax
lea eax, [edi + 1]
call fcn.004703a0
mov esi, eax
test esi, esi
jne 0x403c84
push 0x4aba78
push str.Out_of_memory.
mov ecx, 0x4ad2f8
call fcn.0042e0b0
xor eax, eax
jmp 0x403b69
test edi, edi
je 0x403c97
push edi
push 0x4aba78
push esi
call fcn.0048e6e0
add esp, 0xc
mov byte [esi + edi], 0
mov eax, esi
jmp 0x403b69
push 0x499898
push edi
call fcn.00485de1
add esp, 8
test eax, eax
je 0x403d1d
push str._restart
push edi
call fcn.00485de1
add esp, 8
test eax, eax
je 0x403d1d
push 0x4998a8
push edi
call fcn.00485de1
add esp, 8
test eax, eax
je 0x403d14
push str._force
push edi
call fcn.00485de1
add esp, 8
test eax, eax
je 0x403d14
push str._ErrorStdOut
push edi
call fcn.00485de1
add esp, 8
test eax, eax
jne 0x403d05
mov byte [0x4ad8ff], 1
jmp 0x403d22
dec ebx
lea eax, [ebx + 1]
mov byte [esp + 0xd], 1
mov dword [esp + 0x14], eax
jmp 0x403d22
mov byte [0x4ab391], 1
jmp 0x403d22
mov byte [esp + 0xe], 1
inc ebx
cmp ebx, dword [0x4a9104]
jl 0x403ba0
lea ecx, [esp + 0xf]
push ecx
push 3
lea edx, [esp + 0x20]
push edx
push 0
push 0x4998c4
mov ecx, 0x4ad2f8
call fcn.00421460
test eax, eax
jne 0x403d77
cmp byte [esp + 0xf], al
mov ecx, dword [esp + 0x18]
setne al
mov edx, 0x4998c4
inc eax
push eax
push ecx
push 0x4ad2f8
xor ecx, ecx
call fcn.00421700
test eax, eax
je 0x4040ec
cmp byte [eax + 0x17], 0
jne 0x403d82
mov esi, dword [eax + 0xc]
jmp 0x403d84
mov esi, eax
mov al, byte [esi + 0x15]
test al, 2
je 0x403d9a
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 0x403dbe
mov eax, esi
call fcn.00401150
and byte [esi + 0x15], 0x8f
jmp 0x403de3
cmp dword [0x4ab3d0], 0
je 0x403dcb
test al, 0x10
jne 0x403dd8
cmp dword [0x4ab3d4], 0
je 0x403de3
test al, 0x20
je 0x403de3
test al, 8
je 0x403de3
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, 0x4ad2f8
call fcn.00421460
test eax, eax
jne 0x403e2e
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 0x4ad2f8
mov ecx, 6
call fcn.00421700
mov esi, eax
test esi, esi
je 0x4040ec
mov ebx, dword [0x4a9104]
mov eax, dword [esp + 0x14]
mov edx, dword [0x4a9108]
sub ebx, eax
lea eax, [edx + eax*4]
push eax
call fcn.0046c900
add esp, 4
test eax, eax
je 0x4040ec
mov edi, eax
mov ecx, esi
call fcn.00475fc0
call fcn.004039b0
mov bl, byte [esp + 0xe]
push 0x4ad2f8
mov al, bl
call fcn.00415a00
cmp eax, 1
jne 0x4040ec
mov esi, dword [0x4a78d4]
mov ecx, 0x3c
mov edi, 0x4a9f18
mov eax, 0x4ad2f8
rep movsd dword es:[edi], dword [esi]
call fcn.004168d0
cmp eax, 0xffffffff
je 0x4040ec
test eax, eax
je 0x4040e1
mov eax, dword [0x4ab3c0]
test eax, eax
jne 0x403ef2
mov ecx, dword [0x4a8a50]
cmp word [ecx], ax
jne 0x403ee6
cmp dword [0x4acb74], eax
jne 0x403ee6
cmp dword [0x4ab3a0], eax
jne 0x403ee6
cmp dword [0x4ab3a4], eax
jne 0x403ee6
cmp byte [0x4ab3c4], al
je 0x403f65
mov dword [0x4ab3c0], 1
jmp 0x403ef7
cmp eax, 4
je 0x403f65
test bl, bl
jne 0x403f6d
cmp byte [0x4ab391], bl
jne 0x403fef
mov edx, dword [0x4ad8f8]
push edx
push str.AutoHotkey
call dword [sym.imp.USER32.dll_FindWindowA]
mov edi, eax
test edi, edi
je 0x403fef
mov eax, dword [0x4ab3c0]
cmp eax, 3
je 0x4040e1
cmp eax, 2
je 0x403f5e
fldz
mov eax, dword [0x4ad8ec]
push 0
sub esp, 8
fstp qword [esp]
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.00477880
add esp, 0x18
cmp eax, 7
je 0x4040e1
mov eax, 0x407
jmp 0x403f8a
test bl, bl
je 0x403fef
mov ecx, dword [0x4ad8f8]
push ecx
push str.AutoHotkey
call dword [sym.imp.USER32.dll_FindWindowA]
mov edi, eax
test edi, edi
je 0x403fef
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 0x403feb
lea ecx, [ecx]
cmp esi, 0x64
jne 0x403fdb
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.00477880
add esp, 0x18
cmp eax, 7
je 0x4040ec
xor esi, esi
push 0x14
inc esi
call ebx
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x403fb0
push 0x64
call ebx
mov esi, dword [sym.imp.USER32.dll_SystemParametersInfoA]
push 0
push 0x4a9e24
push 0
push 0x2000
call esi
test eax, eax
je 0x40401f
cmp dword [0x4a9e24], 0
je 0x40401f
push 2
push 0
push 0
push 0x2001
call esi
push 0x4ad2f8
call fcn.00415cc0
cmp eax, 1
jne 0x4040ec
push 0
push 4
push 0
call fcn.004864a7
add eax, 0x20
push eax
call fcn.004863b1
mov esi, dword [0x4a78b4]
add esp, 0x10
test esi, esi
je 0x404074
imul esi, esi, 0x70
push esi
call fcn.00485f99
add esp, 4
mov dword [0x4abb80], eax
test eax, eax
je 0x404074
push esi
push 0
push eax
call fcn.0048f2b0
add esp, 0xc
cmp byte [0x4ada9a], 0
jne 0x404098
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.00409c00
push 3
push 0
push str.Clipboard
mov ecx, 0x4ad2f8
mov byte [0x4ad8fc], 1
mov byte [0x4aba6d], 0
call fcn.00421400
test eax, eax
je 0x4040c7
call fcn.00403af0
push 0x4ad2f8
call fcn.004162a0
test eax, eax
je 0x4040ec
push 0
push 0xa
call fcn.00401350
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