Answer: Infinitive phrase use as noun, to complement
Explanation:
An infinitive phrase is an infinitive form of a verb plus any compliments and amplifiers.
The function of "to be restored as captain"
The infinitive verb is "to be restored" the complement is its direct object "as captain". They all made up the infinitive phrase.