// // AccountBanPopup::init from 0x7646b4 to 0x764c70 (1468 bytes) // // 1 xrefs: // > AccountBanPopup::create @ 0x764f7a // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:59:07 +0000 // GameManager *__fastcall AccountBanPopup::init( int a1, int a2, unsigned __int8 *a3, int a4, int a5, int a6, int a7, int a8, int a9) { GameManager *v13; // r11 cocos2d::CCDirector *v14; // r0 int v15; // r2 const void *v16; // r1 size_t v17; // r2 float v18; // s16 const char *v19; // r2 cocos2d::CCLabelBMFont *v20; // r0 cocos2d::CCLabelBMFont *v21; // r8 void (__fastcall *v22)(cocos2d::CCLabelBMFont *, _DWORD *); // r3 void (__fastcall *v23)(cocos2d::CCLabelBMFont *, _DWORD *); // r9 const char *v24; // r1 int v25; // r8 int v26; // r8 void (__fastcall *v27)(int, _DWORD *); // r10 int v28; // r8 const char *v29; // r1 size_t v30; // r0 _DWORD *v31; // r3 int v32; // r1 int v33; // r2 cocos2d::CCPoint *v35; // [sp+30h] [bp-F4h] const char *v36; // [sp+34h] [bp-F0h] float v37; // [sp+54h] [bp-D0h] BYREF int v38; // [sp+58h] [bp-CCh] BYREF float v39; // [sp+5Ch] [bp-C8h] BYREF int v40; // [sp+60h] [bp-C4h] BYREF float v41; // [sp+64h] [bp-C0h] BYREF float v42; // [sp+68h] [bp-BCh] BYREF float v43; // [sp+6Ch] [bp-B8h] BYREF float v44[28]; // [sp+70h] [bp-B4h] BYREF void *v45; // [sp+E0h] [bp-44h] BYREF _DWORD *v46; // [sp+E4h] [bp-40h] unsigned int v47; // [sp+E8h] [bp-3Ch] int v48; // [sp+ECh] [bp-38h] BYREF int v49; // [sp+F0h] [bp-34h] int v50; // [sp+F4h] [bp-30h] _DWORD v51[9]; // [sp+F8h] [bp-2Ch] BYREF if ( a2 <= 0 ) return nullptr; v13 = SetupTriggerPopup::init((SetupTriggerPopup *)a1, nullptr, nullptr, 410.0, 226.0, (_BYTE *)&dword_0 + 1, 0.0); if ( !v13 ) return nullptr; v14 = (cocos2d::CCDirector *)(a1 + 732); *(_DWORD *)(a1 + 728) = a2; if ( (unsigned __int8 *)(a1 + 732) != a3 ) { v15 = *a3; if ( (v15 & 1) != 0 ) { v16 = *((const void **)a3 + 2); v17 = *((_DWORD *)a3 + 1); } else { v16 = a3 + 1; v17 = v15 >> 1; } v14 = (cocos2d::CCDirector *)std::string::assign(v14, v16, v17); } *(_DWORD *)(a1 + 744) = a4; *(_DWORD *)(a1 + 748) = a5; *(_DWORD *)(a1 + 752) = a6; *(_DWORD *)(a1 + 756) = a7; *(_DWORD *)(a1 + 760) = a8; *(_DWORD *)(a1 + 764) = a9; cocos2d::CCDirector::sharedDirector(v14); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v44); v48 = 0; v49 = 0; v50 = 0; v37 = v44[0] * 0.5; v18 = (float)(v44[1] * 0.5) + 113.0; std::string::__init(&v48, "Bans", 4u); SetupTriggerPopup::addTitle(a1, (unsigned __int8 *)&v48); std::string::~string((int)&v48); if ( (*a3 & 1) != 0 ) v20 = *((cocos2d::CCLabelBMFont **)a3 + 2); else v20 = (cocos2d::CCLabelBMFont *)(a3 + 1); v21 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v20, "bigFont.fnt", v19); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, int))(*(_DWORD *)v21 + 80))(v21, 1053609165); v22 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _DWORD *))(*(_DWORD *)v21 + 536); LOWORD(v51[0]) = -11521; BYTE2(v51[0]) = 60; v22(v21, v51); cocos2d::CCLabelBMFont::limitLabelWidth(v21, 350.0, 0.4, 0.2); v23 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _DWORD *))(*(_DWORD *)v21 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v51, v37, v18 - 34.0); v23(v21, v51); (*(void (__fastcall **)(_DWORD, cocos2d::CCLabelBMFont *))(**(_DWORD **)(a1 + 460) + 228))(*(_DWORD *)(a1 + 460), v21); v25 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_closeBtn_001.png", v24); (*(void (__fastcall **)(int, int))(*(_DWORD *)v25 + 80))(v25, 1061997773); LODWORD(v44[2]) = 684; LODWORD(v44[3]) = 1; v26 = CCMenuItemSpriteExtra::create(v25, 0, a1, 684, 1); CCMenuItemSpriteExtra::setSizeMult(v26, 1.5); (*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 444) + 228))(*(_DWORD *)(a1 + 444), v26); v27 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v26 + 92); v35 = *(cocos2d::CCPoint **)(a1 + 444); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v45, (float)(v37 - 205.0) + 6.0, v18 - 10.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v51, v35); v27(v26, v51); v38 = 1136721920; v41 = 6.0; v40 = 1108344832; v28 = 0; v45 = nullptr; v46 = nullptr; v47 = 0; v39 = (float)(v37 + 193.0) - 6.0; v42 = v18 - 66.0; v43 = v37 + 4.0; do { v48 = 0; v49 = 0; v29 = off_C74AA0[v28]; v50 = 0; v36 = v29; v30 = strlen(v29); std::string::__init(&v48, v36, v30); v31 = v46; if ( (unsigned int)v46 >= v47 ) { std::vector::__push_back_slow_path(&v45, &v48); } else { if ( v46 ) { v32 = v49; v33 = v50; *v46 = v48; v31[1] = v32; v31[2] = v33; v48 = 0; v49 = 0; v50 = 0; } v46 += 3; } ++v28; std::string::~string((int)&v48); } while ( v28 != 13 ); v51[1] = &v42; v51[2] = &v40; v51[3] = &v41; v51[4] = &v38; v51[5] = &v37; v51[7] = &v43; v51[8] = &v39; v51[0] = a1; v51[6] = &v45; v44[5] = 0.0; LODWORD(v44[4]) = AccountBanPopup::onCommentBan; v44[7] = 0.0; LODWORD(v44[6]) = AccountBanPopup::onCommentUnban; sub_7624F4( (int)v51, 0, 0, 0, 80, (cocos2d::CCLabelBMFont *)"Comment Ban", (int)AccountBanPopup::onCommentBan, 0, (int)AccountBanPopup::onCommentUnban, 0, 1, (ButtonSprite *)"Ban", (cocos2d::CCPoint *)"Unban"); v44[9] = 0.0; LODWORD(v44[8]) = AccountBanPopup::onLevelUploadBan; v44[11] = 0.0; LODWORD(v44[10]) = AccountBanPopup::onLevelUploadUnban; sub_7624F4( (int)v51, 1, 0, 1, 100, (cocos2d::CCLabelBMFont *)"Upload Ban", (int)AccountBanPopup::onLevelUploadBan, 0, (int)AccountBanPopup::onLevelUploadUnban, 0, 1, (ButtonSprite *)"Ban", (cocos2d::CCPoint *)"Unban"); v44[13] = 0.0; LODWORD(v44[12]) = AccountBanPopup::onMessageBan; v44[15] = 0.0; LODWORD(v44[14]) = AccountBanPopup::onMessageUnban; sub_7624F4( (int)v51, 2, 0, 2, 255, (cocos2d::CCLabelBMFont *)"Message Ban", (int)AccountBanPopup::onMessageBan, 0, (int)AccountBanPopup::onMessageUnban, 0, 1, (ButtonSprite *)"Ban", (cocos2d::CCPoint *)"Unban"); v44[17] = 0.0; LODWORD(v44[16]) = AccountBanPopup::onFreeze; v44[19] = 0.0; LODWORD(v44[18]) = AccountBanPopup::onUnfreeze; sub_7624F4( (int)v51, 3, 0, 3, 255, (cocos2d::CCLabelBMFont *)"Ban All", (int)AccountBanPopup::onFreeze, 0, (int)AccountBanPopup::onUnfreeze, 0, 1, (ButtonSprite *)"Ban", (cocos2d::CCPoint *)"Unban"); LODWORD(v44[20]) = AccountBanPopup::onTrendingBan; v44[21] = 0.0; v44[23] = 0.0; LODWORD(v44[22]) = AccountBanPopup::onTrendingUnban; sub_7624F4( (int)v51, 4, 1u, 0, 190, (cocos2d::CCLabelBMFont *)"Trending Ban", (int)AccountBanPopup::onTrendingBan, 0, (int)AccountBanPopup::onTrendingUnban, 0, 0, (ButtonSprite *)"Ban", (cocos2d::CCPoint *)"Allow"); v44[25] = 0.0; LODWORD(v44[24]) = AccountBanPopup::onQueueMute; v44[27] = 0.0; LODWORD(v44[26]) = AccountBanPopup::onQueueUnmute; sub_7624F4( (int)v51, 6, 1u, 1, 120, (cocos2d::CCLabelBMFont *)"Queue Mute", (int)AccountBanPopup::onQueueMute, 0, (int)AccountBanPopup::onQueueUnmute, 0, 0, (ButtonSprite *)"Mute", (cocos2d::CCPoint *)"Unmute"); SetupTriggerPopup::createPageButtons((SetupTriggerPopup *)a1, (float)(*(float *)(a1 + 556) * 0.5) + 15.0, 1u); SetupTriggerPopup::goToPage((cocos2d::CCArray **)a1, nullptr, 0); std::__vector_base::~__vector_base((int)&v45); return v13; }