// // GameLevelManager::getCompletedWeeklyLevels from 0x1402200b0 to 0x1402202c5 (533 bytes) // // 2 xrefs: // > GameLevelManager::updateUserScore @ 0x140236b23 // > @ 0x14091bb54 // // This function is hookable on this platform (idp: pc, 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 11:28:24 +0000 // // Hidden C++ exception states: #wind=2 __int64 __fastcall GameLevelManager::getCompletedWeeklyLevels(__int64 a1) { unsigned int v2; // esi struct cocos2d::CCArray *v3; // rax unsigned int *v4; // rdi __int64 v5; // rax cocos2d::CCString **v6; // rdi cocos2d::CCString **i; // rbp cocos2d::CCString *v8; // rbx int v9; // eax const char *CString; // rax size_t v11; // r8 __int64 v12; // rax _DWORD *v13; // rbx void *v14; // rcx __int64 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(*(cocos2d::CCDictionary **)(a1 + 944)); if ( v3 ) { v4 = *((unsigned int **)v3 + 7); v5 = *v4; if ( (_DWORD)v5 ) { v6 = *((cocos2d::CCString ***)v4 + 2); for ( i = &v6[v5 - 1]; v6 <= i; ++v6 ) { v8 = *v6; if ( !*v6 ) break; v9 = cocos2d::CCString::intValue(*v6); if ( v9 > 100000 && v9 <= 200000 ) { CString = cocos2d::CCString::getCString(v8); v18 = 0; v19 = 0; v20 = 0; v11 = -1; do ++v11; while ( CString[v11] ); sub_14003D230(&v18, CString, v11); v12 = cocos2d::CCDictionary::objectForKey(*(_QWORD *)(a1 + 944), &v18); v13 = (_DWORD *)_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 ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v14); } v19 = 0; v20 = 15; LOBYTE(v18) = 0; if ( v13 && v13[255] - v13[256] == 10 && v13[233] - v13[232] == 100 ) { v15 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v17 = operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480(v17); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v15 = qword_14090BFE0; } if ( (unsigned __int8)GameStatsManager::hasCompletedLevel(v15, v13) ) ++v2; } } } } } return v2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source