It sounds like it came with CleanFlight on it. This is the LibrePilot forum. LP is a different "brand" of firmware for flying these things.
It's kind of like your Mac computer hard drive failed and you have a replacement and you are asking for help on the Windows forum.
You can put Windows on your Mac, but is that what you wanted? We can help you put LP on it, but generally don't know as much about CF as the CF folks do.
To further complicate the issue, you have a different FC (flight controller) than it came with. LP doesn't officially support the SPRacing F3 (soon though) but we do support the CC3D. Another issue is connectors. I kind of doubt that the connectors that plug in the SPRacing FC will plug in the CC3D FC. Do you know how to solder? Soldering is almost a requirement, and especially so if you are changing the brand of FC in the quad.
Putting LP on it will be like building a copter from scratch. It won't be just "drop it in and it flies". There is setup and calibration to do, but LP makes that less painful than some. Actually that will be true (setup and calibration needed) for CleanFlight as well ... unless you can get a default configuration file from the company that makes these quads, or from someone that has one. I am perhaps making an invalid assumption that the SPRacing config will work on a CC3D controller.
So basically you have a several ways to go. CF or LP. CC3D or SPRacing F3. I hate to say it, but you might be better served (e.g. connectors) by getting an exact replacement FC and using CleanFlight.