// // GameLevelManager::onDeleteServerLevelCompleted from 0x6f6824 to 0x6f6a38 (532 bytes) // // 2 xrefs: // > GameLevelManager::handleIt @ 0x7331b4 // > @ 0x59058 // // 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 // __int64 __fastcall GameLevelManager::onDeleteServerLevelCompleted(__int64 a1, const void **a2, char **a3) { const char *v3; // x24 cocos2d::CCDictionary *v6; // x22 char *v7; // x0 unsigned int v8; // w24 _QWORD *v9; // x1 _DWORD *v10; // x25 unsigned __int64 v11; // x20 unsigned __int64 v12; // x26 size_t v13; // x2 int v14; // w19 __int64 v15; // x20 __int64 *v16; // x0 __int64 v17; // x0 unsigned int *v19; // x25 int v20; // w1 unsigned int *v21; // x1 int v22; // w2 void *v23; // [xsp+60h] [xbp+60h] BYREF v3 = *a3; v6 = *(cocos2d::CCDictionary **)(a1 + 656); sub_D153B8((int)&v23, *a3); cocos2d::CCDictionary::removeObjectForKey(v6, (const std::string *)&v23); v7 = (char *)v23 - 24; if ( (char *)v23 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v21 = (unsigned int *)((char *)v23 - 8); do v22 = __ldaxr(v21); while ( __stlxr(v22 - 1, v21) ); } else { v22 = *((_DWORD *)v23 - 2); *((_DWORD *)v23 - 2) = v22 - 1; } if ( v22 <= 0 ) operator delete(v7); } v8 = atoi(v3); sub_D153B8((int)&v23, "-1"); v9 = *a2; v10 = v23; v11 = *(v9 - 3); v12 = *((_QWORD *)v23 - 3); if ( v12 > v11 ) v13 = *(v9 - 3); else v13 = *((_QWORD *)v23 - 3); v14 = memcmp(v9, v23, v13); if ( v14 || (v14 = 0x7FFFFFFF, v15 = v11 - v12, v15 > 0x7FFFFFFF) ) { v16 = (__int64 *)(v10 - 6); if ( v10 - 6 == (_DWORD *)&qword_124B6B0 ) goto LABEL_8; } else { v16 = (__int64 *)(v10 - 6); if ( v15 >= (__int64)0xFFFFFFFF80000000LL ) v14 = v15; else v14 = 0x80000000; if ( v16 == &qword_124B6B0 ) goto LABEL_8; } if ( &pthread_create ) { v19 = v10 - 2; do v20 = __ldaxr(v19); while ( __stlxr(v20 - 1, v19) ); } else { v20 = *(v10 - 2); *(v10 - 2) = v20 - 1; } if ( v20 <= 0 ) operator delete(v16); LABEL_8: v17 = *(_QWORD *)(a1 + 800); if ( v14 ) { if ( v17 ) (**(void (__fastcall ***)(__int64, _QWORD))v17)(v17, v8); } else if ( v17 ) { (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v17 + 8LL))(v17, v8); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source