please help me detangle this nightmare wig

so when I was a lot newer to cosplay than I am now I unfortunately mistreated this wig pretty badly and I have no clue how to even start to detangle it, some parts have genuinely tangled into loc like structures and I'm tearing my own hair out, it's a cheap Amazon wig so likely synthetic and not at all heat resistant, photo both with and without flash of the worst area