First -- IF present, WILL base. (base = base form of verb)
Second -- IF past, WOULD base. Third -- IF HAD past participle, WOULD HAVE past participle
If I win a lot of money, I will buy a new car. If I won a lot of money, I would buy a new car. If I had won a lot of money, I would have bought a new car.