// // GameLevelManager::blockUser from 0x7278e4 to 0x727d8c (1192 bytes) // // 4 xrefs: // > FriendRequestPopup::blockUser @ 0x8cdbfc // > GJMessagePopup::blockUser @ 0x8cf004 // > ProfilePage::blockUser @ 0x8fca74 // > @ 0x31fb0 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // // local variable allocation has failed, the output may be wrong! bool GameLevelManager::blockUser(GameLevelManager *a1, int a2) { cocos2d::CCString *v4; // x0 char *CString; // x25 cocos2d::CCDictionary *m_friendReqAndUserBlocks; // x23 __int64 v7; // x26 char *v8; // x0 cocos2d::CCDictionary *v10; // x27 cocos2d::CCNode *v11; // x26 char *v12; // x0 cocos2d::CCString *v13; // x0 const char *v14; // x0 cocos2d::CCString *v15; // x0 size_t v16; // x0 char *v17; // x0 char *v18; // x0 char *v19; // x0 char *v20; // x22 unsigned int *v21; // x1 int v22; // w2 unsigned int *v23; // x21 int v24; // w0 unsigned int *v25; // x1 int v26; // w2 unsigned int *v27; // x1 int v28; // w2 unsigned int *v29; // x1 int v30; // w2 unsigned int *v31; // x1 int v32; // w2 _QWORD v33[2]; // [xsp+0h] [xbp+0h] BYREF const char *v34; // [xsp+68h] [xbp+68h] char *v35; // [xsp+98h] [xbp+98h] BYREF const char *v36; // [xsp+A0h] [xbp+A0h] BYREF const char *v37; // [xsp+A8h] [xbp+A8h] BYREF std::string v38; // [xsp+B0h] [xbp+B0h] BYREF if ( a2 <= 0 ) return 0; v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"blockUser_%i", *(const char **)&a2); CString = (char *)cocos2d::CCString::getCString(v4); m_friendReqAndUserBlocks = a1->m_friendReqAndUserBlocks; sub_D153B8((unsigned int)v33 + 176, CString); v7 = cocos2d::CCDictionary::objectForKey(m_friendReqAndUserBlocks, &v38); v8 = (char *)v38.m_data.m_data - 24; if ( (__int64 *)v38.m_data.m_data - 3 == &qword_124B6B0 ) goto LABEL_3; if ( &pthread_create ) { v21 = (unsigned int *)((char *)v38.m_data.m_data - 8); do v22 = __ldaxr(v21); while ( __stlxr(v22 - 1, v21) ); } else { v22 = *((_DWORD *)v38.m_data.m_data - 2); *((_DWORD *)v38.m_data.m_data - 2) = v22 - 1; } if ( v22 > 0 ) { LABEL_3: if ( !v7 ) goto LABEL_5; return 0; } operator delete(v8); if ( v7 ) return 0; LABEL_5: v10 = a1->m_friendReqAndUserBlocks; v11 = cocos2d::CCNode::create(); sub_D153B8((unsigned int)v33 + 176, CString); cocos2d::CCDictionary::setObject((int)v10, v11); v12 = (char *)v38.m_data.m_data - 24; if ( (__int64 *)v38.m_data.m_data - 3 != &qword_124B6B0 ) { if ( &pthread_create ) { v27 = (unsigned int *)((char *)v38.m_data.m_data - 8); do v28 = __ldaxr(v27); while ( __stlxr(v28 - 1, v27) ); } else { v28 = *((_DWORD *)v38.m_data.m_data - 2); *((_DWORD *)v38.m_data.m_data - 2) = v28 - 1; } if ( v28 <= 0 ) operator delete(v12); } GameLevelManager::getBasePostString(a1, (__int64)&v35); v13 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%c%s%s%c%c%s", (const char *)off_50 + 7, "mfd", "2893", 103, 98, "7"); v14 = cocos2d::CCString::getCString(v13); v15 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"&targetAccountID=%i&secret=%s", (const char *)(unsigned int)a2, v14); v34 = cocos2d::CCString::getCString(v15); v16 = strlen(v34); sub_D15FD4(&v35, v34, v16); sub_D153B8((int)&v36, "https://www.boomlings.com/database/blockGJUser20.php"); sub_D153B8((int)&v37, v35); sub_D153B8((int)&v38, CString); GameLevelManager::ProcessHttpRequest(a1, &v36, &v37, (cocos2d::extension::CCHttpClient **)&v38, 34); v17 = (char *)v38.m_data.m_data - 24; if ( (__int64 *)v38.m_data.m_data - 3 != &qword_124B6B0 ) { if ( &pthread_create ) { v29 = (unsigned int *)((char *)v38.m_data.m_data - 8); do v30 = __ldaxr(v29); while ( __stlxr(v30 - 1, v29) ); } else { v30 = *((_DWORD *)v38.m_data.m_data - 2); *((_DWORD *)v38.m_data.m_data - 2) = v30 - 1; } if ( v30 <= 0 ) operator delete(v17); } v18 = (char *)(v37 - 24); if ( v37 - 24 != (const char *)&qword_124B6B0 ) { if ( &pthread_create ) { v31 = (unsigned int *)(v37 - 8); do v32 = __ldaxr(v31); while ( __stlxr(v32 - 1, v31) ); } else { v32 = *((_DWORD *)v37 - 2); *((_DWORD *)v37 - 2) = v32 - 1; } if ( v32 <= 0 ) operator delete(v18); } v19 = (char *)(v36 - 24); if ( v36 - 24 != (const char *)&qword_124B6B0 ) { if ( &pthread_create ) { v25 = (unsigned int *)(v36 - 8); do v26 = __ldaxr(v25); while ( __stlxr(v26 - 1, v25) ); } else { v26 = *((_DWORD *)v36 - 2); *((_DWORD *)v36 - 2) = v26 - 1; } if ( v26 <= 0 ) operator delete(v19); } v20 = v35 - 24; if ( v35 - 24 == (char *)&qword_124B6B0 ) return 1; if ( &pthread_create ) { v23 = (unsigned int *)(v35 - 8); do v24 = __ldaxr(v23); while ( __stlxr(v24 - 1, v23) ); } else { v24 = *((_DWORD *)v35 - 2); *((_DWORD *)v35 - 2) = v24 - 1; } if ( v24 > 0 ) return 1; operator delete(v20); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source