// // AccountBanPopup::onTrendingBan from 0x1400a8b10 to 0x1400a8e25 (789 bytes) // // 2 xrefs: // > AccountBanPopup::init @ 0x1400a71ec // > @ 0x1409132bc // // 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:26:09 +0000 // // Hidden C++ exception states: #wind=4 void __fastcall AccountBanPopup::onTrendingBan(__int64 a1) { const char *v2; // rdx cocos2d::CCString *v3; // rax const char *CString; // rax size_t v5; // r8 __m128i si128; // xmm6 int v7; // ebx __int64 v8; // rax char *v9; // rbx void *v10; // r8 _WORD *v11; // rax void *v12; // rcx void *v13; // rcx _BYTE v14[24]; // [rsp+40h] [rbp-98h] BYREF void *Block[2]; // [rsp+58h] [rbp-80h] BYREF __m128i v16; // [rsp+68h] [rbp-70h] void *v17[2]; // [rsp+78h] [rbp-60h] BYREF __m128i v18; // [rsp+88h] [rbp-50h] void *v19[2]; // [rsp+98h] [rbp-40h] BYREF __int128 v20; // [rsp+A8h] [rbp-30h] v2 = (const char *)(a1 + 1040); if ( *(_QWORD *)(a1 + 1064) > 0xFu ) v2 = *(const char **)v2; v3 = cocos2d::CCString::createWithFormat( "Ban %s from Trending?\nTheir levels leave the tab now and stay out until allowed again.", v2); CString = cocos2d::CCString::getCString(v3); *(_OWORD *)v19 = 0; v20 = 0; v5 = -1; do ++v5; while ( CString[v5] ); sub_14003D230(v19, CString, v5); *(_OWORD *)Block = 0; si128 = _mm_load_si128((const __m128i *)&Size); v16 = si128; LOBYTE(Block[0]) = 0; v7 = a1 + 1024; if ( !a1 ) v7 = 0; v8 = ReportPopup::reasonIndicesForUploadModeration(v14); v9 = sub_1400A51F0(v7, 9, (int)"Confirm Ban", (__int64)v19, (__int64)"Ban", v8, (__int64)Block); sub_140069730((__int64)v14); if ( v16.m128i_i64[1] > 0xFuLL ) { v10 = Block[0]; if ( (unsigned __int64)(v16.m128i_i64[1] + 1) >= 0x1000 ) { v10 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v10 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v10); si128 = _mm_load_si128((const __m128i *)&Size); } v16 = si128; LOBYTE(Block[0]) = 0; *(_OWORD *)v17 = 0; v11 = sub_14003D460(0xC0u); v17[0] = v11; v18 = _mm_load_si128((const __m128i *)&xmmword_140836710); qmemcpy( v11, "The player is not told. The reason and categories only go to the moderator log.\n" "\n" "No duration: the ban stays until a moderator allows the account again or RobTop rates one of their levels", 186); v11[93] = (unsigned __int8)aThePlayerIsNot[186]; AdminActionConfirmPopup::addHelp((__int64)v9, "Trending Ban", (__int64)v17); if ( v18.m128i_i64[1] > 0xFuLL ) { v12 = v17[0]; if ( (unsigned __int64)(v18.m128i_i64[1] + 1) >= 0x1000 ) { v12 = *((void **)v17[0] - 1); if ( (unsigned __int64)((char *)v17[0] - (char *)v12 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v12); } (*(void (__fastcall **)(char *))(*(_QWORD *)v9 + 1064LL))(v9); if ( *((_QWORD *)&v20 + 1) > 0xFu ) { v13 = v19[0]; if ( (unsigned __int64)(*((_QWORD *)&v20 + 1) + 1LL) >= 0x1000 ) { v13 = *((void **)v19[0] - 1); if ( (unsigned __int64)((char *)v19[0] - (char *)v13 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v13); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source