// // GameLevelManager::getCompletedLevels from 0x14021f3b0 to 0x14021f556 (422 bytes) // // 3 xrefs: // > GameLevelManager::getOnlineLevels @ 0x14022aec4 // > GameLevelManager::submitUserInfo @ 0x140260bb6 // > @ 0x14091bb30 // // 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=1 cocos2d::CCArray *__fastcall GameLevelManager::getCompletedLevels(__int64 a1, char a2) { cocos2d::CCArray *v4; // rbp cocos2d::CCArray *v5; // rsi int v6; // edi __m128i si128; // xmm6 unsigned int v8; // eax cocos2d::CCString *v9; // rax const char *CString; // rax size_t v11; // r8 struct cocos2d::CCObject *v12; // rbx void *v13; // rcx __int128 v15; // [rsp+30h] [rbp-58h] BYREF __m128i v16; // [rsp+40h] [rbp-48h] v4 = (cocos2d::CCArray *)cocos2d::CCArray::create(a1); v5 = cocos2d::CCDictionary::allKeys(*(cocos2d::CCDictionary **)(a1 + 856)); v6 = 0; if ( cocos2d::CCArray::count(v5) ) { si128 = _mm_load_si128((const __m128i *)&Size); while ( 1 ) { v8 = cocos2d::CCArray::count(v5); v9 = cocos2d::CCArray::objectAtIndex(v5, v8 + ~v6); CString = cocos2d::CCString::getCString(v9); v15 = 0; v16 = 0; v11 = -1; do ++v11; while ( CString[v11] ); sub_14003D230(&v15, CString, v11); v12 = (struct cocos2d::CCObject *)cocos2d::CCDictionary::objectForKey(*(_QWORD *)(a1 + 856), &v15); if ( v16.m128i_i64[1] > 0xFuLL ) { v13 = (void *)v15; if ( (unsigned __int64)(v16.m128i_i64[1] + 1) >= 0x1000 ) { v13 = *(void **)(v15 - 8); if ( (unsigned __int64)(v15 - (_QWORD)v13 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v13); } v16 = si128; LOBYTE(v15) = 0; if ( a2 ) break; if ( *((_DWORD *)v12 + 233) - *((_DWORD *)v12 + 232) >= 100 ) goto LABEL_13; LABEL_14: if ( ++v6 >= cocos2d::CCArray::count(v5) ) return v4; } if ( *((_DWORD *)v12 + 234) - *((_DWORD *)v12 + 235) < 100 ) goto LABEL_14; LABEL_13: cocos2d::CCArray::addObject(v4, v12); goto LABEL_14; } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source