// // GameLevelManager::onGetNotificationsCompleted from 0x4c8a68 to 0x4c9138 (1744 bytes) // // 1 xrefs: // > GameLevelManager::handleIt @ 0x4db884 // // 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:35 +0000 // int __fastcall GameLevelManager::onGetNotificationsCompleted(GameLevelManager *a1, int a2, int a3) { const char *v6; // r1 char *v7; // r0 int v8; // r7 _BOOL4 v9; // r5 int v10; // r5 const char *v11; // r0 int result; // r0 int (__fastcall ***v13)(_DWORD, int, int, _DWORD, int); // r4 int (__fastcall *v14)(_DWORD, int, int, _DWORD, int); // r5 int v15; // r0 const char *v16; // r5 size_t v17; // r0 cocos2d::CCArray *v18; // r11 cocos2d::CCString *v19; // r0 const char *CString; // r0 const char *v21; // r5 size_t v22; // r0 cocos2d::CCArray *v23; // r5 int v24; // r0 cocos2d::CCString *v25; // r0 cocos2d::CCArray *v26; // r0 cocos2d::CCString *v27; // r0 cocos2d::CCString *v28; // r0 const char *v29; // r0 const char *v30; // r5 size_t v31; // r0 cocos2d::CCArray *v32; // r10 unsigned int i; // r9 GJAccountManager *v34; // r0 cocos2d::CCString *v35; // r0 const char *v36; // r0 const char *v37; // r6 size_t v38; // r0 int v39; // r6 GJNotification *v40; // r0 _DWORD *v41; // r0 _DWORD *v42; // r5 cocos2d::CCString *v43; // r0 cocos2d::CCString *v44; // r0 cocos2d::CCString *v45; // r0 char *v46; // r0 cocos2d::CCString *v47; // r0 const char *v48; // r0 size_t v49; // r0 int v50; // r1 char *v51; // r2 cocos2d::CCString *v52; // r0 const char *v53; // r0 size_t v54; // r0 int v55; // r1 char *v56; // r2 cocos2d::CCString *v57; // r0 char *v58; // r0 cocos2d::CCString *v59; // r0 cocos2d::CCString *v60; // r0 cocos2d::CCString *v61; // r0 cocos2d::CCString *v62; // r0 char *v63; // r0 cocos2d::CCString *v64; // r0 cocos2d::CCString *v65; // r0 cocos2d::CCString *v66; // r0 cocos2d::CCString *v67; // r0 cocos2d::CCString *v68; // r0 cocos2d::CCString *v69; // r0 char *v70; // r0 GameStatsManager *v71; // r0 GameStatsManager *v72; // r4 cocos2d::CCString *v73; // r0 const char *v74; // r0 int v75; // r3 int v76; // r3 GameManager *v77; // r0 const char *v78; // r1 int v79; // r0 int v80; // r0 int v81; // [sp+8h] [bp-5Ch] int v82; // [sp+Ch] [bp-58h] cocos2d::CCArray *v83; // [sp+10h] [bp-54h] const char *v84; // [sp+14h] [bp-50h] const char *v85; // [sp+34h] [bp-30h] int v86; // [sp+38h] [bp-2Ch] BYREF int v87; // [sp+3Ch] [bp-28h] int v88; // [sp+40h] [bp-24h] int v89; // [sp+44h] [bp-20h] BYREF int v90; // [sp+48h] [bp-1Ch] int v91; // [sp+4Ch] [bp-18h] int v92; // [sp+50h] [bp-14h] BYREF int v93; // [sp+54h] [bp-10h] char *v94; // [sp+58h] [bp-Ch] if ( (*(_BYTE *)a3 & 1) != 0 ) v6 = *(const char **)(a3 + 8); else v6 = (const char *)(a3 + 1); GameLevelManager::removeDLFromActive(a1, v6); std::string::basic_string(&v92, (unsigned __int8 *)a3, 0xEu, 0xFFFFFFFF); if ( (v92 & 1) != 0 ) v7 = v94; else v7 = (char *)&v92 + 1; v8 = atoi(v7); std::string::~string((int)&v92); v92 = 0; v93 = 0; v94 = nullptr; std::string::__init(&v92, "-1", 2u); v9 = sub_4A9CC4((unsigned __int8 *)a2, (unsigned __int8 *)&v92); std::string::~string((int)&v92); if ( v9 ) goto LABEL_21; v10 = *(_BYTE *)a2 & 1; if ( (*(_BYTE *)a2 & 1) != 0 ) v11 = *(const char **)(a2 + 8); else v11 = (const char *)(a2 + 1); result = atoi(v11); if ( result == -2 ) { v13 = *((int (__fastcall ****)(_DWORD, int, int, _DWORD, int))a1 + 84); if ( v13 ) { v14 = **v13; v15 = cocos2d::CCArray::create((cocos2d::CCArray *)0xFFFFFFFE); return v14(v13, v15, v8, 0, 10); } return result; } if ( result < 0 ) { result = *((_DWORD *)a1 + 84); if ( !result ) return result; return (*(int (__fastcall **)(int))(*(_DWORD *)result + 4))(result); } v16 = v10 ? *(const char **)(a2 + 8) : (const char *)(a2 + 1); v92 = 0; v93 = 0; v94 = nullptr; v17 = strlen(v16); std::string::__init(&v92, v16, v17); v18 = sub_4C1A88(&v92, "#"); std::string::~string((int)&v92); if ( cocos2d::CCArray::count(v18) <= 1u ) { LABEL_21: result = *((_DWORD *)a1 + 84); if ( !result ) return result; return (*(int (__fastcall **)(int))(*(_DWORD *)result + 4))(result); } v19 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v18, 1u); CString = (const char *)cocos2d::CCString::getCString(v19); v92 = 0; v93 = 0; v94 = nullptr; v21 = CString; v22 = strlen(CString); std::string::__init(&v92, v21, v22); v23 = sub_4C1A88(&v92, ":"); std::string::~string((int)&v92); v24 = cocos2d::CCArray::count(v23); if ( v24 ) { v25 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v23, 0); v24 = cocos2d::CCString::intValue(v25); } v81 = v24; v26 = (cocos2d::CCArray *)cocos2d::CCArray::count(v23); if ( (unsigned int)v26 <= 2 ) { v82 = 10; } else { v27 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v23, 2u); v26 = (cocos2d::CCArray *)cocos2d::CCString::intValue(v27); v82 = (int)v26; } v83 = (cocos2d::CCArray *)cocos2d::CCArray::create(v26); v28 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v18, 0); v29 = (const char *)cocos2d::CCString::getCString(v28); v92 = 0; v93 = 0; v94 = nullptr; v30 = v29; v31 = strlen(v29); std::string::__init(&v92, v30, v31); v32 = sub_4C1A88(&v92, "|"); std::string::~string((int)&v92); for ( i = 0; ; ++i ) { v34 = (GJAccountManager *)cocos2d::CCArray::count(v32); if ( i >= (unsigned int)v34 ) break; v35 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v32, i); v36 = (const char *)cocos2d::CCString::getCString(v35); v92 = 0; v93 = 0; v94 = nullptr; v37 = v36; v38 = strlen(v36); std::string::__init(&v92, v37, v38); v39 = GameLevelManager::responseToDict((cocos2d::CCDictionary *)&v92, 0); v40 = (GJNotification *)std::string::~string((int)&v92); v41 = GJNotification::create(v40); v92 = 0; v93 = 0; v94 = nullptr; v42 = v41; std::string::__init(&v92, a1i2r3e45s789g, 1u); v43 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v39, &v92); v42[13] = cocos2d::CCString::intValue(v43); std::string::~string((int)&v92); if ( (int)v42[13] > 0 ) { v92 = 0; v93 = 0; v94 = nullptr; std::string::__init(&v92, &a1i2r3e45s789g[2], 1u); v44 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v39, &v92); v42[14] = cocos2d::CCString::intValue(v44); std::string::~string((int)&v92); v92 = 0; v93 = 0; v94 = nullptr; std::string::__init(&v92, &a1i2r3e45s789g[4], 1u); v45 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v39, &v92); v46 = (char *)cocos2d::CCString::getCString(v45); std::string::assign(v42 + 15, v46); std::string::~string((int)&v92); v86 = 0; v87 = 0; v88 = 0; std::string::__init(&v86, &a1i2r3e45s789g[6], 1u); v47 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v39, &v86); v48 = (const char *)cocos2d::CCString::getCString(v47); v89 = 0; v90 = 0; v91 = 0; v84 = v48; v49 = strlen(v48); std::string::__init(&v89, v84, v49); LevelTools::base64DecodeString(&v92, &v89); if ( (v42[18] & 1) != 0 ) { *(_BYTE *)v42[20] = 0; v42[19] = 0; } else { *((_BYTE *)v42 + 73) = 0; *((_BYTE *)v42 + 72) = 0; } std::string::reserve(v42 + 18, 0); v50 = v93; v51 = v94; v42[18] = v92; v42[19] = v50; v42[20] = v51; v92 = 0; v93 = 0; v94 = nullptr; std::string::~string((int)&v92); std::string::~string((int)&v89); std::string::~string((int)&v86); v86 = 0; v87 = 0; v88 = 0; std::string::__init(&v86, &a1i2r3e45s789g[7], 1u); v52 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v39, &v86); v53 = (const char *)cocos2d::CCString::getCString(v52); v89 = 0; v90 = 0; v91 = 0; v85 = v53; v54 = strlen(v53); std::string::__init(&v89, v85, v54); LevelTools::base64DecodeString(&v92, &v89); if ( (v42[21] & 1) != 0 ) { *(_BYTE *)v42[23] = 0; v42[22] = 0; } else { *((_BYTE *)v42 + 85) = 0; *((_BYTE *)v42 + 84) = 0; } std::string::reserve(v42 + 21, 0); v55 = v93; v56 = v94; v42[21] = v92; v42[22] = v55; v42[23] = v56; v92 = 0; v93 = 0; v94 = nullptr; std::string::~string((int)&v92); std::string::~string((int)&v89); std::string::~string((int)&v86); v92 = 0; v93 = 0; v94 = nullptr; std::string::__init(&v92, "6", 1u); v57 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v39, &v92); v58 = (char *)cocos2d::CCString::getCString(v57); std::string::assign(v42 + 24, v58); std::string::~string((int)&v92); v92 = 0; v93 = 0; v94 = nullptr; std::string::__init(&v92, &a1i2r3e45s789g[9], 1u); v59 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v39, &v92); *((_BYTE *)v42 + 108) = cocos2d::CCString::boolValue(v59); std::string::~string((int)&v92); v92 = 0; v93 = 0; v94 = nullptr; std::string::__init(&v92, &a1i2r3e45s789g[10], 1u); v60 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v39, &v92); v42[28] = cocos2d::CCString::intValue(v60); std::string::~string((int)&v92); v92 = 0; v93 = 0; v94 = nullptr; std::string::__init(&v92, &a1i2r3e45s789g[11], 1u); v61 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v39, &v92); v42[29] = cocos2d::CCString::intValue(v61); std::string::~string((int)&v92); v92 = 0; v93 = 0; v94 = nullptr; std::string::__init(&v92, "10", 2u); v62 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v39, &v92); v63 = (char *)cocos2d::CCString::getCString(v62); std::string::assign(v42 + 30, v63); std::string::~string((int)&v92); v92 = 0; v93 = 0; v94 = nullptr; std::string::__init(&v92, "11", 2u); v64 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v39, &v92); v42[33] = cocos2d::CCString::intValue(v64); std::string::~string((int)&v92); v92 = 0; v93 = 0; v94 = nullptr; std::string::__init(&v92, "12", 2u); v65 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v39, &v92); v42[34] = cocos2d::CCString::intValue(v65); std::string::~string((int)&v92); v92 = 0; v93 = 0; v94 = nullptr; std::string::__init(&v92, "13", 2u); v66 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v39, &v92); v42[35] = cocos2d::CCString::intValue(v66); std::string::~string((int)&v92); v92 = 0; v93 = 0; v94 = nullptr; std::string::__init(&v92, "14", 2u); v67 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v39, &v92); v42[36] = cocos2d::CCString::intValue(v67); std::string::~string((int)&v92); v92 = 0; v93 = 0; v94 = nullptr; std::string::__init(&v92, "15", 2u); v68 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v39, &v92); v42[37] = cocos2d::CCString::intValue(v68); std::string::~string((int)&v92); v92 = 0; v93 = 0; v94 = nullptr; std::string::__init(&v92, "16", 2u); v69 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v39, &v92); v70 = (char *)cocos2d::CCString::getCString(v69); std::string::assign(v42 + 38, v70); std::string::~string((int)&v92); v71 = (GameStatsManager *)cocos2d::CCArray::addObject(v83, (cocos2d::CCObject *)v42); if ( (int)v42[33] > 0 ) { v72 = (GameStatsManager *)GameStatsManager::sharedState(v71); v73 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)v42[33]); v74 = (const char *)cocos2d::CCString::getCString(v73); v71 = (GameStatsManager *)GameStatsManager::setStatIfHigher(v72, v74, v42[34]); } v75 = *((unsigned __int8 *)v42 + 120); if ( (v75 & 1) != 0 ) v76 = v42[31]; else v76 = v75 >> 1; if ( v76 ) { v77 = (GameManager *)GameManager::sharedState(v71); if ( (v42[30] & 1) != 0 ) v78 = (const char *)v42[32]; else v78 = (char *)v42 + 121; GameManager::reportAchievementWithID(v77, v78, (const char *)&dword_64, 0); } } } if ( !v8 ) { v79 = GJAccountManager::sharedState(v34); v80 = GameLevelManager::userInfoForAccountID( (cocos2d::CCDictionary **)a1, *(_DWORD *)(v79 + 280) - *(_DWORD *)(v79 + 284)); if ( v80 ) { *(_DWORD *)(v80 + 536) = 0; *(_DWORD *)(v80 + 540) = 0; } } result = *((_DWORD *)a1 + 84); if ( result ) return (**(int (__fastcall ***)(int, cocos2d::CCArray *, int, int, int))result)(result, v83, v8, v81, v82); return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source