The Law and Economics of Reverse Engineering