// // GameLevelManager::onDeleteCommentCompleted from 0x14015f550 to 0x14015f85e (782 bytes) // // 2 xrefs: // > GameLevelManager::handleIt @ 0x140143472 // > @ 0x1406cab0c // // 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 // // Hidden C++ exception states: #wind=3 void __fastcall GameLevelManager::onDeleteCommentCompleted(__int64 a1, const void **a2, _QWORD *a3) { _BYTE *v6; // rbx size_t v7; // rdi size_t v8; // r8 void *v9; // rcx size_t v10; // r8 cocos2d::CCArray *v11; // r15 void *v12; // rcx GameLevelManager *v13; // rcx cocos2d::CCString *v14; // rax const char *CString; // rax GJAccountManager *v16; // rax unsigned int v17; // r15d cocos2d::CCArray *v18; // rbx void *v19; // rcx cocos2d::CCString *v20; // rax const char *v21; // rax unsigned int v22; // edi const void *v23; // rcx unsigned __int64 v24; // rbx size_t v25; // r8 __int64 v26; // rcx void *Block[2]; // [rsp+30h] [rbp-30h] BYREF __m128i si128; // [rsp+40h] [rbp-20h] v6 = a3; if ( a3[3] > 0xFu ) v6 = (_BYTE *)*a3; *(_OWORD *)Block = 0; si128 = 0; v7 = -1; v8 = -1; do ++v8; while ( v6[v8] ); sub_14003A930(Block, v6, v8); cocos2d::CCDictionary::removeObjectForKey(*(_QWORD *)(a1 + 592), 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 ) invalid_parameter_noinfo_noreturn(); } j_j_free(v9); } *(_OWORD *)Block = 0; si128 = 0; v10 = -1; do ++v10; while ( v6[v10] ); sub_14003A930(Block, v6, v10); v11 = sub_140140F70((__int64 *)Block, "_"); if ( si128.m128i_i64[1] > 0xFuLL ) { v12 = Block[0]; if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 ) { v12 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v12 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v12); } si128 = _mm_load_si128((const __m128i *)&xmmword_140623F30); LOBYTE(Block[0]) = 0; if ( cocos2d::CCArray::count(v11) >= 4 && (v14 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v11, 3u), CString = cocos2d::CCString::getCString(v14), atoi(CString) == 1) ) { v16 = GJAccountManager::sharedState(); v17 = v16->m_accountID - v16->m_unkInt1; } else { v17 = GameLevelManager::levelIDFromCommentKey(v13, v6); } *(_OWORD *)Block = 0; si128 = 0; do ++v7; while ( v6[v7] ); sub_14003A930(Block, v6, v7); v18 = sub_140140F70((__int64 *)Block, "_"); if ( si128.m128i_i64[1] > 0xFuLL ) { v19 = Block[0]; if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 ) { v19 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v19 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v19); } si128 = _mm_load_si128((const __m128i *)&xmmword_140623F30); LOBYTE(Block[0]) = 0; if ( cocos2d::CCArray::count(v18) < 3 ) { v22 = 0; } else { v20 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v18, 2u); v21 = cocos2d::CCString::getCString(v20); v22 = atoi(v21); } *(_OWORD *)Block = 0; si128.m128i_i64[0] = 2; si128.m128i_i64[1] = 15; strcpy((char *)Block, "-1"); v23 = a2; if ( (unsigned __int64)a2[3] > 0xF ) v23 = *a2; v24 = (unsigned __int64)a2[2]; v25 = v24; if ( v24 > 2 ) v25 = 2; if ( !memcmp(v23, Block, v25) && v24 == 2 ) { v26 = *(_QWORD *)(a1 + 744); if ( v26 ) (*(void (__fastcall **)(__int64, _QWORD, _QWORD))(*(_QWORD *)v26 + 16LL))(v26, v17, v22); } sub_14003A830((__int64)a2); sub_14003A830((__int64)a3); }