// // UploadActionPopup::init from 0x5d9780 to 0x5d9a60 (736 bytes) // // 2 xrefs: // > ParentalPrivacyPopup::init @ 0x530112 // > UploadActionPopup::create @ 0x5d9b2a // // 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:11 +0000 // int __fastcall UploadActionPopup::init(int a1, int a2, int a3) { int v6; // r9 int v7; // r3 cocos2d::CCDirector *v8; // r0 cocos2d::CCLayer *WinSize; // r0 int v10; // r0 int v11; // r3 int v12; // r8 void (__fastcall *v13)(int, _DWORD *); // r10 int (__fastcall *v14)(int, _DWORD *); // r10 cocos2d::CCMenu *v15; // r0 int v16; // r0 bool v17; // nf size_t v18; // r0 int v19; // r6 void (__fastcall *v20)(int, _DWORD *); // r8 LoadingCircle *v21; // r0 cocos2d::CCLayerColor *v22; // r0 int v23; // r3 int v24; // r8 void (__fastcall *v25)(int, _DWORD *); // r10 const char *v26; // r1 int v27; // r5 int v28; // r0 int v29; // r6 const cocos2d::CCPoint *v30; // r10 void (__fastcall *v31)(int, _BYTE *); // r8 float v33; // [sp+10h] [bp-38h] BYREF float v34; // [sp+14h] [bp-34h] _BYTE v35[8]; // [sp+18h] [bp-30h] BYREF _BYTE v36[8]; // [sp+20h] [bp-28h] BYREF int v37[3]; // [sp+28h] [bp-20h] BYREF _DWORD v38[4]; // [sp+34h] [bp-14h] BYREF v38[0] = -1778384896; v6 = cocos2d::CCLayerColor::initWithColor(a1, v38); if ( v6 ) { FLAlertLayer::incrementForcePrio((cocos2d::CCObject *)a1); v7 = *(_DWORD *)a1; *(_DWORD *)(a1 + 520) = a2; (*(void (__fastcall **)(int, int))(v7 + 500))(a1, 1); v8 = (cocos2d::CCDirector *)(*(int (__fastcall **)(int, int))(*(_DWORD *)a1 + 536))(a1, 1); cocos2d::CCDirector::sharedDirector(v8); WinSize = (cocos2d::CCLayer *)cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v33); v10 = cocos2d::CCLayer::create(WinSize); v11 = *(_DWORD *)a1; *(_DWORD *)(a1 + 460) = v10; (*(void (__fastcall **)(int, int))(v11 + 228))(a1, v10); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v38, 0.0, 0.0, 80.0, 80.0); v12 = cocos2d::extension::CCScale9Sprite::create("GJ_square02.png", v38); v13 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v12 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v38, 200.0, 100.0); v13(v12, v38); (*(void (__fastcall **)(_DWORD, int, int))(**(_DWORD **)(a1 + 460) + 232))(*(_DWORD *)(a1 + 460), v12, -1); v14 = *(int (__fastcall **)(int, _DWORD *))(*(_DWORD *)v12 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v38, v33 * 0.5, v34 * 0.5); v15 = (cocos2d::CCMenu *)v14(v12, v38); v16 = cocos2d::CCMenu::create(v15); *(_DWORD *)(a1 + 444) = v16; (*(void (__fastcall **)(_DWORD, int, int))(**(_DWORD **)(a1 + 460) + 232))(*(_DWORD *)(a1 + 460), v16, 10); v17 = (*(_BYTE *)a3 & 1) != 0; if ( (*(_BYTE *)a3 & 1) == 0 ) ++a3; v37[0] = 0; if ( v17 ) a3 = *(_DWORD *)(a3 + 8); v37[1] = 0; v37[2] = 0; v18 = strlen((const char *)a3); std::string::__init(v37, (const void *)a3, v18); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v38, 0.5, 1.0); *(_DWORD *)(a1 + 524) = TextArea::create( (int)v37, "chatFont.fnt", 1065353216, 1137180672, (const cocos2d::CCPoint *)v38, COERCE_INT(20.0), 0, 0); std::string::~string((int)v37); (*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(a1 + 460) + 228))( *(_DWORD *)(a1 + 460), *(_DWORD *)(a1 + 524)); v19 = *(_DWORD *)(a1 + 524); v20 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v19 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v38, v33 * 0.5, (float)(v34 * 0.5) - 20.0); v20(v19, v38); v21 = (LoadingCircle *)(*(int (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 524) + 80))( *(_DWORD *)(a1 + 524), 1061997773); *(_DWORD *)(a1 + 500) = -1; v22 = LoadingCircle::create(v21); v23 = *(_DWORD *)(a1 + 460); *(_DWORD *)(a1 + 528) = v22; *((_DWORD *)v22 + 111) = v23; *(_BYTE *)(*(_DWORD *)(a1 + 528) + 448) = 0; (*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 528) + 80))(*(_DWORD *)(a1 + 528), 1060320051); LoadingCircle::show(*(cocos2d::CCNode ***)(a1 + 528)); v24 = *(_DWORD *)(*(_DWORD *)(a1 + 528) + 440); v25 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v24 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v38, v33 * 0.5, (float)(v34 * 0.5) + 14.0); v25(v24, v38); v27 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_closeBtn_001.png", v26); (*(void (__fastcall **)(int, int))(*(_DWORD *)v27 + 80))(v27, 1061997773); v38[0] = UploadActionPopup::onClose; v38[1] = 0; v28 = CCMenuItemSpriteExtra::create(v27, 0, a1, (int)UploadActionPopup::onClose, 0); *(_DWORD *)(a1 + 532) = v28; CCMenuItemSpriteExtra::setSizeMult(v28, 1.6); (*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(a1 + 444) + 228))( *(_DWORD *)(a1 + 444), *(_DWORD *)(a1 + 532)); v29 = *(_DWORD *)(a1 + 532); v30 = *(const cocos2d::CCPoint **)(a1 + 444); v31 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v29 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v35, (float)((float)(v33 * 0.5) - 100.0) + 5.0, (float)((float)(v34 * 0.5) + 50.0) - 5.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v36, v30); v31(v29, v36); } return v6; }
GD Web Decomp Icon

GD Web Decomp

Raw Source