If you do something that requires stealing the code (publishing it, selling it, etc) the company can legally fuck you up.
Now, once it's in tbe wind, it becomes almost impossible to pursue from a practical point of view, as any implementer can claim trade secrets to avoid showing you the code.