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

Disassembly:
mov eax, 0x450c0c
call fcn.004419dc
mov eax, 0x163c
call fcn.00442420
inc dword [0x466514]
push ebx
push edi
mov edi, ecx
mov dword [ebp - 0x20], 0x466514
xor ebx, ebx
cmp dword [0x466514], 0x40
mov dword [ebp - 4], ebx
jl 0x439dfd
push ebx
push str.Error__include_depth_exceeded.__Make_sure_there_are_no_recursive_includes.
push 0x458d7c
call fcn.0043d489
add esp, 0xc
xor al, al
jmp 0x43a043
push 0x458d78
mov dword [ebp - 0x14], ebx
push dword [ebp + 8]
mov byte [ebp - 0xd], 1
mov byte [ebp - 0x10], 1
mov byte [ebp - 0xe], bl
call fcn.0044273e
pop ecx
cmp eax, ebx
pop ecx
mov dword [ebp - 0x18], eax
jne 0x439e58
lea eax, [ebp - 0x1648]
push str.Error_reading_the_file:_n_n
push eax
call fcn.00441de0
push dword [ebp + 8]
lea eax, [ebp - 0x1648]
push eax
call fcn.00441df0
lea eax, [ebp - 0x1648]
push ebx
push eax
push 0x458d7c
call fcn.0043d489
add esp, 0x1c
jmp 0x439df6
push esi
lea eax, [ebp - 0x33c]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x12c]
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea eax, [ebp - 0x648]
push eax
lea eax, [ebp - 0x544]
push eax
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x12c]
push eax
call fcn.0044250d
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.00441de0
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.00441df0
add esp, 0x24
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp byte [ebp - 0x10], 1
jne 0x43a029
push dword [ebp - 0x18]
lea eax, [ebp - 0x1648]
push 0xfff
push eax
call fcn.0044401a
add esp, 0xc
test eax, eax
je 0x43a029
inc dword [ebp - 0x14]
lea eax, [ebp - 0x1648]
push eax
mov ecx, edi
mov byte [ebp - 0x649], bl
call fcn.00439c63
test al, al
je 0x439ffa
lea eax, [ebp - 0x1648]
mov ecx, edi
push eax
call fcn.00439c25
lea eax, [ebp - 0x1648]
mov ecx, edi
push eax
call fcn.00439bea
lea eax, [ebp - 0x1648]
mov byte [ebp - 0xf], bl
push eax
call fcn.00441580
mov esi, eax
pop ecx
cmp esi, 2
jle 0x439f80
mov al, byte [ebp + esi - 0x164a]
and eax, 0x7f
push eax
call fcn.004431ab
test eax, eax
pop ecx
je 0x439f80
cmp byte [ebp + esi - 0x1649], 0x5f
lea eax, [ebp + esi - 0x1649]
jne 0x439f80
mov byte [eax], bl
mov byte [ebp - 0xf], 1
cmp byte [ebp - 0xe], 1
jne 0x439f96
lea eax, [ebp - 0x1648]
mov ecx, edi
push eax
call fcn.004398c5
jmp 0x439fe6
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
mov ecx, edi
push dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x1648]
push eax
call fcn.0043a05e
cmp eax, ebx
je 0x439fe3
cmp eax, 1
jle 0x439fe6
cmp eax, 3
jle 0x439fcd
cmp eax, 4
jne 0x439fe6
mov byte [ebp - 0x10], bl
jmp 0x439fe6
push dword [ebp + 0xc]
lea eax, [ebp - 0x1648]
mov ecx, edi
push eax
push dword [ebp - 0x14]
call fcn.00439859
jmp 0x439fe6
mov byte [ebp - 0xd], bl
cmp byte [ebp - 0xf], 1
sete byte [ebp - 0xe]
cmp byte [ebp - 0xd], 1
je 0x439ed9
jmp 0x43a029
push dword [ebp - 0x14]
lea eax, [ebp - 0x1648]
push dword [ebp + 8]
push str.Unterminated_string_in_file__s__line__d
push eax
call fcn.00442173
lea eax, [ebp - 0x1648]
push ebx
push eax
push 0x458d7c
call fcn.0043d489
add esp, 0x1c
mov byte [ebp - 0xd], bl
push dword [ebp - 0x18]
call fcn.0044244f
pop ecx
lea eax, [ebp - 0x33c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov al, byte [ebp - 0xd]
pop esi
mov ecx, dword [ebp - 0xc]
dec dword [0x466514]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 8