Registration codes exist for a simple reason: they tie a licence to a specific copy. Every legitimate copy is generated with its own unique string, which is why a code posted online almost never matches the copy you own.
Start with the obvious places. Check the manual, the back of the jewel case, the underside of the disc sleeve, and any email receipt from the original purchase. Digital storefronts keep licence keys in your account's library or order history.
If the publisher ran a registration system, they may be able to resend your key after verifying proof of purchase. Have your receipt, order number and the email address you used ready.
Then the honest answer is that a replacement usually means buying another copy. Key generators and shared serials are piracy, and they are also a reliable way to end up with a locked or malware-laden install.