// // GameLevelManager::getCompletedLevels from 0x1000abb10 to 0x1000abc18 (264 bytes) // // 2 xrefs: // > GameLevelManager::getOnlineLevels @ 0x1000b5ce4 // > sub_1000BCF80 @ 0x1000bcfbc // // This function is hookable on this platform (idp: arm, 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 10:58:36 +0000 // __int64 __fastcall GameLevelManager::getCompletedLevels(__int64 a1, int a2) { __int64 v4; // x21 __int64 v5; // x22 unsigned int v6; // w24 int v7; // w25 int v8; // w0 __int64 v9; // x0 char *CString; // x0 __int64 v11; // x23 _DWORD *v12; // x23 void *__p[2]; // [xsp+8h] [xbp-58h] BYREF char v15; // [xsp+1Fh] [xbp-41h] v4 = sub_1002E736C(a1); v5 = cocos2d::CCDictionary::allKeys(*(_QWORD *)(a1 + 760)); if ( (unsigned int)sub_1002E757C(v5) ) { v6 = 0; v7 = -1; do { v8 = sub_1002E757C(v5); v9 = sub_1002E75A0(v5, (unsigned int)(v8 + v7)); CString = (char *)cocos2d::CCString::getCString(v9); v11 = *(_QWORD *)(a1 + 760); sub_100009900(__p, CString); v12 = (_DWORD *)cocos2d::CCDictionary::objectForKey(v11, __p); if ( v15 < 0 ) { operator delete(__p[0]); if ( a2 ) { LABEL_5: if ( v12[216] - v12[217] <= 99 ) goto LABEL_10; LABEL_9: sub_1002E74E0(v4, v12); goto LABEL_10; } } else if ( a2 ) { goto LABEL_5; } if ( v12[215] - v12[214] >= 100 ) goto LABEL_9; LABEL_10: ++v6; --v7; } while ( v6 < (unsigned int)sub_1002E757C(v5) ); } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source