Re: Where is functions for do_action ?
This will tell you about hook and action programming in WordPress: https://codex.wordpress.org/Plugin_API
The do_action() calls are there for you to add your own hook functions, and in some cases will also invoke hook functions that BuddyPress / Themes / other plugins have added.
You can add your own hook function that is called when the do_action ‘bp_before_registration_confirmed’ is invoked. You use add_action to add your actions.