What is this StandardFirmata_ModifiedAll code doing?

Thank you PaulS for response,
If you download from the link I gave, then you may get the GUI using Visual Basic.
In the folder you can get Arduino Code and Arduino Firmata VB, where the Arduino Code is going to be uploaded to Arduino UNO device,
the reason I would like to understand the code is because my arduino not UNO but I am using MEGA...
Can you give more suggestion and input ?

PaulS:
The idea behind Firmata is that you don't need to understand the sketch in order to be able to develop applications in Processing or VB or other languages that operate the Arduino as a dumb device.

I would like to understand what the code is doing so I can modify it and improve the GUI.

The code that you posted a snippet of does not display a GUI, so you are looking at the wrong code.

Hmm, could you explain explicitly what you mean with dumb device?
Why no need to understand the sketch?