Clean up PuTTY WinMain a bit

Explicitly use A functions, braces on their own lines