An Egyptian film which graphically tackles subjects such as homosexuality, abuse and terrorism in the Arab world has broken box office records after release in its country of origin.