If it was me I would do a few tests and get a good assessment of the condition of the engine. If you are not comfortable doing the work, I would get a mechanic you trust to check it out. And as you stated if the engine was neglected, it could be costly to get back to being a reliable DD, but that assessment will have to be made after doing a few tests and inspections.

Good Luck

Sean