// // GameLevelManager::onGetUsersCompleted from 0x849c24 to 0x84a004 (992 bytes) // // 2 xrefs: // > GameLevelManager::handleIt @ 0x85b7c0 // > @ 0xc8bd8 // // This function is hookable on this platform (idp: arm, 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 12:55:22 +0000 // __int64 __fastcall GameLevelManager::onGetUsersCompleted(__int64 **this, __int64 a2, char *a3) { char *v5; // x19 _BOOL4 v6; // w24 const char *v7; // x1 size_t v8; // x0 cocos2d::CCArray *v9; // x24 cocos2d::CCString *v10; // x0 const char *CString; // x0 size_t v12; // x0 cocos2d::CCString *v13; // x0 size_t v14; // x0 __int64 *v15; // x24 __int64 v16; // x1 void (__fastcall *v17)(__int64 *, __int64 *, char *); // x27 char v18; // w0 __int64 v19; // x0 __int64 v20; // x1 cocos2d::CCObject *Scores; // x23 void (__fastcall ***v22)(_QWORD, cocos2d::CCObject *, char *); // x0 __int64 v23; // x0 char *v25; // [xsp+68h] [xbp+68h] char *v26; // [xsp+68h] [xbp+68h] char *v27; // [xsp+68h] [xbp+68h] __int64 v28[2]; // [xsp+70h] [xbp+70h] BYREF void *v29; // [xsp+80h] [xbp+80h] __int64 v30; // [xsp+88h] [xbp+88h] BYREF size_t v31; // [xsp+90h] [xbp+90h] void *v32; // [xsp+98h] [xbp+98h] __int64 v33; // [xsp+A0h] [xbp+A0h] BYREF size_t v34; // [xsp+A8h] [xbp+A8h] void *v35; // [xsp+B0h] [xbp+B0h] __int64 v36; // [xsp+B8h] [xbp+B8h] BYREF __int64 v37; // [xsp+C0h] [xbp+C0h] void *v38; // [xsp+C8h] [xbp+C8h] __int64 v39; // [xsp+D0h] [xbp+D0h] BYREF size_t v40; // [xsp+D8h] [xbp+D8h] void *v41; // [xsp+E0h] [xbp+E0h] v5 = a3 + 1; if ( (*a3 & 1) != 0 ) v5 = *((char **)a3 + 2); GameLevelManager::removeDLFromActive((GameLevelManager *)this, v5); v39 = 0; v40 = 0; v41 = nullptr; std::string::__init(&v39, &word_117CE08, 2u); v6 = sub_7FEA60(a2, (__int64)&v39); if ( (v39 & 1) != 0 ) operator delete(v41); if ( !v6 ) { v7 = (const char *)(a2 + 1); if ( (*(_BYTE *)a2 & 1) != 0 ) v7 = *(const char **)(a2 + 16); v25 = (char *)v7; v39 = 0; v40 = 0; v41 = nullptr; v8 = strlen(v7); std::string::__init(&v39, v25, v8); v9 = sub_80CFCC((unsigned __int8 *)&v39, "#"); if ( (v39 & 1) != 0 ) { operator delete(v41); if ( (unsigned int)cocos2d::CCArray::count(v9) > 1 ) { LABEL_10: v10 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v9, 0); CString = (const char *)cocos2d::CCString::getCString(v10); v28[0] = 0; v26 = (char *)CString; v28[1] = 0; v29 = nullptr; v12 = strlen(CString); std::string::__init(v28, v26, v12); v13 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v9, 1u); v27 = (char *)cocos2d::CCString::getCString(v13); v30 = 0; v31 = 0; v32 = nullptr; v14 = strlen(v27); std::string::__init(&v30, v27, v14); v15 = *(this + 153); if ( v15 ) { v16 = *v15; v33 = 0; v34 = 0; v35 = nullptr; v17 = *(void (__fastcall **)(__int64 *, __int64 *, char *))(v16 + 32); if ( (v30 & 1) != 0 ) { std::string::__init(&v33, v32, v31); } else { v35 = v32; v33 = v30; v34 = v31; } v17(v15, &v33, v5); if ( (v33 & 1) != 0 ) operator delete(v35); } v18 = *(_BYTE *)a2; v36 = 0; v37 = 0; v38 = nullptr; if ( (v18 & 1) != 0 ) { std::string::__init(&v36, *(void **)(a2 + 16), *(_QWORD *)(a2 + 8)); } else { v19 = *(_QWORD *)a2; v20 = *(_QWORD *)(a2 + 8); v38 = *(void **)(a2 + 16); v36 = v19; v37 = v20; } Scores = GameLevelManager::createAndGetScores(this, (char *)&v36, 2); if ( (v36 & 1) != 0 ) operator delete(v38); v39 = 0; v40 = 0; v41 = nullptr; if ( (v30 & 1) != 0 ) { std::string::__init(&v39, v32, v31); } else { v41 = v32; v39 = v30; v40 = v31; } GameLevelManager::storeSearchResult((GameLevelManager *)this, Scores, (__int64)&v39, v5); if ( (v39 & 1) != 0 ) operator delete(v41); v22 = (void (__fastcall ***)(_QWORD, cocos2d::CCObject *, char *))*(this + 153); if ( v22 ) (**v22)(v22, Scores, v5); if ( (v30 & 1) != 0 ) operator delete(v32); if ( (v28[0] & 1) != 0 ) operator delete(v29); return _stack_chk_guard; } } else if ( (unsigned int)cocos2d::CCArray::count(v9) > 1 ) { goto LABEL_10; } } v23 = (__int64)*(this + 153); if ( v23 ) (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v23 + 8LL))(v23, v5); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source