The regime in Tehran knows it likely can’t win the war, but it can certainly globalize the pain of the conflict—even if it’s ultimately at its own expense.