// // GameLevelManager::onGetThreadMessagesCompleted from 0x84d848 to 0x84e3ac (2916 bytes) // // 2 xrefs: // > GameLevelManager::handleIt @ 0x85abe4 // > @ 0x58078 // // 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:25 +0000 // __int64 __fastcall GameLevelManager::onGetThreadMessagesCompleted(__int64 a1, __int64 a2, char *a3) { char *v6; // x22 __int64 v7; // x24 size_t v8; // x0 cocos2d::CCArray *v9; // x0 cocos2d::CCArray *v10; // x22 _BOOL4 v11; // w26 __int64 v12; // x23 __int64 v13; // x28 unsigned int v14; // w24 cocos2d::CCString *v15; // x0 const char *v16; // x0 __int64 v17; // x27 cocos2d::CCString *v18; // x0 bool v19; // w3 _BOOL4 v20; // w22 __int64 v21; // x0 cocos2d::CCString *v23; // x0 cocos2d::CCString *v24; // x0 const char *CString; // x0 cocos2d::CCString *v26; // x0 const char *v27; // x0 const char *v28; // x1 size_t v29; // x0 cocos2d::CCArray *v30; // x22 const char *v31; // x1 size_t v32; // x0 cocos2d::CCString *v33; // x0 size_t v34; // x0 cocos2d::CCString *v35; // x0 size_t v36; // x0 int v37; // w0 __int64 v38; // x2 cocos2d::CCString *v39; // x0 char *v40; // x0 __int64 v41; // x0 __int64 v42; // x5 __int64 v43; // x0 __int64 v44; // x5 cocos2d::CCString *v45; // x0 char *v46; // x0 __int64 v47; // x0 __int64 v48; // x3 cocos2d::CCString *v49; // x0 size_t v50; // x0 cocos2d::CCArray *v51; // x23 cocos2d::CCString *v52; // x0 cocos2d::CCString *v53; // x0 cocos2d::CCString *v54; // x0 cocos2d::CCString *v55; // x0 size_t v56; // x0 __int64 v57; // x3 char v58; // w0 cocos2d::CCString *v59; // x0 cocos2d::CCString *v60; // x0 cocos2d::CCString *v61; // x0 cocos2d::CCString *v62; // x0 const char *v63; // x0 cocos2d::CCString *v64; // x0 size_t v65; // x0 __int64 v66; // x2 __int64 v67; // x3 char v68; // w0 cocos2d::CCString *v69; // x0 cocos2d::CCString *v70; // x0 char *v71; // x0 cocos2d::CCString *v72; // x0 size_t v73; // x0 cocos2d::CCArray *v74; // x20 cocos2d::CCString *v75; // x0 cocos2d::CCString *v76; // x0 cocos2d::CCString *v77; // x0 int v78; // w0 int v79; // w22 cocos2d::CCString *v80; // x0 cocos2d::CCArray *v81; // x2 __int64 v82; // x0 cocos2d::CCString *v83; // x0 cocos2d::CCString *v84; // x0 cocos2d::CCString *v85; // x0 cocos2d::CCString *v86; // x0 cocos2d::CCString *v87; // x0 char *v88; // [xsp+68h] [xbp+68h] char *v89; // [xsp+68h] [xbp+68h] char *v90; // [xsp+70h] [xbp+70h] char *v91; // [xsp+70h] [xbp+70h] char *v92; // [xsp+78h] [xbp+78h] char *v93; // [xsp+78h] [xbp+78h] char *v94; // [xsp+78h] [xbp+78h] char *v95; // [xsp+78h] [xbp+78h] __int64 v96[2]; // [xsp+88h] [xbp+88h] BYREF void *v97; // [xsp+98h] [xbp+98h] unsigned __int64 v98[3]; // [xsp+A0h] [xbp+A0h] BYREF __int64 v99[2]; // [xsp+B8h] [xbp+B8h] BYREF void *v100; // [xsp+C8h] [xbp+C8h] __int64 v101; // [xsp+D0h] [xbp+D0h] BYREF __int64 v102; // [xsp+D8h] [xbp+D8h] void *v103; // [xsp+E0h] [xbp+E0h] __int64 v104; // [xsp+E8h] [xbp+E8h] BYREF __int64 v105; // [xsp+F0h] [xbp+F0h] void *v106; // [xsp+F8h] [xbp+F8h] __int64 v107; // [xsp+100h] [xbp+100h] BYREF __int64 v108; // [xsp+108h] [xbp+108h] void *v109; // [xsp+110h] [xbp+110h] __int64 v110; // [xsp+118h] [xbp+118h] BYREF __int64 v111; // [xsp+120h] [xbp+120h] void *v112; // [xsp+128h] [xbp+128h] __int64 v113; // [xsp+130h] [xbp+130h] BYREF __int64 v114; // [xsp+138h] [xbp+138h] void *v115; // [xsp+140h] [xbp+140h] v6 = a3 + 1; v7 = *(_QWORD *)(a1 + 1088); if ( (*a3 & 1) != 0 ) v6 = *((char **)a3 + 2); v113 = 0; v114 = 0; v115 = nullptr; v8 = strlen(v6); std::string::__init(&v113, v6, v8); cocos2d::CCDictionary::removeObjectForKey(v7, &v113); if ( (v113 & 1) != 0 ) operator delete(v115); v9 = sub_80CFCC((unsigned __int8 *)a3, &byte_11528B0); v10 = v9; if ( v9 ) { if ( (unsigned int)cocos2d::CCArray::count(v9) > 3 ) { v23 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v10, 1u); v14 = cocos2d::CCString::intValue(v23); v24 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v10, 2u); CString = (const char *)cocos2d::CCString::getCString(v24); v13 = atoll(CString); v26 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v10, 3u); v27 = (const char *)cocos2d::CCString::getCString(v26); v12 = atoll(v27); v11 = v12 > 0; if ( (unsigned int)cocos2d::CCArray::count(v10) > 5 ) goto LABEL_8; } else { v11 = 0; v12 = 0; v13 = 0; v14 = 0; if ( (unsigned int)cocos2d::CCArray::count(v10) > 5 ) { LABEL_8: v15 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v10, 4u); v16 = (const char *)cocos2d::CCString::getCString(v15); v17 = atoll(v16); v18 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v10, 5u); v19 = (unsigned int)cocos2d::CCString::intValue(v18) != 0; goto LABEL_9; } } v19 = 0; v17 = 0; } else { v11 = 0; v12 = 0; v13 = 0; v14 = 0; v19 = 0; v17 = 0; } LABEL_9: *(_BYTE *)(a1 + 528) = v19; *(_QWORD *)(a1 + 568) = v13; *(_QWORD *)(a1 + 576) = v12; *(_QWORD *)(a1 + 512) = v17; v113 = 0; v114 = 0; v115 = nullptr; std::string::__init(&v113, &word_117CE08, 2u); v20 = sub_7FEA60(a2, (__int64)&v113); if ( (v113 & 1) != 0 ) { operator delete(v115); if ( v20 ) { LABEL_11: v21 = *(_QWORD *)(a1 + 1264); if ( v21 ) (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v21 + 24LL))(v21, v14); return _stack_chk_guard; } } else if ( v20 ) { goto LABEL_11; } v28 = (const char *)(a2 + 1); if ( (*(_BYTE *)a2 & 1) != 0 ) v28 = *(const char **)(a2 + 16); v92 = (char *)v28; v113 = 0; v114 = 0; v115 = nullptr; v29 = strlen(v28); std::string::__init(&v113, v92, v29); v30 = sub_80CFCC((unsigned __int8 *)&v113, "#"); if ( (v113 & 1) != 0 ) { operator delete(v115); if ( !(unsigned int)cocos2d::CCArray::count(v30) ) goto LABEL_21; } else if ( !(unsigned int)cocos2d::CCArray::count(v30) ) { LABEL_21: v31 = &byte_11B8890; goto LABEL_22; } v86 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v30, 0); v31 = (const char *)cocos2d::CCString::getCString(v86); LABEL_22: v93 = (char *)v31; v96[0] = 0; v96[1] = 0; v97 = nullptr; v32 = strlen(v31); std::string::__init(v96, v93, v32); if ( (unsigned int)cocos2d::CCArray::count(v30) > 3 ) { v33 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v30, 1u); v90 = (char *)cocos2d::CCString::getCString(v33); v101 = 0; v102 = 0; v103 = nullptr; v34 = strlen(v90); std::string::__init(&v101, v90, v34); v35 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v30, 2u); v91 = (char *)cocos2d::CCString::getCString(v35); v104 = 0; v105 = 0; v106 = nullptr; v36 = strlen(v91); std::string::__init(&v104, v91, v36); v37 = v101 & 1; v38 = (unsigned __int8)v101 >> 1; if ( v37 ) v38 = v102; if ( !v38 ) { if ( (v104 & 1) != 0 ) { if ( !v105 ) { LABEL_83: operator delete(v106); v37 = v101 & 1; goto LABEL_36; } } else if ( !((int)(unsigned __int8)v104 >> 1) ) { LABEL_36: if ( v37 ) operator delete(v103); goto LABEL_38; } } std::operator+("#", (__int64)&v101, v98); v39 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v30, 2u); v40 = (char *)cocos2d::CCString::getCString(v39); v41 = std::string::append((__int64)v98, v40); v42 = *(_QWORD *)(v41 + 8); v110 = *(_QWORD *)v41; v111 = v42; v112 = *(void **)(v41 + 16); *(_QWORD *)v41 = 0; *(_QWORD *)(v41 + 8) = 0; *(_QWORD *)(v41 + 16) = 0; v43 = std::string::append((__int64)&v110, "#"); v44 = *(_QWORD *)(v43 + 8); v113 = *(_QWORD *)v43; v114 = v44; v115 = *(void **)(v43 + 16); *(_QWORD *)v43 = 0; *(_QWORD *)(v43 + 8) = 0; *(_QWORD *)(v43 + 16) = 0; v45 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v30, 3u); v46 = (char *)cocos2d::CCString::getCString(v45); v47 = std::string::append((__int64)&v113, v46); v48 = *(_QWORD *)(v47 + 8); v107 = *(_QWORD *)v47; v108 = v48; v109 = *(void **)(v47 + 16); *(_QWORD *)v47 = 0; *(_QWORD *)(v47 + 8) = 0; *(_QWORD *)(v47 + 16) = 0; if ( (v113 & 1) != 0 ) operator delete(v115); if ( (v110 & 1) != 0 ) operator delete(v112); if ( (v98[0] & 1) != 0 ) operator delete((void *)v98[2]); GameLevelManager::storeThreadManifest((_QWORD *)a1, v14, (__int64)&v107); if ( (v107 & 1) != 0 ) operator delete(v109); if ( (v104 & 1) == 0 ) { v37 = v101 & 1; goto LABEL_36; } goto LABEL_83; } LABEL_38: *(_DWORD *)(a1 + 484) = 0; *(_DWORD *)(a1 + 488) = 0; *(_DWORD *)(a1 + 492) = 0; *(_DWORD *)(a1 + 496) = -1; std::string::assign((__int64 *)(a1 + 600), &byte_11B8890); std::string::assign((__int64 *)(a1 + 624), &byte_11B8890); *(_DWORD *)(a1 + 652) = -1; *(_BYTE *)(a1 + 648) = 0; std::string::assign((__int64 *)(a1 + 656), &byte_11B8890); *(_DWORD *)(a1 + 508) = 0; *(_DWORD *)(a1 + 504) = -1; *(_QWORD *)(a1 + 520) = 0; if ( (unsigned int)cocos2d::CCArray::count(v30) > 4 ) { v49 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v30, 4u); v94 = (char *)cocos2d::CCString::getCString(v49); v99[0] = 0; v99[1] = 0; v100 = nullptr; v50 = strlen(v94); std::string::__init(v99, v94, v50); v51 = sub_80CFCC((unsigned __int8 *)v99, ":"); if ( (v99[0] & 1) != 0 ) operator delete(v100); if ( (unsigned int)cocos2d::CCArray::count(v51) > 2 ) { v52 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v51, 0); *(_DWORD *)(a1 + 484) = cocos2d::CCString::intValue(v52); v53 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v51, 1u); *(_DWORD *)(a1 + 488) = cocos2d::CCString::intValue(v53); v54 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v51, 2u); *(_DWORD *)(a1 + 492) = cocos2d::CCString::intValue(v54); } if ( (unsigned int)cocos2d::CCArray::count(v51) > 3 ) { v55 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v51, 3u); v88 = (char *)cocos2d::CCString::getCString(v55); v101 = 0; v102 = 0; v103 = nullptr; v56 = strlen(v88); std::string::__init(&v101, v88, v56); LevelTools::base64DecodeString((__int64)&v101, &v104); if ( (*(_BYTE *)(a1 + 600) & 1) != 0 ) { **(_BYTE **)(a1 + 616) = 0; *(_QWORD *)(a1 + 608) = 0; } else { *(_BYTE *)(a1 + 601) = 0; *(_BYTE *)(a1 + 600) = 0; } std::string::reserve((__int64 *)(a1 + 600), 0); *(_QWORD *)(a1 + 616) = v106; v57 = v105; v58 = v101; *(_QWORD *)(a1 + 600) = v104; *(_QWORD *)(a1 + 608) = v57; if ( (v58 & 1) != 0 ) operator delete(v103); } if ( (unsigned int)cocos2d::CCArray::count(v51) > 4 ) { v59 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v51, 4u); *(_DWORD *)(a1 + 496) = cocos2d::CCString::intValue(v59); } if ( (unsigned int)cocos2d::CCArray::count(v51) > 5 ) { v60 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v51, 5u); *(_DWORD *)(a1 + 504) = cocos2d::CCString::intValue(v60) != 0; } if ( (unsigned int)cocos2d::CCArray::count(v51) > 6 ) { v61 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v51, 6u); *(_DWORD *)(a1 + 508) = cocos2d::CCString::intValue(v61) != 0; } if ( (unsigned int)cocos2d::CCArray::count(v51) > 7 ) { v62 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v51, 7u); v63 = (const char *)cocos2d::CCString::getCString(v62); *(_QWORD *)(a1 + 520) = atoll(v63); } if ( (unsigned int)cocos2d::CCArray::count(v51) > 8 ) { v64 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v51, 8u); v89 = (char *)cocos2d::CCString::getCString(v64); v107 = 0; v108 = 0; v109 = nullptr; v65 = strlen(v89); std::string::__init(&v107, v89, v65); LevelTools::base64DecodeString((__int64)&v107, &v110); if ( (*(_BYTE *)(a1 + 624) & 1) != 0 ) { **(_BYTE **)(a1 + 640) = 0; *(_QWORD *)(a1 + 632) = 0; } else { *(_BYTE *)(a1 + 625) = 0; *(_BYTE *)(a1 + 624) = 0; } std::string::reserve((__int64 *)(a1 + 624), 0); v66 = v110; v67 = v111; v68 = v107; *(_QWORD *)(a1 + 640) = v112; *(_QWORD *)(a1 + 624) = v66; *(_QWORD *)(a1 + 632) = v67; if ( (v68 & 1) != 0 ) operator delete(v109); } if ( (unsigned int)cocos2d::CCArray::count(v51) > 9 ) { v69 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v51, 9u); *(_BYTE *)(a1 + 648) = (unsigned int)cocos2d::CCString::intValue(v69) != 0; } if ( (unsigned int)cocos2d::CCArray::count(v51) > 0xA ) { v83 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v51, 0xAu); *(_DWORD *)(a1 + 652) = cocos2d::CCString::intValue(v83); } } if ( (unsigned int)cocos2d::CCArray::count(v30) > 5 ) { v70 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v30, 5u); v71 = (char *)cocos2d::CCString::getCString(v70); std::string::assign((__int64 *)(a1 + 656), v71); } *(_DWORD *)(a1 + 584) = 5; *(_DWORD *)(a1 + 588) = 5; *(_DWORD *)(a1 + 592) = 30; *(_DWORD *)(a1 + 500) = 50; if ( (unsigned int)cocos2d::CCArray::count(v30) > 6 ) { v72 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v30, 6u); v95 = (char *)cocos2d::CCString::getCString(v72); v113 = 0; v114 = 0; v115 = nullptr; v73 = strlen(v95); std::string::__init(&v113, v95, v73); v74 = sub_80CFCC((unsigned __int8 *)&v113, &byte_1169BE0); if ( (v113 & 1) != 0 ) operator delete(v115); if ( (unsigned int)cocos2d::CCArray::count(v74) > 2 ) { v75 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v74, 0); *(_DWORD *)(a1 + 584) = cocos2d::CCString::intValue(v75); v76 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v74, 1u); if ( (int)cocos2d::CCString::intValue(v76) <= 1 ) { v78 = 1; } else { v77 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v74, 1u); v78 = cocos2d::CCString::intValue(v77); } *(_DWORD *)(a1 + 588) = v78; v79 = *(_DWORD *)(a1 + 584); v80 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v74, 2u); if ( v79 < (int)cocos2d::CCString::intValue(v80) ) { v87 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v74, 2u); *(_DWORD *)(a1 + 592) = cocos2d::CCString::intValue(v87); } else { *(_DWORD *)(a1 + 592) = *(_DWORD *)(a1 + 584); } } if ( (unsigned int)cocos2d::CCArray::count(v74) > 3 ) { v84 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v74, 3u); if ( (int)cocos2d::CCString::intValue(v84) <= 1 ) { *(_DWORD *)(a1 + 500) = 1; } else { v85 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v74, 3u); *(_DWORD *)(a1 + 500) = cocos2d::CCString::intValue(v85); } } } v81 = sub_837CE0((unsigned __int8 *)v96); v82 = *(_QWORD *)(a1 + 1264); if ( v82 ) (*(void (__fastcall **)(__int64, _QWORD, cocos2d::CCArray *, _BOOL4))(*(_QWORD *)v82 + 16LL))(v82, v14, v81, v11); if ( (v96[0] & 1) != 0 ) operator delete(v97); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source