// // UploadActionPopup::init from 0x1403a0e10 to 0x1403a1246 (1078 bytes) // // 3 xrefs: // > UploadActionPopup::create @ 0x1403a0dbe // > ParentalPrivacyPopup::create @ 0x1404d412d // > @ 0x1409235b8 // // This function is hookable on this platform (idp: pc, 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 11:31:17 +0000 // // Hidden C++ exception states: #wind=2 char __fastcall UploadActionPopup::init(__int64 a1, __int64 a2, _QWORD *a3) { __int64 v7; // rdx __int64 v8; // rdx __int64 v9; // rcx __int64 v10; // rax __int64 v11; // rax __int64 v12; // rax __int64 *v13; // rdi __int64 v14; // rbx __int64 v15; // rax __int64 v16; // rbx __int64 v17; // rax __int64 v18; // rcx __int64 v19; // rax _BYTE *v20; // rdx size_t v21; // r8 const struct cocos2d::CCPoint *v22; // rax char *v23; // rax __int64 *v24; // rdi __int64 v25; // rbx __int64 v26; // rax cocos2d::CCLayerColor *v27; // rax __int64 *v28; // rdi __int64 v29; // rbx __int64 v30; // rax struct cocos2d::CCSprite *v31; // rax cocos2d::CCObject *v32; // rax __int64 *v33; // rsi __int64 v34; // rdi __int64 v35; // rbx __int64 v36; // rax __int64 v37; // rax float v38; // [rsp+48h] [rbp-39h] BYREF float v39; // [rsp+4Ch] [rbp-35h] __int128 *v40; // [rsp+50h] [rbp-31h] BYREF _BYTE v41[16]; // [rsp+58h] [rbp-29h] BYREF __int128 v42; // [rsp+68h] [rbp-19h] BYREF __int64 v43; // [rsp+78h] [rbp-9h] __int64 v44; // [rsp+80h] [rbp-1h] _QWORD *v45; // [rsp+88h] [rbp+7h] v45 = a3; LODWORD(v40) = -1778384896; if ( cocos2d::CCLayerColor::initWithColor((cocos2d::CCLayerColor *)a1, (const struct cocos2d::_ccColor4B *)&v40) ) { FLAlertLayer::incrementForcePrio((struct cocos2d::CCObject *)a1); *(_QWORD *)(a1 + 664) = a2; LOBYTE(v7) = 1; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 920LL))(a1, v7); LOBYTE(v8) = 1; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 992LL))(a1, v8); v10 = cocos2d::CCDirector::sharedDirector(v9); cocos2d::CCDirector::getWinSize(v10, &v38); v11 = cocos2d::CCLayer::create(); *(_QWORD *)(a1 + 584) = v11; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v11); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v41, 0.0, 0.0, 80.0, 80.0); v13 = (__int64 *)cocos2d::extension::CCScale9Sprite::create("GJ_square02.png", v12); v14 = *v13; cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v40, 200.0, 100.0); (*(void (__fastcall **)(__int64 *, __int64))(v14 + 312))(v13, v15); (*(void (__fastcall **)(_QWORD, __int64 *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), v13, 0xFFFFFFFFLL); v16 = *v13; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v40, v38 * 0.5, v39 * 0.5); (*(void (__fastcall **)(__int64 *, __int64))(v16 + 184))(v13, v17); v19 = cocos2d::CCMenu::create(v18); *(_QWORD *)(a1 + 552) = v19; (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v19, 10); v40 = &v42; v20 = a3; if ( a3[3] > 0xFu ) v20 = (_BYTE *)*a3; v42 = 0; v43 = 0; v44 = 0; v21 = -1; do ++v21; while ( v20[v21] ); sub_14003D230(&v42, v20, v21); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v41, 0.5, 1.0); v23 = TextArea::create((__int64)&v42, "chatFont.fnt", 1.0, 400.0, v22, 1101004800, 0, 0); *(_QWORD *)(a1 + 672) = v23; (*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(a1 + 584) + 464LL))(*(_QWORD *)(a1 + 584), v23); v24 = *(__int64 **)(a1 + 672); v25 = *v24; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v41, v38 * 0.5, (float)(v39 * 0.5) - 20.0); (*(void (__fastcall **)(__int64 *, __int64))(v25 + 184))(v24, v26); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 672) + 160LL))(*(_QWORD *)(a1 + 672)); *(_DWORD *)(a1 + 640) = -1; v27 = LoadingCircle::create(); *(_QWORD *)(a1 + 680) = v27; *((_QWORD *)v27 + 69) = *(_QWORD *)(a1 + 584); *(_BYTE *)(*(_QWORD *)(a1 + 680) + 560LL) = 0; (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 680) + 160LL))(*(_QWORD *)(a1 + 680)); LoadingCircle::show(*(_QWORD *)(a1 + 680)); v28 = *(__int64 **)(*(_QWORD *)(a1 + 680) + 544LL); v29 = *v28; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v41, v38 * 0.5, (float)(v39 * 0.5) + 14.0); (*(void (__fastcall **)(__int64 *, __int64))(v29 + 184))(v28, v30); v31 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_closeBtn_001.png"); LODWORD(v29) = (_DWORD)v31; (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v31 + 160LL))(v31); v32 = CCMenuItemSpriteExtra::create(v29, 0, a1, (__int64)UploadActionPopup::onClose); *(_QWORD *)(a1 + 688) = v32; *((_DWORD *)v32 + 93) = 1070386381; (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 552) + 464LL))( *(_QWORD *)(a1 + 552), *(_QWORD *)(a1 + 688)); v33 = *(__int64 **)(a1 + 688); v34 = *v33; v35 = *(_QWORD *)(a1 + 552); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v41, (float)((float)(v38 * 0.5) - 100.0) + 5.0, (float)((float)(v39 * 0.5) + 50.0) - 5.0); cocos2d::CCNode::convertToNodeSpace(v35, &v40, v36); (*(void (__fastcall **)(__int64 *, __int64))(v34 + 184))(v33, v37); sub_14003D310((__int64)a3); return 1; } else { sub_14003D310((__int64)a3); return 0; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source