The sentence does not make sense. However, it would make sense if you were to say "... attaining the object at the end of it." meaning "getting the desired thing you had in your mind, after you finish doing something. "at the end of it" means at the end of doing something.