First you need to decide what you want exactly unless you know exactly what you want talking to the lawyers or even your company is pointless as you need to know your position before you can start any kind of real negotiation
1. financial ompensation
2. Control over what happens in the future with the code.