// // GameLevelManager::getCompletedWeeklyLevels from 0x1401484f0 to 0x1401486f6 (518 bytes) // // 2 xrefs: // > GameLevelManager::updateUserScore @ 0x14015649e // > @ 0x1406ca644 // // 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::getCompletedWeeklyLevels(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 int v9; // eax const char *CString; // rax size_t v11; // r8 __int64 v12; // rax GJGameLevel *v13; // rbx void *v14; // rcx GameStatsManager *v15; // rcx void *v17; // [rsp+30h] [rbp-48h] __int128 v18; // [rsp+38h] [rbp-40h] BYREF __int64 v19; // [rsp+48h] [rbp-30h] unsigned __int64 v20; // [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; v9 = cocos2d::CCString::intValue(*arr); if ( v9 > 100000 && v9 <= 200000 ) { CString = cocos2d::CCString::getCString(v8); v18 = 0; v19 = 0; v20 = 0; v11 = -1; do ++v11; while ( CString[v11] ); sub_14003A930(&v18, CString, v11); v12 = cocos2d::CCDictionary::objectForKey(a1->m_dailyLevels, &v18); v13 = (GJGameLevel *)_RTDynamicCast( v12, 0, &cocos2d::CCObject `RTTI Type Descriptor', &GJGameLevel `RTTI Type Descriptor', 0); if ( v20 > 0xF ) { v14 = (void *)v18; if ( v20 + 1 >= 0x1000 ) { v14 = *(void **)(v18 - 8); if ( (unsigned __int64)(v18 - (_QWORD)v14 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v14); } v19 = 0; v20 = 15; LOBYTE(v18) = 0; if ( v13 && v13->m_stars.random - v13->m_stars.seed == 10 && v13->m_normalPercent.random - v13->m_normalPercent.seed == 100 ) { v15 = (GameStatsManager *)qword_1406C2EE8; if ( !qword_1406C2EE8 ) { v17 = operator new(0x3E0u); qword_1406C2EE8 = sub_1401D0AE0(v17); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EE8 + 72LL))(qword_1406C2EE8); v15 = (GameStatsManager *)qword_1406C2EE8; } if ( GameStatsManager::hasCompletedLevel(v15, v13) ) ++v2; } } } } } return v2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source