Cairo is seeking to shore up domestic support and become an indispensable geopolitical player amid rising regional tensions.