Function at 0x403b30
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 0x4aa100
mov dword [0x4ab224], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x4aba30
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jne 0x403c46
mov byte [0x4aba30], al
mov eax, 0x499869
mov dword [0x4abb34], eax
mov eax, dword [0x4a90c4]
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 0x403d3f
jmp 0x403bb0
cmp byte [esp + 0xd], 0
mov ecx, dword [0x4a90c8]
mov edi, dword [ecx + ebx*4]
je 0x403cb2
mov edx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x24]
push 0x499884
push eax
call fcn.004858b8
add esp, 0xc
cmp byte [esp + 0x20], 0
mov esi, eax
je 0x4040fa
lea ecx, [esp + 0xf]
push ecx
push 3
lea edx, [esp + 0x20]
push edx
push esi
lea eax, [esp + 0x30]
push eax
mov ecx, 0x4ad290
call fcn.00420cd0
test eax, eax
jne 0x403c30
mov edx, dword [esp + 0x18]
xor ecx, ecx
cmp byte [esp + 0xf], cl
setne cl
inc ecx
push ecx
push edx
push 0x4ad290
mov ecx, esi
lea edx, [esp + 0x2c]
call fcn.00420f70
test eax, eax
je 0x4040fa
push 1
push 0
push 0xffffffffffffffff
push edi
push eax
call fcn.00475240
inc dword [esp + 0x10]
jmp 0x403d32
cmp byte [0x4aba30], 0
je 0x403b74
mov eax, 0x4aba30
lea edx, [eax + 1]
jmp 0x403c60
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403c60
sub eax, edx
mov edi, eax
lea eax, [edi + 1]
call fcn.0046f950
mov esi, eax
test esi, esi
jne 0x403c94
push 0x4aba30
push str.Out_of_memory.
mov ecx, 0x4ad290
call fcn.0042d940
xor eax, eax
jmp 0x403b79
test edi, edi
je 0x403ca7
push edi
push 0x4aba30
push esi
call fcn.0048dc80
add esp, 0xc
mov byte [esi + edi], 0
mov eax, esi
jmp 0x403b79
push 0x499888
push edi
call fcn.00485381
add esp, 8
test eax, eax
je 0x403d2d
push str._restart
push edi
call fcn.00485381
add esp, 8
test eax, eax
je 0x403d2d
push 0x499898
push edi
call fcn.00485381
add esp, 8
test eax, eax
je 0x403d24
push str._force
push edi
call fcn.00485381
add esp, 8
test eax, eax
je 0x403d24
push str._ErrorStdOut
push edi
call fcn.00485381
add esp, 8
test eax, eax
jne 0x403d15
mov byte [0x4ad897], 1
jmp 0x403d32
dec ebx
lea eax, [ebx + 1]
mov byte [esp + 0xd], 1
mov dword [esp + 0x14], eax
jmp 0x403d32
mov byte [0x4ab24d], 1
jmp 0x403d32
mov byte [esp + 0xe], 1
inc ebx
cmp ebx, dword [0x4a90c4]
jl 0x403bb0
lea ecx, [esp + 0xf]
push ecx
push 3
lea edx, [esp + 0x20]
push edx
push 0
push 0x4998b4
mov ecx, 0x4ad290
call fcn.00420cd0
test eax, eax
jne 0x403d87
cmp byte [esp + 0xf], al
mov ecx, dword [esp + 0x18]
setne al
mov edx, 0x4998b4
inc eax
push eax
push ecx
push 0x4ad290
xor ecx, ecx
call fcn.00420f70
test eax, eax
je 0x4040fa
cmp byte [eax + 0x17], 0
jne 0x403d92
mov esi, dword [eax + 0xc]
jmp 0x403d94
mov esi, eax
mov al, byte [esi + 0x15]
test al, 2
je 0x403daa
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 0x403dce
mov eax, esi
call fcn.00401150
and byte [esi + 0x15], 0x8f
jmp 0x403df3
cmp dword [0x4ab38c], 0
je 0x403ddb
test al, 0x10
jne 0x403de8
cmp dword [0x4ab390], 0
je 0x403df3
test al, 0x20
je 0x403df3
test al, 8
je 0x403df3
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, 0x4ad290
call fcn.00420cd0
test eax, eax
jne 0x403e3e
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 0x4ad290
mov ecx, 6
call fcn.00420f70
mov esi, eax
test esi, esi
je 0x4040fa
mov ebx, dword [0x4a90c4]
mov eax, dword [esp + 0x14]
mov edx, dword [0x4a90c8]
sub ebx, eax
lea eax, [edx + eax*4]
push eax
call fcn.0046beb0
add esp, 4
test eax, eax
je 0x4040fa
mov edi, eax
mov ecx, esi
call fcn.00475570
call fcn.004039c0
mov bl, byte [esp + 0xe]
push 0x4ad290
mov al, bl
call fcn.004152e0
cmp eax, 1
jne 0x4040fa
mov esi, dword [0x4a7918]
mov ecx, 0x3c
mov edi, 0x4a9ed8
mov eax, 0x4ad290
rep movsd dword es:[edi], dword [esi]
call fcn.004161b0
cmp eax, 0xffffffff
je 0x4040fa
test eax, eax
je 0x4040ef
mov eax, dword [0x4ab37c]
test eax, eax
jne 0x403f02
mov ecx, dword [0x4a8a2c]
cmp word [ecx], ax
jne 0x403ef6
cmp dword [0x4acb2c], eax
jne 0x403ef6
cmp dword [0x4ab35c], eax
jne 0x403ef6
cmp dword [0x4ab360], eax
jne 0x403ef6
cmp byte [0x4ab380], al
je 0x403f75
mov dword [0x4ab37c], 1
jmp 0x403f07
cmp eax, 4
je 0x403f75
test bl, bl
jne 0x403f7d
cmp byte [0x4ab24d], bl
jne 0x403fff
mov edx, dword [0x4ad890]
push edx
push str.AutoHotkey
call dword [sym.imp.USER32.dll_FindWindowA]
mov edi, eax
test edi, edi
je 0x403fff
mov eax, dword [0x4ab37c]
cmp eax, 3
je 0x4040ef
cmp eax, 2
je 0x403f6e
fldz
mov eax, dword [0x4ad884]
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.00476e30
add esp, 0x18
cmp eax, 7
je 0x4040ef
mov eax, 0x407
jmp 0x403f9a
test bl, bl
je 0x403fff
mov ecx, dword [0x4ad890]
push ecx
push str.AutoHotkey
call dword [sym.imp.USER32.dll_FindWindowA]
mov edi, eax
test edi, edi
je 0x403fff
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 0x403ffb
lea ecx, [ecx]
cmp esi, 0x64
jne 0x403feb
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.00476e30
add esp, 0x18
cmp eax, 7
je 0x4040fa
xor esi, esi
push 0x14
inc esi
call ebx
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x403fc0
push 0x64
call ebx
mov esi, dword [sym.imp.USER32.dll_SystemParametersInfoA]
push 0
push 0x4a9de4
push 0
push 0x2000
call esi
test eax, eax
je 0x40402f
cmp dword [0x4a9de4], 0
je 0x40402f
push 2
push 0
push 0
push 0x2001
call esi
push 0x4ad290
call fcn.004155a0
cmp eax, 1
jne 0x4040fa
push 0
push 4
push 0
call fcn.00485a47
add eax, 0x20
push eax
call fcn.00485951
mov esi, dword [0x4a7888]
add esp, 0x10
test esi, esi
je 0x404084
imul esi, esi, 0x70
push esi
call fcn.00485539
add esp, 4
mov dword [0x4abb3c], eax
test eax, eax
je 0x404084
push esi
push 0
push eax
call fcn.0048e850
add esp, 0xc
cmp byte [0x4ada52], 0
jne 0x4040a8
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.00411aa0
call fcn.00409b20
push 3
push 0
push str.Clipboard
mov ecx, 0x4ad290
mov byte [0x4ad894], 1
call fcn.00420c70
test eax, eax
je 0x4040d5
call fcn.00403b00
push 0x4ad290
call fcn.00415b80
test eax, eax
je 0x4040fa
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