I am afraid that it is a windows problem and not related to Avast (I did not believe it was)

You will need to reinstall the system I am afraid. Do you have a backup or image ?