Reverse engineering
Reverse engineering attempts to discover the original problem-solving logic used in developing a product by taking it apart.