// // GameLevelManager::onGetThreadInvitesCompleted from 0x14024e870 to 0x14024f25e (2542 bytes) // // 2 xrefs: // > GameLevelManager::handleIt @ 0x14021b312 // > @ 0x14091c430 // // This function is hookable on this platform (idp: pc, 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 11:28:41 +0000 // // Hidden C++ exception states: #wind=5 void __fastcall GameLevelManager::onGetThreadInvitesCompleted(__int64 a1, const void **a2, const void **a3) { __int64 v3; // r15 __int64 v5; // r13 int v6; // edi _BYTE *v7; // rdx size_t v8; // r8 void *v9; // rcx _BYTE *v10; // rcx unsigned __int64 v11; // rbx size_t v12; // r8 __int64 v13; // rcx __int64 v14; // rcx cocos2d::CCArray *v15; // r14 _BYTE *v16; // rdx size_t v17; // r8 cocos2d::CCArray *v18; // r13 void *v19; // r8 __m128i si128; // xmm6 unsigned int i; // r15d cocos2d::CCString *v22; // rax const char *CString; // rax size_t v24; // r8 cocos2d::CCArray *v25; // rbx void *v26; // rcx char *v27; // rsi cocos2d::CCString *v28; // rax cocos2d::CCString *v29; // rax cocos2d::CCString *v30; // rax const char *v31; // rax size_t v32; // r8 void *v33; // rcx cocos2d::CCString *v34; // rax const char *v35; // rax size_t v36; // r8 void *v37; // rcx cocos2d::CCString *v38; // rax cocos2d::CCString *v39; // rax char *v40; // rax size_t v41; // r8 cocos2d::CCString *v42; // rax char *v43; // rax size_t v44; // r8 cocos2d::CCString *v45; // rax const char *v46; // rax size_t v47; // r8 cocos2d::CCString *v48; // rax const char *v49; // rax size_t v50; // r8 void *v51; // rcx cocos2d::CCString *v52; // rax cocos2d::CCString *v53; // rax cocos2d::CCString *v54; // rax cocos2d::CCString *v55; // rax cocos2d::CCString *v56; // rax cocos2d::CCString *v57; // rax cocos2d::CCString *v58; // rax cocos2d::CCString *v59; // rax cocos2d::CCString *v60; // rax char *v61; // rax size_t v62; // r8 cocos2d::CCString *v63; // rax const char *v64; // rax unsigned int j; // esi int v66; // ebx __int64 v67; // rcx __int128 v68; // [rsp+30h] [rbp-99h] BYREF __int128 v69; // [rsp+40h] [rbp-89h] __int128 *v70; // [rsp+50h] [rbp-79h] __int64 v71; // [rsp+58h] [rbp-71h] __int64 v72; // [rsp+60h] [rbp-69h] const void **v73; // [rsp+68h] [rbp-61h] const void **v74; // [rsp+70h] [rbp-59h] __int128 v75; // [rsp+78h] [rbp-51h] BYREF __int128 v76; // [rsp+88h] [rbp-41h] void *Block[2]; // [rsp+98h] [rbp-31h] BYREF __m128i v78; // [rsp+A8h] [rbp-21h] void *v79[2]; // [rsp+B8h] [rbp-11h] BYREF __m128i v80; // [rsp+C8h] [rbp-1h] v3 = (__int64)a3; v71 = (__int64)a3; v5 = a1; v72 = a1; v73 = a2; v74 = a3; v6 = 0; v7 = a3; if ( (unsigned __int64)a3[3] > 0xF ) v7 = *a3; *(_OWORD *)Block = 0; v78 = 0; v8 = -1; do ++v8; while ( v7[v8] ); sub_14003D230(Block, v7, v8); cocos2d::CCDictionary::removeObjectForKey(*(_QWORD *)(v5 + 1200), Block); if ( v78.m128i_i64[1] > 0xFuLL ) { v9 = Block[0]; if ( (unsigned __int64)(v78.m128i_i64[1] + 1) >= 0x1000 ) { v9 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v9 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v9); } *(_OWORD *)Block = 0; v78.m128i_i64[0] = 2; v78.m128i_i64[1] = 15; strcpy((char *)Block, "-1"); v10 = a2; if ( (unsigned __int64)a2[3] > 0xF ) v10 = *a2; v11 = (unsigned __int64)a2[2]; v12 = v11; if ( v11 > 2 ) v12 = 2; if ( !memcmp(v10, Block, v12) && v11 == 2 ) { v14 = *(_QWORD *)(v5 + 1392); if ( v14 ) (*(void (__fastcall **)(__int64))(*(_QWORD *)v14 + 104LL))(v14); } else { v15 = (cocos2d::CCArray *)cocos2d::CCArray::create(v13); if ( a2[2] ) { v16 = a2; if ( (unsigned __int64)a2[3] > 0xF ) v16 = *a2; *(_OWORD *)v79 = 0; v80 = 0; v17 = -1; do ++v17; while ( v16[v17] ); sub_14003D230(v79, v16, v17); v18 = sub_1400D2840((__int64 *)v79, (unsigned __int8 *)&word_14070D07C); if ( v80.m128i_i64[1] > 0xFuLL ) { v19 = v79[0]; if ( (unsigned __int64)(v80.m128i_i64[1] + 1) >= 0x1000 ) { v19 = *((void **)v79[0] - 1); if ( (unsigned __int64)((char *)v79[0] - (char *)v19 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v19); } si128 = _mm_load_si128((const __m128i *)&Size); v80 = si128; LOBYTE(v79[0]) = 0; for ( i = 0; i < cocos2d::CCArray::count(v18); ++i ) { v22 = cocos2d::CCArray::stringAtIndex(v18, i); CString = cocos2d::CCString::getCString(v22); *(_OWORD *)Block = 0; v78 = 0; v24 = -1; do ++v24; while ( CString[v24] ); sub_14003D230(Block, CString, v24); v25 = sub_1400D2840((__int64 *)Block, ":"); if ( v78.m128i_i64[1] > 0xFuLL ) { v26 = Block[0]; if ( (unsigned __int64)(v78.m128i_i64[1] + 1) >= 0x1000 ) { v26 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v26 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v26); } v78 = si128; LOBYTE(Block[0]) = 0; if ( cocos2d::CCArray::count(v25) >= 6 ) { v27 = GJMessageThread::create(); v28 = cocos2d::CCArray::stringAtIndex(v25, 0); *((_DWORD *)v27 + 14) = cocos2d::CCString::intValue(v28); v29 = cocos2d::CCArray::stringAtIndex(v25, 1u); *((_DWORD *)v27 + 15) = cocos2d::CCString::intValue(v29); v30 = cocos2d::CCArray::stringAtIndex(v25, 2u); v31 = cocos2d::CCString::getCString(v30); v68 = 0; v69 = 0u; v32 = -1; do ++v32; while ( v31[v32] ); sub_14003D230(&v68, v31, v32); v70 = &v68; if ( (_QWORD)v69 ) { cocos2d::ZipUtils::base64URLDecode(&v75, &v68); } else { v75 = v68; v76 = v69; *(_QWORD *)&v69 = 0; *((_QWORD *)&v69 + 1) = 15; LOBYTE(v68) = 0; } sub_14003D310((__int64)&v68); sub_140059C40((__int64)(v27 + 64), (__int64)&v75); if ( *((_QWORD *)&v76 + 1) > 0xFu ) { v33 = (void *)v75; if ( (unsigned __int64)(*((_QWORD *)&v76 + 1) + 1LL) >= 0x1000 ) { v33 = *(void **)(v75 - 8); if ( (unsigned __int64)(v75 - (_QWORD)v33 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v33); } v34 = cocos2d::CCArray::stringAtIndex(v25, 3u); v35 = cocos2d::CCString::getCString(v34); v68 = 0; v69 = 0u; v36 = -1; do ++v36; while ( v35[v36] ); sub_14003D230(&v68, v35, v36); v70 = &v68; if ( (_QWORD)v69 ) { cocos2d::ZipUtils::base64URLDecode(&v75, &v68); } else { v75 = v68; v76 = v69; *(_QWORD *)&v69 = 0; *((_QWORD *)&v69 + 1) = 15; LOBYTE(v68) = 0; } sub_14003D310((__int64)&v68); sub_140059C40((__int64)(v27 + 96), (__int64)&v75); if ( *((_QWORD *)&v76 + 1) > 0xFu ) { v37 = (void *)v75; if ( (unsigned __int64)(*((_QWORD *)&v76 + 1) + 1LL) >= 0x1000 ) { v37 = *(void **)(v75 - 8); if ( (unsigned __int64)(v75 - (_QWORD)v37 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v37); } v38 = cocos2d::CCArray::stringAtIndex(v25, 4u); *((_DWORD *)v27 + 50) = cocos2d::CCString::intValue(v38); v39 = cocos2d::CCArray::stringAtIndex(v25, 5u); v40 = (char *)cocos2d::CCString::getCString(v39); v41 = -1; do ++v41; while ( v40[v41] ); sub_1400405A0((void **)v27 + 21, v40, v41); if ( cocos2d::CCArray::count(v25) >= 7 ) { v42 = cocos2d::CCArray::stringAtIndex(v25, 6u); v43 = (char *)cocos2d::CCString::getCString(v42); v44 = -1; do ++v44; while ( v43[v44] ); sub_1400405A0((void **)v27 + 26, v43, v44); } if ( cocos2d::CCArray::count(v25) >= 8 ) { v45 = cocos2d::CCArray::stringAtIndex(v25, 7u); v46 = cocos2d::CCString::getCString(v45); v68 = 0; v69 = 0u; v47 = -1; do ++v47; while ( v46[v47] ); sub_14003D230(&v68, v46, v47); v70 = &v68; if ( (_QWORD)v69 ) { cocos2d::ZipUtils::base64URLDecode(&v75, &v68); } else { v75 = v68; v76 = v69; *(_QWORD *)&v69 = 0; *((_QWORD *)&v69 + 1) = 15; LOBYTE(v68) = 0; } sub_14003D310((__int64)&v68); sub_140059C40((__int64)(v27 + 136), (__int64)&v75); sub_14003D310((__int64)&v75); } if ( cocos2d::CCArray::count(v25) >= 9 ) { v48 = cocos2d::CCArray::stringAtIndex(v25, 8u); v49 = cocos2d::CCString::getCString(v48); v68 = 0; v69 = 0u; v50 = -1; do ++v50; while ( v49[v50] ); sub_14003D230(&v68, v49, v50); v70 = &v68; if ( (_QWORD)v69 ) { cocos2d::ZipUtils::base64URLDecode(&v75, &v68); } else { v75 = v68; v76 = v69; *(_QWORD *)&v69 = 0; *((_QWORD *)&v69 + 1) = 15; LOBYTE(v68) = 0; } sub_14003D310((__int64)&v68); sub_140059C40((__int64)(v27 + 256), (__int64)&v75); if ( *((_QWORD *)&v76 + 1) > 0xFu ) { v51 = (void *)v75; if ( (unsigned __int64)(*((_QWORD *)&v76 + 1) + 1LL) >= 0x1000 ) { v51 = *(void **)(v75 - 8); if ( (unsigned __int64)(v75 - (_QWORD)v51 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v51); } } if ( cocos2d::CCArray::count(v25) >= 0xB ) { v52 = cocos2d::CCArray::stringAtIndex(v25, 9u); v27[320] = cocos2d::CCString::intValue(v52) != 0; v53 = cocos2d::CCArray::stringAtIndex(v25, 0xAu); v27[329] = cocos2d::CCString::intValue(v53) != 0; } if ( cocos2d::CCArray::count(v25) >= 0x11 ) { v27[361] = 1; v54 = cocos2d::CCArray::stringAtIndex(v25, 0xBu); *((_DWORD *)v27 + 91) = cocos2d::CCString::intValue(v54); v55 = cocos2d::CCArray::stringAtIndex(v25, 0xCu); *((_DWORD *)v27 + 92) = cocos2d::CCString::intValue(v55); v56 = cocos2d::CCArray::stringAtIndex(v25, 0xDu); *((_DWORD *)v27 + 93) = cocos2d::CCString::intValue(v56); v57 = cocos2d::CCArray::stringAtIndex(v25, 0xEu); *((_DWORD *)v27 + 94) = cocos2d::CCString::intValue(v57); v58 = cocos2d::CCArray::stringAtIndex(v25, 0xFu); *((_DWORD *)v27 + 95) = cocos2d::CCString::intValue(v58); v59 = cocos2d::CCArray::stringAtIndex(v25, 0x10u); *((_DWORD *)v27 + 96) = cocos2d::CCString::intValue(v59); } if ( cocos2d::CCArray::count(v25) >= 0x12 ) { v60 = cocos2d::CCArray::stringAtIndex(v25, 0x11u); v61 = (char *)cocos2d::CCString::getCString(v60); v62 = -1; do ++v62; while ( v61[v62] ); sub_1400405A0((void **)v27 + 36, v61, v62); } if ( cocos2d::CCArray::count(v25) >= 0x13 ) { v63 = cocos2d::CCArray::stringAtIndex(v25, 0x12u); v64 = cocos2d::CCString::getCString(v63); *((_QWORD *)v27 + 44) = atoll(v64); } cocos2d::CCArray::addObject(v15, (struct cocos2d::CCObject *)v27); } } v5 = v72; v3 = v71; } for ( j = 0; j < cocos2d::CCArray::count(v15); v6 = v66 ) { v66 = v6 + 1; if ( *((_BYTE *)cocos2d::CCArray::objectAtIndex(v15, j) + 329) ) v66 = v6; ++j; } *(_DWORD *)(v5 + 548) = v6; v67 = *(_QWORD *)(v5 + 1392); if ( v67 ) (*(void (__fastcall **)(__int64, cocos2d::CCArray *))(*(_QWORD *)v67 + 96LL))(v67, v15); } sub_14003D310((__int64)a2); sub_14003D310(v3); }
GD Web Decomp Icon

GD Web Decomp

Raw Source