Andrea Pinheiro thought she was done with banking when a friend invited her to start a merger-advisory firm in 2009.

Three years later BR Partners, the company founded in Sao Paulo by Pinheiro and Ricardo Lacerda, Goldman Sachs Group Inc.’s former Brazil chief executive officer, is an investment bank taking market share from bigger rivals with help from its executives’ connections and a singular focus on Brazil.