When I read the EULA of softwares sold in France, they often contain restrictions on reverse engineering. In France, reverse engineering is a protected right for interoperability purpose. If some parts of the EULA are illegal, how can it be a legal binding contract.
If France(as is in pretty much everywhere in the EU) any EULA that is accepted by default by opening a product(think MS Windows packaging) is void by default, because courts ruled that opening a package does not constitute entering a legally binding contract,no matter what the packaging says.
Because in France, a judge may very well decide that some part of the contract is illegal but consider that the remaining still holds. That happens all the time.