int __thiscall sub_FFD8040B(_BYTE *this)
{
int v3; // [esp+8h] [ebp-8h] BYREF
sub_FFD8C578(-983041, 0); /*0xffd80425*/
if ( (*(this + 3504) & 1) != 0 ) /*0xffd80434*/
{
sub_FFD8C578(-1, 16); /*0xffd8047a*/
LABEL_6:
MEMORY[0xFE0005D0] = 0x80000000; /*0xffd80481*/
return sub_FFD8C578(-1, 1); /*0xffd80481*/
}
if ( (*(this + 3504) & 2) != 0 ) /*0xffd8043d*/
{
sub_FFD8C2A0(0xB8u, 4u, 4, &v3); /*0xffd8044a*/
if ( (v3 & 0x600) != 0 ) /*0xffd8045d*/
goto LABEL_6; /*0xffd8045d*/
}
sub_FFD8C578(-17, 1); /*0xffd80468*/
return sub_FFD8C578(-1, 1); /*0xffd8049b*/
}