in reply to Model the Logic in existing code

This is what UML is for. Try a data flow diagram or (good luck) use cases. Visio helps