Unreal Past II.
Express imaginary situations that were actually not true in the past.
Structure:
If+had+past participle,might/could/would+have+past participle
Here is a video that can help you to understand better:
Examples:
If I had born in Alaska, I would have been happier.
If I had been a pirate in 793, I would have stolen treasures.