I forgot most of the details, but there used to be an obscure play in some European countries where the owner of a stock on a specific date gets a cash payment if they live in the country.
The over simplified version of how to make money on this is person A owns the stock, they lend it to person B who lives in the country. Person B gets the cash payment, returns the stock, and some of the cash payment to A. When B "borrows" a stock, they are the owner of the stock, plus they have a contract to give the stock back to A at some future date. So it's legal.
Last I heard, this was being phased out by one country after another. Each year, there was less and less opportunity to make any money. It might be totally gone now.