No, there is no such function, because there is little need for it. If you recreate the Windows logins, they will automatically be mapped correctly to the corresponding database users. For recreating the Windows logins, you could look into sp_help_revlogin (http://support.microsoft.com/kb/246133/, http://blogs.msdn.com/lcris/archive/2006/04/03/567680.aspx)
What is the exact scenario you are trying to address?
Thanks
Laurentiu