Created
May 10, 2016 11:27
-
-
Save TuxSH/9ac11e6a4885e2802e4dfb2223e760b2 to your computer and use it in GitHub Desktop.
AMPXI_InstallFIRM
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* old */ | |
// ... some code ... | |
if ( (unsigned int)(v8 << 14) >> 24 != 17 || (v8 & 0x3FF) < 100 || (v8 & 0x3FF) > 179 ) | |
{ | |
if ( v8 < 0 ) | |
goto LABEL_14; | |
v8 = sub_804A578(&v15); | |
if ( v8 < 0 ) | |
goto LABEL_14; | |
if ( sub_8043F7C(v19, 0) >> 31 == -1 ) | |
{ | |
v8 = sub_804E384(v19, 0, &v15); | |
if ( v8 >= 0 ) | |
{ | |
v10 = 1; | |
v11 = &v15; | |
LABEL_20: | |
v8 = sub_804E384(v19, v10, v11); | |
if ( v8 >= 0 ) | |
{ | |
v9 = 0; | |
goto LABEL_22; | |
} | |
goto LABEL_14; | |
} | |
} | |
else | |
{ | |
v8 = sub_804E384(v19, 1, &v15); | |
if ( v8 >= 0 ) | |
{ | |
v10 = 0; | |
v11 = &v15; | |
goto LABEL_20; | |
} | |
} | |
LABEL_14: | |
v9 = v8; | |
goto LABEL_22; | |
} | |
v9 = 0xD8A083FA; | |
LABEL_22: | |
sub_805AFF2(&v15); | |
return v9; | |
} | |
/* new (11.0) */ | |
// ... some code (seemingly identical) ... | |
if ( (unsigned int)(v8 << 14) >> 24 != 17 || (v8 & 0x3FF) < 100 || (v8 & 0x3FF) > 179 ) | |
{ | |
if ( v8 < 0 | |
|| (v8 = sub_22238(&v14), v8 < 0) | |
|| (v10 = (sub_1C0D0(v18, 0) >> 31) + 1, v8 = sub_1C010(v18, v10, &v14), v8 < 0) | |
|| (v8 = sub_1C010(v18, 1 - v10, &v14), v8 < 0) ) | |
v9 = v8; | |
else | |
v9 = 0; | |
} | |
else | |
{ | |
v9 = 0xD8A083FA; | |
} | |
sub_31C4C(&v14); | |
result = v9; | |
} | |
return result; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment