I would just measure it's length to make sure you've got it right, and grease and install a new one, they are cheap enough. Most use a stock Bug cable.
Be attentive when you install, keep the bends smooth and as straight as possible.
If the old cable was rubbing or kinked, it will never run smooth. Sometimes the vinyl jacket gets cut, then moisture does it's work rusting the steel cable and sheath.