S1 flashtool written in C