This will allow you to play kingmaker and gain 6 points, or ignore action 4 and do nothing, but not stay neutral and gain 2:
Some assumptions: Each opponent has 2 Provinces. Opponent 1 has one Duchy, Opponent 2 has five Duchies, and Opponent 3 has six Duchies (and two curses). All other VP's have come from VP tokens. There are 3 Provinces left, and the Duchy pile is the other empty pile. The kingdom cards are Peddler, Fairgrounds, Duke, Rabble, King's Court, Throne Room, Swindler, Bishop, Witch and Village.
1. Play Throne Room.
2. Use it to play King's Court.
3. Use it to play Rabble. After drawing a lot of nothing and a Swindler, each opponent ends up with a Duchy and 2 Provinces on top of their deck, in any order.
I have no actions left. However, I can now either opt to not play the Swindler using King's Court, and do nothing, or:
4. Use King's Court to play Swindler. Then, I turn all Duchies into Rabbles/Witches, and all Provinces into Peddlers, except where otherwise stated. The final scores are shown in player order (not including myself) after each combination:
1,2,3 - Each player gets 1 province (28, 24, 19)
1,3,2 - P1 gets 2 provinces, P3 gets 1 province and a duke (34, 18, 24)
2,1,3 - P2 gets 2 provinces and a duke, P1 gets 1 province (28, 34, 13)
2,3,1 - P2 gets 2 provinces and a duke, P3 gets 1 province and a duke (22, 34, 24)
3,1,2 - P3 gets 2 provinces and a duke, P1 gets 1 province (28, 18, 29)
3,2,1 - P3 gets 2 provinces and a duke, P2 gets 1 province and a duke (22, 28, 29)
Finally, buy a fairgrounds for 6 coin, and it's worth 6 VP because I cleverly bought 1 of every kingdom card and treasure during the game (no wonder I am in last place). Note that in 1 of these outcomes, this will place you higher than opponent 3, and in another 2 outcomes, you will be tied for 3rd place with player 2.
Yes, it's not perfect but it is satisfying enough for me. Very interesting puzzle!