// // GJObjectDecoder::getDecodedObject from 0x140391d20 to 0x1403921b8 (1176 bytes) // // 2 xrefs: // > @ 0x140773580 // > @ 0x140923018 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // 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:31:11 +0000 // // Hidden C++ exception states: #wind=3 struct cocos2d::CCObject *__fastcall GJObjectDecoder::getDecodedObject(__int64 a1, int a2, DS_Dictionary *a3) { __int64 v4; // rax cocos2d::CCObject *v5; // rsi struct cocos2d::CCObject *result; // rax void **v7; // rdi int v8; // eax int v9; // eax __int64 StringForKey; // rax int v11; // eax int v12; // ebx float v13; // xmm0_4 int v14; // eax int v15; // ebx float v16; // xmm0_4 int v17; // eax int v18; // ebx float v19; // xmm0_4 int v20; // eax cocos2d::CCObject *v21; // rbx int v22; // eax int v23; // eax cocos2d::CCObject *ArrayForKey; // rax cocos2d::CCObject *v25; // rdi cocos2d::CCObject *v26; // rcx int v27; // eax int v28; // eax int v29; // eax int v30; // eax __int64 v31; // rbx int v32; // eax __int64 v33; // rax int v34; // eax char *v35; // rbx void *v36; // [rsp+30h] [rbp-58h] cocos2d::CCObject *v37; // [rsp+30h] [rbp-58h] char *v38; // [rsp+30h] [rbp-58h] __int128 v39; // [rsp+38h] [rbp-50h] BYREF __int64 v40; // [rsp+48h] [rbp-40h] __int64 v41; // [rsp+50h] [rbp-38h] _BYTE v42[32]; // [rsp+58h] [rbp-30h] BYREF switch ( a2 ) { case 4: v36 = operator new(0x840u); v4 = GJGameLevel::GJGameLevel((__int64)v36); v5 = (cocos2d::CCObject *)v4; if ( v4 ) { if ( (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v4 + 72LL))(v4) ) { cocos2d::CCObject::autorelease(v5); GJGameLevel::dataLoaded((__int64)v5, a3); return v5; } (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v5 + 8LL))(v5, 1); v5 = nullptr; } GJGameLevel::dataLoaded((__int64)v5, a3); result = v5; break; case 5: result = cocos2d::CCObject::createWithCoder(a3); break; case 6: result = (struct cocos2d::CCObject *)SongInfoObject::createWithCoder(a3); break; case 7: v39 = 0; v40 = 0; v41 = 15; LOBYTE(v39) = 0; v7 = GJChallengeItem::create(0, 0, 0, 0, (__int64)&v39); DS_Dictionary::getIntegerForKey(a3, (const char *)&word_14070D060); *((_DWORD *)v7 + 14) = v8; DS_Dictionary::getIntegerForKey(a3, (const char *)&word_14070D048); *((_DWORD *)v7 + 24) = v9; *((_BYTE *)v7 + 100) = DS_Dictionary::getBoolForKey(a3, "6"); StringForKey = DS_Dictionary::getStringForKey(a3, v42, &word_14070D040); sub_140059C40((__int64)(v7 + 14), StringForKey); sub_14003D310((__int64)v42); DS_Dictionary::getIntegerForKey(a3, (const char *)&word_14070D058); v12 = v11; *((_DWORD *)v7 + 17) = v11; v13 = (float)((float)rand() / 32767.0) * 1000.0; *((_DWORD *)v7 + 16) = (int)v13; *((_DWORD *)v7 + 15) = (int)v13 + v12; DS_Dictionary::getIntegerForKey(a3, (const char *)&word_14070D054); v15 = v14; *((_DWORD *)v7 + 23) = v14; v16 = (float)((float)rand() / 32767.0) * 1000.0; *((_DWORD *)v7 + 22) = (int)v16; *((_DWORD *)v7 + 21) = (int)v16 + v15; DS_Dictionary::getIntegerForKey(a3, (const char *)&word_14070D04C); v18 = v17; *((_DWORD *)v7 + 20) = v17; v19 = (float)((float)rand() / 32767.0) * 1000.0; *((_DWORD *)v7 + 19) = (int)v19; *((_DWORD *)v7 + 18) = v18 + (int)v19; DS_Dictionary::getIntegerForKey(a3, (const char *)&word_14070D038); *((_DWORD *)v7 + 26) = v20; result = (struct cocos2d::CCObject *)v7; break; case 8: v39 = 0; v40 = 0; v41 = 15; LOBYTE(v39) = 0; v21 = GJRewardItem::create(0, 0, (__int64)&v39); DS_Dictionary::getIntegerForKey(a3, (const char *)&word_14070D060); *((_DWORD *)v21 + 14) = v22; DS_Dictionary::getIntegerForKey(a3, (const char *)&word_14070D058); *((_DWORD *)v21 + 16) = v23; ArrayForKey = DS_Dictionary::getArrayForKey(a3, (const char *)&word_14070D054, 0); v25 = ArrayForKey; if ( *((cocos2d::CCObject **)v21 + 9) != ArrayForKey ) { if ( ArrayForKey ) cocos2d::CCObject::retain(ArrayForKey); v26 = *((cocos2d::CCObject **)v21 + 9); if ( v26 ) cocos2d::CCObject::release(v26); *((_QWORD *)v21 + 9) = v25; } result = v21; break; case 9: v37 = (cocos2d::CCObject *)operator new(0x48u); cocos2d::CCObject::CCObject(v37); *(_QWORD *)v37 = &GJRewardObject::`vftable'; *((_DWORD *)v37 + 14) = 0; *((_QWORD *)v37 + 8) = 0; cocos2d::CCObject::autorelease(v37); DS_Dictionary::getIntegerForKey(a3, (const char *)&word_14070D060); *((_DWORD *)v37 + 14) = v27; DS_Dictionary::getIntegerForKey(a3, (const char *)&word_14070D058); *((_DWORD *)v37 + 16) = v28; DS_Dictionary::getIntegerForKey(a3, (const char *)&word_14070D054); *((_DWORD *)v37 + 17) = v29; DS_Dictionary::getIntegerForKey(a3, (const char *)&word_14070D04C); *((_DWORD *)v37 + 15) = v30; result = v37; break; case 10: v31 = GJSmartTemplate::create(); GJSmartTemplate::dataLoaded(v31, a3); result = (struct cocos2d::CCObject *)v31; break; case 11: v38 = (char *)operator new(0x80u); cocos2d::CCObject::CCObject((cocos2d::CCObject *)v38); *(_QWORD *)v38 = &GJSmartPrefab::`vftable'; *(_OWORD *)(v38 + 56) = 0; *((_QWORD *)v38 + 9) = 0; *((_QWORD *)v38 + 10) = 15; v38[56] = 0; *(_OWORD *)(v38 + 88) = 0; *((_QWORD *)v38 + 13) = 0; *((_QWORD *)v38 + 14) = 15; v38[88] = 0; *((_DWORD *)v38 + 31) = 0; v32 = dword_1408FE4A0; *((_DWORD *)v38 + 30) = dword_1408FE4A0; dword_1408FE4A0 = v32 + 1; cocos2d::CCObject::autorelease((cocos2d::CCObject *)v38); v33 = DS_Dictionary::getStringForKey(a3, v42, &word_14070D060); sub_140059C40((__int64)(v38 + 88), v33); sub_14003D310((__int64)v42); DS_Dictionary::getIntegerForKey(a3, (const char *)&word_14070D058); *((_DWORD *)v38 + 31) = v34; result = (struct cocos2d::CCObject *)v38; break; case 12: v35 = GJLevelList::create_1(); GJLevelList::dataLoaded((__int64)v35, a3); result = (struct cocos2d::CCObject *)v35; break; default: result = nullptr; break; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source