Doing business in Latin America’s biggest economies has never been easy for foreign companies because of complex regulations.