Reaction of alkenes with AlCl3/HCl

I stumbled upon an interesting organic chemistry problem:



> 
> [![Reaction of AlCl3 with alkenes](https://i.stack.imgur.com/3rmQC.png)](https://i.stack.imgur.com/3rmQC.png)
> 
> 
> 


Previously I thought $\ce{AlCl3}$ would only be used with benzene in acylation and alkylation, but apparently it can also be used in reactions with alkenes. Because of this, I am wondering what the product of the reaction above will be. My first thought was that there is an addition of $\ce{HCl}$ to the alkene and then the $\ce{AlCl3}$ would react in some way, though this is very likely incorrect. This left me wondering what the role of $\ce{AlCl3}$ is in this particular reaction and whether the $\ce{HCl}$ is just a catalyst. 


