The company's $5.2 billion profit for the first half of 2024 is its best result since its inception.