What can you find out with an endometrial biopsy?

Much. It can determine many things including precancerous and cancerous tissue, fertility status, and reasons for heavy or irregular bleeding.