menu_router_build in includes/menu.inc
Collects and alters the menu definitions.
system_get_module_admin_tasks in modules/system/system.module
Generate a list of tasks offered by a specified module.