The function of a core switch in a large-scale LAN is to connect different LANs together. It serves as the central point of connectivity within the network, allowing for communication between various segments and managing the flow of data between different devices and networks. The core switch plays a critical role in ensuring that data can be efficiently transmitted between different parts of the LAN, facilitating seamless communication and network operations.