Upgrading a corrupted installation of Windows to a newer version really isn't advised. The current problems that your system has can be carried over (and even magnified) in the course of the upgrade.
Additionally, with Windows 98/95/ME it's ideally better do buy a full Version of XP and install from scratch rather than doing an upgrade.