/Engine/Source/Runtime/Engine/Classes/Animation/AnimMontage.h
It will break down the range into steps if needed to handle looping animations, or different animations. These steps will be processed sequentially, and output the RootMotion transform in component space.
FTransform ExtractRootMotionFromTrackRange ( float StartTrackPosition, float EndTrackPosition ) const