// // GameLevelManager::onGetUsersCompleted from 0x4d2208 to 0x4d23bc (436 bytes) // // 1 xrefs: // > GameLevelManager::handleIt @ 0x4dad9a // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:50:48 +0000 // int __fastcall GameLevelManager::onGetUsersCompleted(GameLevelManager *a1, int a2, int a3) { char *v5; // r5 const char *v6; // r7 bool v7; // nf size_t v8; // r0 cocos2d::CCArray *v9; // r9 int result; // r0 cocos2d::CCString *v11; // r0 const char *CString; // r10 size_t v13; // r0 cocos2d::CCString *v14; // r0 const char *v15; // r9 size_t v16; // r0 int v17; // r10 cocos2d::CCObject *Scores; // r8 void (__fastcall ***v19)(_DWORD, cocos2d::CCObject *, char *); // r0 void (__fastcall *v20)(int, int *, char *); // [sp+0h] [bp-4Ch] int v21[3]; // [sp+8h] [bp-44h] BYREF int v22[3]; // [sp+14h] [bp-38h] BYREF int v23[3]; // [sp+20h] [bp-2Ch] BYREF int v24[3]; // [sp+2Ch] [bp-20h] BYREF int v25; // [sp+38h] [bp-14h] BYREF int v26; // [sp+3Ch] [bp-10h] int v27; // [sp+40h] [bp-Ch] if ( (*(_BYTE *)a3 & 1) != 0 ) v5 = *(char **)(a3 + 8); else v5 = (char *)(a3 + 1); GameLevelManager::removeDLFromActive(a1, v5); v25 = 0; v26 = 0; v27 = 0; std::string::__init(&v25, "-1", 2u); v6 = (const char *)sub_4A9CC4((unsigned __int8 *)a2, (unsigned __int8 *)&v25); std::string::~string((int)&v25); if ( v6 ) goto LABEL_10; v7 = (*(_BYTE *)a2 & 1) != 0; if ( (*(_BYTE *)a2 & 1) == 0 ) v6 = (const char *)(a2 + 1); v25 = 0; if ( v7 ) v6 = *(const char **)(a2 + 8); v26 = 0; v27 = 0; v8 = strlen(v6); std::string::__init(&v25, v6, v8); v9 = sub_4C1A88(&v25, "#"); std::string::~string((int)&v25); if ( cocos2d::CCArray::count(v9) <= 1u ) { LABEL_10: result = *((_DWORD *)a1 + 205); if ( result ) return (*(int (__fastcall **)(int, char *))(*(_DWORD *)result + 4))(result, v5); } else { v11 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v9, 0); memset(v21, 0, sizeof(v21)); CString = (const char *)cocos2d::CCString::getCString(v11); v13 = strlen(CString); std::string::__init(v21, CString, v13); v14 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v9, 1u); v15 = (const char *)cocos2d::CCString::getCString(v14); memset(v22, 0, sizeof(v22)); v16 = strlen(v15); std::string::__init(v22, v15, v16); v17 = *((_DWORD *)a1 + 205); if ( v17 ) { v20 = *(void (__fastcall **)(int, int *, char *))(*(_DWORD *)v17 + 16); std::string::basic_string(v23, (int)v22); v20(v17, v23, v5); std::string::~string((int)v23); } std::string::basic_string(v24, a2); Scores = GameLevelManager::createAndGetScores(a1, (int)v24, 2); std::string::~string((int)v24); std::string::basic_string(&v25, (int)v22); GameLevelManager::storeSearchResult(a1, Scores, COERCE_FLOAT(&v25), v5); std::string::~string((int)&v25); v19 = *((void (__fastcall ****)(_DWORD, cocos2d::CCObject *, char *))a1 + 205); if ( v19 ) (**v19)(v19, Scores, v5); std::string::~string((int)v22); return std::string::~string((int)v21); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source