Function at 0x403730
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x34
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceA]
push edi
push 0xa
push str._AUTOHOTKEY_SCRIPT_
push 0
call esi
mov dword [0x4bb75c], eax
test eax, eax
jne 0x40376e
push 0xa
push str._AHK_WITH_ICON_
push eax
call esi
mov dword [0x4bb75c], eax
test eax, eax
jne 0x40376e
mov dword [0x4bb75c], eax
mov eax, dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x4ba630
mov dword [0x4bb760], eax
call esi
push 0x4ba618
call esi
push 0x4bbf78
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jne 0x403865
mov byte [0x4bbf78], al
mov esi, 0x4a6869
mov ebx, 1
mov dword [0x4bc07c], esi
mov byte [esp + 0x12], 0
mov byte [esp + 0x11], 0
mov dword [esp + 0x14], ebx
cmp dword [0x4b8d64], ebx
jle 0x403954
cmp byte [esp + 0x11], 0
mov ecx, dword [0x4b8d68]
mov edi, dword [ecx + ebx*4]
je 0x4038ce
mov edx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x24]
push 0x4a68d4
push eax
call fcn.00491f88
add esp, 0xc
cmp byte [esp + 0x20], 0
mov esi, eax
je 0x4039a3
lea ecx, [esp + 0x13]
push ecx
push 3
lea edx, [esp + 0x20]
push edx
push esi
lea eax, [esp + 0x30]
push eax
mov ecx, 0x4bd7e0
call fcn.00424ec0
test eax, eax
jne 0x40384f
cmp byte [esp + 0x13], al
mov ecx, dword [esp + 0x18]
setne al
lea edx, [esp + 0x20]
inc eax
push eax
push ecx
push 0x4bd7e0
mov ecx, esi
call fcn.004253d0
test eax, eax
je 0x4039a3
push 1
push 0
push 0xffffffffffffffff
push edi
push eax
call fcn.00481890
inc dword [esp + 0x14]
jmp 0x403947
cmp byte [0x4bbf78], 0
je 0x4037a7
mov eax, 0x4bbf78
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403880
sub eax, edx
mov edi, eax
lea eax, [edi + 1]
call fcn.0047b180
mov esi, eax
test esi, esi
jne 0x4038b2
push 0x4bbf78
push str.Out_of_memory.
mov ecx, 0x4bd7e0
call fcn.004330b0
jmp 0x4037ac
test edi, edi
je 0x4038c5
push edi
push 0x4bbf78
push esi
call fcn.0049b8f0
add esp, 0xc
mov byte [esi + edi], 0
jmp 0x4037ac
push 0x4a68d8
push edi
call fcn.00491a51
add esp, 8
test eax, eax
je 0x403942
push str._restart
push edi
call fcn.00491a51
add esp, 8
test eax, eax
je 0x403942
push 0x4a68e8
push edi
call fcn.00491a51
add esp, 8
test eax, eax
je 0x403939
push str._force
push edi
call fcn.00491a51
add esp, 8
test eax, eax
je 0x403939
push str._ErrorStdOut
push edi
call fcn.00491a51
add esp, 8
test eax, eax
jne 0x403931
mov byte [0x4bdddb], 1
jmp 0x403947
mov byte [esp + 0x11], 1
dec ebx
jmp 0x403947
mov byte [0x4bb891], 1
jmp 0x403947
mov byte [esp + 0x12], 1
inc ebx
cmp ebx, dword [0x4b8d64]
jl 0x4037d1
lea edx, [esp + 0x13]
push edx
push 3
lea eax, [esp + 0x20]
push eax
push 0
push 0x4a6904
mov ecx, 0x4bd7e0
call fcn.00424ec0
test eax, eax
jne 0x403998
cmp byte [esp + 0x13], al
mov ecx, dword [esp + 0x18]
setne al
mov edx, 0x4a6904
inc eax
push eax
push ecx
push 0x4bd7e0
xor ecx, ecx
call fcn.004253d0
test eax, eax
je 0x4039a3
cmp byte [eax + 0x17], 0
jne 0x4039b1
mov esi, dword [eax + 0xc]
jmp 0x4039b3
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 0x4039c9
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 + 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 0x4039ed
mov eax, esi
call fcn.00401150
and byte [esi + 0x15], 0x8f
jmp 0x403a12
cmp dword [0x4bb8d0], 0
je 0x4039fa
test al, 0x10
jne 0x403a07
cmp dword [0x4bb8d4], 0
je 0x403a12
test al, 0x20
je 0x403a12
test al, 8
je 0x403a12
mov eax, esi
call fcn.00401150
call fcn.004035c0
mov bl, byte [esp + 0x12]
push 0x4bd7e0
mov al, bl
call fcn.00419230
cmp eax, 1
jne 0x4039a3
mov esi, dword [0x4b7468]
mov ecx, 0x3a
mov edi, 0x4ba400
rep movsd dword es:[edi], dword [esi]
mov edi, 0x4bd7e0
call fcn.00419f90
cmp eax, 0xffffffff
je 0x4039a3
test eax, eax
je 0x403cff
mov eax, dword [0x4bb8c0]
test eax, eax
jne 0x403a9d
mov ecx, dword [0x4b85b0]
cmp word [ecx], ax
jne 0x403a91
cmp dword [0x4bd074], eax
jne 0x403a91
cmp dword [0x4bb8a0], eax
jne 0x403a91
cmp dword [0x4bb8a4], eax
jne 0x403a91
cmp byte [0x4bb8c4], al
je 0x403b10
mov dword [0x4bb8c0], 1
jmp 0x403aa2
cmp eax, 4
je 0x403b10
test bl, bl
jne 0x403b14
cmp byte [0x4bb891], bl
jne 0x403b93
mov edx, dword [0x4bddd4]
push edx
push str.AutoHotkey
call dword [sym.imp.USER32.dll_FindWindowA]
mov edi, eax
test edi, edi
je 0x403b93
mov eax, dword [0x4bb8c0]
cmp eax, 3
je 0x403cff
cmp eax, 2
je 0x403b09
fldz
mov eax, dword [0x4bddc8]
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.00483450
add esp, 0x18
cmp eax, 7
je 0x403cff
mov eax, 0x407
jmp 0x403b31
test bl, bl
je 0x403b93
mov ecx, dword [0x4bddd4]
push ecx
push str.AutoHotkey
call dword [sym.imp.USER32.dll_FindWindowA]
mov edi, eax
test edi, edi
je 0x403b93
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 0x32
xor esi, esi
call ebx
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x403b8f
cmp esi, 0x64
jne 0x403b7f
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.00483450
add esp, 0x18
cmp eax, 7
je 0x4039a3
xor esi, esi
push 0x32
inc esi
call ebx
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x403b54
push 0x64
call ebx
mov esi, dword [sym.imp.USER32.dll_SystemParametersInfoA]
push 0
push 0x4ba314
push 0
push 0x2000
call esi
test eax, eax
je 0x403bc3
cmp dword [0x4ba314], 0
je 0x403bc3
push 2
push 0
push 0
push 0x2001
call esi
push 0x4bd7e0
call fcn.004194a0
cmp eax, 1
jne 0x4039a3
push 0
push 4
push 0
call fcn.00492117
add eax, 0x20
push eax
call fcn.00492021
mov esi, dword [0x4b73cc]
add esp, 0x10
test esi, esi
je 0x403c18
imul esi, esi, 0x70
push esi
call fcn.00491c09
add esp, 4
mov dword [0x4bc084], eax
test eax, eax
je 0x403c18
push esi
push 0
push eax
call fcn.0049a020
add esp, 0xc
cmp byte [0x4bdedb], 0
jne 0x403c5b
push str.InitCommonControlsEx
push str.comctl32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x403c55
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], 8
mov dword [esp + 0x20], 0x1ff
call eax
jmp 0x403c5b
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0x480ff0
push 0
call dword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
mov dword [0x4bb8bc], eax
call fcn.0040a7a0
lea eax, [esp + 0x13]
push eax
push 3
lea ecx, [esp + 0x20]
push ecx
push 0
push str.Clipboard
mov ecx, 0x4bd7e0
mov byte [0x4bddd8], 1
call fcn.00424ec0
test eax, eax
jne 0x403cbd
cmp byte [esp + 0x13], al
mov edx, dword [esp + 0x18]
setne al
xor ecx, ecx
inc eax
push eax
push edx
push 0x4bd7e0
mov edx, str.Clipboard
call fcn.004253d0
test eax, eax
je 0x403ce1
cmp byte [eax + 0x17], 0
jne 0x403cc8
mov esi, dword [eax + 0xc]
jmp 0x403cca
mov esi, eax
test byte [esi + 0x15], 0x80
jne 0x403ce1
mov eax, esi
call fcn.00401150
mov al, byte [esi + 0x15]
and al, 0xf
or al, 0x80
mov byte [esi + 0x15], al
push 0x4bd7e0
call fcn.00419a10
test eax, eax
je 0x4039a3
push 0
push 0xa
call fcn.00401280
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10