Read this: After their adoption, treaties as well as their amendments have to follow the official legal procedures of the United Nations, as applied by the Office of Legal Affairs, including signature, ratification and entry into force.
Now answer this question, if there is an answer (If it cannot be answered, return "unanswerable"): Which office of the United Nations is in charge of applying its official legal procedures?
the Office of Legal Affairs