1. I will split the normalization and patch logic into separate patches. 2. That would be amazing if you could provide your test cases! Would be so kind as to share a patch? 3. The reordering was due to dependence, `GetFilePatchSignatureA` depends on `GetFilePatchSignatureByHandle` which depends on`GetFilePatchSignatureByBuffer` which depends on `NormalizeFileForPatchSignature`. 4. I will add some better traces. Whilst debugging I found traces to be unhelpful and overly verbose. I prefer single stepping/breakpoint debugging as it is far better for actual debugging, especially for this case.
Thanks for the help, I'll get this done tomorrow!