// // AccountRegisterLayer::init from 0x99088c to 0x9914ec (3168 bytes) // // 3 xrefs: // > AccountRegisterLayer::create @ 0x98f5a4 // > @ 0x98308 // > @ 0x14739c0 // // This function is hookable on this platform (idp: arm, 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 12:57:59 +0000 // __int64 __fastcall AccountRegisterLayer::init(AccountRegisterLayer *this) { unsigned __int8 v2; // w0 unsigned int v3; // w25 cocos2d::CCDirector *v5; // x0 __int64 v6; // x26 const char *v7; // x2 __int64 v8; // x26 cocos2d::CCMenu *v9; // x0 __int64 v10; // x0 cocos2d::CCArray *v11; // x0 cocos2d::CCArray *v12; // x26 const char *v13; // x1 __int64 v14; // x2 __int64 v15; // x3 bool v16; // w4 __int64 v17; // x5 const char *v18; // x6 __int64 v19; // x0 const char *v20; // x1 __int64 v21; // x2 __int64 v22; // x3 bool v23; // w4 __int64 v24; // x5 const char *v25; // x6 __int64 v26; // x0 float v27; // s8 __int64 v28; // x0 __int64 TextLabel; // x0 char v30; // w1 __int64 TextInput; // x26 __int64 v32; // x0 const char *v33; // x2 char v34; // w1 __int64 v35; // x27 void (__fastcall *v36)(__int64, __int64 *); // x28 __int64 v37; // x27 void (__fastcall *v38)(__int64, __int64 *); // x28 float v39; // s9 float v40; // s0 __int64 v41; // x27 __int64 v42; // x0 char v43; // w1 __int64 v44; // x26 __int64 v45; // x0 char v46; // w1 __int64 v47; // x27 __int64 v48; // x0 char v49; // w1 __int64 v50; // x21 LoadingCircle *v51; // x0 __int64 v52; // x0 __int64 v53; // x19 __int64 (__fastcall *v54)(__int64, __int64 *); // x21 GJAccountManager *v55; // x0 GJAccountManager *v56; // x0 cocos2d::CCNode *v57; // [xsp+78h] [xbp+78h] void (__fastcall *v58)(__int64, __int64 *); // [xsp+80h] [xbp+80h] void (__fastcall *v59)(__int64, __int64 *); // [xsp+80h] [xbp+80h] cocos2d::CCObject *v60; // [xsp+80h] [xbp+80h] cocos2d::CCObject *v61; // [xsp+80h] [xbp+80h] __int64 v62; // [xsp+80h] [xbp+80h] __int64 v63; // [xsp+98h] [xbp+98h] BYREF float v64; // [xsp+A0h] [xbp+A0h] BYREF float v65; // [xsp+A4h] [xbp+A4h] _BYTE v66[8]; // [xsp+A8h] [xbp+A8h] BYREF _BYTE v67[8]; // [xsp+B0h] [xbp+B0h] BYREF __int64 v68; // [xsp+B8h] [xbp+B8h] BYREF __int64 v69; // [xsp+C0h] [xbp+C0h] BYREF __int64 v70; // [xsp+C8h] [xbp+C8h] BYREF __int64 v71; // [xsp+D0h] [xbp+D0h] BYREF _BYTE v72[8]; // [xsp+D8h] [xbp+D8h] BYREF __int64 v73[2]; // [xsp+E0h] [xbp+E0h] BYREF __int64 v74; // [xsp+F0h] [xbp+F0h] BYREF __int64 v75; // [xsp+F8h] [xbp+F8h] void *v76; // [xsp+100h] [xbp+100h] v2 = FLAlertLayer::init(this, 150); v3 = v2; if ( v2 ) { *((_BYTE *)this + 596) = (unsigned __int8)&dword_0 + 1; v5 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)((char *)&dword_0 + 1)); cocos2d::CCDirector::getWinSize(&v63, v5); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v73, 0.0, 0.0, 80.0, 80.0); v6 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v73); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 912LL))(v6, 0xFFFFFFFFLL); v58 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v6 + 320LL); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v73, 400.0, 300.0); v58(v6, v73); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), v6, 0xFFFFFFFFLL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v64, *(float *)&v63 * 0.5, *((float *)&v63 + 1) * 0.5); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v6 + 184LL))(v6, &v64); v8 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Register Account", "bigFont.fnt", v7); v59 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v8 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v73, v64, (float)(v65 + 150.0) - 16.0); v59(v8, v73); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 73) + 456LL))(*((_QWORD *)this + 73), v8); v9 = (cocos2d::CCMenu *)(*(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)v8 + 160LL))(v8, 0.6); v10 = cocos2d::CCMenu::create(v9); *((_QWORD *)this + 69) = v10; v11 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), v10, 10); v12 = (cocos2d::CCArray *)cocos2d::CCArray::create(v11); v19 = ButtonSprite::create((ButtonSprite *)"Cancel", v13, v14, v15, v16, v17, v18); v60 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( v19, 0, (__int64)this, (__int64)AccountRegisterLayer::onClose, 0); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**((_QWORD **)this + 69) + 456LL))( *((_QWORD *)this + 69), v60); cocos2d::CCArray::addObject(v12, v60); v26 = ButtonSprite::create((ButtonSprite *)"Submit", v20, v21, v22, v23, v24, v25); v61 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( v26, 0, (__int64)this, (__int64)AccountRegisterLayer::onSubmit, 0); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**((_QWORD **)this + 69) + 456LL))( *((_QWORD *)this + 69), v61); cocos2d::CCArray::addObject(v12, v61); v57 = *((cocos2d::CCNode **)this + 69); *(float *)&v61 = v64; v27 = (float)(v65 - 150.0) + 22.0; v28 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 73) + 192LL))(*((_QWORD *)this + 73)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v72, *(float *)&v61, v27 + *(float *)(v28 + 4)); cocos2d::CCNode::convertToNodeSpace(v73, v57, (const cocos2d::CCPoint *)v72); GameToolbox::alignItemsHorisontally((__int64)v12, (__int64)v73, 0, 15.0); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v66, 300.0, 30.0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v67, v64, v65 + 90.0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v72, (const cocos2d::CCPoint *)v67); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v73, (const cocos2d::CCSize *)v66); AccountRegisterLayer::createTextBackground((__int64)this, (__int64)v72, (__int64)v73); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v72, (const cocos2d::CCPoint *)v67); v74 = 0; v75 = 0; v76 = nullptr; std::string::__init(&v74, "Username: (shown to other players)", 0x22u); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v73, (const cocos2d::CCSize *)v66); TextLabel = AccountRegisterLayer::createTextLabel((__int64)this, (__int64)v72, (__int64)&v74, (float *)v73); v30 = v74; *((_QWORD *)this + 90) = TextLabel; if ( (v30 & 1) != 0 ) operator delete(v76); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v72, (const cocos2d::CCPoint *)v67); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v73, (const cocos2d::CCSize *)v66); v74 = 0; v75 = 0; v76 = nullptr; std::string::__init(&v74, "Username", 8u); TextInput = AccountRegisterLayer::createTextInput( (__int64)this, (__int64)v72, (float *)v73, (CCTextInputNode *)&v74, (_BYTE *)&dword_0 + 1); *((_QWORD *)this + 85) = TextInput; if ( (v74 & 1) != 0 ) { operator delete(v76); TextInput = *((_QWORD *)this + 85); } v74 = 0; v75 = 0; v76 = nullptr; std::string::__init(&v74, "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789", 0x3Eu); CCTextInputNode::setAllowedChars(TextInput, (__int64)&v74); if ( (v74 & 1) != 0 ) operator delete(v76); *(_DWORD *)(*((_QWORD *)this + 85) + 592LL) = 15; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v73, 0.0, -45.0); cocos2d::CCPoint::operator+(&v68, v67); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v72, (const cocos2d::CCPoint *)&v68); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v73, (const cocos2d::CCSize *)v66); AccountRegisterLayer::createTextBackground((__int64)this, (__int64)v72, (__int64)v73); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v72, (const cocos2d::CCPoint *)&v68); v74 = 0; v75 = 0; v76 = nullptr; std::string::__init(&v74, "Password:", 9u); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v73, (const cocos2d::CCSize *)v66); v32 = AccountRegisterLayer::createTextLabel((__int64)this, (__int64)v72, (__int64)&v74, (float *)v73); v34 = v74; *((_QWORD *)this + 91) = v32; if ( (v34 & 1) != 0 ) operator delete(v76); v35 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)&byte_11E1A70, "bigFont.fnt", v33); *((_QWORD *)this + 92) = v35; v36 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v35 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v73, 0.0, 0.0); v36(v35, v73); (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 92) + 160LL))(*((_QWORD *)this + 92), 0.4); v37 = *((_QWORD *)this + 92); v38 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v37 + 184LL); v62 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 91) + 192LL))(*((_QWORD *)this + 91)); v39 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 91) + 328LL))(*((_QWORD *)this + 91)); v40 = (*(float (__fastcall **)(_QWORD))(**((_QWORD **)this + 91) + 168LL))(*((_QWORD *)this + 91)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v72, (float)(v39 * v40) + 8.0, 0.0); cocos2d::CCPoint::operator+(v73, v62); v38(v37, v73); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 73) + 456LL))( *((_QWORD *)this + 73), *((_QWORD *)this + 92)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v72, (const cocos2d::CCPoint *)&v68); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v73, (const cocos2d::CCSize *)v66); v74 = 0; v75 = 0; v76 = nullptr; std::string::__init(&v74, "Password", 8u); v41 = AccountRegisterLayer::createTextInput( (__int64)this, (__int64)v72, (float *)v73, (CCTextInputNode *)&v74, (_BYTE *)&dword_0 + 2); *((_QWORD *)this + 86) = v41; if ( (v74 & 1) != 0 ) { operator delete(v76); v41 = *((_QWORD *)this + 86); } v74 = 0; v75 = 0; v76 = nullptr; std::string::__init(&v74, &byte_11B8890, 0); CCTextInputNode::setAllowedChars(v41, (__int64)&v74); if ( (v74 & 1) != 0 ) operator delete(v76); *(_DWORD *)(*((_QWORD *)this + 86) + 592LL) = 64; *(_BYTE *)(*((_QWORD *)this + 86) + 609LL) = 1; CCTextInputNode::setMaxLabelScale(*((CCTextInputNode **)this + 86), 1.0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v73, 0.0, -45.0); cocos2d::CCPoint::operator+(&v69, &v68); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v72, (const cocos2d::CCPoint *)&v69); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v73, (const cocos2d::CCSize *)v66); AccountRegisterLayer::createTextBackground((__int64)this, (__int64)v72, (__int64)v73); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v72, (const cocos2d::CCPoint *)&v69); v74 = 0; v75 = 0; v76 = nullptr; std::string::__init(&v74, "Confirm Password:", 0x11u); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v73, (const cocos2d::CCSize *)v66); v42 = AccountRegisterLayer::createTextLabel((__int64)this, (__int64)v72, (__int64)&v74, (float *)v73); v43 = v74; *((_QWORD *)this + 93) = v42; if ( (v43 & 1) != 0 ) operator delete(v76); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v72, (const cocos2d::CCPoint *)&v69); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v73, (const cocos2d::CCSize *)v66); v74 = 0; v75 = 0; v76 = nullptr; std::string::__init(&v74, "Confirm Password", 0x10u); v44 = AccountRegisterLayer::createTextInput( (__int64)this, (__int64)v72, (float *)v73, (CCTextInputNode *)&v74, (_BYTE *)&dword_0 + 3); *((_QWORD *)this + 87) = v44; if ( (v74 & 1) != 0 ) { operator delete(v76); v44 = *((_QWORD *)this + 87); } v74 = 0; v75 = 0; v76 = nullptr; std::string::__init(&v74, &byte_11B8890, 0); CCTextInputNode::setAllowedChars(v44, (__int64)&v74); if ( (v74 & 1) != 0 ) operator delete(v76); *(_DWORD *)(*((_QWORD *)this + 87) + 592LL) = 64; *(_BYTE *)(*((_QWORD *)this + 87) + 609LL) = 1; CCTextInputNode::setMaxLabelScale(*((CCTextInputNode **)this + 87), 1.0); CCTextInputNode::forceOffset(*((_QWORD *)this + 87)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v73, 0.0, -45.0); cocos2d::CCPoint::operator+(&v70, &v69); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v72, (const cocos2d::CCPoint *)&v70); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v73, (const cocos2d::CCSize *)v66); AccountRegisterLayer::createTextBackground((__int64)this, (__int64)v72, (__int64)v73); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v72, (const cocos2d::CCPoint *)&v70); v74 = 0; v75 = 0; v76 = nullptr; std::string::__init(&v74, "Email:", 6u); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v73, (const cocos2d::CCSize *)v66); v45 = AccountRegisterLayer::createTextLabel((__int64)this, (__int64)v72, (__int64)&v74, (float *)v73); v46 = v74; *((_QWORD *)this + 94) = v45; if ( (v46 & 1) != 0 ) operator delete(v76); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v72, (const cocos2d::CCPoint *)&v70); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v73, (const cocos2d::CCSize *)v66); v74 = 0; v75 = 0; v76 = nullptr; std::string::__init(&v74, "Email", 5u); v47 = AccountRegisterLayer::createTextInput( (__int64)this, (__int64)v72, (float *)v73, (CCTextInputNode *)&v74, byte_4); *((_QWORD *)this + 88) = v47; if ( (v74 & 1) != 0 ) { operator delete(v76); v47 = *((_QWORD *)this + 88); } v74 = 0; v75 = 0; v76 = nullptr; std::string::__init(&v74, " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_@.", 0x43u); CCTextInputNode::setAllowedChars(v47, (__int64)&v74); if ( (v74 & 1) != 0 ) operator delete(v76); *(_DWORD *)(*((_QWORD *)this + 88) + 592LL) = 50; CCTextInputNode::forceOffset(*((_QWORD *)this + 88)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v73, 0.0, -45.0); cocos2d::CCPoint::operator+(&v71, &v70); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v72, (const cocos2d::CCPoint *)&v71); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v73, (const cocos2d::CCSize *)v66); AccountRegisterLayer::createTextBackground((__int64)this, (__int64)v72, (__int64)v73); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v72, (const cocos2d::CCPoint *)&v71); v74 = 0; v75 = 0; v76 = nullptr; std::string::__init(&v74, "Verify Email:", 0xDu); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v73, (const cocos2d::CCSize *)v66); v48 = AccountRegisterLayer::createTextLabel((__int64)this, (__int64)v72, (__int64)&v74, (float *)v73); v49 = v74; *((_QWORD *)this + 95) = v48; if ( (v49 & 1) != 0 ) operator delete(v76); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v72, (const cocos2d::CCPoint *)&v71); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v73, (const cocos2d::CCSize *)v66); v74 = 0; v75 = 0; v76 = nullptr; std::string::__init(&v74, "Verify Email", 0xCu); v50 = AccountRegisterLayer::createTextInput( (__int64)this, (__int64)v72, (float *)v73, (CCTextInputNode *)&v74, byte_4); *((_QWORD *)this + 89) = v50; if ( (v74 & 1) != 0 ) { operator delete(v76); v50 = *((_QWORD *)this + 89); } v74 = 0; v75 = 0; v76 = nullptr; std::string::__init(&v74, " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_@.", 0x43u); CCTextInputNode::setAllowedChars(v50, (__int64)&v74); if ( (v74 & 1) != 0 ) operator delete(v76); *(_DWORD *)(*((_QWORD *)this + 89) + 592LL) = 50; v51 = (LoadingCircle *)CCTextInputNode::forceOffset(*((_QWORD *)this + 89)); v52 = LoadingCircle::create(v51); *((_QWORD *)this + 96) = v52; *(_QWORD *)(v52 + 552) = *((_QWORD *)this + 73); *(_BYTE *)(*((_QWORD *)this + 96) + 560LL) = 1; cocos2d::CCObject::retain(*((cocos2d::CCObject **)this + 96)); LoadingCircle::show(*((cocos2d::CCNode ***)this + 96)); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 96) + 344LL))(*((_QWORD *)this + 96), 0); v53 = *(_QWORD *)(*((_QWORD *)this + 96) + 544LL); v54 = *(__int64 (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v53 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v73, *(float *)&v63 * 0.5, *((float *)&v63 + 1) * 0.5); v55 = (GJAccountManager *)v54(v53, v73); v56 = (GJAccountManager *)GJAccountManager::sharedState(v55); GJAccountManager::openRegister(v56); } return v3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source