The cerebral cortex is responsible for higher-order cognitive functions, such as perception, attention, memory, language, reasoning, and problem-solving. It is divided into lobes, including the frontal, parietal, temporal, and occipital lobes, each associated with specific functions.