// // GameLevelManager::onSearchThreadMessagesCompleted from 0x14024c0e0 to 0x14024c41f (831 bytes) // // 2 xrefs: // > GameLevelManager::handleIt @ 0x14021b226 // > @ 0x14091c3e8 // // 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=4 void __fastcall GameLevelManager::onSearchThreadMessagesCompleted(_QWORD *a1, const void **a2, __int64 *a3) { _BYTE *v6; // rdx size_t v7; // rbx size_t v8; // r8 void *v9; // rcx unsigned int v10; // r13d cocos2d::CCArray *v11; // rax cocos2d::CCArray *v12; // r14 cocos2d::CCString *v13; // rax cocos2d::CCString *v14; // rax const char *CString; // rax _BYTE *v16; // rcx unsigned __int64 v17; // r14 unsigned __int64 v18; // r15 size_t v19; // r8 __int64 v20; // rcx _BYTE *v21; // rdx size_t v22; // r8 cocos2d::CCArray *v23; // r14 cocos2d::CCString *v24; // rax char *v25; // rax cocos2d::CCString *v26; // rax bool v27; // r12 cocos2d::CCArray *v28; // r15 __int64 v29; // rcx cocos2d::CCArray *v30; // r14 signed int i; // ebx struct cocos2d::CCObject *v32; // rax __int64 v33; // rcx void *Block[2]; // [rsp+48h] [rbp-21h] BYREF __int128 v36; // [rsp+58h] [rbp-11h] _OWORD v37[2]; // [rsp+68h] [rbp-1h] BYREF v6 = a3; if ( (unsigned __int64)a3[3] > 0xF ) v6 = (_BYTE *)*a3; *(_OWORD *)Block = 0; v36 = 0; v7 = -1; v8 = -1; do ++v8; while ( v6[v8] ); sub_14003D230(Block, v6, v8); cocos2d::CCDictionary::removeObjectForKey(a1[150], Block); if ( *((_QWORD *)&v36 + 1) > 0xFu ) { v9 = Block[0]; if ( (unsigned __int64)(*((_QWORD *)&v36 + 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 = 0; v11 = sub_1400D2840(a3, "_"); v12 = v11; if ( v11 && cocos2d::CCArray::count(v11) >= 3 ) { v13 = cocos2d::CCArray::stringAtIndex(v12, 1u); v10 = cocos2d::CCString::intValue(v13); v14 = cocos2d::CCArray::stringAtIndex(v12, 2u); CString = cocos2d::CCString::getCString(v14); a1[76] = atoll(CString); } *(_OWORD *)Block = 0; *(_QWORD *)&v36 = 2; *((_QWORD *)&v36 + 1) = 15; strcpy((char *)Block, "-1"); v16 = a2; v17 = (unsigned __int64)a2[3]; if ( v17 > 0xF ) v16 = *a2; v18 = (unsigned __int64)a2[2]; v19 = v18; if ( v18 > 2 ) v19 = 2; if ( !memcmp(v16, Block, v19) && v18 == 2 ) { v20 = a1[174]; if ( v20 ) (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v20 + 40LL))(v20, v10); } else { v21 = a2; if ( v17 > 0xF ) v21 = *a2; *(_OWORD *)Block = 0; v36 = 0; v22 = -1; do ++v22; while ( v21[v22] ); sub_14003D230(Block, v21, v22); v23 = sub_1400D2840((__int64 *)Block, byte_140752304); sub_14003D310((__int64)Block); if ( cocos2d::CCArray::count(v23) ) { v24 = cocos2d::CCArray::stringAtIndex(v23, 0); v25 = (char *)cocos2d::CCString::getCString(v24); } else { v25 = &byte_1406ED6E0; } memset(v37, 0, sizeof(v37)); do ++v7; while ( v25[v7] ); sub_14003D230(v37, v25, v7); v27 = false; if ( cocos2d::CCArray::count(v23) >= 2 ) { v26 = cocos2d::CCArray::stringAtIndex(v23, 1u); if ( cocos2d::CCString::intValue(v26) ) v27 = true; } v28 = sub_14024B830(v37); v30 = (cocos2d::CCArray *)cocos2d::CCArray::create(v29); for ( i = cocos2d::CCArray::count(v28) - 1; i >= 0; --i ) { v32 = cocos2d::CCArray::objectAtIndex(v28, i); cocos2d::CCArray::addObject(v30, v32); } v33 = a1[174]; if ( v33 ) (*(void (__fastcall **)(__int64, _QWORD, cocos2d::CCArray *, bool))(*(_QWORD *)v33 + 32LL))(v33, v10, v30, v27); sub_14003D310((__int64)v37); } sub_14003D310((__int64)a2); sub_14003D310((__int64)a3); }
GD Web Decomp Icon

GD Web Decomp

Raw Source