Don’t try to save the carpet, I have never been able to pull the musty smell out of the carpet and the padding below. Rip it out, seal the floor with a water membrane/ barrier to prevent moisture from coming up thru the concrete, and then put down a snap style engineered floor with a moisture barrier style under pad.