// // AdminActionConfirmPopup::init from 0x1400a5680 to 0x1400a60de (2654 bytes) // // 2 xrefs: // > sub_1400A51F0 @ 0x1400a5366 // > @ 0x1409131cc // // 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:08 +0000 // // Hidden C++ exception states: #wind=5 char __fastcall AdminActionConfirmPopup::init( __int64 a1, __int64 a2, int a3, _BYTE *a4, void *a5, __int64 a6, __int64 a7, _QWORD *a8) { void *v11; // r12 __int64 v12; // r15 __int64 v13; // rax int v14; // r9d int v15; // ecx int v16; // eax float v17; // xmm3_4 int v18; // r12d float v19; // xmm13_4 float v20; // xmm2_4 float v21; // xmm11_4 float v22; // xmm10_4 _QWORD *v23; // rdx float v24; // xmm12_4 float v25; // xmm9_4 float v26; // xmm10_4 size_t v27; // r8 float v28; // xmm8_4 __int64 v29; // rbx const struct cocos2d::CCPoint *v30; // rax char *v31; // rdi __int64 v32; // rbx __int64 v33; // rax float v34; // xmm8_4 unsigned __int64 *v35; // rax __int64 v36; // rax void **v37; // rcx cocos2d::CCLabelBMFont *v38; // rdi __int64 v39; // rbx __int64 v40; // rax void *v41; // rcx __int64 v42; // rax __int64 v43; // rdi __int64 v44; // rbx __int64 v45; // rax __int64 v46; // rbx __int64 v47; // rax __int64 v48; // rdx __int64 v49; // rcx char *InputNode; // rdi __int64 v51; // rbx __int64 v52; // rax __int64 v53; // rcx __int64 v54; // rcx __int64 v55; // rcx float v56; // xmm8_4 float v57; // xmm8_4 struct cocos2d::CCLabelBMFont *v58; // rdi __int64 v59; // rbx __int64 v60; // rax float v61; // xmm8_4 __int64 v62; // rax float v63; // xmm2_4 __int64 v64; // r8 __int64 v65; // rdx int v66; // ecx float v67; // xmm9_4 __int64 v68; // rax cocos2d::CCObject *v69; // rbx const char *v70; // r12 cocos2d::CCObject *v71; // rsi __int64 v72; // rdi __int64 v73; // rbx __int64 v74; // rax __int64 v75; // rax cocos2d::CCObject *v76; // rax int v77; // ebx cocos2d::CCObject *v78; // rsi __int64 v79; // rdi __int64 v80; // rbx __int64 v81; // rax __int64 v82; // rax __int128 *v84; // [rsp+70h] [rbp-90h] BYREF void *v85; // [rsp+78h] [rbp-88h] BYREF float v86; // [rsp+80h] [rbp-80h] BYREF float v87; // [rsp+84h] [rbp-7Ch] __int64 v88; // [rsp+88h] [rbp-78h] BYREF void *Block[2]; // [rsp+90h] [rbp-70h] BYREF __int128 v90; // [rsp+A0h] [rbp-60h] __int128 v91; // [rsp+B0h] [rbp-50h] BYREF __int64 v92; // [rsp+C0h] [rbp-40h] __int64 v93; // [rsp+C8h] [rbp-38h] LODWORD(v84) = a3; Block[0] = a5; v88 = a6; if ( !a2 ) return 0; v11 = (void *)a8[2]; v85 = v11; v12 = (__int64)(*(_QWORD *)(a7 + 8) - *(_QWORD *)a7) >> 2; v13 = cocos2d::CCDirector::sharedDirector(a1); cocos2d::CCDirector::getWinSize(v13, &v86); v15 = 0; if ( (int)v12 > 0 ) v15 = 26; v16 = 156; if ( v11 ) v16 = 174; v17 = (float)(v16 + v15); if ( (int)v12 <= 5 ) v18 = v12; else v18 = ((int)v12 + 1) / 2; v19 = 24.0; if ( v18 > 0 ) { v20 = fmaxf(12.0, (float)((float)(v87 - 20.0) - v17) / (float)v18); if ( v20 <= 24.0 ) v19 = v20; } v21 = v19 / 24.0; v22 = (float)((float)v18 * v19) + v17; if ( !(unsigned __int8)SetupTriggerPopup::init(a1, 0, 0, v14, LODWORD(v22), 1, 0) ) return 0; *(_QWORD *)(a1 + 1000) = a2; *(_DWORD *)(a1 + 1008) = (_DWORD)v84; if ( (_QWORD *)(a1 + 1016) != a8 ) { v23 = a8; if ( a8[3] > 0xFu ) v23 = (_QWORD *)*a8; sub_1400405A0((void **)(a1 + 1016), v23, a8[2]); } v24 = v86 * 0.5; v25 = (float)(v87 * 0.5) + 0.0; v26 = v22 * 0.5; v91 = 0; v92 = 0; v93 = 0; v27 = -1; do ++v27; while ( a4[v27] ); sub_14003D230(&v91, a4, v27); SetupTriggerPopup::addTitle(a1, &v91); v28 = (float)(v25 + v26) - 52.0; v84 = &v91; v29 = sub_14003F4F0((__int64)&v91, (__int64)Block[0]); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)Block, 0.5, 0.5); v31 = TextArea::create(v29, "chatFont.fnt", 1.0, 300.0, v30, 1101004800, 0, 0); (*(void (__fastcall **)(char *))(*(_QWORD *)v31 + 160LL))(v31); v32 = *(_QWORD *)v31; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v84, v24, v28); (*(void (__fastcall **)(char *, __int64))(v32 + 184))(v31, v33); (*(void (__fastcall **)(_QWORD, char *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v31, 1); v34 = v28 - 32.0; if ( v85 ) { v35 = GameToolbox::singleLineSnippet((unsigned __int64 *)&v91, (__int64)a8, 0x3Cu); v36 = sub_140059D70(v35, 0, "Reason: ", 8u); *(_OWORD *)Block = 0; v90 = 0u; *(_OWORD *)Block = *(_OWORD *)v36; v90 = *(_OWORD *)(v36 + 16); *(_QWORD *)(v36 + 16) = 0; *(_QWORD *)(v36 + 24) = 15; *(_BYTE *)v36 = 0; sub_14003D310((__int64)&v91); v37 = Block; if ( *((_QWORD *)&v90 + 1) > 0xFu ) v37 = (void **)Block[0]; v38 = cocos2d::CCLabelBMFont::create((const char *)v37, "chatFont.fnt"); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v38 + 160LL))(v38); LOWORD(v84) = -11521; BYTE2(v84) = 60; (**((void (__fastcall ***)(__int64, __int128 **))v38 + 46))((__int64)v38 + 368, &v84); cocos2d::CCLabelBMFont::limitLabelWidth(v38, 300.0, 0.55000001, 0.30000001); v39 = *(_QWORD *)v38; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v85, v24, v34); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64))(v39 + 184))(v38, v40); (*(void (__fastcall **)(_QWORD, cocos2d::CCLabelBMFont *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), v38, 1); v34 = v34 + -18.0; if ( *((_QWORD *)&v90 + 1) > 0xFu ) { v41 = Block[0]; if ( (unsigned __int64)(*((_QWORD *)&v90 + 1) + 1LL) >= 0x1000 ) { v41 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v41 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v41); } } v42 = cocos2d::CCRect::CCRect((cocos2d::CCRect *)Block, 0.0, 0.0, 40.0, 40.0); v43 = cocos2d::extension::CCScale9Sprite::create("square02b_small.png", v42); v44 = *(_QWORD *)v43; cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v85, 300.0, 26.0); (*(void (__fastcall **)(__int64, __int64))(v44 + 312))(v43, v45); LOWORD(v84) = 13405; BYTE2(v84) = 31; (**(void (__fastcall ***)(__int64, __int128 **))(v43 + 320))(v43 + 320, &v84); v46 = *(_QWORD *)v43; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v85, v24, v34 - 10.0); (*(void (__fastcall **)(__int64, __int64))(v46 + 184))(v43, v47); (*(void (__fastcall **)(_QWORD, __int64, _QWORD))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v43, 0); InputNode = GameToolbox::createInputNode(v49, v48, (__int64)"Reason (optional)", 255); *(_QWORD *)(a1 + 1048) = InputNode; v51 = *(_QWORD *)InputNode; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v85, v24, v34 - 10.0); (*(void (__fastcall **)(char *, __int64))(v51 + 184))(InputNode, v52); v53 = *(_QWORD *)(a1 + 1048); *(_DWORD *)(v53 + 564) = 1063675494; CCTextInputNode::refreshLabel(v53); v54 = *(_QWORD *)(a1 + 1048); *(_DWORD *)(v54 + 560) = 1133379584; CCTextInputNode::refreshLabel(v54); *(_OWORD *)Block = 0; v90 = 0u; Block[0] = sub_14003D460(0x50u); *(_QWORD *)&v90 = 75; *((_QWORD *)&v90 + 1) = 79; strcpy((char *)Block[0], "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 .,!?'\"-:;()/"); CCTextInputNode::setAllowedChars(*(_QWORD *)(a1 + 1048), Block); v55 = *(_QWORD *)(a1 + 1048); *(_DWORD *)(v55 + 568) = 1061997773; CCTextInputNode::refreshLabel(v55); *(_QWORD *)(*(_QWORD *)(a1 + 1048) + 600LL) = a1 + 544; (*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), *(_QWORD *)(a1 + 1048), 5); v56 = v34 + -30.0; if ( (int)v12 > 0 ) { v57 = v56 - 5.0; v58 = cocos2d::CCLabelBMFont::create("Categories (optional):", "goldFont.fnt"); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v58 + 160LL))(v58); v59 = *(_QWORD *)v58; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v85, v24, v57); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v59 + 184))(v58, v60); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), v58, 1); v61 = v57 - v19; sub_140099FC0((void **)(a1 + 1056), (char **)a7); v62 = a1 + 1080; v63 = v21 * 0.60000002; v64 = *(_QWORD *)(a1 + 584); v65 = *(_QWORD *)(a1 + 552); v66 = a1 + 1056; if ( (int)v12 <= 5 ) ReportPopup::buildReasonRows( v66, v65, v64, a1, (__int64)VirtualRowSource::unmountVirtualRow, v24 - 90.0, LODWORD(v61), LODWORD(v19), LODWORD(v63), v21 * 0.41999999, 1129447424, v62, 0, 0); else ReportPopup::buildReasonRows( v66, v65, v64, a1, (__int64)VirtualRowSource::unmountVirtualRow, v24 - 140.0, LODWORD(v61), LODWORD(v19), LODWORD(v63), v21 * 0.34, 1124597760, v62, v18, 1126432768); } v67 = (float)(v25 - v26) + 24.0; v85 = operator new(0x2C8u); v68 = ButtonSprite::ButtonSprite((__int64)v85); v69 = (cocos2d::CCObject *)v68; v70 = "GJ_button_01.png"; if ( v68 ) { if ( ButtonSprite::init_1( v68, (__int64)"Cancel", 80, 0, 1058642330, 1, &qword_140704F78, (__int64)"GJ_button_01.png", 1105199104) ) { cocos2d::CCObject::autorelease(v69); } else { (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v69 + 8LL))(v69, 1); v69 = nullptr; } } (*(void (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v69 + 160LL))(v69); v71 = CCMenuItemSpriteExtra::create((int)v69, 0, a1, (__int64)sub_14009D628); *((_DWORD *)v71 + 93) = 1066192077; (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v71); v72 = *(_QWORD *)v71; v73 = *(_QWORD *)(a1 + 552); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v85, v24 - 60.0, v67); cocos2d::CCNode::convertToNodeSpace(v73, Block, v74); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v72 + 184))(v71, v75); if ( (int)v12 > 0 ) v70 = "GJ_button_06.png"; v76 = ButtonSprite::create_1(v88, 80, 0, 0.60000002, 1, (__int64)&qword_140704F78, (__int64)v70, 1105199104); v77 = (int)v76; (*(void (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v76 + 160LL))(v76); v78 = CCMenuItemSpriteExtra::create(v77, 0, a1, (__int64)AdminActionConfirmPopup::onConfirm); *((_DWORD *)v78 + 93) = 1066192077; (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v78); v79 = *(_QWORD *)v78; v80 = *(_QWORD *)(a1 + 552); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v88, v24 + 60.0, v67); cocos2d::CCNode::convertToNodeSpace(v80, &v85, v81); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v79 + 184))(v78, v82); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source