Odd feature of Egypt constitution, as far as I'm aware: if the president resigns, power falls to the speaker of the parliament, not the vice president.
Remember though, the country is in a state of emergency (As it has been for the last 30 years). I am not sure those rules apply in a state of emergency.
I think in Egypt what happens is largely a matter of what the army lets happen.