Create group URL is the only URL that handles this. It will not redirect to registration though. For that you'd need to modify the below file and adjust the redirect of the create group URL. Please note I can not help you with modifications to core code as it is unsupported.
components/com_comprofiler/plugin/user/plug_cbgroupjive/component.cbgroupjive.php
The alternative is if you're rendering this somewhere that CB substitutions are supported as you could use IF conditions to check if the user is logged in or not and display a button with different behavior based off that. Please see the substitution tutorial below for substitution usage information.
www.joomlapolis.com/support/tutorials/107-use-cases/18353-using-substitutions-throughout-cb