// // GameLevelManager::onGetUserSearchCompleted from 0x84e56c to 0x84e93c (976 bytes) // // 2 xrefs: // > GameLevelManager::handleIt @ 0x85be00 // > @ 0xd7800 // // 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:25 +0000 // __int64 __fastcall GameLevelManager::onGetUserSearchCompleted(_QWORD *a1, __int64 a2, char *a3) { char *v5; // x19 __int64 v6; // x21 size_t v7; // x0 _BOOL4 v8; // w19 __int64 v9; // x0 const char *v11; // x0 cocos2d::CCArray *v12; // x0 cocos2d::CCArray *v13; // x28 char *v14; // x19 size_t v15; // x0 cocos2d::CCArray *v16; // x24 unsigned int i; // w22 cocos2d::CCString *v18; // x0 const char *CString; // x0 size_t v20; // x0 GJUserScore *v21; // x0 cocos2d::CCDictionary *v22; // x1 __int64 v23; // x21 int v24; // w26 int v25; // w25 __int64 v26; // x1 __int64 v27; // x0 void (__fastcall ***v28)(_QWORD, cocos2d::CCArray *, __int64); // x0 char *v29; // [xsp+68h] [xbp+68h] __int64 v30; // [xsp+70h] [xbp+70h] BYREF size_t v31; // [xsp+78h] [xbp+78h] void *v32; // [xsp+80h] [xbp+80h] __int64 v33; // [xsp+88h] [xbp+88h] BYREF size_t v34; // [xsp+90h] [xbp+90h] void *v35; // [xsp+98h] [xbp+98h] __int64 v36; // [xsp+A0h] [xbp+A0h] BYREF __int64 v37; // [xsp+A8h] [xbp+A8h] void *v38; // [xsp+B0h] [xbp+B0h] v5 = a3 + 1; v6 = a1[136]; if ( (*a3 & 1) != 0 ) v5 = *((char **)a3 + 2); v36 = 0; v37 = 0; v38 = nullptr; v7 = strlen(v5); std::string::__init(&v36, v5, v7); cocos2d::CCDictionary::removeObjectForKey(v6, &v36); if ( (v36 & 1) != 0 ) operator delete(v38); v36 = 0; v37 = 0; v38 = nullptr; std::string::__init(&v36, &word_117CE08, 2u); v8 = sub_7FEA60(a2, (__int64)&v36); if ( (v36 & 1) != 0 ) operator delete(v38); if ( v8 ) { v9 = a1[171]; if ( v9 ) (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v9 + 8LL))(v9, 2, 0xFFFFFFFFLL); } else { v11 = (const char *)(a2 + 1); if ( (*(_BYTE *)a2 & 1) != 0 ) v11 = *(const char **)(a2 + 16); v12 = (cocos2d::CCArray *)atoi(v11); if ( ((unsigned int)v12 & 0x80000000) != 0 ) goto LABEL_34; v13 = (cocos2d::CCArray *)cocos2d::CCArray::create(v12); v14 = (char *)(a2 + 1); if ( (*(_BYTE *)a2 & 1) != 0 ) v14 = *(char **)(a2 + 16); v36 = 0; v37 = 0; v38 = nullptr; v15 = strlen(v14); std::string::__init(&v36, v14, v15); v16 = sub_80CFCC((unsigned __int8 *)&v36, "|"); if ( (v36 & 1) != 0 ) operator delete(v38); for ( i = 0; i < (unsigned int)cocos2d::CCArray::count(v16); ++i ) { v18 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v16, i); CString = (const char *)cocos2d::CCString::getCString(v18); v30 = 0; v31 = 0; v32 = nullptr; v29 = (char *)CString; v20 = strlen(CString); std::string::__init(&v30, v29, v20); v33 = 0; v34 = 0; v35 = nullptr; if ( (v30 & 1) != 0 ) { std::string::__init(&v33, v32, v31); } else { v35 = v32; v33 = v30; v34 = v31; } v21 = (GJUserScore *)GameLevelManager::responseToDict((__int64)&v33, 0); v23 = GJUserScore::create(v21, v22); if ( (v33 & 1) != 0 ) operator delete(v35); if ( v23 && *(int *)(v23 + 376) > 0 && *(int *)(v23 + 372) > 0 ) { cocos2d::CCArray::addObject(v13, (cocos2d::CCObject *)v23); v24 = *(_DWORD *)(v23 + 372); v25 = *(_DWORD *)(v23 + 376); v36 = 0; v37 = 0; v38 = nullptr; if ( (*(_BYTE *)(v23 + 320) & 1) != 0 ) { std::string::__init(&v36, *(void **)(v23 + 336), *(_QWORD *)(v23 + 328)); } else { v26 = *(_QWORD *)(v23 + 328); v36 = *(_QWORD *)(v23 + 320); v37 = v26; v38 = *(void **)(v23 + 336); } GameLevelManager::storeUserName(a1, v24, v25, (char *)&v36); if ( (v36 & 1) != 0 ) operator delete(v38); } if ( (v30 & 1) != 0 ) operator delete(v32); } if ( (unsigned int)cocos2d::CCArray::count(v13) ) { v28 = (void (__fastcall ***)(_QWORD, cocos2d::CCArray *, __int64))a1[171]; if ( v28 ) (**v28)(v28, v13, 2); } else { LABEL_34: v27 = a1[171]; if ( v27 ) (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v27 + 8LL))(v27, 2, 4294967294LL); } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source