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

Disassembly:
mov eax, 0x454ea8
call fcn.00454198
mov eax, 0x1640
call fcn.0044f5b0
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 0x40d4a5
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.00410ac8
add esp, 0x18
xor al, al
jmp 0x40d6bd
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.004471f1
cmp eax, edi
pop ecx
pop ecx
mov dword [ebp - 0x18], eax
jne 0x40d4ef
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.00410ac8
add esp, 0x18
xor al, al
jmp 0x40d6bc
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.00446e79
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x238]
push eax
call fcn.00446290
lea eax, [ebp - 0x444]
push eax
lea eax, [ebp - 0x238]
push eax
call fcn.004462a0
add esp, 0x24
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
jmp 0x40d574
xor edi, edi
cmp byte [ebp - 0xe], 1
jne 0x40d6a2
push dword [ebp - 0x18]
lea eax, [ebp - 0x164c]
push 0xfff
push eax
call fcn.00447204
add esp, 0xc
test eax, eax
je 0x40d6a2
inc dword [ebp - 0x14]
lea esi, [ebp - 0x164c]
mov byte [ebp - 0x64d], 0
call fcn.0040d2ba
mov eax, esi
call fcn.0040d2eb
test al, al
je 0x40d67b
mov edi, esi
call fcn.0040d28e
mov eax, esi
push eax
mov byte [ebp + 0x17], 0
call fcn.00446710
mov esi, eax
cmp esi, 2
pop ecx
jle 0x40d606
xor eax, eax
mov al, byte [ebp + esi - 0x164e]
and eax, 0x7f
push eax
call fcn.00446d0b
test eax, eax
pop ecx
je 0x40d606
lea eax, [ebp + esi - 0x164d]
cmp byte [eax], 0x5f
jne 0x40d606
mov byte [eax], 0
mov byte [ebp + 0x17], 1
cmp bl, 1
mov esi, dword [ebp - 0x1c]
jne 0x40d61c
lea eax, [ebp - 0x164c]
push eax
call fcn.0040cf99
jmp 0x40d668
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.0040d6d7
test eax, eax
je 0x40d664
cmp eax, 1
jle 0x40d668
cmp eax, 3
jle 0x40d650
cmp eax, 4
jne 0x40d668
mov byte [ebp - 0xe], 0
jmp 0x40d668
push dword [ebp + 0xc]
lea eax, [ebp - 0x164c]
push eax
push dword [ebp - 0x14]
call fcn.0040cf2f
jmp 0x40d668
mov byte [ebp - 0xd], 0
cmp byte [ebp + 0x17], 1
sete bl
cmp byte [ebp - 0xd], 1
je 0x40d572
jmp 0x40d6a2
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.00410ac8
add esp, 0x18
mov byte [ebp - 0xd], 0
push dword [ebp - 0x18]
call fcn.004472d6
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