I can offer no useful advice to you other than you should track down the cretinous wretch who wrote that garbled mess of hopelessly unmaintainable code, and take steps to ensure that they are never again allowed unsupervised access to a code editor. Their crimes against programming should not go unpunished.