For the vast majority of UBB's files, their names are pretty explanitory of their function. Ex: ubb_forum_summary.cgi controls the forum summary (main) page, ubb_lib_files.cgi (and others that have similar names) control the file i/o and stuff. Template files end in .pl and usually have matching or similar names to their .cgi program file counterparts - public_forum_summary.pl controls the display of the main page, and works closely with ubb_forum_summary.cgi.
Thus, if you see something that you want to add to the main page, all or most of your hacking should be in ubb_forum_summary.cgi (to create it) and public_forum_summary.pl (to display it). Anything that requires input/output to/from files should use ubb_lib_files.cgi.
There is not, to my knowledge, any actual list of the exact functions of every single file, or a list of all the variables/functions of UBB and their corresponding files. No one wants to do that. If you think you want to hack, that should be stuff you oughta be able to figure out by yourself. If you can't figure it out, you probably shouldn't be messing with stuff anyway.
Look in our 6.1 Mods forums (not sure which one exactly) for some notes Charles Capps (UBB's primary programmer) posted about proper hacking in 6.1 as far as file handling and things such as that.
---Skorpion