If you downloaded Spore: Galactic Adventures without a legitimate registration code, that copy is both unusable and, in most cases, illegal. Pirated downloads lack valid codes precisely because they aren't authorized, and they can also carry security risks.
The proper fix is to purchase a genuine copy through an official retailer or storefront. A legitimate version comes with a working code, full support, and access to updates, so you can actually enjoy the game the way it was meant to be played.