Function at 0x40e771
Capabilities:
Get common file path
Set current directory

Disassembly:
mov eax, 0x44e2bc
call fcn.0044d654
mov eax, 0x1640
call fcn.00448b10
inc dword [0x46d294]
push edi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x24], 0x46d294
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [0x46d294], 0x40
jl 0x40e7c1
push 0x11010
push str.AutoIt
push str.Error__include_depth_exceeded.__Make_sure_there_are_no_recursive_includes.
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
xor al, al
jmp 0x40ea08
push ebx
push 0x452314
push dword [ebp + 8]
mov dword [ebp - 0x14], edi
mov byte [ebp - 0xd], 1
mov byte [ebp - 0xe], 1
xor bl, bl
call fcn.00440501
cmp eax, edi
pop ecx
pop ecx
mov dword [ebp - 0x18], eax
jne 0x40e827
lea eax, [ebp - 0x164c]
push str.Error_reading_the_file:_n_n
push eax
call fcn.0043f3b0
push dword [ebp + 8]
lea eax, [ebp - 0x164c]
push eax
call fcn.0043f3c0
add esp, 0x10
push 0x11010
push str.AutoIt
lea eax, [ebp - 0x164c]
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
xor al, al
jmp 0x40ea07
push esi
lea eax, [ebp - 0x340]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryA]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x130]
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFullPathNameA]
lea eax, [ebp - 0x64c]
push eax
lea eax, [ebp - 0x548]
push eax
lea eax, [ebp - 0x444]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x130]
push eax
call fcn.0044018d
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x238]
push eax
call fcn.0043f3b0
lea eax, [ebp - 0x444]
push eax
lea eax, [ebp - 0x238]
push eax
call fcn.0043f3c0
add esp, 0x24
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
jmp 0x40e8ac
xor edi, edi
cmp byte [ebp - 0xe], 1
jne 0x40e9ed
push dword [ebp - 0x18]
lea eax, [ebp - 0x164c]
push 0xfff
push eax
call fcn.00440514
add esp, 0xc
test eax, eax
je 0x40e9ed
inc dword [ebp - 0x14]
lea ecx, [ebp - 0x164c]
mov byte [ebp - 0x64d], 0
call fcn.0040e63d
test al, al
je 0x40e9b7
lea esi, [ebp - 0x164c]
call fcn.0040e60c
mov edi, esi
call fcn.0040e5e0
mov eax, esi
push eax
mov byte [ebp - 0xf], 0
call fcn.0043f830
mov esi, eax
cmp esi, 2
pop ecx
jle 0x40e942
xor eax, eax
mov al, byte [ebp + esi - 0x164e]
and eax, 0x7f
push eax
call fcn.0043fe9f
test eax, eax
pop ecx
je 0x40e942
lea eax, [ebp + esi - 0x164d]
cmp byte [eax], 0x5f
jne 0x40e942
mov byte [eax], 0
mov byte [ebp - 0xf], 1
cmp bl, 1
mov esi, dword [ebp - 0x1c]
jne 0x40e958
lea eax, [ebp - 0x164c]
push eax
call fcn.0040e2eb
jmp 0x40e9a4
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebp - 0x164c]
mov edx, esi
call fcn.0040ea22
test eax, eax
je 0x40e9a0
cmp eax, 1
jle 0x40e9a4
cmp eax, 3
jle 0x40e98c
cmp eax, 4
jne 0x40e9a4
mov byte [ebp - 0xe], 0
jmp 0x40e9a4
push dword [ebp + 0xc]
lea eax, [ebp - 0x164c]
push eax
push dword [ebp - 0x14]
call fcn.0040e281
jmp 0x40e9a4
mov byte [ebp - 0xd], 0
cmp byte [ebp - 0xf], 1
sete bl
cmp byte [ebp - 0xd], 1
je 0x40e8aa
jmp 0x40e9ed
push dword [ebp - 0x14]
lea eax, [ebp - 0x164c]
push dword [ebp + 8]
push str.Unterminated_string_in_file__s__line__d
push eax
call fcn.0043ffcb
add esp, 0x10
push 0x11010
push str.AutoIt
lea eax, [ebp - 0x164c]
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
mov byte [ebp - 0xd], 0
push dword [ebp - 0x18]
call fcn.004405e6
pop ecx
lea eax, [ebp - 0x340]
push eax
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
mov al, byte [ebp - 0xd]
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
dec dword [0x46d294]
pop edi
mov dword fs:[0], ecx
leave
ret 8