_All of it_. The leaked binaries had been literally used, and even contained portions of the program (which are not strictly required for interporability). It was as unclean as it gets.
There is nothing illegal about running retail games using a compability layer, nor fixing their incompabilities (see WINE). I have no reason to believe code from the game is used in the codebase either, but I would be interested in learning otherwise.