Extract running msginit code