// // UpdateAccountSettingsPopup::init from 0x5d8a88 to 0x5d8ebc (1076 bytes) // // 1 xrefs: // > UpdateAccountSettingsPopup::create @ 0x5d900e // // 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:54:10 +0000 // int __fastcall UpdateAccountSettingsPopup::init( int a1, int a2, int a3, int a4, int a5, int a6, int a7, int a8, int a9, int a10, int a11, int a12, int a13, int a14) { int v16; // r8 int v17; // r3 cocos2d::CCDirector *v18; // r0 cocos2d::CCLayer *WinSize; // r0 int v20; // r0 int v21; // r3 int v22; // r7 cocos2d::CCMenu *v23; // r0 int v24; // r0 void (__fastcall *v25)(int, _DWORD *); // r7 LoadingCircle *v26; // r0 cocos2d::CCLayerColor *v27; // r0 int v28; // r3 int (__fastcall *v29)(int, _DWORD *); // r7 GJAccountManager *v30; // r0 GJAccountManager *v31; // r0 GJAccountManager *v32; // r7 int updated; // r7 const char *v34; // r1 int v35; // r5 int v36; // r0 int v37; // r9 const cocos2d::CCPoint *v38; // r11 void (__fastcall *v39)(int, _BYTE *); // r10 void (__fastcall *v43)(int, _DWORD *); // [sp+4Ch] [bp-88h] int (__fastcall *v44)(int, _DWORD *); // [sp+4Ch] [bp-88h] int v45; // [sp+4Ch] [bp-88h] int v46; // [sp+4Ch] [bp-88h] float v47; // [sp+50h] [bp-84h] BYREF float v48; // [sp+54h] [bp-80h] _BYTE v49[8]; // [sp+58h] [bp-7Ch] BYREF _BYTE v50[8]; // [sp+60h] [bp-74h] BYREF int v51[3]; // [sp+68h] [bp-6Ch] BYREF int v52[3]; // [sp+74h] [bp-60h] BYREF int v53[3]; // [sp+80h] [bp-54h] BYREF int v54[3]; // [sp+8Ch] [bp-48h] BYREF int v55[3]; // [sp+98h] [bp-3Ch] BYREF int v56[3]; // [sp+A4h] [bp-30h] BYREF int v57[3]; // [sp+B0h] [bp-24h] BYREF _DWORD v58[4]; // [sp+BCh] [bp-18h] BYREF v58[0] = -1778384896; v16 = cocos2d::CCLayerColor::initWithColor(a1, v58); if ( v16 ) { FLAlertLayer::incrementForcePrio((cocos2d::CCObject *)a1); v17 = *(_DWORD *)a1; *(_DWORD *)(a1 + 528) = a2; (*(void (__fastcall **)(int, int))(v17 + 500))(a1, 1); v18 = (cocos2d::CCDirector *)(*(int (__fastcall **)(int, int))(*(_DWORD *)a1 + 536))(a1, 1); cocos2d::CCDirector::sharedDirector(v18); WinSize = (cocos2d::CCLayer *)cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v47); v20 = cocos2d::CCLayer::create(WinSize); v21 = *(_DWORD *)a1; *(_DWORD *)(a1 + 460) = v20; (*(void (__fastcall **)(int, int))(v21 + 228))(a1, v20); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v58, 0.0, 0.0, 80.0, 80.0); v22 = cocos2d::extension::CCScale9Sprite::create("GJ_square02.png", v58); v43 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v22 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v58, 200.0, 100.0); v43(v22, v58); (*(void (__fastcall **)(_DWORD, int, int))(**(_DWORD **)(a1 + 460) + 232))(*(_DWORD *)(a1 + 460), v22, -1); v44 = *(int (__fastcall **)(int, _DWORD *))(*(_DWORD *)v22 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v58, v47 * 0.5, v48 * 0.5); v23 = (cocos2d::CCMenu *)v44(v22, v58); v24 = cocos2d::CCMenu::create(v23); *(_DWORD *)(a1 + 444) = v24; (*(void (__fastcall **)(_DWORD, int, int))(**(_DWORD **)(a1 + 460) + 232))(*(_DWORD *)(a1 + 460), v24, 10); memset(v57, 0, sizeof(v57)); std::string::__init(v57, "Updating...", 0xBu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v58, 0.5, 1.0); *(_DWORD *)(a1 + 532) = TextArea::create( (int)v57, "chatFont.fnt", 1065353216, 1137180672, (const cocos2d::CCPoint *)v58, COERCE_INT(20.0), 0, 0); std::string::~string((int)v57); (*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(a1 + 460) + 228))( *(_DWORD *)(a1 + 460), *(_DWORD *)(a1 + 532)); v45 = *(_DWORD *)(a1 + 532); v25 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v45 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v58, v47 * 0.5, (float)(v48 * 0.5) - 20.0); v25(v45, v58); v26 = (LoadingCircle *)(*(int (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 532) + 80))( *(_DWORD *)(a1 + 532), 1061997773); *(_DWORD *)(a1 + 500) = -1; v27 = LoadingCircle::create(v26); v28 = *(_DWORD *)(a1 + 460); *(_DWORD *)(a1 + 536) = v27; *((_DWORD *)v27 + 111) = v28; *(_BYTE *)(*(_DWORD *)(a1 + 536) + 448) = 0; LoadingCircle::show(*(cocos2d::CCNode ***)(a1 + 536)); (*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 536) + 80))(*(_DWORD *)(a1 + 536), 1060320051); v46 = *(_DWORD *)(*(_DWORD *)(a1 + 536) + 440); v29 = *(int (__fastcall **)(int, _DWORD *))(*(_DWORD *)v46 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v58, v47 * 0.5, (float)(v48 * 0.5) + 10.0); v30 = (GJAccountManager *)v29(v46, v58); v31 = (GJAccountManager *)GJAccountManager::sharedState(v30); *((_DWORD *)v31 + 81) = a1 + 520; v32 = (GJAccountManager *)GJAccountManager::sharedState(v31); std::string::basic_string(v51, a8); std::string::basic_string(v52, a9); std::string::basic_string(v53, a10); std::string::basic_string(v54, a11); std::string::basic_string(v55, a12); std::string::basic_string(v56, a13); std::string::basic_string(v57, a14); updated = GJAccountManager::updateAccountSettings( v32, a3, a4, a5, a6, a7, (int)v51, (int)v52, (int)v53, (int)v54, (int)v55, (int)v56, (int)v57); std::string::~string((int)v57); std::string::~string((int)v56); std::string::~string((int)v55); std::string::~string((int)v54); std::string::~string((int)v53); std::string::~string((int)v52); std::string::~string((int)v51); v35 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_closeBtn_001.png", v34); (*(void (__fastcall **)(int, int))(*(_DWORD *)v35 + 80))(v35, 1058642330); v58[0] = UpdateAccountSettingsPopup::onClose; v58[1] = 0; v36 = CCMenuItemSpriteExtra::create(v35, 0, a1, (int)UpdateAccountSettingsPopup::onClose, 0); *(_DWORD *)(a1 + 540) = v36; CCMenuItemSpriteExtra::setSizeMult(v36, 1.6); (*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(a1 + 444) + 228))( *(_DWORD *)(a1 + 444), *(_DWORD *)(a1 + 540)); v37 = *(_DWORD *)(a1 + 540); v38 = *(const cocos2d::CCPoint **)(a1 + 444); v39 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v37 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v49, (float)((float)(v47 * 0.5) - 100.0) + 5.0, (float)((float)(v48 * 0.5) + 50.0) - 5.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v50, v38); v39(v37, v50); if ( !updated ) (*(void (__fastcall **)(int))(*(_DWORD *)a1 + 676))(a1); } return v16; }
GD Web Decomp Icon

GD Web Decomp

Raw Source