"Reverse engineering" seems a bit pointless when Google has open sourced the code for Google Earth Enterprise:
https://github.com/google/earthenterprise
(Update: The client was not open sourced, just the server.)
However, this doesn't give you carte blanche to use Google's own imagery: