// // sub_1000CB318 from 0x1000cb318 to 0x1000cb4c8 (432 bytes) // // 2 xrefs: // > sub_1000CA084 @ 0x1000ca148 // > sub_1000CA1C0 @ 0x1000ca2ec // // 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:51 +0000 // void __fastcall sub_1000CB318(__int64 a1, int a2, int a3) { __int64 v5; // x0 char *CString; // x0 __int64 v7; // x0 unsigned int *v8; // x9 __int64 v9; // x8 _QWORD *v10; // x24 unsigned __int64 v11; // x25 const char *v12; // x0 char *v13; // x21 void **v14; // x1 size_t v15; // x2 __int64 StoredOnlineLevels; // x22 __int64 i; // x23 __int64 v18; // x22 void (__fastcall ***v19)(_QWORD, __int64, char *); // x0 void *__p[2]; // [xsp+10h] [xbp-70h] BYREF char v21; // [xsp+27h] [xbp-59h] void *v22[2]; // [xsp+28h] [xbp-58h] BYREF unsigned __int8 v23; // [xsp+3Fh] [xbp-41h] v5 = sub_1003065B0("fReqS_%i_", a2); CString = (char *)cocos2d::CCString::getCString(v5); sub_100009900(v22, CString); v7 = cocos2d::CCDictionary::allKeys(*(_QWORD *)(a1 + 1040)); if ( v7 ) { v8 = *(unsigned int **)(v7 + 56); v9 = *v8; if ( (_DWORD)v9 ) { v10 = *((_QWORD **)v8 + 2); v11 = (unsigned __int64)&v10[v9 - 1]; do { if ( !*v10 ) break; v12 = (const char *)cocos2d::CCString::getCString(*v10); v13 = (char *)v12; if ( (v23 & 0x80u) == 0 ) v14 = v22; else v14 = (void **)v22[0]; if ( (v23 & 0x80u) == 0 ) v15 = v23; else v15 = (size_t)v22[1]; if ( !strncmp(v12, (const char *)v14, v15) ) { if ( a3 <= 0 ) { LABEL_20: v18 = *(_QWORD *)(a1 + 1040); sub_100009900(__p, v13); cocos2d::CCDictionary::removeObjectForKey(v18, (char *)__p); if ( v21 < 0 ) operator delete(__p[0]); } else { StoredOnlineLevels = GameLevelManager::getStoredOnlineLevels(a1, v13); if ( StoredOnlineLevels ) { for ( i = 0; (unsigned int)i < (unsigned int)sub_1002E757C(StoredOnlineLevels); i = (unsigned int)(i + 1) ) { if ( *(_DWORD *)(sub_1002E75A0(StoredOnlineLevels, i) + 376) == a3 ) { sub_1002E7664(StoredOnlineLevels, i, 1); v19 = *(void (__fastcall ****)(_QWORD, __int64, char *))(a1 + 1376); if ( v19 ) (**v19)(v19, StoredOnlineLevels, v13); if ( (unsigned int)sub_1002E757C(StoredOnlineLevels) ) break; goto LABEL_20; } } } } } ++v10; } while ( (unsigned __int64)v10 <= v11 ); } } if ( (char)v23 < 0 ) operator delete(v22[0]); }
GD Web Decomp Icon

GD Web Decomp

Raw Source