the small , useless sword at his side and his broad-brimmed hat with its dripping plume marked him as a courtier , one of the petty functionaries and parasitic hangers-on who infested the palace like vermin .