The Anatomy of Corporate Law: A Comparative and Functional Approach