It's in python, but the mobi_unpack program has a wealth of code examples for finding and parsing the EXTH section of a mobi. It can be found five threads down,
The very latest code is in
this post
There should be no compression on the EXTH section to worry about.