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 0x4a9100
mov dword [0x4aa228], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x4aaa30
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jne 0x403c36
mov byte [0x4aaa30], al
mov esi, 0x498861
mov ebx, 1
mov dword [0x4aab34], esi
mov byte [esp + 0x12], 0
mov byte [esp + 0x11], 0
mov dword [esp + 0x14], ebx
cmp dword [0x4a80c4], ebx
jle 0x403d24
mov edi, edi
cmp byte [esp + 0x11], 0
mov ecx, dword [0x4a80c8]
mov edi, dword [ecx + ebx*4]
je 0x403c9e
mov edx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x24]
push 0x49887c
push eax
call fcn.00485318
add esp, 0xc
cmp byte [esp + 0x20], 0
mov esi, eax
je 0x403d75
lea ecx, [esp + 0x13]
push ecx
push 3
lea edx, [esp + 0x20]
push edx
push esi
lea eax, [esp + 0x30]
push eax
mov ecx, 0x4ac290
call fcn.00420be0
test eax, eax
jne 0x403c20
mov edx, dword [esp + 0x18]
xor ecx, ecx
cmp byte [esp + 0x13], cl
setne cl
inc ecx
push ecx
push edx
push 0x4ac290
mov ecx, esi
lea edx, [esp + 0x2c]
call fcn.00420e70
test eax, eax
je 0x403d75
push 1
push 0
push 0xffffffffffffffff
push edi
push eax
call fcn.00474cc0
inc dword [esp + 0x14]
jmp 0x403d17
cmp byte [0x4aaa30], 0
je 0x403b74
mov eax, 0x4aaa30
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.0046f460
mov esi, eax
test esi, esi
jne 0x403c82
push 0x4aaa30
push str.Out_of_memory.
mov ecx, 0x4ac290
call fcn.0042d750
jmp 0x403b79
test edi, edi
je 0x403c95
push edi
push 0x4aaa30
push esi
call fcn.0048d6e0
add esp, 0xc
mov byte [esi + edi], 0
jmp 0x403b79
push 0x498880
push edi
call fcn.00484de1
add esp, 8
test eax, eax
je 0x403d12
push str._restart
push edi
call fcn.00484de1
add esp, 8
test eax, eax
je 0x403d12
push 0x498890
push edi
call fcn.00484de1
add esp, 8
test eax, eax
je 0x403d09
push str._force
push edi
call fcn.00484de1
add esp, 8
test eax, eax
je 0x403d09
push str._ErrorStdOut
push edi
call fcn.00484de1
add esp, 8
test eax, eax
jne 0x403d01
mov byte [0x4ac897], 1
jmp 0x403d17
mov byte [esp + 0x11], 1
dec ebx
jmp 0x403d17
mov byte [0x4aa351], 1
jmp 0x403d17
mov byte [esp + 0x12], 1
inc ebx
cmp ebx, dword [0x4a80c4]
jl 0x403ba0
lea eax, [esp + 0x13]
push eax
push 3
lea ecx, [esp + 0x20]
push ecx
push 0
push 0x4988ac
mov ecx, 0x4ac290
call fcn.00420be0
test eax, eax
jne 0x403d6a
mov eax, dword [esp + 0x18]
xor edx, edx
cmp byte [esp + 0x13], dl
setne dl
xor ecx, ecx
inc edx
push edx
push eax
push 0x4ac290
mov edx, 0x4988ac
call fcn.00420e70
test eax, eax
je 0x403d75
cmp byte [eax + 0x17], 0
jne 0x403d83
mov esi, dword [eax + 0xc]
jmp 0x403d85
mov eax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov esi, eax
mov al, byte [esi + 0x15]
test al, 2
je 0x403d9b
and al, 0x3d
mov byte [esi + 0x15], al
mov eax, dword [esi]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
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 0x403dbf
mov eax, esi
call fcn.00401150
and byte [esi + 0x15], 0x8f
jmp 0x403de4
cmp dword [0x4aa38c], 0
je 0x403dcc
test al, 0x10
jne 0x403dd9
cmp dword [0x4aa390], 0
je 0x403de4
test al, 0x20
je 0x403de4
test al, 8
je 0x403de4
mov eax, esi
call fcn.00401150
call fcn.004039c0
mov bl, byte [esp + 0x12]
push 0x4ac290
mov al, bl
call fcn.004150d0
cmp eax, 1
jne 0x403d75
mov esi, dword [0x4a6918]
mov ecx, 0x3c
mov edi, 0x4a8ed8
mov eax, 0x4ac290
rep movsd dword es:[edi], dword [esi]
call fcn.00415fa0
cmp eax, 0xffffffff
je 0x403d75
test eax, eax
je 0x4040ae
mov eax, dword [0x4aa37c]
test eax, eax
jne 0x403e77
mov eax, dword [0x4a7a2c]
cmp word [eax], 0
jne 0x403e6b
cmp dword [0x4abb2c], 0
jne 0x403e6b
cmp dword [0x4aa360], 0
jne 0x403e6b
cmp dword [0x4aa364], 0
jne 0x403e6b
cmp byte [0x4aa380], 0
je 0x403eeb
mov dword [0x4aa37c], 1
jmp 0x403e7c
cmp eax, 4
je 0x403eeb
test bl, bl
jne 0x403ef3
cmp byte [0x4aa351], bl
jne 0x403f71
mov ecx, dword [0x4ac890]
push ecx
push str.AutoHotkey
call dword [sym.imp.USER32.dll_FindWindowA]
mov edi, eax
test edi, edi
je 0x403f71
mov eax, dword [0x4aa37c]
cmp eax, 3
je 0x4040ae
cmp eax, 2
je 0x403ee4
fldz
mov edx, dword [0x4ac884]
push 0
sub esp, 8
fstp qword [esp]
push edx
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.004768b0
add esp, 0x18
cmp eax, 7
je 0x4040ae
mov eax, 0x407
jmp 0x403f0f
test bl, bl
je 0x403f71
mov eax, dword [0x4ac890]
push eax
push str.AutoHotkey
call dword [sym.imp.USER32.dll_FindWindowA]
mov edi, eax
test edi, edi
je 0x403f71
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 0x403f6d
cmp esi, 0x64
jne 0x403f5d
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.004768b0
add esp, 0x18
cmp eax, 7
je 0x403d75
xor esi, esi
push 0x14
inc esi
call ebx
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x403f32
push 0x64
call ebx
mov esi, dword [sym.imp.USER32.dll_SystemParametersInfoA]
push 0
push 0x4a8de4
push 0
push 0x2000
call esi
test eax, eax
je 0x403fa1
cmp dword [0x4a8de4], 0
je 0x403fa1
push 2
push 0
push 0
push 0x2001
call esi
push 0x4ac290
call fcn.00415390
cmp eax, 1
jne 0x403d75
push 0
push 4
push 0
call fcn.004854a7
add eax, 0x20
push eax
call fcn.004853b1
mov esi, dword [0x4a6888]
add esp, 0x10
test esi, esi
je 0x403ff6
imul esi, esi, 0x70
push esi
call fcn.00484f99
add esp, 4
mov dword [0x4aab3c], eax
test eax, eax
je 0x403ff6
push esi
push 0
push eax
call fcn.0048e2b0
add esp, 0xc
cmp byte [0x4aca52], 0
jne 0x40401a
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], 8
mov dword [esp + 0x20], 0x1ff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
call fcn.00409a50
lea edx, [esp + 0x13]
push edx
push 3
lea eax, [esp + 0x20]
push eax
push 0
push str.Clipboard
mov ecx, 0x4ac290
mov byte [0x4ac894], 1
call fcn.00420be0
test eax, eax
jne 0x40406c
mov edx, dword [esp + 0x18]
xor ecx, ecx
cmp byte [esp + 0x13], cl
setne cl
inc ecx
push ecx
push edx
push 0x4ac290
xor ecx, ecx
mov edx, str.Clipboard
call fcn.00420e70
test eax, eax
je 0x404090
cmp byte [eax + 0x17], 0
jne 0x404077
mov esi, dword [eax + 0xc]
jmp 0x404079
mov esi, eax
test byte [esi + 0x15], 0x80
jne 0x404090
mov eax, esi
call fcn.00401150
mov al, byte [esi + 0x15]
and al, 0xf
or al, 0x80
mov byte [esi + 0x15], al
push 0x4ac290
call fcn.00415970
test eax, eax
je 0x403d75
push 0
push 0xa
call fcn.00401350
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10