// // GameLevelManager::onGetThreadsCompleted from 0x14024a780 to 0x14024b345 (3013 bytes) // // 2 xrefs: // > GameLevelManager::handleIt @ 0x14021b1b0 // > @ 0x14091c3b8 // // 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:40 +0000 // // Hidden C++ exception states: #wind=7 void __fastcall GameLevelManager::onGetThreadsCompleted(__int64 a1, _QWORD *a2, _QWORD *a3) { _BYTE *v6; // rdx size_t v7; // r8 __int64 v8; // r8 void *v9; // rcx _QWORD *v10; // rdi __int64 v11; // rax unsigned __int64 v12; // rdi char *v13; // rbx __int64 v14; // rax unsigned __int64 v15; // rcx const void *v16; // rcx unsigned __int64 v17; // rsi unsigned __int64 v18; // rbx size_t v19; // r8 size_t v20; // r8 const void *v21; // rdx __int64 v22; // rdx __int64 v23; // rcx __int64 v24; // r8 __int64 v25; // r9 unsigned __int64 v26; // rdi unsigned __int64 v27; // rax size_t v28; // rax size_t v29; // r8 _QWORD *v30; // rax cocos2d::CCArray *v31; // rbx cocos2d::CCString *v32; // rax cocos2d::CCString *v33; // rax cocos2d::CCString *v34; // rax cocos2d::CCString *v35; // rax __int64 v36; // rcx cocos2d::CCString *v37; // rax __int64 v38; // rdx cocos2d::CCArray *v39; // r12 unsigned int i; // esi cocos2d::CCString *v41; // rax const char *CString; // rax size_t v43; // r8 cocos2d::CCArray *v44; // rbx char *v45; // rdi cocos2d::CCString *v46; // rax cocos2d::CCString *v47; // rax cocos2d::CCString *v48; // rax const char *v49; // rax size_t v50; // r8 void *v51; // rcx cocos2d::CCString *v52; // rax const char *v53; // rax size_t v54; // r8 void *v55; // rcx cocos2d::CCString *v56; // rax cocos2d::CCString *v57; // rax cocos2d::CCString *v58; // rax char *v59; // rax size_t v60; // r8 cocos2d::CCString *v61; // rax cocos2d::CCString *v62; // rax const char *v63; // rax size_t v64; // r8 void *v65; // rcx cocos2d::CCString *v66; // rax cocos2d::CCString *v67; // rax cocos2d::CCString *v68; // rax cocos2d::CCString *v69; // rax cocos2d::CCString *v70; // rax cocos2d::CCString *v71; // rax cocos2d::CCString *v72; // rax cocos2d::CCString *v73; // rax cocos2d::CCString *v74; // rax cocos2d::CCString *v75; // rax cocos2d::CCString *v76; // rax cocos2d::CCString *v77; // rax cocos2d::CCString *v78; // rax const char *v79; // rax size_t v80; // r8 void *v81; // rcx cocos2d::CCString *v82; // rax char *v83; // rax size_t v84; // r8 cocos2d::CCString *v85; // rax const char *v86; // rax cocos2d::CCString *v87; // rax cocos2d::CCString *v88; // rax int v89; // eax void (__fastcall ***v90)(_QWORD, __int64, _QWORD, _QWORD, int); // rcx __int64 v91; // rcx unsigned int v92; // [rsp+30h] [rbp-99h] int v93; // [rsp+40h] [rbp-89h] unsigned int v94; // [rsp+44h] [rbp-85h] cocos2d::CCArray *v95; // [rsp+48h] [rbp-81h] void *Block[2]; // [rsp+60h] [rbp-69h] BYREF __int128 v97; // [rsp+70h] [rbp-59h] __int128 v98; // [rsp+80h] [rbp-49h] BYREF __int128 v99; // [rsp+90h] [rbp-39h] __int128 v100; // [rsp+A0h] [rbp-29h] BYREF __int64 v101; // [rsp+B0h] [rbp-19h] __int64 v102; // [rsp+B8h] [rbp-11h] _OWORD v103[2]; // [rsp+C0h] [rbp-9h] BYREF v6 = a3; if ( a3[3] > 0xFu ) v6 = (_BYTE *)*a3; *(_OWORD *)Block = 0; v97 = 0; v7 = -1; do ++v7; while ( v6[v7] ); sub_14003D230(Block, v6, v7); cocos2d::CCDictionary::removeObjectForKey(*(_QWORD *)(a1 + 1200), Block); if ( *((_QWORD *)&v97 + 1) > 0xFu ) { v9 = Block[0]; if ( (unsigned __int64)(*((_QWORD *)&v97 + 1) + 1LL) >= 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); } v10 = a2; if ( a2[3] > 0xFu ) v10 = (_QWORD *)*a2; v11 = a2[2]; if ( v11 ) { v13 = (char *)v10 + v11; LOBYTE(v8) = 35; v14 = sub_140677120(v10, (char *)v10 + v11, v8); v15 = v14 - (_QWORD)v10; v12 = -1; if ( (char *)v14 != v13 ) v12 = v15; } else { v12 = -1; } *(_OWORD *)Block = 0; *(_QWORD *)&v97 = 2; *((_QWORD *)&v97 + 1) = 15; strcpy((char *)Block, "-1"); v16 = a2; v17 = a2[3]; if ( v17 > 0xF ) v16 = (const void *)*a2; v18 = a2[2]; v19 = v18; if ( v18 > 2 ) v19 = 2; if ( !memcmp(v16, Block, v19) && v18 == 2 || v12 == -1 ) { v91 = *(_QWORD *)(a1 + 1392); if ( v91 ) (*(void (__fastcall **)(__int64))(*(_QWORD *)v91 + 8LL))(v91); } else { v100 = 0; v101 = 0; v102 = 0; v20 = v12; if ( v18 < v12 ) v20 = v18; v21 = a2; if ( v17 > 0xF ) v21 = (const void *)*a2; sub_14003D230(&v100, v21, v20); v92 = 0; v94 = 0; v93 = 20; v26 = v12 + 1; v98 = 0; v99 = 0; v27 = a2[2]; if ( v27 < v26 ) sub_14003F4D0(v23, v22, v24, v25); v28 = v27 - v26; v29 = -1; if ( v28 != -1 ) v29 = v28; v30 = a2; if ( a2[3] > 0xFu ) v30 = (_QWORD *)*a2; sub_14003D230(&v98, (char *)v30 + v26, v29); v31 = sub_1400D2840((__int64 *)&v98, ":"); sub_14003D310((__int64)&v98); if ( cocos2d::CCArray::count(v31) >= 3 ) { v32 = cocos2d::CCArray::stringAtIndex(v31, 0); v92 = cocos2d::CCString::intValue(v32); v33 = cocos2d::CCArray::stringAtIndex(v31, 1u); v94 = cocos2d::CCString::intValue(v33); v34 = cocos2d::CCArray::stringAtIndex(v31, 2u); v93 = cocos2d::CCString::intValue(v34); } if ( cocos2d::CCArray::count(v31) >= 4 ) { v35 = cocos2d::CCArray::stringAtIndex(v31, 3u); *(_DWORD *)(a1 + 548) = cocos2d::CCString::intValue(v35); } if ( cocos2d::CCArray::count(v31) >= 5 ) { v37 = cocos2d::CCArray::stringAtIndex(v31, 4u); *(_DWORD *)(a1 + 552) = cocos2d::CCString::intValue(v37); } v38 = cocos2d::CCArray::create(v36); v95 = (cocos2d::CCArray *)v38; if ( v101 ) { v39 = sub_1400D2840((__int64 *)&v100, (unsigned __int8 *)&word_14070D07C); for ( i = 0; i < cocos2d::CCArray::count(v39); ++i ) { v41 = cocos2d::CCArray::stringAtIndex(v39, i); CString = cocos2d::CCString::getCString(v41); memset(v103, 0, sizeof(v103)); v43 = -1; do ++v43; while ( CString[v43] ); sub_14003D230(v103, CString, v43); v44 = sub_1400D2840((__int64 *)v103, ":"); sub_14003D310((__int64)v103); if ( cocos2d::CCArray::count(v44) >= 7 ) { v45 = GJMessageThread::create(); v46 = cocos2d::CCArray::stringAtIndex(v44, 0); *((_DWORD *)v45 + 14) = cocos2d::CCString::intValue(v46); v47 = cocos2d::CCArray::stringAtIndex(v44, 1u); *((_DWORD *)v45 + 15) = cocos2d::CCString::intValue(v47); v48 = cocos2d::CCArray::stringAtIndex(v44, 2u); v49 = cocos2d::CCString::getCString(v48); *(_OWORD *)Block = 0; v97 = 0u; v50 = -1; do ++v50; while ( v49[v50] ); sub_14003D230(Block, v49, v50); if ( (_QWORD)v97 ) { cocos2d::ZipUtils::base64URLDecode(&v98, Block); } else { v98 = *(_OWORD *)Block; v99 = v97; *(_QWORD *)&v97 = 0; *((_QWORD *)&v97 + 1) = 15; LOBYTE(Block[0]) = 0; } sub_14003D310((__int64)Block); sub_140059C40((__int64)(v45 + 64), (__int64)&v98); if ( *((_QWORD *)&v99 + 1) > 0xFu ) { v51 = (void *)v98; if ( (unsigned __int64)(*((_QWORD *)&v99 + 1) + 1LL) >= 0x1000 ) { v51 = *(void **)(v98 - 8); if ( (unsigned __int64)(v98 - (_QWORD)v51 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v51); } v52 = cocos2d::CCArray::stringAtIndex(v44, 3u); v53 = cocos2d::CCString::getCString(v52); *(_OWORD *)Block = 0; v97 = 0u; v54 = -1; do ++v54; while ( v53[v54] ); sub_14003D230(Block, v53, v54); if ( (_QWORD)v97 ) { cocos2d::ZipUtils::base64URLDecode(&v98, Block); } else { v98 = *(_OWORD *)Block; v99 = v97; *(_QWORD *)&v97 = 0; *((_QWORD *)&v97 + 1) = 15; LOBYTE(Block[0]) = 0; } sub_14003D310((__int64)Block); sub_140059C40((__int64)(v45 + 96), (__int64)&v98); if ( *((_QWORD *)&v99 + 1) > 0xFu ) { v55 = (void *)v98; if ( (unsigned __int64)(*((_QWORD *)&v99 + 1) + 1LL) >= 0x1000 ) { v55 = *(void **)(v98 - 8); if ( (unsigned __int64)(v98 - (_QWORD)v55 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v55); } v56 = cocos2d::CCArray::stringAtIndex(v44, 4u); *((_DWORD *)v45 + 32) = cocos2d::CCString::intValue(v56); v57 = cocos2d::CCArray::stringAtIndex(v44, 5u); *((_DWORD *)v45 + 33) = cocos2d::CCString::intValue(v57); v58 = cocos2d::CCArray::stringAtIndex(v44, 6u); v59 = (char *)cocos2d::CCString::getCString(v58); v60 = -1; do ++v60; while ( v59[v60] ); sub_1400405A0((void **)v45 + 21, v59, v60); if ( cocos2d::CCArray::count(v44) >= 0xA ) { v61 = cocos2d::CCArray::stringAtIndex(v44, 7u); *((_DWORD *)v45 + 50) = cocos2d::CCString::intValue(v61); v62 = cocos2d::CCArray::stringAtIndex(v44, 8u); v63 = cocos2d::CCString::getCString(v62); *(_OWORD *)Block = 0; v97 = 0u; v64 = -1; do ++v64; while ( v63[v64] ); sub_14003D230(Block, v63, v64); if ( (_QWORD)v97 ) { cocos2d::ZipUtils::base64URLDecode(&v98, Block); } else { v98 = *(_OWORD *)Block; v99 = v97; *(_QWORD *)&v97 = 0; *((_QWORD *)&v97 + 1) = 15; LOBYTE(Block[0]) = 0; } sub_14003D310((__int64)Block); sub_140059C40((__int64)(v45 + 208), (__int64)&v98); if ( *((_QWORD *)&v99 + 1) > 0xFu ) { v65 = (void *)v98; if ( (unsigned __int64)(*((_QWORD *)&v99 + 1) + 1LL) >= 0x1000 ) { v65 = *(void **)(v98 - 8); if ( (unsigned __int64)(v98 - (_QWORD)v65 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v65); } v66 = cocos2d::CCArray::stringAtIndex(v44, 9u); *((_DWORD *)v45 + 60) = cocos2d::CCString::intValue(v66); } if ( cocos2d::CCArray::count(v44) >= 0xB ) { v67 = cocos2d::CCArray::stringAtIndex(v44, 0xAu); v45[244] = cocos2d::CCString::intValue(v67) != 0; } if ( cocos2d::CCArray::count(v44) >= 0xC ) { v68 = cocos2d::CCArray::stringAtIndex(v44, 0xBu); *((_DWORD *)v45 + 62) = cocos2d::CCString::intValue(v68); } if ( cocos2d::CCArray::count(v44) >= 0xE ) { v69 = cocos2d::CCArray::stringAtIndex(v44, 0xCu); v45[320] = cocos2d::CCString::intValue(v69) != 0; v70 = cocos2d::CCArray::stringAtIndex(v44, 0xDu); v45[321] = cocos2d::CCString::intValue(v70) != 0; } if ( cocos2d::CCArray::count(v44) >= 0xF ) { v71 = cocos2d::CCArray::stringAtIndex(v44, 0xEu); v45[330] = cocos2d::CCString::intValue(v71) != 0; } if ( cocos2d::CCArray::count(v44) >= 0x15 ) { v45[361] = 1; v72 = cocos2d::CCArray::stringAtIndex(v44, 0xFu); *((_DWORD *)v45 + 91) = cocos2d::CCString::intValue(v72); v73 = cocos2d::CCArray::stringAtIndex(v44, 0x10u); *((_DWORD *)v45 + 92) = cocos2d::CCString::intValue(v73); v74 = cocos2d::CCArray::stringAtIndex(v44, 0x11u); *((_DWORD *)v45 + 93) = cocos2d::CCString::intValue(v74); v75 = cocos2d::CCArray::stringAtIndex(v44, 0x12u); *((_DWORD *)v45 + 94) = cocos2d::CCString::intValue(v75); v76 = cocos2d::CCArray::stringAtIndex(v44, 0x13u); *((_DWORD *)v45 + 95) = cocos2d::CCString::intValue(v76); v77 = cocos2d::CCArray::stringAtIndex(v44, 0x14u); *((_DWORD *)v45 + 96) = cocos2d::CCString::intValue(v77); } if ( cocos2d::CCArray::count(v44) >= 0x16 ) { v78 = cocos2d::CCArray::stringAtIndex(v44, 0x15u); v79 = cocos2d::CCString::getCString(v78); *(_OWORD *)Block = 0; v97 = 0u; v80 = -1; do ++v80; while ( v79[v80] ); sub_14003D230(Block, v79, v80); if ( (_QWORD)v97 ) { cocos2d::ZipUtils::base64URLDecode(&v98, Block); } else { v98 = *(_OWORD *)Block; v99 = v97; *(_QWORD *)&v97 = 0; *((_QWORD *)&v97 + 1) = 15; LOBYTE(Block[0]) = 0; } sub_14003D310((__int64)Block); sub_140059C40((__int64)(v45 + 256), (__int64)&v98); if ( *((_QWORD *)&v99 + 1) > 0xFu ) { v81 = (void *)v98; if ( (unsigned __int64)(*((_QWORD *)&v99 + 1) + 1LL) >= 0x1000 ) { v81 = *(void **)(v98 - 8); if ( (unsigned __int64)(v98 - (_QWORD)v81 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v81); } } if ( cocos2d::CCArray::count(v44) >= 0x17 ) { v82 = cocos2d::CCArray::stringAtIndex(v44, 0x16u); v83 = (char *)cocos2d::CCString::getCString(v82); v84 = -1; do ++v84; while ( v83[v84] ); sub_1400405A0((void **)v45 + 36, v83, v84); } if ( cocos2d::CCArray::count(v44) >= 0x18 ) { v85 = cocos2d::CCArray::stringAtIndex(v44, 0x17u); v86 = cocos2d::CCString::getCString(v85); *((_QWORD *)v45 + 42) = atoll(v86); } if ( cocos2d::CCArray::count(v44) >= 0x19 ) { v87 = cocos2d::CCArray::stringAtIndex(v44, 0x18u); *((_DWORD *)v45 + 86) = cocos2d::CCString::intValue(v87); } if ( cocos2d::CCArray::count(v44) < 0x1A ) { if ( v45[321] ) *((_DWORD *)v45 + 81) = 2; } else { v88 = cocos2d::CCArray::stringAtIndex(v44, 0x19u); v89 = cocos2d::CCString::intValue(v88); *((_DWORD *)v45 + 81) = v89; v45[321] = v89 == 2; } cocos2d::CCArray::addObject(v95, (struct cocos2d::CCObject *)v45); } } v38 = (__int64)v95; } v90 = *(void (__fastcall ****)(_QWORD, __int64, _QWORD, _QWORD, int))(a1 + 1392); if ( v90 ) (**v90)(v90, v38, v92, v94, v93); sub_14003D310((__int64)&v100); } sub_14003D310((__int64)a2); sub_14003D310((__int64)a3); }
GD Web Decomp Icon

GD Web Decomp

Raw Source