// // GameLevelManager::onGetThreadMessagesCompleted from 0x1000a3718 to 0x1000a3f74 (2140 bytes) // // 1 xrefs: // > GameLevelManager::handleIt @ 0x100093228 // // 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 10:58:32 +0000 // void __fastcall GameLevelManager::onGetThreadMessagesCompleted(__int64 a1, char *a2, char *a3) { __int64 v6; // x21 char *v7; // x1 __int64 v8; // x0 __int64 v9; // x23 __int64 v10; // x0 __int64 v11; // x20 __int64 v12; // x0 const char *CString; // x0 __int64 v14; // x24 __int64 v15; // x0 const char *v16; // x0 __int64 v17; // x21 __int64 v18; // x0 const char *v19; // x0 __int64 v20; // x25 __int64 v21; // x0 bool v22; // w8 _BOOL4 v23; // w0 _BOOL4 v24; // w23 __int64 v25; // x0 _QWORD *v26; // x0 __int64 v27; // x22 __int64 v28; // x0 char *v29; // x1 __int64 v30; // x0 char *v31; // x0 __int64 v32; // x0 char *v33; // x0 size_t v34; // x23 unsigned __int64 v35; // x9 unsigned __int8 v36; // w8 std::string *v37; // x24 __int128 *v38; // x1 __int64 v39; // x0 const std::string::value_type *v40; // x0 std::string *v41; // x0 __int128 v42; // q0 std::string *v43; // x0 __int128 v44; // q0 __int64 v45; // x0 const std::string::value_type *v46; // x0 std::string *v47; // x0 __int128 v48; // q0 void **v49; // x25 void **v50; // x23 __int64 v51; // x0 char *v52; // x0 _QWORD *v53; // x0 __int64 v54; // x24 __int64 v55; // x0 __int64 v56; // x0 __int64 v57; // x0 __int64 v58; // x0 char *v59; // x0 __int64 v60; // x0 __int64 v61; // x0 __int64 v62; // x0 __int64 v63; // x0 const char *v64; // x0 __int64 v65; // x0 char *v66; // x0 __int64 v67; // x0 __int64 v68; // x0 __int64 v69; // x0 const std::string::value_type *v70; // x0 __int64 v71; // x0 char *v72; // x0 _QWORD *v73; // x0 __int64 v74; // x22 __int64 v75; // x0 __int64 v76; // x0 __int64 v77; // x0 int v78; // w0 int v79; // w23 __int64 v80; // x0 __int64 v81; // x0 int v82; // w0 __int64 v83; // x0 __int64 v84; // x0 int v85; // w0 __int64 v86; // x2 __int64 v87; // x0 void *v88[2]; // [xsp+8h] [xbp-148h] BYREF char v89; // [xsp+1Fh] [xbp-131h] void *v90[2]; // [xsp+20h] [xbp-130h] BYREF char v91; // [xsp+37h] [xbp-119h] std::string v92; // [xsp+38h] [xbp-118h] BYREF std::string v93; // [xsp+50h] [xbp-100h] BYREF std::string v94; // [xsp+70h] [xbp-E0h] BYREF std::string __p; // [xsp+90h] [xbp-C0h] BYREF void *v96[2]; // [xsp+B0h] [xbp-A0h] BYREF unsigned __int8 v97; // [xsp+C7h] [xbp-89h] __int128 v98; // [xsp+C8h] [xbp-88h] BYREF __int64 v99; // [xsp+D8h] [xbp-78h] char __s[8]; // [xsp+E0h] [xbp-70h] BYREF char v101; // [xsp+F7h] [xbp-59h] v6 = *(_QWORD *)(a1 + 1088); v7 = a3; if ( a3[23] < 0 ) v7 = *(char **)a3; sub_100009900(__s, v7); cocos2d::CCDictionary::removeObjectForKey(v6, __s); if ( v101 < 0 ) operator delete(*(void **)__s); v8 = sub_1000A72B8(a3, "_"); if ( v8 ) { v9 = v8; if ( (unsigned int)sub_1002E757C(v8) < 4 ) { v17 = 0; v14 = 0; v11 = 0; } else { v10 = cocos2d::CCArray::stringAtIndex(v9, 1); v11 = cocos2d::CCString::intValue(v10); v12 = cocos2d::CCArray::stringAtIndex(v9, 2); CString = (const char *)cocos2d::CCString::getCString(v12); v14 = atoll(CString); v15 = cocos2d::CCArray::stringAtIndex(v9, 3); v16 = (const char *)cocos2d::CCString::getCString(v15); v17 = atoll(v16); } if ( (unsigned int)sub_1002E757C(v9) >= 6 ) { v18 = cocos2d::CCArray::stringAtIndex(v9, 4); v19 = (const char *)cocos2d::CCString::getCString(v18); v20 = atoll(v19); v21 = cocos2d::CCArray::stringAtIndex(v9, 5); v22 = (unsigned int)cocos2d::CCString::intValue(v21) != 0; goto LABEL_13; } } else { v11 = 0; v14 = 0; v17 = 0; } v22 = 0; v20 = 0; LABEL_13: *(_QWORD *)(a1 + 568) = v14; *(_QWORD *)(a1 + 576) = v17; *(_QWORD *)(a1 + 512) = v20; *(_BYTE *)(a1 + 528) = v22; sub_100009900(__s, "-1"); v23 = sub_1000045BC(a2, __s); v24 = v23; if ( v101 < 0 ) { operator delete(*(void **)__s); if ( v24 ) { LABEL_15: v25 = *(_QWORD *)(a1 + 1264); if ( v25 ) (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v25 + 24LL))(v25, v11); return; } } else if ( v23 ) { goto LABEL_15; } if ( a2[23] < 0 ) a2 = *(char **)a2; v26 = sub_100009900(__s, a2); v27 = sub_1000A72B8(v26, "#"); if ( v101 < 0 ) operator delete(*(void **)__s); if ( (unsigned int)sub_1002E757C(v27) ) { v28 = cocos2d::CCArray::stringAtIndex(v27, 0); v29 = (char *)cocos2d::CCString::getCString(v28); } else { v29 = ""; } sub_100009900(__s, v29); if ( (unsigned int)sub_1002E757C(v27) >= 4 ) { v30 = cocos2d::CCArray::stringAtIndex(v27, 1); v31 = (char *)cocos2d::CCString::getCString(v30); sub_100009900(&v98, v31); v32 = cocos2d::CCArray::stringAtIndex(v27, 2); v33 = (char *)cocos2d::CCString::getCString(v32); sub_100009900(v96, v33); if ( v99 >= 0 ) v34 = HIBYTE(v99); else v34 = *((_QWORD *)&v98 + 1); if ( v34 ) goto LABEL_33; v35 = v97; v36 = v97; if ( (v97 & 0x80u) != 0 ) v35 = (unsigned __int64)v96[1]; if ( v35 ) { LABEL_33: v37 = &v92; sub_100026068((__int64)&v92, v34 + 1); if ( (v92.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL ) v37 = (std::string *)v92.__r_.__value_.__r.__words[0]; if ( v34 ) { if ( v99 >= 0 ) v38 = &v98; else v38 = (__int128 *)v98; memmove(v37, v38, v34); } *(_WORD *)((char *)&v37->__r_.__value_.__l.__data_ + v34) = 35; v39 = cocos2d::CCArray::stringAtIndex(v27, 2); v40 = (const std::string::value_type *)cocos2d::CCString::getCString(v39); v41 = std::string::append(&v92, v40); v42 = *(_OWORD *)&v41->__r_.__value_.__l.__data_; v93.__r_.__value_.__r.__words[2] = v41->__r_.__value_.__r.__words[2]; *(_OWORD *)&v93.__r_.__value_.__l.__data_ = v42; v41->__r_.__value_.__l.__size_ = 0; v41->__r_.__value_.__r.__words[2] = 0; v41->__r_.__value_.__r.__words[0] = 0; v43 = std::string::append(&v93, "#"); v44 = *(_OWORD *)&v43->__r_.__value_.__l.__data_; v94.__r_.__value_.__r.__words[2] = v43->__r_.__value_.__r.__words[2]; *(_OWORD *)&v94.__r_.__value_.__l.__data_ = v44; v43->__r_.__value_.__l.__size_ = 0; v43->__r_.__value_.__r.__words[2] = 0; v43->__r_.__value_.__r.__words[0] = 0; v45 = cocos2d::CCArray::stringAtIndex(v27, 3); v46 = (const std::string::value_type *)cocos2d::CCString::getCString(v45); v47 = std::string::append(&v94, v46); v48 = *(_OWORD *)&v47->__r_.__value_.__l.__data_; __p.__r_.__value_.__r.__words[2] = v47->__r_.__value_.__r.__words[2]; *(_OWORD *)&__p.__r_.__value_.__l.__data_ = v48; v47->__r_.__value_.__l.__size_ = 0; v47->__r_.__value_.__r.__words[2] = 0; v47->__r_.__value_.__r.__words[0] = 0; if ( SHIBYTE(v94.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v94.__r_.__value_.__l.__data_); if ( SHIBYTE(v93.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v93.__r_.__value_.__l.__data_); if ( SHIBYTE(v92.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v92.__r_.__value_.__l.__data_); GameLevelManager::storeThreadManifest(a1, v11, &__p); if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__p.__r_.__value_.__l.__data_); v36 = v97; } if ( (v36 & 0x80) != 0 ) operator delete(v96[0]); if ( SHIBYTE(v99) < 0 ) operator delete((void *)v98); } *(_OWORD *)(a1 + 484) = xmmword_10075DBA0; v49 = (void **)(a1 + 600); std::string::assign((std::string *)(a1 + 600), ""); v50 = (void **)(a1 + 624); std::string::assign((std::string *)(a1 + 624), ""); *(_BYTE *)(a1 + 648) = 0; *(_DWORD *)(a1 + 652) = -1; std::string::assign((std::string *)(a1 + 656), ""); *(_QWORD *)(a1 + 504) = 0xFFFFFFFFLL; *(_QWORD *)(a1 + 520) = 0; if ( (unsigned int)sub_1002E757C(v27) >= 5 ) { v51 = cocos2d::CCArray::stringAtIndex(v27, 4); v52 = (char *)cocos2d::CCString::getCString(v51); v53 = sub_100009900(&v98, v52); v54 = sub_1000A72B8(v53, ":"); if ( SHIBYTE(v99) < 0 ) operator delete((void *)v98); if ( (unsigned int)sub_1002E757C(v54) >= 3 ) { v55 = cocos2d::CCArray::stringAtIndex(v54, 0); *(_DWORD *)(a1 + 484) = cocos2d::CCString::intValue(v55); v56 = cocos2d::CCArray::stringAtIndex(v54, 1); *(_DWORD *)(a1 + 488) = cocos2d::CCString::intValue(v56); v57 = cocos2d::CCArray::stringAtIndex(v54, 2); *(_DWORD *)(a1 + 492) = cocos2d::CCString::intValue(v57); } if ( (unsigned int)sub_1002E757C(v54) >= 4 ) { v58 = cocos2d::CCArray::stringAtIndex(v54, 3); v59 = (char *)cocos2d::CCString::getCString(v58); sub_100009900(v90, v59); LevelTools::base64DecodeString(&v98, v90); if ( *(char *)(a1 + 623) < 0 ) operator delete(*v49); *(_OWORD *)v49 = v98; *(_QWORD *)(a1 + 616) = v99; HIBYTE(v99) = 0; LOBYTE(v98) = 0; if ( v91 < 0 ) operator delete(v90[0]); } if ( (unsigned int)sub_1002E757C(v54) >= 5 ) { v60 = cocos2d::CCArray::stringAtIndex(v54, 4); *(_DWORD *)(a1 + 496) = cocos2d::CCString::intValue(v60); } if ( (unsigned int)sub_1002E757C(v54) >= 6 ) { v61 = cocos2d::CCArray::stringAtIndex(v54, 5); *(_DWORD *)(a1 + 504) = cocos2d::CCString::intValue(v61) != 0; } if ( (unsigned int)sub_1002E757C(v54) >= 7 ) { v62 = cocos2d::CCArray::stringAtIndex(v54, 6); *(_DWORD *)(a1 + 508) = cocos2d::CCString::intValue(v62) != 0; } if ( (unsigned int)sub_1002E757C(v54) >= 8 ) { v63 = cocos2d::CCArray::stringAtIndex(v54, 7); v64 = (const char *)cocos2d::CCString::getCString(v63); *(_QWORD *)(a1 + 520) = atoll(v64); } if ( (unsigned int)sub_1002E757C(v54) >= 9 ) { v65 = cocos2d::CCArray::stringAtIndex(v54, 8); v66 = (char *)cocos2d::CCString::getCString(v65); sub_100009900(v88, v66); LevelTools::base64DecodeString(&v98, v88); if ( *(char *)(a1 + 647) < 0 ) operator delete(*v50); *(_OWORD *)v50 = v98; *(_QWORD *)(a1 + 640) = v99; HIBYTE(v99) = 0; LOBYTE(v98) = 0; if ( v89 < 0 ) operator delete(v88[0]); } if ( (unsigned int)sub_1002E757C(v54) >= 0xA ) { v67 = cocos2d::CCArray::stringAtIndex(v54, 9); *(_BYTE *)(a1 + 648) = (unsigned int)cocos2d::CCString::intValue(v67) != 0; } if ( (unsigned int)sub_1002E757C(v54) >= 0xB ) { v68 = cocos2d::CCArray::stringAtIndex(v54, 10); *(_DWORD *)(a1 + 652) = cocos2d::CCString::intValue(v68); } } if ( (unsigned int)sub_1002E757C(v27) >= 6 ) { v69 = cocos2d::CCArray::stringAtIndex(v27, 5); v70 = (const std::string::value_type *)cocos2d::CCString::getCString(v69); std::string::assign((std::string *)(a1 + 656), v70); } *(_QWORD *)(a1 + 584) = 0x500000005LL; *(_DWORD *)(a1 + 592) = 30; *(_DWORD *)(a1 + 500) = 50; if ( (unsigned int)sub_1002E757C(v27) >= 7 ) { v71 = cocos2d::CCArray::stringAtIndex(v27, 6); v72 = (char *)cocos2d::CCString::getCString(v71); v73 = sub_100009900(&v98, v72); v74 = sub_1000A72B8(v73, ","); if ( SHIBYTE(v99) < 0 ) operator delete((void *)v98); if ( (unsigned int)sub_1002E757C(v74) >= 3 ) { v75 = cocos2d::CCArray::stringAtIndex(v74, 0); *(_DWORD *)(a1 + 584) = cocos2d::CCString::intValue(v75); v76 = cocos2d::CCArray::stringAtIndex(v74, 1); if ( (int)cocos2d::CCString::intValue(v76) < 2 ) { v78 = 1; } else { v77 = cocos2d::CCArray::stringAtIndex(v74, 1); v78 = cocos2d::CCString::intValue(v77); } *(_DWORD *)(a1 + 588) = v78; v79 = *(_DWORD *)(a1 + 584); v80 = cocos2d::CCArray::stringAtIndex(v74, 2); if ( v79 >= (int)cocos2d::CCString::intValue(v80) ) { v82 = *(_DWORD *)(a1 + 584); } else { v81 = cocos2d::CCArray::stringAtIndex(v74, 2); v82 = cocos2d::CCString::intValue(v81); } *(_DWORD *)(a1 + 592) = v82; } if ( (unsigned int)sub_1002E757C(v74) >= 4 ) { v83 = cocos2d::CCArray::stringAtIndex(v74, 3); if ( (int)cocos2d::CCString::intValue(v83) < 2 ) { v85 = 1; } else { v84 = cocos2d::CCArray::stringAtIndex(v74, 3); v85 = cocos2d::CCString::intValue(v84); } *(_DWORD *)(a1 + 500) = v85; } } v86 = sub_1000C6018(__s); v87 = *(_QWORD *)(a1 + 1264); if ( v87 ) (*(void (__fastcall **)(__int64, __int64, __int64, bool))(*(_QWORD *)v87 + 16LL))(v87, v11, v86, v17 > 0); if ( v101 < 0 ) operator delete(*(void **)__s); }
GD Web Decomp Icon

GD Web Decomp

Raw Source