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

Disassembly:
mov eax, 0x454e68
call fcn.00454158
mov eax, 0x1640
call fcn.0044f570
inc dword [0x471bf4]
push edi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x28], 0x471bf4
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [0x471bf4], 0x40
jl 0x40d458
push edi
push dword [ebp + 0x14]
xor eax, eax
mov al, byte [0x463aec]
push str.include_depth_exceeded.__Make_sure_there_are_no_recursive_includes
push dword [ebp + 0x18]
push dword [ebp + 0x10]
push eax
call fcn.00410a8f
add esp, 0x18
xor al, al
jmp 0x40d670
push ebx
push 0x45980c
push dword [ebp + 8]
mov dword [ebp - 0x14], edi
mov byte [ebp - 0xd], 1
mov byte [ebp - 0xe], 1
xor bl, bl
call fcn.004471b1
cmp eax, edi
pop ecx
pop ecx
mov dword [ebp - 0x18], eax
jne 0x40d4a2
push edi
push dword [ebp + 0x14]
xor eax, eax
mov al, byte [0x463aec]
push str.Error_reading_the_file
push dword [ebp + 0x18]
push dword [ebp + 0x10]
push eax
call fcn.00410a8f
add esp, 0x18
xor al, al
jmp 0x40d66f
push esi
lea eax, [ebp - 0x340]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryA]
lea eax, [ebp - 0x24]
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.00446e39
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x238]
push eax
call fcn.00446250
lea eax, [ebp - 0x444]
push eax
lea eax, [ebp - 0x238]
push eax
call fcn.00446260
add esp, 0x24
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
jmp 0x40d527
xor edi, edi
cmp byte [ebp - 0xe], 1
jne 0x40d655
push dword [ebp - 0x18]
lea eax, [ebp - 0x164c]
push 0xfff
push eax
call fcn.004471c4
add esp, 0xc
test eax, eax
je 0x40d655
inc dword [ebp - 0x14]
lea esi, [ebp - 0x164c]
mov byte [ebp - 0x64d], 0
call fcn.0040d26d
mov eax, esi
call fcn.0040d29e
test al, al
je 0x40d62e
mov edi, esi
call fcn.0040d241
mov eax, esi
push eax
mov byte [ebp + 0x17], 0
call fcn.004466d0
mov esi, eax
cmp esi, 2
pop ecx
jle 0x40d5b9
xor eax, eax
mov al, byte [ebp + esi - 0x164e]
and eax, 0x7f
push eax
call fcn.00446ccb
test eax, eax
pop ecx
je 0x40d5b9
lea eax, [ebp + esi - 0x164d]
cmp byte [eax], 0x5f
jne 0x40d5b9
mov byte [eax], 0
mov byte [ebp + 0x17], 1
cmp bl, 1
mov esi, dword [ebp - 0x1c]
jne 0x40d5cf
lea eax, [ebp - 0x164c]
push eax
call fcn.0040cf4c
jmp 0x40d61b
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.0040d68a
test eax, eax
je 0x40d617
cmp eax, 1
jle 0x40d61b
cmp eax, 3
jle 0x40d603
cmp eax, 4
jne 0x40d61b
mov byte [ebp - 0xe], 0
jmp 0x40d61b
push dword [ebp + 0xc]
lea eax, [ebp - 0x164c]
push eax
push dword [ebp - 0x14]
call fcn.0040cee2
jmp 0x40d61b
mov byte [ebp - 0xd], 0
cmp byte [ebp + 0x17], 1
sete bl
cmp byte [ebp - 0xd], 1
je 0x40d525
jmp 0x40d655
push edi
lea eax, [ebp - 0x164c]
push eax
xor eax, eax
mov al, byte [0x463aec]
push str.Unterminated_string
push dword [ebp - 0x14]
push dword [ebp + 0x10]
push eax
call fcn.00410a8f
add esp, 0x18
mov byte [ebp - 0xd], 0
push dword [ebp - 0x18]
call fcn.00447296
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 [0x471bf4]
pop edi
mov dword fs:[0], ecx
leave
ret 0x14