This paper proposes a simple model to study the relationship between domestic institutions - financial system, corporate governance, and property rights protection - and patterns of international capital flows. It studies conditions under which financial globalization can be a substitute for reforms of domestic financial system. Inefficient financial system and poor corporate governance in a country may be completely bypassed by two-way capital flows in which domestic savings leave the country in the form of financial capital outflows but domestic investment takes place via inward foreign direct investment. While financial globalization always improves the welfare of a developed country with a good financial system, its effect is ambiguous for a developing country with an inefficient financial sector/poor corporate governance. However, the net effect for a developing country is more likely to be positive, the stronger its property rights protection. This is consistent with the observation that developed countries are often more enthusiastic about capital account liberalization around the world than many developing countries. A noteworthy feature of this theory is that financial and property rights institutions can have different effects on capital flows.