[PATCH v2 2/3] mspatcha: Implement ApplyPatchToFile and related functions.