Please do not post CB related questions within CBSubs boards. Thread moved. Onto your issue.
The registration process is not a single function and not a single file. It spans across numerous files and API usages. The main file you'll find the registration function in is comprofiler.php, please review closely.