Bootstrapping pentagon functions