Get the Whitepaper called Format String Exploitation On Windows Using Immunity Debugger / Python.
You can download it from the following link: https://packetstormsecurity.com/files/download/74849/format-win.pdf
Source: https://packetstormsecurity.com/files/74849/Format-String-Exploitation-On-Windows.html