Animation Interpolation


we are trying to change the interpolation method for animations inside the engine itself, with one of our own, but we are a little confused due to the complexity of the code.
Can you help us by pointing us to to the right direction ?
For example, in which cpp file does UE calculate the quaternions for the animation?

Many thanks in advance.