// // UpdateAccountSettingsPopup::init from 0x4abcec to 0x4ac0a6 (954 bytes) // // 1 xrefs: // > UpdateAccountSettingsPopup::create @ 0x4ac21e // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // int __fastcall UpdateAccountSettingsPopup::init(int *a1, int a2, int a3, int a4, int a5) { int v7; // r3 cocos2d::CCDirector *v8; // r0 cocos2d::CCLayer *v9; // r0 int v10; // r3 int v11; // r7 void (__fastcall *v12)(int, cocos2d::CCRect *); // r6 void (__fastcall *v13)(int, cocos2d::CCRect *); // r6 cocos2d::CCMenu *v14; // r0 int v15; // r11 void (__fastcall *v16)(int, cocos2d::CCRect *); // r7 LoadingCircle *v17; // r0 cocos2d::CCLayer *v18; // r3 LoadingCircle *v19; // r0 int v20; // r11 void (__fastcall *v21)(int, cocos2d::CCRect *); // r7 GJAccountManager *v22; // r11 int updated; // r7 cocos2d::CCSprite *v24; // r8 CCMenuItemSpriteExtra *v25; // r0 int v26; // r8 cocos2d::CCNode *v27; // r10 void (__fastcall *v28)(int, cocos2d::CCPoint *); // r9 float v30; // r2 float v31; // r3 int v32; // [sp+20h] [bp-64h] int v35; // [sp+44h] [bp-40h] BYREF int v36; // [sp+48h] [bp-3Ch] BYREF int v37; // [sp+4Ch] [bp-38h] BYREF int v38; // [sp+50h] [bp-34h] BYREF cocos2d::CCSize v39; // [sp+54h] [bp-30h] BYREF cocos2d::CCPoint v40; // [sp+5Ch] [bp-28h] BYREF cocos2d::CCPoint v41; // [sp+64h] [bp-20h] BYREF cocos2d::CCRect v42; // [sp+6Ch] [bp-18h] BYREF cocos2d::CCSize v43; // 0:^0.8 cocos2d::CCRect v44; // 0:kr00_16.16 v42.origin.x = -1.034e-25; v32 = cocos2d::CCLayerColor::initWithColor((cocos2d::CCLayerColor *)a1, (const cocos2d::_ccColor4B *)&v42); if ( v32 ) { FLAlertLayer::incrementForcePrio((FLAlertLayer *)a1); v7 = *a1; a1[126] = a2; (*(void (__fastcall **)(int *, int))(v7 + 492))(a1, 1); (*(void (__fastcall **)(int *, int))(*a1 + 528))(a1, 1); v8 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(&v39, v8); v9 = cocos2d::CCLayer::create(); v10 = *a1; a1[114] = (int)v9; (*(void (__fastcall **)(int *, cocos2d::CCLayer *))(v10 + 220))(a1, v9); cocos2d::CCRect::CCRect(&v42, 0.0, 0.0, 80.0, 80.0); v44.origin.x = v30; v44.origin.y = v31; v44.size = v43; v11 = cocos2d::extension::CCScale9Sprite::create( (cocos2d::extension::CCScale9Sprite *)"GJ_square02.png", (const char *)&v42, v44); v12 = *(void (__fastcall **)(int, cocos2d::CCRect *))(*(_DWORD *)v11 + 152); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v42, 200.0, 100.0); v12(v11, &v42); (*(void (__fastcall **)(int, int, int))(*(_DWORD *)a1[114] + 224))(a1[114], v11, -1); v13 = *(void (__fastcall **)(int, cocos2d::CCRect *))(*(_DWORD *)v11 + 92); cocos2d::CCPoint::CCPoint(&v42.origin, v39.width * 0.5, v39.height * 0.5); v13(v11, &v42); v14 = cocos2d::CCMenu::create(); a1[110] = (int)v14; (*(void (__fastcall **)(int, cocos2d::CCMenu *, int))(*(_DWORD *)a1[114] + 224))(a1[114], v14, 10); sub_776584((int)&v41, "Updating..."); cocos2d::CCPoint::CCPoint(&v42.origin, 0.5, 1.0); a1[127] = TextArea::create( (TextArea *)&v41, (std::string)"chatFont.fnt", (const char *)0x3F800000, 1137180672, &v42.origin, (cocos2d::CCPoint)COERCE_UNSIGNED_INT(20.0)); sub_774008(&v41); (*(void (__fastcall **)(int, int))(*(_DWORD *)a1[114] + 220))(a1[114], a1[127]); v15 = a1[127]; v16 = *(void (__fastcall **)(int, cocos2d::CCRect *))(*(_DWORD *)v15 + 92); cocos2d::CCPoint::CCPoint(&v42.origin, v39.width * 0.5, (float)(v39.height * 0.5) - 20.0); v16(v15, &v42); (*(void (__fastcall **)(int, int))(*(_DWORD *)a1[127] + 80))(a1[127], 1061997773); a1[122] = -1; v17 = LoadingCircle::create(); v18 = (cocos2d::CCLayer *)a1[114]; a1[128] = (int)v17; v17->m_parentLayer = v18; v19 = (LoadingCircle *)a1[128]; v19->m_fade = 0; LoadingCircle::show(v19); (*(void (__fastcall **)(int, int))(*(_DWORD *)a1[128] + 80))(a1[128], 1060320051); v20 = *(_DWORD *)(a1[128] + 440); v21 = *(void (__fastcall **)(int, cocos2d::CCRect *))(*(_DWORD *)v20 + 92); cocos2d::CCPoint::CCPoint(&v42.origin, v39.width * 0.5, (float)(v39.height * 0.5) + 10.0); v21(v20, &v42); GJAccountManager::sharedState()->m_accountSettingsDelegate = (GJAccountSettingsDelegate *)(a1 + 124); v22 = GJAccountManager::sharedState(); sub_775C20(&v35); sub_775C20(&v36); sub_775C20(&v37); sub_775C20(&v38); sub_775C20(&v40); sub_775C20(&v41); sub_775C20(&v42); updated = GJAccountManager::updateAccountSettings( v22, a3, a4, a5, &v35, &v36, &v37, &v38, (int *)&v40, (int *)&v41, (int *)&v42); sub_774008(&v42); sub_774008(&v41); sub_774008(&v40); sub_774008(&v38); sub_774008(&v37); sub_774008(&v36); sub_774008(&v35); v24 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_closeBtn_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, int))v24->setScale)(v24, 1058642330); LODWORD(v42.origin.x) = UpdateAccountSettingsPopup::onClose; v42.origin.y = 0.0; v25 = CCMenuItemSpriteExtra::create( v24, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(UpdateAccountSettingsPopup::onClose, (unsigned int)a1)); a1[129] = (int)v25; CCMenuItemSpriteExtra::setSizeMult(v25, 1.6); (*(void (__fastcall **)(int, int))(*(_DWORD *)a1[110] + 220))(a1[110], a1[129]); v26 = a1[129]; v27 = (cocos2d::CCNode *)a1[110]; v28 = *(void (__fastcall **)(int, cocos2d::CCPoint *))(*(_DWORD *)v26 + 92); cocos2d::CCPoint::CCPoint( &v40, (float)((float)(v39.width * 0.5) - 100.0) + 5.0, (float)((float)(v39.height * 0.5) + 50.0) - 5.0); cocos2d::CCNode::convertToNodeSpace(&v41, v27, &v40); v28(v26, &v41); if ( !updated ) (*(void (__fastcall **)(int *))(*a1 + 652))(a1); } return v32; }
GD Web Decomp Icon

GD Web Decomp

Raw Source