// // GameLevelManager::onSearchThreadMessagesCompleted from 0x838014 to 0x83831c (776 bytes) // // 2 xrefs: // > GameLevelManager::handleIt @ 0x85ab68 // > @ 0xbc2a8 // // 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:12 +0000 // __int64 __fastcall GameLevelManager::onSearchThreadMessagesCompleted(_QWORD *a1, __int64 a2, char *a3) { char *v6; // x20 __int64 v7; // x25 size_t v8; // x0 cocos2d::CCArray *v9; // x0 cocos2d::CCArray *v10; // x20 unsigned int v11; // w25 _BOOL4 v12; // w20 __int64 v13; // x0 const char *v15; // x1 size_t v16; // x0 cocos2d::CCArray *v17; // x20 const char *v18; // x1 size_t v19; // x0 cocos2d::CCString *v20; // x0 _BOOL4 v21; // w24 cocos2d::CCArray *v22; // x20 cocos2d::CCArray *v23; // x21 signed int v24; // w19 cocos2d::CCObject *v25; // x0 __int64 v26; // x0 cocos2d::CCString *v27; // x0 cocos2d::CCString *v28; // x0 const char *CString; // x0 cocos2d::CCString *v30; // x0 char *v31; // [xsp+58h] [xbp+58h] char *v32; // [xsp+58h] [xbp+58h] __int64 v33; // [xsp+60h] [xbp+60h] BYREF __int64 v34; // [xsp+68h] [xbp+68h] void *v35; // [xsp+70h] [xbp+70h] v6 = a3 + 1; v7 = a1[136]; if ( (*a3 & 1) != 0 ) v6 = *((char **)a3 + 2); v33 = 0; v34 = 0; v35 = nullptr; v8 = strlen(v6); std::string::__init(&v33, v6, v8); cocos2d::CCDictionary::removeObjectForKey(v7, &v33); if ( (v33 & 1) != 0 ) operator delete(v35); v9 = sub_80CFCC((unsigned __int8 *)a3, &byte_11528B0); v10 = v9; if ( v9 && (unsigned int)cocos2d::CCArray::count(v9) > 2 ) { v27 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v10, 1u); v11 = cocos2d::CCString::intValue(v27); v28 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v10, 2u); CString = (const char *)cocos2d::CCString::getCString(v28); a1[67] = atoll(CString); } else { v11 = 0; } v33 = 0; v34 = 0; v35 = nullptr; std::string::__init(&v33, &word_117CE08, 2u); v12 = sub_7FEA60(a2, (__int64)&v33); if ( (v33 & 1) != 0 ) operator delete(v35); if ( v12 ) { v13 = a1[158]; if ( v13 ) (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v13 + 40LL))(v13, v11); return _stack_chk_guard; } v15 = (const char *)(a2 + 1); if ( (*(_BYTE *)a2 & 1) != 0 ) v15 = *(const char **)(a2 + 16); v31 = (char *)v15; v33 = 0; v34 = 0; v35 = nullptr; v16 = strlen(v15); std::string::__init(&v33, v31, v16); v17 = sub_80CFCC((unsigned __int8 *)&v33, "#"); if ( (v33 & 1) != 0 ) { operator delete(v35); if ( !(unsigned int)cocos2d::CCArray::count(v17) ) goto LABEL_18; LABEL_29: v30 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v17, 0); v18 = (const char *)cocos2d::CCString::getCString(v30); goto LABEL_19; } if ( (unsigned int)cocos2d::CCArray::count(v17) ) goto LABEL_29; LABEL_18: v18 = &byte_11B8890; LABEL_19: v32 = (char *)v18; v33 = 0; v34 = 0; v35 = nullptr; v19 = strlen(v18); std::string::__init(&v33, v32, v19); if ( (unsigned int)cocos2d::CCArray::count(v17) <= 1 ) { v21 = 0; } else { v20 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v17, 1u); v21 = cocos2d::CCString::intValue(v20) != 0; } v22 = sub_837CE0((unsigned __int8 *)&v33); v23 = (cocos2d::CCArray *)cocos2d::CCArray::create(v22); v24 = cocos2d::CCArray::count(v22) - 1; if ( v24 >= 0 ) { do { v25 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex(v22, v24); cocos2d::CCArray::addObject(v23, v25); --v24; } while ( v24 != -1 ); } v26 = a1[158]; if ( v26 ) (*(void (__fastcall **)(__int64, _QWORD, cocos2d::CCArray *, _BOOL4))(*(_QWORD *)v26 + 32LL))(v26, v11, v23, v21); if ( (v33 & 1) != 0 ) operator delete(v35); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source