(Backup first.)
A start...
Know where your Profile folder is & what is in it.
How do you know your Profile was corrupt?
Extensions & themes are installed.
So you have copies of your extensions & themes?
Settings thereof are often stored in pref.js.
Some extensions may have an Export function to export your settings? (And maybe an import to import them anew?)
For items stored in places.sqlite, you may be able to wholesale copy old places.sqlite overtop new (with browser closed). If places.sqlite happened to be corrupted ? you might be able to fix it ? or you might be able to export various parts (in various ways), or you may (already) have backups of bookmarks (in /bookmarkbackups/) that may be viable.
A start...
Know where your Profile folder is & what is in it.
How do you know your Profile was corrupt?
Extensions & themes are installed.
So you have copies of your extensions & themes?
Settings thereof are often stored in pref.js.
Some extensions may have an Export function to export your settings? (And maybe an import to import them anew?)
For items stored in places.sqlite, you may be able to wholesale copy old places.sqlite overtop new (with browser closed). If places.sqlite happened to be corrupted ? you might be able to fix it ? or you might be able to export various parts (in various ways), or you may (already) have backups of bookmarks (in /bookmarkbackups/) that may be viable.