The folding of proteins with a complex knot is still an unresolved question. Based on representative members of Ubiquitin C-terminal Hydrolases (UCHs) that contain the 52 knot in the native state, we explain how UCHs are able to unfold and refold in vitro reversibly within the structure-based model. In particular, we identify two, topologically different folding/unfolding pathways and corroborate our results with experiment, recreating the chevron plot. We show that confinement effect of chaperonin or weak crowding greatly facilitates folding, simultaneously slowing down the unfolding process of UCHs, compared with bulk conditions. Finally, we analyze the existence of knots in the denaturated state of UCHs. The results of the work show that the crowded environment of the cell should have a positive effect on the kinetics of complex knotted proteins, especially when proteins with deeper knots are found in this family.