// // GameLevelManager::getCompletedDailyLevels from 0x140148700 to 0x1401488f8 (504 bytes) // // 2 xrefs: // > GameLevelManager::updateUserScore @ 0x14015682f // > @ 0x1406ca650 // // 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=2 int GameLevelManager::getCompletedDailyLevels(GameLevelManager *a1) { int v2; // esi struct cocos2d::CCArray *v3; // rax cocos2d::ccArray *data; // rdi __int64 num; // rax cocos2d::CCString **arr; // rdi cocos2d::CCString **i; // rbp cocos2d::CCString *v8; // rbx const char *CString; // rax size_t v10; // r8 __int64 v11; // rax GJGameLevel *v12; // rbx void *v13; // rcx GameStatsManager *v14; // rcx void *v16; // [rsp+30h] [rbp-48h] __int128 v17; // [rsp+38h] [rbp-40h] BYREF __int64 v18; // [rsp+48h] [rbp-30h] unsigned __int64 v19; // [rsp+50h] [rbp-28h] v2 = 0; v3 = cocos2d::CCDictionary::allKeys(a1->m_dailyLevels); if ( v3 ) { data = v3->data; num = data->num; if ( (_DWORD)num ) { arr = (cocos2d::CCString **)data->arr; for ( i = &arr[num - 1]; arr <= i; ++arr ) { v8 = *arr; if ( !*arr ) break; if ( (int)cocos2d::CCString::intValue(*arr) <= 100000 ) { CString = cocos2d::CCString::getCString(v8); v17 = 0; v18 = 0; v19 = 0; v10 = -1; do ++v10; while ( CString[v10] ); sub_14003A930(&v17, CString, v10); v11 = cocos2d::CCDictionary::objectForKey(a1->m_dailyLevels, &v17); v12 = (GJGameLevel *)_RTDynamicCast( v11, 0, &cocos2d::CCObject `RTTI Type Descriptor', &GJGameLevel `RTTI Type Descriptor', 0); if ( v19 > 0xF ) { v13 = (void *)v17; if ( v19 + 1 >= 0x1000 ) { v13 = *(void **)(v17 - 8); if ( (unsigned __int64)(v17 - (_QWORD)v13 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v13); } v18 = 0; v19 = 15; LOBYTE(v17) = 0; if ( v12 && v12->m_stars.random - v12->m_stars.seed < 10 && v12->m_normalPercent.random - v12->m_normalPercent.seed == 100 ) { v14 = (GameStatsManager *)qword_1406C2EE8; if ( !qword_1406C2EE8 ) { v16 = operator new(0x3E0u); qword_1406C2EE8 = sub_1401D0AE0(v16); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EE8 + 72LL))(qword_1406C2EE8); v14 = (GameStatsManager *)qword_1406C2EE8; } if ( GameStatsManager::hasCompletedLevel(v14, v12) ) ++v2; } } } } } return v2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source