Create msiapi.c

Just something I threw together quickly.

Please forgive me if there bugs.