// // GameLevelManager::onAdminGetReportedContentCompleted from 0x4cd640 to 0x4cde9a (2138 bytes) // // 1 xrefs: // > GameLevelManager::handleIt @ 0x4db3d4 // // 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:42 +0000 // int __fastcall GameLevelManager::onAdminGetReportedContentCompleted(int a1, unsigned __int8 *a2, int a3) { const char *v3; // r5 cocos2d::CCDictionary *v6; // r8 char v7; // r2 size_t v8; // r0 int v9; // r0 _BOOL4 v10; // r8 int v11; // r0 size_t v12; // r9 unsigned int v13; // r7 int v14; // r5 int result; // r0 cocos2d::CCArray *v16; // r4 cocos2d::CCString *v17; // r0 cocos2d::CCString *v18; // r0 cocos2d::CCString *v19; // r0 cocos2d::CCString *v20; // r0 const char *CString; // r6 size_t v22; // r0 int v23; // r3 cocos2d::CCString *v24; // r0 unsigned int v25; // r5 cocos2d::CCArray *v26; // r11 cocos2d::CCString *v27; // r0 const char *v28; // r9 size_t v29; // r0 size_t v30; // r9 const char *v31; // r0 const char *v32; // r0 int v33; // r0 _DWORD *v34; // r3 int v35; // r1 cocos2d::CCString *v36; // r0 cocos2d::CCString *v37; // r0 cocos2d::CCString *v38; // r0 cocos2d::CCString *v39; // r0 const char *v40; // r5 size_t v41; // r0 _BYTE *v42; // r2 int v43; // r3 int v44; // r0 int v45; // r1 _BYTE *v46; // r2 cocos2d::CCString *v47; // r0 char *v48; // r0 cocos2d::CCArray *v49; // r4 cocos2d::CCArray *v50; // r0 cocos2d::CCString *v51; // r0 cocos2d::CCString *v52; // r0 cocos2d::CCArray *v53; // r11 int v54; // r3 int v55; // r0 unsigned int v56; // r10 cocos2d::CCString *v57; // r0 const char *v58; // r4 size_t v59; // r0 cocos2d::CCArray *v60; // r5 int v61; // r4 cocos2d::CCString *v62; // r0 cocos2d::CCString *v63; // r0 cocos2d::CCString *v64; // r0 cocos2d::CCString *v65; // r0 cocos2d::CCString *v66; // r0 cocos2d::CCString *v67; // r0 const char *v68; // r7 size_t v69; // r0 int v70; // r3 cocos2d::CCString *v71; // r0 unsigned int v72; // r7 cocos2d::CCString *v73; // r0 const char *v74; // r9 size_t v75; // r0 size_t v76; // r9 const char *v77; // r0 const char *v78; // r0 int v79; // r0 _DWORD *v80; // r3 int v81; // r1 cocos2d::CCString *v82; // r0 const char *v83; // r8 size_t v84; // r0 int v85; // r1 int v86; // r2 cocos2d::CCString *v87; // r0 const char *v88; // r8 size_t v89; // r0 int v90; // r1 int v91; // r2 cocos2d::CCString *v92; // r0 const char *v93; // r0 cocos2d::CCString *v94; // r0 const char *v95; // r0 cocos2d::CCString *v96; // r0 cocos2d::CCString *v97; // r0 char *v98; // r0 cocos2d::CCString *v99; // r0 const char *v100; // r0 cocos2d::CCString *v101; // r0 int *v102; // [sp+0h] [bp-12Ch] int v104; // [sp+Ch] [bp-120h] cocos2d::CCArray *v105; // [sp+10h] [bp-11Ch] cocos2d::CCArray *v106; // [sp+14h] [bp-118h] int v107; // [sp+18h] [bp-114h] int v108; // [sp+18h] [bp-114h] int v109; // [sp+2Ch] [bp-100h] BYREF int v110; // [sp+30h] [bp-FCh] int v111[3]; // [sp+34h] [bp-F8h] BYREF int v112[3]; // [sp+40h] [bp-ECh] BYREF int v113[3]; // [sp+4Ch] [bp-E0h] BYREF int v114[3]; // [sp+58h] [bp-D4h] BYREF int v115[3]; // [sp+64h] [bp-C8h] BYREF int v116[3]; // [sp+70h] [bp-BCh] BYREF int v117; // [sp+7Ch] [bp-B0h] BYREF int v118; // [sp+80h] [bp-ACh] _BYTE *v119; // [sp+84h] [bp-A8h] int v120; // [sp+88h] [bp-A4h] BYREF int v121; // [sp+8Ch] [bp-A0h] int v122; // [sp+90h] [bp-9Ch] int v123[3]; // [sp+94h] [bp-98h] BYREF int v124[3]; // [sp+A0h] [bp-8Ch] BYREF int v125[3]; // [sp+ACh] [bp-80h] BYREF int v126; // [sp+B8h] [bp-74h] BYREF int v127; // [sp+BCh] [bp-70h] int v128; // [sp+C0h] [bp-6Ch] int v129; // [sp+C4h] [bp-68h] BYREF int v130; // [sp+C8h] [bp-64h] int v131; // [sp+CCh] [bp-60h] int v132; // [sp+D0h] [bp-5Ch] BYREF int v133; // [sp+D4h] [bp-58h] int v134; // [sp+D8h] [bp-54h] int v135; // [sp+DCh] [bp-50h] BYREF int v136; // [sp+E0h] [bp-4Ch] int v137; // [sp+E4h] [bp-48h] void *v138; // [sp+E8h] [bp-44h] BYREF _DWORD *v139; // [sp+ECh] [bp-40h] unsigned int v140; // [sp+F0h] [bp-3Ch] int v141; // [sp+F4h] [bp-38h] int v142; // [sp+F8h] [bp-34h] int v143; // [sp+FCh] [bp-30h] int v144; // [sp+100h] [bp-2Ch] int v145; // [sp+104h] [bp-28h] BYREF int v146; // [sp+108h] [bp-24h] _BYTE *v147; // [sp+10Ch] [bp-20h] int v148[3]; // [sp+110h] [bp-1Ch] BYREF int v149; // [sp+11Ch] [bp-10h] int v150; // [sp+120h] [bp-Ch] v6 = *(cocos2d::CCDictionary **)(a1 + 748); v7 = *(_BYTE *)a3; v135 = 0; if ( (v7 & 1) == 0 ) v3 = (const char *)(a3 + 1); v136 = 0; if ( (v7 & 1) != 0 ) v3 = *(const char **)(a3 + 8); v137 = 0; v8 = strlen(v3); std::string::__init(&v135, v3, v8); cocos2d::CCDictionary::removeObjectForKey(v6); std::string::~string((int)&v135); v9 = sub_4ACB58(a3); v135 = 0; v136 = 0; v137 = 0; v104 = v9; std::string::__init(&v135, "-1", 2u); v10 = sub_4A9CC4(a2, (unsigned __int8 *)&v135); std::string::~string((int)&v135); if ( v10 || (v11 = std::string::find(a2, 35, 0), v12 = v11, v11 == -1) || (v13 = v11 + 1, v14 = std::string::find(a2, 35, v11 + 1), v14 == -1) ) { result = *(_DWORD *)(a1 + 836); if ( result ) return (*(int (__fastcall **)(int, int))(*(_DWORD *)result + 132))(result, v104); } else { std::string::basic_string(v111, a2, 0, v12); std::string::basic_string(v112, a2, v13, ~v12 + v14); v102 = (int *)a2; std::string::basic_string(v113, a2, v14 + 1, 0xFFFFFFFF); v135 = 0; v136 = 0; v137 = 0; v138 = nullptr; v139 = nullptr; v140 = 0; v141 = 0; v142 = 0; v144 = 0; v145 = 0; v146 = 0; v147 = nullptr; memset(v148, 0, sizeof(v148)); v149 = 0; v143 = -1; v150 = 20; v16 = sub_4C1A88(v111, ":"); if ( cocos2d::CCArray::count(v16) > 6u ) { v17 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v16, 0); v135 = cocos2d::CCString::intValue(v17); v18 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v16, 1u); v136 = cocos2d::CCString::intValue(v18); v19 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v16, 2u); v137 = cocos2d::CCString::intValue(v19); v20 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v16, 3u); CString = (const char *)cocos2d::CCString::getCString(v20); v129 = 0; v130 = 0; v131 = 0; v22 = strlen(CString); std::string::__init(&v129, CString, v22); if ( (v129 & 1) != 0 ) v23 = v130; else v23 = (int)(unsigned __int8)v129 >> 1; if ( v23 ) { v25 = 0; v26 = sub_4C1A88(&v129, ","); while ( v25 < cocos2d::CCArray::count(v26) ) { v27 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v26, v25); v28 = (const char *)cocos2d::CCString::getCString(v27); v132 = 0; v133 = 0; v134 = 0; v29 = strlen(v28); std::string::__init(&v132, v28, v29); v30 = std::string::find((unsigned __int8 *)&v132, 45, 0); if ( v30 != -1 ) { std::string::basic_string(v114, (unsigned __int8 *)&v132, 0, v30); if ( (v114[0] & 1) != 0 ) v31 = (const char *)v114[2]; else v31 = (char *)v114 + 1; v102 = &v132; v107 = atoi(v31); std::string::basic_string(v115, (unsigned __int8 *)&v132, v30 + 1, 0xFFFFFFFF); if ( (v115[0] & 1) != 0 ) v32 = (const char *)v115[2]; else v32 = (char *)v115 + 1; v33 = atoi(v32); v109 = v107; v34 = v139; v110 = v33; if ( (unsigned int)v139 >= v140 ) { std::vector>::__push_back_slow_path>(&v138, &v109); } else { if ( v139 ) { v35 = v110; *v139 = v109; v34[1] = v35; } v139 += 2; } std::string::~string((int)v115); std::string::~string((int)v114); } ++v25; std::string::~string((int)&v132); } } v24 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v16, 4u); v141 = cocos2d::CCString::intValue(v24); v36 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v16, 5u); v142 = cocos2d::CCString::intValue(v36); v37 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v16, 6u); v143 = cocos2d::CCString::intValue(v37); if ( cocos2d::CCArray::count(v16) > 9u ) { v38 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v16, 7u); v144 = cocos2d::CCString::intValue(v38); v39 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v16, 8u); v40 = (const char *)cocos2d::CCString::getCString(v39); memset(v116, 0, sizeof(v116)); v41 = strlen(v40); std::string::__init(v116, v40, v41); LevelTools::base64DecodeString(&v117, v116); v43 = v145 & 1; if ( (v145 & 1) != 0 ) { v42 = v147; v43 = 0; } else { BYTE1(v145) = v145 & 1; } if ( (v145 & 1) != 0 ) { *v42 = v43; v146 = v43; } else { LOBYTE(v145) = v43; } std::string::reserve(&v145, 0); v44 = v117; v45 = v118; v46 = v119; v117 = 0; v118 = 0; v119 = nullptr; v145 = v44; v146 = v45; v147 = v46; std::string::~string((int)&v117); std::string::~string((int)v116); v47 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v16, 9u); v48 = (char *)cocos2d::CCString::getCString(v47); std::string::assign(v148, v48); } std::string::~string((int)&v129); } v49 = sub_4C1A88(v113, ":"); v50 = (cocos2d::CCArray *)cocos2d::CCArray::count(v49); if ( (unsigned int)v50 > 2 ) { v51 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v49, 1u); v149 = cocos2d::CCString::intValue(v51); v52 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v49, 2u); v50 = (cocos2d::CCArray *)cocos2d::CCString::intValue(v52); v150 = (int)v50; } v53 = (cocos2d::CCArray *)cocos2d::CCArray::create(v50); if ( (v112[0] & 1) != 0 ) v54 = v112[1]; else v54 = (int)LOBYTE(v112[0]) >> 1; if ( v54 ) { v56 = 0; v105 = sub_4C1A88(v112, "|"); while ( v56 < cocos2d::CCArray::count(v105) ) { v57 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v105, v56); v58 = (const char *)cocos2d::CCString::getCString(v57); v120 = 0; v121 = 0; v122 = 0; v59 = strlen(v58); std::string::__init(&v120, v58, v59); v60 = sub_4C1A88(&v120, ":"); std::string::~string((int)&v120); if ( cocos2d::CCArray::count(v60) > 9u ) { v61 = operator new(0xA0u); cocos2d::CCObject::CCObject((cocos2d::CCObject *)v61); *(_QWORD *)(v61 + 112) = 0; *(_QWORD *)(v61 + 120) = 0; *(_DWORD *)v61 = &off_C99470; *(_QWORD *)(v61 + 136) = 0; *(_DWORD *)(v61 + 52) = 0; *(_DWORD *)(v61 + 56) = 0; *(_DWORD *)(v61 + 60) = 0; *(_DWORD *)(v61 + 64) = 0; *(_DWORD *)(v61 + 68) = 0; *(_DWORD *)(v61 + 72) = 0; *(_DWORD *)(v61 + 76) = 0; *(_DWORD *)(v61 + 80) = 0; *(_BYTE *)(v61 + 84) = 0; *(_DWORD *)(v61 + 88) = 0; *(_DWORD *)(v61 + 92) = 0; *(_DWORD *)(v61 + 96) = 0; *(_DWORD *)(v61 + 100) = 0; *(_DWORD *)(v61 + 104) = 0; *(_DWORD *)(v61 + 108) = 0; *(_BYTE *)(v61 + 128) = 1; *(_DWORD *)(v61 + 144) = 0; *(_DWORD *)(v61 + 148) = 0; *(_DWORD *)(v61 + 152) = 0; *(_DWORD *)(v61 + 156) = 0; cocos2d::CCObject::autorelease((cocos2d::CCObject *)v61); v62 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v60, 0); *(_DWORD *)(v61 + 52) = cocos2d::CCString::intValue(v62); v63 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v60, 1u); *(_DWORD *)(v61 + 56) = cocos2d::CCString::intValue(v63); v64 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v60, 2u); *(_DWORD *)(v61 + 60) = cocos2d::CCString::intValue(v64); v65 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v60, 3u); *(_DWORD *)(v61 + 64) = cocos2d::CCString::intValue(v65); v66 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v60, 4u); *(_DWORD *)(v61 + 68) = cocos2d::CCString::intValue(v66); v67 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v60, 5u); v68 = (const char *)cocos2d::CCString::getCString(v67); v120 = 0; v121 = 0; v122 = 0; v69 = strlen(v68); std::string::__init(&v120, v68, v69); if ( (v120 & 1) != 0 ) v70 = v121; else v70 = (int)(unsigned __int8)v120 >> 1; if ( v70 ) { v72 = 0; v106 = sub_4C1A88(&v120, ","); while ( v72 < cocos2d::CCArray::count(v106) ) { v73 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v106, v72); v74 = (const char *)cocos2d::CCString::getCString(v73); v132 = 0; v133 = 0; v134 = 0; v75 = strlen(v74); std::string::__init(&v132, v74, v75); v76 = std::string::find((unsigned __int8 *)&v132, 45, 0); if ( v76 != -1 ) { std::string::basic_string(v123, (unsigned __int8 *)&v132, 0, v76); if ( (v123[0] & 1) != 0 ) v77 = (const char *)v123[2]; else v77 = (char *)v123 + 1; v102 = &v132; v108 = atoi(v77); std::string::basic_string(v124, (unsigned __int8 *)&v132, v76 + 1, 0xFFFFFFFF); if ( (v124[0] & 1) != 0 ) v78 = (const char *)v124[2]; else v78 = (char *)v124 + 1; v79 = atoi(v78); v109 = v108; v110 = v79; v80 = *(_DWORD **)(v61 + 76); if ( (unsigned int)v80 >= *(_DWORD *)(v61 + 80) ) { std::vector>::__push_back_slow_path>((void **)(v61 + 72), &v109); } else { if ( v80 ) { v81 = v110; *v80 = v109; v80[1] = v81; } *(_DWORD *)(v61 + 76) += 8; } std::string::~string((int)v124); std::string::~string((int)v123); } ++v72; std::string::~string((int)&v132); } } v71 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v60, 6u); *(_BYTE *)(v61 + 84) = cocos2d::CCString::intValue(v71) != 0; v82 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v60, 7u); v83 = (const char *)cocos2d::CCString::getCString(v82); memset(v125, 0, sizeof(v125)); v84 = strlen(v83); std::string::__init(v125, v83, v84); LevelTools::base64DecodeString(&v126, v125); if ( (*(_BYTE *)(v61 + 88) & 1) != 0 ) { **(_BYTE **)(v61 + 96) = 0; *(_DWORD *)(v61 + 92) = 0; } else { *(_BYTE *)(v61 + 89) = 0; *(_BYTE *)(v61 + 88) = 0; } std::string::reserve((int *)(v61 + 88), 0); v85 = v127; v86 = v128; *(_DWORD *)(v61 + 88) = v126; *(_DWORD *)(v61 + 92) = v85; *(_DWORD *)(v61 + 96) = v86; v126 = 0; v127 = 0; v128 = 0; std::string::~string((int)&v126); std::string::~string((int)v125); v87 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v60, 8u); v88 = (const char *)cocos2d::CCString::getCString(v87); v129 = 0; v130 = 0; v131 = 0; v89 = strlen(v88); std::string::__init(&v129, v88, v89); LevelTools::base64DecodeString(&v132, &v129); if ( (*(_BYTE *)(v61 + 100) & 1) != 0 ) { **(_BYTE **)(v61 + 108) = 0; *(_DWORD *)(v61 + 104) = 0; } else { *(_BYTE *)(v61 + 101) = 0; *(_BYTE *)(v61 + 100) = 0; } std::string::reserve((int *)(v61 + 100), 0); v90 = v133; v91 = v134; *(_DWORD *)(v61 + 100) = v132; *(_DWORD *)(v61 + 104) = v90; *(_DWORD *)(v61 + 108) = v91; v132 = 0; v133 = 0; v134 = 0; std::string::~string((int)&v132); std::string::~string((int)&v129); v92 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v60, 9u); v93 = (const char *)cocos2d::CCString::getCString(v92); *(_QWORD *)(v61 + 112) = atoll(v93); if ( cocos2d::CCArray::count(v60) > 0xCu ) { v94 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v60, 0xAu); v95 = (const char *)cocos2d::CCString::getCString(v94); *(_QWORD *)(v61 + 136) = atoll(v95); v96 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v60, 0xBu); *(_DWORD *)(v61 + 144) = cocos2d::CCString::intValue(v96); v97 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v60, 0xCu); v98 = (char *)cocos2d::CCString::getCString(v97); std::string::assign((int *)(v61 + 148), v98); } if ( cocos2d::CCArray::count(v60) > 0xDu ) { v99 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v60, 0xDu); v100 = (const char *)cocos2d::CCString::getCString(v99); *(_QWORD *)(v61 + 120) = atoll(v100); } if ( cocos2d::CCArray::count(v60) > 0xEu ) { v101 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v60, 0xEu); *(_BYTE *)(v61 + 128) = cocos2d::CCString::intValue(v101) != 0; } cocos2d::CCArray::addObject(v53, (cocos2d::CCObject *)v61); std::string::~string((int)&v120); } ++v56; } } v55 = *(_DWORD *)(a1 + 836); if ( v55 ) (*(void (__fastcall **)(int, int, cocos2d::CCArray *, int *, int *))(*(_DWORD *)v55 + 128))( v55, v104, v53, &v135, v102); std::string::~string((int)v148); std::string::~string((int)&v145); std::__vector_base>::~__vector_base((char **)&v138); std::string::~string((int)v113); std::string::~string((int)v112); return std::string::~string((int)v111); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source