So what you want to do with a hook, is to create a jump between the original function to your function.
A detour consists of a jump, [0xE9] [0xE8] op codes.
One way is to Get the address to your function, and use the E9 op code to create a jump.
memcpy <<