This was built to track decompiler and CFG progress.
function public.getWeaponSeasonImage(slot#2, icon#1, blueseason#0)
{
// RegionId(0)
// RegionId(1)
if (blueseason#0)
{
lit#8 = "Winter";
}
// RegionId(2)
// RegionId(3)
if (phi<idx=0, regions=()>)
{
lit#9 = "_blue";
}
// RegionId(4)
else
{
lit#10 = "";
}
phi<idx=1, regions=()> = phi<idx=0, regions=()>;
lit#11 = "Bounty Box";
fn_call#13 = lit.bountyActive();
// RegionId(6)
if (fn_call#13)
{
lit#14 = "classiciphone_virtualkey_none";
lit#15 = ".png";
return (lit#14 @ temp.seasonext) @ lit#15;
}
// RegionId(49)
else
{
lit#18 = "Bow";
// RegionId(49)
// RegionId(50)
if (!(client.selectedweapons[slot#2] == lit#18))
{
lit#19 = "CustomBow";
// RegionId(51)
if (!(phi<idx=0, regions=()> == lit#19))
{
lit#20 = "Bomb";
// RegionId(51)
// RegionId(52)
if (!(phi<idx=0, regions=()> == lit#20))
{
lit#21 = "CustomBomb";
// RegionId(53)
if (!(phi<idx=0, regions=()> == lit#21))
{
lit#22 = "Trophies";
// RegionId(54)
if (!(phi<idx=0, regions=()> == lit#22))
{
lit#23 = "HorseNew";
// RegionId(55)
if (!(phi<idx=0, regions=()> == lit#23))
{
temp.iconimg = client.selectedweaponsicons[slot#2];
builtin_fn_call#25 = temp.iconimg.length();
lit#26 = 1;
// RegionId(33)
if (builtin_fn_call#25 > lit#26)
{
// RegionId(33)
// RegionId(34)
if (icon#1)
{
}
// RegionId(35)
else
{
lit#27 = "classiciphone_virtualkey_none";
lit#28 = ".png";
}
return phi<idx=0, regions=()>;
}
// RegionId(37)
else
{
// RegionId(38)
if (icon#1)
{
lit#29 = "";
return lit#29;
}
// RegionId(39)
else
{
fn_call#32 = findweapon#31(client.selectedweapons[slot#2]);
temp.weapon = fn_call#32;
lit#34 = "getDisplayImage";
fn_call#36 = temp.weapon.hasFunction(lit#34);
// RegionId(39)
// RegionId(40)
if (fn_call#36)
{
fn_call#38 = temp.weapon.getDisplayImage();
}
// RegionId(41)
else
{
}
phi<idx=1, regions=()> = phi<idx=0, regions=()>;
lit#40 = ".png";
builtin_fn_call#41 = temp.img.ends(lit#40);
// RegionId(42)
// RegionId(43)
if (builtin_fn_call#41)
{
lit#42 = ".gif";
builtin_fn_call#43 = temp.img.ends(lit#42);
}
// RegionId(45)
if (phi<idx=0, regions=()>)
{
return temp.img;
}
// RegionId(46)
else
{
builtin_fn_call#44 = temp.img.length();
lit#45 = 1;
// RegionId(47)
if (builtin_fn_call#44 > lit#45)
{
lit#46 = ".png";
return (temp.img @ temp.seasonext) @ lit#46;
}
// RegionId(48)
else
{
lit#47 = "";
return lit#47;
}
}
}
}
}
// RegionId(21)
else
{
lit#49 = "HorseNew";
fn_call#51 = findWeapon#50(lit#49);
fn_call#52 = fn_call.getDisplayImage();
temp.defimg = fn_call#52;
lit#53 = "classiciphone_virtualkey_horse";
// RegionId(21)
// RegionId(22)
if (temp.defimg != lit#53)
{
lit#54 = null;
}
// RegionId(24)
if (phi<idx=0, regions=()>)
{
// RegionId(25)
if (icon#1)
{
lit#55 = "";
return lit#55;
}
// RegionId(26)
else
{
return temp.defimg;
}
}
// RegionId(27)
else
{
lit#56 = null;
// RegionId(28)
if (icon#1 == lit#56)
{
lit#57 = "classiciphone_virtualkey_none";
lit#58 = ".png";
return (lit#57 @ temp.seasonext) @ lit#58;
}
// RegionId(29)
else
{
lit#59 = "iclassic_customhorse_icon.png";
temp.iconimg = lit#59;
fn_call#61 = getimgwidth#60(temp.iconimg);
lit#62 = 0;
// RegionId(30)
if (fn_call#61 <= lit#62)
{
lit#63 = "iclassic_buttonicon_def_horse.png";
return lit#63;
}
// RegionId(31)
else
{
return temp.iconimg;
}
}
}
}
}
// RegionId(17)
else
{
// RegionId(17)
// RegionId(18)
if (icon#1)
{
lit#64 = "";
}
// RegionId(19)
else
{
lit#65 = "classiciphone_virtualkey_trophy";
lit#66 = ".png";
}
return phi<idx=0, regions=()>;
}
}
}
lit#67 = null;
// RegionId(13)
if (icon#1 == lit#67)
{
lit#68 = "classiciphone_virtualkey_none";
lit#69 = ".png";
return (lit#68 @ temp.seasonext) @ lit#69;
}
// RegionId(14)
else
{
lit#70 = "iclassic_custombomb_icon.png";
temp.iconimg = lit#70;
fn_call#71 = getimgwidth#60(temp.iconimg);
lit#72 = 0;
// RegionId(15)
if (fn_call#71 <= lit#72)
{
lit#73 = "iclassic_buttonicon_def_bomb.png";
return lit#73;
}
// RegionId(16)
else
{
lit#74 = "iclassic_custombomb_icon.png";
return lit#74;
}
}
}
}
lit#75 = null;
// RegionId(8)
if (icon#1 == lit#75)
{
lit#76 = "classiciphone_virtualkey_none";
lit#77 = ".png";
return (lit#76 @ temp.seasonext) @ lit#77;
}
// RegionId(9)
else
{
lit#78 = "iclassic_custombow_icon.png";
temp.iconimg = lit#78;
fn_call#79 = getimgwidth#60(temp.iconimg);
lit#80 = 0;
// RegionId(10)
if (fn_call#79 <= lit#80)
{
lit#81 = "iclassic_buttonicon_def_bow.png";
return lit#81;
}
// RegionId(11)
else
{
lit#82 = "iclassic_custombow_icon.png";
return lit#82;
}
}
}
}
Use the mouse wheel + shift to zoom in and out, and click and drag to pan.
Use the mouse wheel + shift to zoom in and out, and click and drag to pan.
Step 1 of 56