the sf4viewer tool only views but does not extract

how to create a script to extract these EMA files ?
ema file
https://mega.nz/#!dOx1lJrK!2jA7uhPLHlPe ... bE9COm2wOg
code of the program to view the files
https://sourceforge.net/p/sf4viewer/cod ... /EMAData.h
https://sourceforge.net/p/sf4viewer/cod ... Renderer.h
https://sourceforge.net/p/sf4viewer/cod ... /EMAView.h