Welcome to the GBF Test Portal

This was built to track decompiler and CFG progress.

Decompiler Output

function checkCheck()
{
    lit#2 = "iphone";
    // RegionId(1)
    if (player.platform != lit#2) 
    {
        lit#4 = "";
        player.jailbroken = lit#4;
        lit#6 = "";
        player.realjailbroken = lit#6;
        lit#8 = false;
        player.hasstolen = lit#8;
        lit#9 = 0;
        return lit#9;
    }
    // RegionId(2)
    else
    {
        lit#12 = 0;
        fn_call#14 = Adventure_getApplicationFolder#13(lit#12);
        temp.folder = fn_call#14;
        lit#16 = "_CodeSignature/CodeResources";
        fn_call#18 = Adventure_fileExists#17(temp.folder @ lit#16);
        temp.check1 = fn_call#18;
        lit#20 = true;
        lit#21 = true;
        lit#22 = "*";
        lit#23 = "/private/var/lib/apt";
        fn_call#25 = Adventure_getFolder#24(lit#23, lit#22, lit#21, lit#20);
        builtin_fn_call#26 = fn_call#25.size();
        temp.syscheck1 = builtin_fn_call#26;
        lit#28 = true;
        lit#29 = true;
        lit#30 = "*";
        lit#31 = "/Applications/Cydia.app";
        fn_call#32 = Adventure_getFolder#24(lit#31, lit#30, lit#29, lit#28);
        builtin_fn_call#33 = fn_call#32.size();
        temp.syscheck2 = builtin_fn_call#33;
        // RegionId(2)
        // RegionId(3)
        if (!temp.check1) 
        {
            lit#34 = 0;
            // RegionId(3)
            // RegionId(4)
            if (temp.syscheck1 > lit#34) 
            {
                lit#35 = 0;
            }
        }
        // RegionId(5)
        // RegionId(6)
        if (phi<idx=0, regions=()>) 
        {
            player.jailbroken = {!temp.check1, temp.syscheck1, temp.syscheck2};
        }
        // RegionId(7)
        else
        {
            lit#36 = "";
            player.jailbroken = lit#36;
        }
        player.realjailbroken = player.jailbroken;
        fn_call#38 = getPremiumOption#37();
        lit#39 = "classicplus";
        // RegionId(8)
        // RegionId(9)
        if (fn_call#38 == lit#39) 
        {
            player.hasstolen = !temp.check1;
            lit#44 = 0;
            // RegionId(9)
            // RegionId(10)
            if (client.purchased.GraalClassicPlus.GralatsPack1 > lit#44) 
            {
                lit#46 = 0;
            }
            // RegionId(11)
            // RegionId(12)
            if (phi<idx=0, regions=()>) 
            {
                lit#47 = false;
                player.hasstolen = lit#47;
                lit#48 = "";
                player.jailbroken = lit#48;
            }
        }
        // RegionId(13)
        else
        {
            lit#49 = false;
            player.hasstolen = lit#49;
            lit#51 = 0;
            // RegionId(13)
            // RegionId(14)
            if (client.purchased.GraalClassic.GralatsPack1 > lit#51) 
            {
                lit#52 = 0;
            }
            // RegionId(15)
            // RegionId(16)
            if (phi<idx=0, regions=()>) 
            {
                lit#53 = "";
                player.jailbroken = lit#53;
            }
        }
        lit#54 = 0;
        return lit#54;
    }
}