The building in Chinatown where an enormous blaze started late Sunday night had more than two dozen open violations for hazardous conditions, including missing smoke detectors, lead paint and other problems that signified a history of neglect, city records show.