Oh, lol. Really. I did not even notice.
Also, in my tool I implemented a database of formats. If it encounters a similar magic (in hex), or the action is successfully executed, it assigns to the file the format specified in "ext" field.
Where in action [1] and [2] are 8 * 0 for readInt32 and...