// // GameLevelManager::onGetUserMessagesCompleted from 0x4d25ec to 0x4d289c (688 bytes) // // 1 xrefs: // > GameLevelManager::handleIt @ 0x4dacda // // 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::onGetUserMessagesCompleted(GameLevelManager *a1, int a2, int a3) { char *v5; // r5 _BOOL4 v6; // r8 int v7; // r8 const char *v8; // r0 int result; // r0 int (*v10)(void); // r3 const char *v11; // r7 size_t v12; // r0 cocos2d::CCArray *v13; // r8 cocos2d::CCString *v14; // r0 const char *CString; // r9 size_t v16; // r0 cocos2d::CCString *v17; // r0 const char *v18; // r9 size_t v19; // r0 cocos2d::CCArray *v20; // r0 char *v21; // r9 void (__fastcall *v22)(char *, int *, char *); // r10 size_t v23; // r0 unsigned int i; // r9 cocos2d::CCString *v25; // r0 const char *v26; // r7 size_t v27; // r0 cocos2d::CCDictionary *v28; // r1 cocos2d::CCNode *v29; // r7 void (__fastcall ***v30)(_DWORD, cocos2d::CCArray *, char *); // r0 cocos2d::CCArray *v31; // [sp+4h] [bp-70h] cocos2d::CCArray *v32; // [sp+8h] [bp-6Ch] GJUserMessage *v33; // [sp+Ch] [bp-68h] GJUserMessage *v34; // [sp+Ch] [bp-68h] char *v35; // [sp+10h] [bp-64h] int v36[2]; // [sp+18h] [bp-5Ch] BYREF char *v37; // [sp+20h] [bp-54h] int v38[3]; // [sp+24h] [bp-50h] BYREF int v39[3]; // [sp+30h] [bp-44h] BYREF int v40[3]; // [sp+3Ch] [bp-38h] BYREF int v41[3]; // [sp+48h] [bp-2Ch] BYREF int v42[3]; // [sp+54h] [bp-20h] BYREF int v43; // [sp+60h] [bp-14h] BYREF int v44; // [sp+64h] [bp-10h] int v45; // [sp+68h] [bp-Ch] if ( (*(_BYTE *)a3 & 1) != 0 ) v5 = *(char **)(a3 + 8); else v5 = (char *)(a3 + 1); GameLevelManager::removeDLFromActive(a1, v5); v43 = 0; v44 = 0; v45 = 0; std::string::__init(&v43, "-1", 2u); v6 = sub_4A9CC4((unsigned __int8 *)a2, (unsigned __int8 *)&v43); std::string::~string((int)&v43); if ( v6 ) goto LABEL_15; v7 = *(_BYTE *)a2 & 1; if ( (*(_BYTE *)a2 & 1) != 0 ) v8 = *(const char **)(a2 + 8); else v8 = (const char *)(a2 + 1); if ( atoi(v8) < 0 ) { result = *((_DWORD *)a1 + 225); if ( !result ) return result; v10 = *(int (**)(void))(*(_DWORD *)result + 4); return v10(); } v11 = v7 ? *(const char **)(a2 + 8) : (const char *)(a2 + 1); v43 = 0; v44 = 0; v45 = 0; v12 = strlen(v11); std::string::__init(&v43, v11, v12); v13 = sub_4C1A88(&v43, "#"); std::string::~string((int)&v43); if ( cocos2d::CCArray::count(v13) <= 1u ) { LABEL_15: result = *((_DWORD *)a1 + 225); if ( !result ) return result; v10 = *(int (**)(void))(*(_DWORD *)result + 4); return v10(); } v14 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v13, 0); v36[0] = 0; v36[1] = 0; v37 = nullptr; CString = (const char *)cocos2d::CCString::getCString(v14); v16 = strlen(CString); std::string::__init(v36, CString, v16); v17 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v13, 1u); v18 = (const char *)cocos2d::CCString::getCString(v17); memset(v38, 0, sizeof(v38)); v19 = strlen(v18); v20 = (cocos2d::CCArray *)std::string::__init(v38, v18, v19); v21 = *((char **)a1 + 225); if ( v21 ) { v22 = *(void (__fastcall **)(char *, int *, char *))(*(_DWORD *)v21 + 12); std::string::basic_string(v39, (int)v38); v22(v21, v39, v5); v20 = (cocos2d::CCArray *)std::string::~string((int)v39); } v31 = (cocos2d::CCArray *)cocos2d::CCArray::create(v20); if ( (v36[0] & 1) == 0 ) v21 = (char *)v36 + 1; v40[0] = 0; if ( (v36[0] & 1) != 0 ) v21 = v37; v40[1] = 0; v40[2] = 0; v23 = strlen(v21); std::string::__init(v40, v21, v23); v32 = sub_4C1A88(v40, "|"); std::string::~string((int)v40); for ( i = 0; i < cocos2d::CCArray::count(v32); ++i ) { v25 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v32, i); v26 = (const char *)cocos2d::CCString::getCString(v25); v43 = 0; v44 = 0; v45 = 0; v27 = strlen(v26); std::string::__init(&v43, v26, v27); std::string::basic_string(v41, (int)&v43); v33 = (GJUserMessage *)GameLevelManager::responseToDict((cocos2d::CCDictionary *)v41, 0); std::string::~string((int)v41); v29 = GJUserMessage::create(v33, v28); if ( v29 ) { cocos2d::CCArray::addObject(v31, v29); GameLevelManager::storeUserMessage((int)a1, v29); v34 = *((GJUserMessage **)v29 + 68); v35 = *((char **)v29 + 67); std::string::basic_string(v42, (int)v29 + 300); GameLevelManager::storeUserName((unsigned __int8 *)a1, (const char *)v34, v35, (unsigned __int8 *)v42); std::string::~string((int)v42); } std::string::~string((int)&v43); } std::string::basic_string(&v43, (int)v38); GameLevelManager::storeCommentsResult(a1, v31, COERCE_FLOAT(&v43), v5); std::string::~string((int)&v43); v30 = *((void (__fastcall ****)(_DWORD, cocos2d::CCArray *, char *))a1 + 225); if ( v30 ) (**v30)(v30, v31, v5); std::string::~string((int)v38); return std::string::~string((int)v36); }
GD Web Decomp Icon

GD Web Decomp

Raw Source