Upvote:9
As your journey originated at an EU airport, it is covered by the EU air passenger rights.
Your booked flight was cancelled between 7 and 14 days in advance, and you were offered rerouting that would make you arrive at your final destination more than 4 hours late. This means that you're entitled to compensation. As the distance between origin and final destination is more than 3000 km, the compensation should be 600 euro.
(The delay on the first leg is is not relevant for this, because it did not contribute to you being late at your final destination).
The airline may try to wiggle out of paying compensation because the leg that was rescheduled was entirely outside the EU. However, this will not fly after the decision by the European Court of Justice in Wegener v. Royal Air Maroc, ECLI:EU:C:2018:361 earlier this year. The court explicitly said that the air passenger rights keep applying after a layover outside EU/EEA, when the entire journey was booked together.