The procedure specified is by the system setting "PublishDownloadFileProcedure". It is used get files when publish/file.aspx?id=xxx is called.