A Buffalo medical technology company lost more than $1.2 million to fraudsters who impersonated a general contractor working on one of its construction projects, according to a new court filing.