you can patent a process, but it's much more difficult to get that approved by the USPTO. Software by itself is not patentable subject matter, has to have a process or function to it. The protection more than likely on any code is Copyright or Trade Secret based I would imagine.