Pakistan are almost certain of qualifying for the quarter-finals if they win Thursday's match.