If Brazil wins against England and Oman, Spain will need 522 points from the two friendlies - Argentina and Austria, in order to reclaim top spot in the FIFA ranking.
For a match against Argentina, Spain can get between 0 (loss) and 576.18 points (win). A draw will get Spain 192.06 points.
Against Austria it's: 0 (loss), 142 (draw), 426 (win).
So Spain needs to
Win against Argentina
Draw against Argentina and win against Austria.
This would probably be a good thing for their centenary celebration.