Complex sentence: He then left the base to compete in a major horse race in which he betted the rest of the money on himself, hoping to be able to pay back the cash taken from the safe.
Split into simpler sentences: He then left the base to compete in a major horse race in which he betted the rest of the money on himself. Ennabling him hopefully to be able to pay back the cash taken from the safe.