// // AccountLayer::customSetup from 0x584b08 to 0x585038 (1328 bytes) // // 0 xrefs: // // 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:52:57 +0000 // int __fastcall AccountLayer::customSetup(cocos2d::CCObject **this) { const char *v2; // r2 cocos2d::CCObject *v3; // r0 int v4; // r7 void (__fastcall *v5)(int, _DWORD *); // r8 int v6; // r11 int v7; // r5 ButtonSprite *v8; // r0 int v9; // r0 ButtonSprite *v10; // r0 int v11; // r0 ButtonSprite *v12; // r0 int v13; // r0 ButtonSprite *v14; // r0 int v15; // r0 ButtonSprite *v16; // r0 int v17; // r0 ButtonSprite *v18; // r0 int v19; // r0 const cocos2d::CCPoint *v20; // r11 GJAccountManager *v21; // r0 GJAccountManager *v22; // r0 int v23; // r0 int v24; // r3 bool v25; // r3 GJAccountManager *updated; // r0 GJAccountManager *v27; // r0 GJAccountManager *v28; // r0 LoadingCircle *v29; // r0 cocos2d::CCLayerColor *v30; // r0 int v31; // r3 int v32; // r4 int (__fastcall *v33)(int, _BYTE *); // r5 bool v35; // [sp+4h] [bp-78h] bool v36; // [sp+4h] [bp-78h] bool v37; // [sp+4h] [bp-78h] bool v38; // [sp+4h] [bp-78h] bool v39; // [sp+4h] [bp-78h] cocos2d::CCPoint *v40; // [sp+10h] [bp-6Ch] cocos2d::CCPoint *v41; // [sp+10h] [bp-6Ch] cocos2d::CCPoint *v42; // [sp+10h] [bp-6Ch] cocos2d::CCPoint *v43; // [sp+10h] [bp-6Ch] cocos2d::CCPoint *v44; // [sp+10h] [bp-6Ch] cocos2d::CCPoint *v45; // [sp+10h] [bp-6Ch] cocos2d::CCPoint *v46; // [sp+10h] [bp-6Ch] cocos2d::CCPoint *v47; // [sp+10h] [bp-6Ch] void (__fastcall *v48)(int, _DWORD *); // [sp+14h] [bp-68h] int v49; // [sp+14h] [bp-68h] int v50; // [sp+14h] [bp-68h] int v51; // [sp+14h] [bp-68h] int v52; // [sp+14h] [bp-68h] int v53; // [sp+14h] [bp-68h] int v54; // [sp+14h] [bp-68h] float v55; // [sp+18h] [bp-64h] BYREF float v56; // [sp+1Ch] [bp-60h] _BYTE v57[8]; // [sp+20h] [bp-5Ch] BYREF _BYTE v58[8]; // [sp+28h] [bp-54h] BYREF _BYTE v59[8]; // [sp+30h] [bp-4Ch] BYREF int (__fastcall *v60)(AccountLayer *, cocos2d::CCObject *, int, int); // [sp+38h] [bp-44h] int v61; // [sp+3Ch] [bp-40h] int (__fastcall *v62)(AccountLayer *, cocos2d::CCObject *); // [sp+40h] [bp-3Ch] int v63; // [sp+44h] [bp-38h] int (__fastcall *v64)(AccountLayer *, cocos2d::CCObject *); // [sp+48h] [bp-34h] int v65; // [sp+4Ch] [bp-30h] int (__fastcall *v66)(AccountLayer *, cocos2d::CCObject *); // [sp+50h] [bp-2Ch] int v67; // [sp+54h] [bp-28h] _DWORD v68[2]; // [sp+58h] [bp-24h] BYREF _DWORD v69[2]; // [sp+60h] [bp-1Ch] BYREF int v70; // [sp+68h] [bp-14h] BYREF int v71; // [sp+6Ch] [bp-10h] int v72; // [sp+70h] [bp-Ch] cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)this); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v55); v3 = (cocos2d::CCObject *)cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)&unk_B6B226, "goldFont.fnt", v2); *(this + 124) = v3; (*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)v3 + 80))(v3, 1061997773); (*(void (__fastcall **)(_DWORD, _DWORD))(*(_DWORD *)*(this + 116) + 228))(*(this + 116), *(this + 124)); v4 = (int)*(this + 124); v5 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v4 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v69, v55 * 0.5, (float)(v56 * 0.5) + 87.0); v5(v4, v69); v70 = 0; v71 = 0; v72 = 0; std::string::__init(&v70, " ", 1u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v69, 0.5, 1.0); *(this + 125) = (cocos2d::CCObject *)TextArea::create( (int)&v70, "bigFont.fnt", 1065353216, 1148846080, (const cocos2d::CCPoint *)v69, 1108082688, 0, 0); std::string::~string((int)&v70); (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 125) + 80))(*(this + 125), 1053609165); (*(void (__fastcall **)(_DWORD, _DWORD))(*(_DWORD *)*(this + 116) + 228))(*(this + 116), *(this + 125)); v6 = (int)*(this + 125); v48 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v6 + 92); v40 = (cocos2d::CCPoint *)(*(int (__fastcall **)(_DWORD))(*(_DWORD *)*(this + 124) + 96))(*(this + 124)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v68, 0.0, -17.0); cocos2d::CCPoint::operator+(v69, v40, v68); v48(v6, v69); v7 = 0; v8 = ButtonSprite::create((ButtonSprite *)"Log in", (const char *)&dword_A0, 0, 1.0, COERCE_FLOAT(1), v35); v61 = 0; v60 = AccountLayer::onLogin; v9 = CCMenuItemSpriteExtra::create((int)v8, 0, (int)this, (int)AccountLayer::onLogin, 0); *(this + 126) = (cocos2d::CCObject *)v9; (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 114) + 228))(*(this + 114), v9); v10 = ButtonSprite::create((ButtonSprite *)"Register", (const char *)&dword_A0, 0, 1.0, COERCE_FLOAT(1), v36); v63 = 0; v62 = AccountLayer::onRegister; v11 = CCMenuItemSpriteExtra::create((int)v10, 0, (int)this, (int)AccountLayer::onRegister, 0); *(this + 127) = (cocos2d::CCObject *)v11; (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 114) + 228))(*(this + 114), v11); v12 = ButtonSprite::create( (ButtonSprite *)"Save", (const char *)&dword_A0, 0, 1.0, 1, "goldFont.fnt", "GJ_button_01.png", nullptr, *(float *)&v40); v65 = 0; v64 = AccountLayer::onBackup; v13 = CCMenuItemSpriteExtra::create((int)v12, 0, (int)this, (int)AccountLayer::onBackup, 0); *(this + 128) = (cocos2d::CCObject *)v13; (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 114) + 228))(*(this + 114), v13); v14 = ButtonSprite::create((ButtonSprite *)"Load", (const char *)&dword_A0, 0, 1.0, COERCE_FLOAT(1), v37); v67 = 0; v66 = AccountLayer::onSync; v15 = CCMenuItemSpriteExtra::create((int)v14, 0, (int)this, (int)AccountLayer::onSync, 0); *(this + 129) = (cocos2d::CCObject *)v15; (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 114) + 228))(*(this + 114), v15); v16 = ButtonSprite::create((ButtonSprite *)"Help", (const char *)&dword_A0, 0, 1.0, COERCE_FLOAT(1), v38); v68[1] = 0; v68[0] = AccountLayer::onHelp; v17 = CCMenuItemSpriteExtra::create((int)v16, 0, (int)this, (int)AccountLayer::onHelp, 0); *(this + 130) = (cocos2d::CCObject *)v17; (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 114) + 228))(*(this + 114), v17); v18 = ButtonSprite::create((ButtonSprite *)"More", (const char *)&dword_A0, 0, 1.0, COERCE_FLOAT(1), v39); v69[1] = 0; v69[0] = AccountLayer::onMore; v19 = CCMenuItemSpriteExtra::create((int)v18, 0, (int)this, (int)AccountLayer::onMore, 0); *(this + 131) = (cocos2d::CCObject *)v19; (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 114) + 228))(*(this + 114), v19); v20 = *(this + 116); v41 = *(this + 114); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v58, v55 * 0.5, (float)(v56 * 0.5) + 30.0); cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)v59, v20); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v57, v41); v49 = (int)*(this + 126); v42 = *(cocos2d::CCPoint **)(*(_DWORD *)v49 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v58, 0.0, 0.0); cocos2d::CCPoint::operator+(v59, v57, v58); ((void (__fastcall *)(int, _BYTE *))v42)(v49, v59); v50 = (int)*(this + 127); v43 = *(cocos2d::CCPoint **)(*(_DWORD *)v50 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v58, 0.0, -90.0); cocos2d::CCPoint::operator+(v59, v57, v58); ((void (__fastcall *)(int, _BYTE *))v43)(v50, v59); v51 = (int)*(this + 128); v44 = *(cocos2d::CCPoint **)(*(_DWORD *)v51 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v58, 0.0, 0.0); cocos2d::CCPoint::operator+(v59, v57, v58); ((void (__fastcall *)(int, _BYTE *))v44)(v51, v59); v52 = (int)*(this + 129); v45 = *(cocos2d::CCPoint **)(*(_DWORD *)v52 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v58, 0.0, -45.0); cocos2d::CCPoint::operator+(v59, v57, v58); ((void (__fastcall *)(int, _BYTE *))v45)(v52, v59); v53 = (int)*(this + 130); v46 = *(cocos2d::CCPoint **)(*(_DWORD *)v53 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v58, 0.0, -45.0); cocos2d::CCPoint::operator+(v59, v57, v58); ((void (__fastcall *)(int, _BYTE *))v46)(v53, v59); v54 = (int)*(this + 131); v47 = *(cocos2d::CCPoint **)(*(_DWORD *)v54 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v58, 0.0, -90.0); cocos2d::CCPoint::operator+(v59, v57, v58); v21 = (GJAccountManager *)((int (__fastcall *)(int, _BYTE *))v47)(v54, v59); v22 = (GJAccountManager *)GJAccountManager::sharedState(v21); if ( *((_DWORD *)v22 + 70) == *((_DWORD *)v22 + 71) ) { v25 = 0; } else { v23 = GJAccountManager::sharedState(v22); v7 = 1; std::string::basic_string(&v70, v23 + 292); if ( (v70 & 1) != 0 ) v24 = v71; else v24 = (int)(unsigned __int8)v70 >> 1; v25 = v24 != 0; } *((_BYTE *)this + 536) = v25; if ( v7 ) std::string::~string((int)&v70); updated = (GJAccountManager *)AccountLayer::updatePage((AccountLayer *)this, 0); v27 = (GJAccountManager *)GJAccountManager::sharedState(updated); *((_DWORD *)v27 + 78) = this + 120; v28 = (GJAccountManager *)GJAccountManager::sharedState(v27); *((_DWORD *)v28 + 79) = this + 121; v29 = (LoadingCircle *)GJAccountManager::sharedState(v28); *((_DWORD *)v29 + 80) = this + 122; v30 = LoadingCircle::create(v29); v31 = (int)*(this + 116); *(this + 132) = v30; *((_DWORD *)v30 + 111) = v31; *((_BYTE *)*(this + 132) + 448) = 1; cocos2d::CCObject::retain(*(this + 132)); LoadingCircle::show((cocos2d::CCNode **)*(this + 132)); (*(void (__fastcall **)(_DWORD, _DWORD))(*(_DWORD *)*(this + 132) + 172))(*(this + 132), 0); v32 = *((_DWORD *)*(this + 132) + 110); v33 = *(int (__fastcall **)(int, _BYTE *))(*(_DWORD *)v32 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v59, v55 * 0.5, v56 * 0.5); return v33(v32, v59); }