This study, in the first step, presents a model that determines the optimal capital structure and specifies the definition of the capital structure based on the debt and performance ratios of the institutions. To achieve this, the relationship between independent variables and capital structure is assessed through a dynamic GMM model. In the next step, we examine the effects of the capital structure on the profitability of investment in different thresholds, which confirms the two thresholds both in Iran and in the countries of South-East Asia. In this study, data and financial information of 231 companies accepted in Tehran Stock Exchange and 1474 companies in Southeast Asian countries were used. The results show two thresholds of the three regimes in Iran and the countries of Southeast Asia. In Iran, the greatest effect of the debt ratio on profitability is observed in the first regime, while in the second regime decreasing effects and in the third regime a tremendous negative effect is seen. However, in South-East Asia, the greatest effect of the debt ratio on profitability is in the second regime, while the first regime it has a downward effect, and in the third regime it has negative effects. As a result, in Iran, companies should leverage their debt ratios to the level of the first regime to prevent losses and even bankruptcy, whereas in South-East Asia, the debt ratio can reach to the level of the second regime.