Towards Advanced Mathematical Reasoning for LLMs via First-Order Logic Theorem Proving