// // UploadActionPopup::init from 0x4ac2d0 to 0x4ac592 (706 bytes) // // 1 xrefs: // > UploadActionPopup::create @ 0x4ac656 // // 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 UploadActionPopup::init(int *a1, int a2, char **a3) { int v6; // r9 int v7; // r3 cocos2d::CCDirector *v8; // r0 cocos2d::CCLayer *v9; // r0 int v10; // r3 int v11; // r6 void (__fastcall *v12)(int, cocos2d::CCRect *); // r10 void (__fastcall *v13)(int, cocos2d::CCRect *); // r10 cocos2d::CCMenu *v14; // r0 int v15; // r8 void (__fastcall *v16)(int, cocos2d::CCRect *); // r10 LoadingCircle *v17; // r0 cocos2d::CCLayer *v18; // r3 int *v19; // r0 int v20; // r3 int v21; // r10 void (__fastcall *v22)(int, cocos2d::CCRect *); // r11 cocos2d::CCSprite *v23; // r5 CCMenuItemSpriteExtra *v24; // r0 int v25; // r5 cocos2d::CCNode *v26; // r10 void (__fastcall *v27)(int, cocos2d::CCPoint *); // r8 float v29; // r2 float v30; // r3 cocos2d::CCSize v31; // [sp+14h] [bp-30h] BYREF cocos2d::CCPoint v32; // [sp+1Ch] [bp-28h] BYREF cocos2d::CCPoint v33; // [sp+24h] [bp-20h] BYREF cocos2d::CCRect v34; // [sp+2Ch] [bp-18h] BYREF cocos2d::CCSize v35; // 0:^0.8 cocos2d::CCRect v36; // 0:kr00_16.16 v34.origin.x = -1.034e-25; v6 = cocos2d::CCLayerColor::initWithColor((cocos2d::CCLayerColor *)a1, (const cocos2d::_ccColor4B *)&v34); if ( v6 ) { FLAlertLayer::incrementForcePrio((FLAlertLayer *)a1); v7 = *a1; a1[124] = a2; (*(void (__fastcall **)(int *, int))(v7 + 492))(a1, 1); (*(void (__fastcall **)(int *, int))(*a1 + 528))(a1, 1); v8 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(&v31, v8); v9 = cocos2d::CCLayer::create(); v10 = *a1; a1[114] = (int)v9; (*(void (__fastcall **)(int *, cocos2d::CCLayer *))(v10 + 220))(a1, v9); cocos2d::CCRect::CCRect(&v34, 0.0, 0.0, 80.0, 80.0); v36.origin.x = v29; v36.origin.y = v30; v36.size = v35; v11 = cocos2d::extension::CCScale9Sprite::create( (cocos2d::extension::CCScale9Sprite *)"GJ_square02.png", (const char *)&v34, v36); v12 = *(void (__fastcall **)(int, cocos2d::CCRect *))(*(_DWORD *)v11 + 152); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v34, 200.0, 100.0); v12(v11, &v34); (*(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(&v34.origin, v31.width * 0.5, v31.height * 0.5); v13(v11, &v34); 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)&v33, *a3); cocos2d::CCPoint::CCPoint(&v34.origin, 0.5, 1.0); a1[125] = TextArea::create( (TextArea *)&v33, (std::string)"chatFont.fnt", (const char *)0x3F800000, 1137180672, &v34.origin, (cocos2d::CCPoint)COERCE_UNSIGNED_INT(20.0)); sub_774008(&v33); (*(void (__fastcall **)(int, int))(*(_DWORD *)a1[114] + 220))(a1[114], a1[125]); v15 = a1[125]; v16 = *(void (__fastcall **)(int, cocos2d::CCRect *))(*(_DWORD *)v15 + 92); cocos2d::CCPoint::CCPoint(&v34.origin, v31.width * 0.5, (float)(v31.height * 0.5) - 20.0); v16(v15, &v34); (*(void (__fastcall **)(int, int))(*(_DWORD *)a1[125] + 80))(a1[125], 1061997773); a1[122] = -1; v17 = LoadingCircle::create(); v18 = (cocos2d::CCLayer *)a1[114]; a1[126] = (int)v17; v17->m_parentLayer = v18; v19 = (int *)a1[126]; v20 = *v19; *((_BYTE *)v19 + 448) = 0; (*(void (__fastcall **)(int *, int))(v20 + 80))(v19, 1060320051); LoadingCircle::show((LoadingCircle *)a1[126]); v21 = *(_DWORD *)(a1[126] + 440); v22 = *(void (__fastcall **)(int, cocos2d::CCRect *))(*(_DWORD *)v21 + 92); cocos2d::CCPoint::CCPoint(&v34.origin, v31.width * 0.5, (float)(v31.height * 0.5) + 14.0); v22(v21, &v34); v23 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_closeBtn_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, int))v23->setScale)(v23, 1061997773); LODWORD(v34.origin.x) = UploadActionPopup::onClose; v34.origin.y = 0.0; v24 = CCMenuItemSpriteExtra::create( v23, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(UploadActionPopup::onClose, (unsigned int)a1)); a1[127] = (int)v24; CCMenuItemSpriteExtra::setSizeMult(v24, 1.6); (*(void (__fastcall **)(int, int))(*(_DWORD *)a1[110] + 220))(a1[110], a1[127]); v25 = a1[127]; v26 = (cocos2d::CCNode *)a1[110]; v27 = *(void (__fastcall **)(int, cocos2d::CCPoint *))(*(_DWORD *)v25 + 92); cocos2d::CCPoint::CCPoint( &v32, (float)((float)(v31.width * 0.5) - 100.0) + 5.0, (float)((float)(v31.height * 0.5) + 50.0) - 5.0); cocos2d::CCNode::convertToNodeSpace(&v33, v26, &v32); v27(v25, &v33); } return v6; }
GD Web Decomp Icon

GD Web Decomp

Raw Source