What file processes the registration page?

What file processes the registration page?

I would like to add a first name and last name input to the registration page that concatenate to make a username on processing.