Catalyzes the pyrimidine ring opening between N-3 and C-4 by an unusual flavin hydroperoxide-catalyzed mechanism, adding oxygen atoms in the process to yield ureidoacrylate peracid, that immediately reacts with FMN forming ureidoacrylate and FMN-N(5)-oxide. The FMN-N(5)-oxide reacts spontaneously with NADH to produce FMN. Requires the flavin reductase RutF to regenerate FMN in vivo