Assuming your running Windows NT 5.0 or better, you can go to C:\Documents and Settings\%username%\Application Data\Mozilla\Firefox\Profiles and save/backup the folder in there. Then restore it after your reinstall. All your history, cookies, bookmarks, form history, and passwords will be available again.