Just went thru this excercise with my termite customized window frames which didn't look as bad as your photo. Initially I tried to putty up and repaint the damage but after the first window, seeing that I had all of the required equipment, I decided that it was actually easier and quicker to machine up some new parts, pull the windows out, and replace all of the damaged bits.