Welcome to the GBF Test Portal

This was built to track decompiler and CFG progress.

Decompiler Output

function public.openAppStore(appid#0)
{
    lit#6 = "android";
    // RegionId(1)
    if (player.platform == lit#6) 
    {
        lit#7 = "350608510";
        lit#8 = "343297938";
        // RegionId(1)
        // RegionId(2)
        if (appid#0 in {lit#8, lit#7}) 
        {
            lit#9 = "B00CH3W8ZI";
            temp.amazonid = lit#9;
        }
        // RegionId(3)
        else
        {
            lit#10 = "406419217";
            lit#11 = "406674031";
            // RegionId(3)
            // RegionId(4)
            if (appid#0 in {lit#11, lit#10}) 
            {
                lit#12 = "B00CH4G9VG";
                temp.amazonid = lit#12;
            }
            // RegionId(5)
            else
            {
                lit#13 = "284976684";
                lit#14 = "284972164";
                // RegionId(5)
                // RegionId(6)
                if (appid#0 in {lit#14, lit#13}) 
                {
                    lit#15 = "B00CH4T5NA";
                    temp.amazonid = lit#15;
                }
            }
        }
        lit#16 = "";
        // RegionId(7)
        // RegionId(8)
        if (temp.amazonid != lit#16) 
        {
            lit#17 = "amzn://apps/android?asin=";
            temp.adurl = lit#17 @ temp.amazonid;
            lit#18 = 1;
            lit#19 = "adclick";
            lit#20 = "-Games";
            fn_call#22 = lit.sendToServer(lit#19, {temp.adurl, lit#18});
            fn_call#24 = openurl#23(temp.adurl);
        }
        lit#25 = 0;
        return lit#25;
    }
    // RegionId(10)
    else
    {
        lit#27 = 6.037;
        // RegionId(10)
        // RegionId(11)
        if (graalversion#26 >= lit#27) 
        {
            fn_call#29 = canShowAppStoreInGame#28();
            // RegionId(12)
            if (fn_call#29) 
            {
                fn_call#31 = showAppStoreInGame#30(appid#0);
                lit#32 = 1;
                lit#33 = "ingameappstore://";
                lit#34 = "adclick";
                lit#35 = "-Games";
                fn_call#36 = lit.sendToServer(lit#34, {lit#33 @ appid#0, lit#32});
                goto RegionId(14);
            }
        }
        lit#37 = "https://itunes.apple.com/us/app/id";
        lit#38 = "&mt=8";
        temp.adurl = (lit#37 @ appid#0) @ lit#38;
        lit#39 = 1;
        lit#40 = "adclick";
        lit#41 = "-Games";
        fn_call#42 = lit.sendToServer(lit#40, {temp.adurl, lit#39});
        lit#44 = true;
        multitaskingenabled#45 = lit#44;
        fn_call#46 = openurl#23(temp.adurl);
        lit#47 = 0;
        return lit#47;
    }
}