Assuming you're adding the new fields to the User object, you will use the UserInfo
class.
UserInfo ui = new UserInfo();
ui.SetValue("MyCustomField", "my value here");
UserInfoProvider.SetUserInfo(ui);
Another option is to use an alternative form for the registration webpart and not write any code.