// // GameLevelManager::onBlockUserCompleted from 0x140256950 to 0x140256c96 (838 bytes) // // 2 xrefs: // > GameLevelManager::handleIt @ 0x14021a198 // > @ 0x14091c5ec // // 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:44 +0000 // // Hidden C++ exception states: #wind=9 void __fastcall GameLevelManager::onBlockUserCompleted(__int64 a1, const void **a2, void **a3) { _BYTE *v6; // rbx size_t v7; // r8 __int64 v8; // rcx void *v9; // rcx __int64 SplitIntFromKey; // rbx const void *v11; // rcx size_t v12; // r8 __int64 v13; // rcx struct cocos2d::CCObject *v14; // rax __int64 v15; // rcx void (__fastcall ***v16)(_QWORD, _QWORD, __int64); // rcx void *v17; // rcx void *v18; // rcx void *Block[2]; // [rsp+40h] [rbp-30h] BYREF __m128i si128; // [rsp+50h] [rbp-20h] v6 = a3; if ( (unsigned __int64)a3[3] > 0xF ) v6 = *a3; *(_OWORD *)Block = 0; si128 = 0; v7 = -1; do ++v7; while ( v6[v7] ); sub_14003D230(Block, v6, v7); cocos2d::CCDictionary::removeObjectForKey(*(_QWORD *)(a1 + 1200), Block); if ( si128.m128i_i64[1] > 0xFuLL ) { v9 = Block[0]; if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 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); } SplitIntFromKey = GameLevelManager::getSplitIntFromKey(v8, v6, 1u); *(_OWORD *)Block = 0; si128.m128i_i64[0] = 2; si128.m128i_i64[1] = 15; strcpy((char *)Block, "-1"); v11 = a2; if ( (unsigned __int64)a2[3] > 0xF ) v11 = *a2; v12 = (size_t)a2[2]; if ( v12 > 2 ) v12 = 2; if ( !memcmp(v11, Block, v12) && a2[2] == (const void *)2 ) { v13 = *(_QWORD *)(a1 + 1488); if ( v13 ) (*(void (__fastcall **)(__int64, _QWORD, __int64))(*(_QWORD *)v13 + 8LL))(v13, (unsigned int)SplitIntFromKey, 40); } else { v14 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 1232), SplitIntFromKey); if ( v14 ) { *((_DWORD *)v14 + 190) = 2; *((_BYTE *)v14 + 794) = 0; v15 = *(_QWORD *)(a1 + 1480); if ( v15 ) (*(void (__fastcall **)(__int64, struct cocos2d::CCObject *))(*(_QWORD *)v15 + 16LL))(v15, v14); } v16 = *(void (__fastcall ****)(_QWORD, _QWORD, __int64))(a1 + 1488); if ( v16 ) (**v16)(v16, (unsigned int)SplitIntFromKey, 40); GameLevelManager::friendRequestWasRemoved(a1, (unsigned int)SplitIntFromKey, 0); GameLevelManager::resetStoredUserList(a1, 1); GameLevelManager::invalidateMessages(a1, 0, 1); GameLevelManager::removeUserFromList(a1, (unsigned int)SplitIntFromKey, 0); GameLevelManager::unfollowUser(a1); si128 = _mm_load_si128((const __m128i *)&xmmword_1408365E0); strcpy((char *)Block, "get_following"); HIWORD(Block[1]) = 0; cocos2d::CCDictionary::removeObjectForKey(*(_QWORD *)(a1 + 1152), Block); if ( si128.m128i_i64[1] > 0xFuLL ) { v17 = Block[0]; if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 ) { v17 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v17 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v17); } Block[1] = (void *)100; si128 = _mm_load_si128((const __m128i *)&xmmword_1408365A0); Block[0] = (void *)0x6574756D5F746567LL; cocos2d::CCDictionary::removeObjectForKey(*(_QWORD *)(a1 + 1152), Block); if ( si128.m128i_i64[1] > 0xFuLL ) { v18 = Block[0]; if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 ) { v18 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v18 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v18); } } sub_14003D310((__int64)a2); sub_14003D310((__int64)a3); }
GD Web Decomp Icon

GD Web Decomp

Raw Source