User blog comment:Necrosanity/The Ultimate Conundrum Cracker/@comment-5420937-20130512141350

This is something only you would ask.

The real question is how long the corpse has been dead. This also depends on this person's body type, diet, and the condition it's in (cold or hot weather, humidity..etc). In normal conditions it should take a corpse one week to decompose, thus making its genitals turn to dust.

I think it maintains a gender as long as its genitalia is still intact.