The Origin of the Stellar Mass Distribution and Multiplicity