Foreign powers are scrambling to secure their interests as President Bashar al-Assad faces his most precarious position in more than a decade of civil war.