// // GJChallengeItem::dataLoaded from 0x5169d8 to 0x516b96 (446 bytes) // // 1 xrefs: // > GJChallengeItem::createWithCoder @ 0x51947c // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:51:43 +0000 // int __fastcall GJChallengeItem::dataLoaded(GJChallengeItem *this, DS_Dictionary *a2) { bool v4; // zf int v5; // r3 int v6; // r0 int v7; // r0 unsigned int v8; // r3 unsigned int v9; // r0 char *v10; // r0 char *v11; // r9 int v12; // r8 int v13; // r2 int v14; // r2 int v15; // r1 int v16; // r2 int IntegerForKey; // r0 int v18; // r0 int v19; // r7 int v20; // s15 int v21; // r0 int v22; // r7 int v23; // s15 int result; // r0 int v25; // [sp+0h] [bp+0h] BYREF int v26; // [sp+4h] [bp+4h] int v27; // [sp+8h] [bp+8h] *((_DWORD *)this + 13) = DS_Dictionary::getIntegerForKey(a2, (const char *)a1i2r3e45s789g); *((_DWORD *)this + 23) = DS_Dictionary::getIntegerForKey(a2, (const char *)&a1i2r3e45s789g[7]); *((_BYTE *)this + 96) = DS_Dictionary::getBoolForKey(a2, "6"); DS_Dictionary::getStringForKey((DS_Dictionary *)&v25, (const char *)a2); v5 = *((_BYTE *)this + 104) & 1; v4 = v5 == 0; if ( (*((_BYTE *)this + 104) & 1) != 0 ) { v5 = 0; **((_BYTE **)this + 28) = 0; } else { *((_BYTE *)this + 104) = v5; *((_BYTE *)this + 105) = v5; } v6 = *((unsigned __int8 *)this + 104); if ( !v4 ) *((_DWORD *)this + 27) = v5; if ( (v6 & 1) != 0 ) { v7 = *((_DWORD *)this + 27); v8 = (*((_DWORD *)this + 26) & 0xFFFFFFFE) - 1; if ( (unsigned int)v7 <= 0xA ) { if ( (*((_DWORD *)this + 26) & 0xFFFFFFFE) == 0xB ) goto LABEL_22; LABEL_13: v10 = (char *)this + 105; v11 = *((char **)this + 28); v12 = 1; goto LABEL_17; } } else { v7 = v6 >> 1; if ( v7 <= 10 ) goto LABEL_22; v8 = 10; } v9 = (v7 + 16) & 0xFFFFFFF0; if ( v9 - 1 == v8 ) goto LABEL_22; if ( v9 == 11 ) goto LABEL_13; v10 = (char *)operator new(v9); v12 = *((_BYTE *)this + 104) & 1; if ( (*((_BYTE *)this + 104) & 1) != 0 ) v11 = *((char **)this + 28); else v11 = (char *)this + 105; LABEL_17: v13 = *((unsigned __int8 *)this + 104); if ( (v13 & 1) != 0 ) v14 = *((_DWORD *)this + 27); else v14 = v13 >> 1; std::char_traits::copy(v10, v11, v14 + 1); if ( v12 ) operator delete(v11); LABEL_22: v15 = v26; v16 = v27; *((_DWORD *)this + 26) = v25; *((_DWORD *)this + 27) = v15; *((_DWORD *)this + 28) = v16; v25 = 0; v26 = 0; v27 = 0; std::string::~string((int)&v25); IntegerForKey = DS_Dictionary::getIntegerForKey(a2, (const char *)&a1i2r3e45s789g[2]); GJChallengeItem::setCount(this, IntegerForKey); v18 = DS_Dictionary::getIntegerForKey(a2, (const char *)&a1i2r3e45s789g[4]); *((_DWORD *)this + 22) = v18; v19 = v18; v20 = (int)(float)((float)((float)rand() * 4.6566e-10) * 1000.0); *((_DWORD *)this + 21) = v20; *((_DWORD *)this + 20) = v20 + v19; v21 = DS_Dictionary::getIntegerForKey(a2, (const char *)&a1i2r3e45s789g[6]); *((_DWORD *)this + 19) = v21; v22 = v21; v23 = (int)(float)((float)((float)rand() * 4.6566e-10) * 1000.0); *((_DWORD *)this + 18) = v23; *((_DWORD *)this + 17) = v23 + v22; result = DS_Dictionary::getIntegerForKey(a2, (const char *)&a1i2r3e45s789g[10]); *((_DWORD *)this + 25) = result; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source