I have an exe file and want to disassemble them. reverse engineering tools determine how many sections and functions this file consists of.

Now I want to have those functions separately as files. Now either in a text file or in any format. I just want to have these files separately.
The following script should get you started or even already address your need: