C++ code to extract files from .deb file(Debian) on windows platform

I've been give a task to write a short C/C++ program to
extract files from a .deb file on windows platform
I know there are tools like 7zip that do it but I need
to code it).
Could someone please give me a push in the right direction
(too much rust and too little experience :$.)

* debian-binary: deb format version number.
This is "2.0" for current versions of Debian.
* control.tar.gz: all package meta-information.
* data.tar or data.tar.gz or data.tar.bz2 or
data.tar.lzma or data.tar.xz: the actual installable files.

The debian-binary file must be the first entry in the archive,
otherwise it will not be recognized as a Debian package.