// // GameLevelManager::getCompletedLevels from 0x1401478a0 to 0x140147a30 (400 bytes) // // 3 xrefs: // > GameLevelManager::getOnlineLevels @ 0x14014ddbb // > GameLevelManager::submitUserInfo @ 0x140169ed3 // > @ 0x1406ca620 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // // Hidden C++ exception states: #wind=1 cocos2d::CCArray *GameLevelManager::getCompletedLevels(GameLevelManager *a1, bool a2) { cocos2d::CCArray *v4; // rsi cocos2d::CCArray *v5; // rbp unsigned int i; // edi unsigned int v7; // eax cocos2d::CCString *v8; // rax const char *CString; // rax size_t v10; // r8 __int64 v11; // rbx void *v12; // rcx int v13; // eax __int128 v15; // [rsp+20h] [rbp-58h] BYREF __int64 v16; // [rsp+30h] [rbp-48h] unsigned __int64 v17; // [rsp+38h] [rbp-40h] v4 = (cocos2d::CCArray *)cocos2d::CCArray::create(a1); v5 = cocos2d::CCDictionary::allKeys(a1->m_onlineLevels); for ( i = 0; i < cocos2d::CCArray::count(v5); ++i ) { v7 = cocos2d::CCArray::count(v5); v8 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v5, v7 + -1 - i); CString = cocos2d::CCString::getCString(v8); v15 = 0; v16 = 0; v17 = 0; v10 = -1; do ++v10; while ( CString[v10] ); sub_14003A930(&v15, CString, v10); v11 = cocos2d::CCDictionary::objectForKey(a1->m_onlineLevels, &v15); if ( v17 > 0xF ) { v12 = (void *)v15; if ( v17 + 1 >= 0x1000 ) { v12 = *(void **)(v15 - 8); if ( (unsigned __int64)(v15 - (_QWORD)v12 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v12); } v16 = 0; v17 = 15; LOBYTE(v15) = 0; if ( a2 ) v13 = *(_DWORD *)(v11 + 820) - *(_DWORD *)(v11 + 824); else v13 = *(_DWORD *)(v11 + 816) - *(_DWORD *)(v11 + 812); if ( v13 >= 100 ) cocos2d::CCArray::addObject(v4, (struct cocos2d::CCObject *)v11); } return v4; }