Teraphy [PC] made a good (imo) patcher that supported different types of patching, and if i'm correct, even supporting the method that you are looking for -- but I just can't find the website anymore, I'll look some more. The program was created in 100% win32asm, that I recall. Perhaps if you are persistent enough you may be able to contact Teraphy and they'll be able to help you out. Or, you can just download the patcher + disassembler and analyze that part of the routine and try to implement it.
If someone has the patcher, please upload it here, I might "analyze" it myself
STOP"