(CNN) -- Barcelona will meet arch-rival Real Madrid in the semifinal of the Copa del Rey after Leo Messi fired the Catalans past Malaga Thursday. 

The Argentina international scored his 40th goal of the season as Barca claimed a 4-2 win to prevail 6-4 on aggregate and set up two more 'El Clasico' games. 

It will give Barcelona, which is top of La Liga, the opportunity to avenge its defeat by Jose Mourinho's men in the 2010 final. 

Messi and Ronaldo ensure honors shared in 222nd El Clasico 

With Real trailing Barca by 15 points in the league, Mourinho will be desperate to regain the trophy which Pep Guardiola lifted in his final game in charge at the Camp Nou last season. 

But if the current Spanish champions are to triumph, they will have to stop Messi and his accomplices, who continue to prosper despite the absence of coach Tito Vilanova. 

Vilanova, who is undergoing treatment for cancer, left deputy Jordi Roura in charge, but it made little difference as Barca continued its hot streak. 

The statistics are frightening. Barcelona have now scored 100 goals in its 34 goals this season. 

It is the fourth year in succession that Messi has reached the 40-goal mark, while his late header also made it 23 goals in his past 15 starts. 

With the tie level at 2-2 going into the second leg, Barcelona made the perfect start when Pedro headed home after just eight minutes. 

Messi leads Barcelona to new record 

But Malaga fought back and Joaquin equalized four minutes later with a neat finish following wonderful interplay. 
How many goals has Barcelona scored?
Barcelona have now scored 100 goals 