// // MyStuffPopup::init from 0x14055c8f0 to 0x14055cdef (1279 bytes) // // 4 xrefs: // > ProfilePage::onMyStuff @ 0x14055961f // > @ 0x1408dabf8 // > @ 0x1408dac3c // > @ 0x14092c120 // // 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:34:13 +0000 // char __fastcall MyStuffPopup::init(__int64 a1, cocos2d::CCObject *a2) { __int64 v4; // r14 __int64 v5; // rcx __int64 v6; // rax float v7; // xmm8_4 float v8; // xmm7_4 __int64 v9; // rax __int64 *v10; // rdi __int64 v11; // rbx __int64 v12; // rax __int64 v13; // rbx __int64 v14; // rax __int64 v15; // rcx __int64 v16; // rax __int64 v17; // rcx struct cocos2d::CCLabelBMFont *v18; // rdi __int64 v19; // rbx __int64 v20; // rax struct cocos2d::CCSprite *v21; // rax cocos2d::CCObject *v22; // rsi __int64 v23; // rdi __int64 v24; // rbx __int64 v25; // rax __int64 v26; // rax __int64 v27; // rbx int v28; // eax __int64 v29; // rdx unsigned int v30; // edi __int64 v31; // rbx __int64 v32; // rax __int64 v33; // rbx __int64 v34; // rax __int64 v35; // rbx __int64 v36; // rax __int64 v37; // rbx __int64 v38; // rcx __int64 v39; // rax __int64 v40; // rsi cocos2d::CCArray *v41; // r12 unsigned int v42; // edi const char *v43; // rcx int v44; // eax struct cocos2d::CCObject *v45; // rbx __int64 v46; // rbx __int64 v47; // rax __int64 v48; // rax _BYTE v50[8]; // [rsp+30h] [rbp-59h] BYREF float v51[2]; // [rsp+38h] [rbp-51h] BYREF _DWORD v52[4]; // [rsp+40h] [rbp-49h] BYREF __int64 v53; // [rsp+50h] [rbp-39h] _BYTE v54[16]; // [rsp+60h] [rbp-29h] BYREF __int64 v55; // [rsp+70h] [rbp-19h] v4 = 0; if ( !FLAlertLayer::init_1(a1, 75) || !a2 ) return 0; *(_QWORD *)(a1 + 664) = a2; cocos2d::CCObject::retain(a2); v6 = cocos2d::CCDirector::sharedDirector(v5); cocos2d::CCDirector::getWinSize(v6, v51); v7 = v51[0] * 0.5; v8 = v51[1] * 0.5; cocos2d::CCRect::CCRect((cocos2d::CCRect *)v52, 0.0, 0.0, 80.0, 80.0); v10 = (__int64 *)cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v9); v11 = *v10; cocos2d::CCSize::CCSize((cocos2d::CCSize *)v50, 240.0, 100.0); (*(void (__fastcall **)(__int64 *, __int64))(v11 + 312))(v10, v12); (*(void (__fastcall **)(_QWORD, __int64 *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), v10, 0xFFFFFFFFLL); v13 = *v10; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v50, v7, v8); (*(void (__fastcall **)(__int64 *, __int64))(v13 + 184))(v10, v14); v16 = cocos2d::CCMenu::create(v15); v17 = *(_QWORD *)(a1 + 584); *(_QWORD *)(a1 + 552) = v16; (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v17 + 456LL))(v17, v16, 10); v18 = cocos2d::CCLabelBMFont::create("My Socials", "goldFont.fnt"); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v18 + 160LL))(v18); v19 = *(_QWORD *)v18; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v50, v7, (float)(v8 + 50.0) - 22.0); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v19 + 184))(v18, v20); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), v18, 5); v21 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_closeBtn_001.png"); LODWORD(v19) = (_DWORD)v21; (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v21 + 160LL))(v21); v22 = CCMenuItemSpriteExtra::create(v19, 0, a1, (__int64)PagedListPopup::onClose); *((_DWORD *)v22 + 93) = 1070386381; (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v22); v23 = *(_QWORD *)v22; v24 = *(_QWORD *)(a1 + 552); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v50, (float)(v7 - 120.0) + 4.0, (float)(v8 + 50.0) - 4.0); cocos2d::CCNode::convertToNodeSpace(v24, v52, v25); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v23 + 184))(v22, v26); sub_14003F4F0((__int64)v52, *(_QWORD *)(a1 + 664) + 480LL); v27 = v53; sub_14003D310((__int64)v52); v28 = v52[0]; v29 = *(_QWORD *)(a1 + 664); v30 = 0; if ( v27 ) v28 = 0; LOBYTE(v30) = v27 != 0; v52[0] = v28; sub_14003F4F0((__int64)v54, v29 + 512); v31 = v55; sub_14003D310((__int64)v54); if ( v31 ) { v32 = v30++; v52[v32] = 1; } sub_14003F4F0((__int64)v54, *(_QWORD *)(a1 + 664) + 544LL); v33 = v55; sub_14003D310((__int64)v54); if ( v33 ) { v34 = v30++; v52[v34] = 2; } sub_14003F4F0((__int64)v54, *(_QWORD *)(a1 + 664) + 640LL); v35 = v55; sub_14003D310((__int64)v54); if ( v35 ) { v36 = v30++; v52[v36] = 4; } sub_14003F4F0((__int64)v54, *(_QWORD *)(a1 + 664) + 608LL); v37 = v55; sub_14003D310((__int64)v54); if ( v37 ) { v39 = v30++; v52[v39] = 3; } v40 = v30; v41 = (cocos2d::CCArray *)cocos2d::CCArray::create(v38); if ( v30 ) { while ( 1 ) { v42 = v52[v4]; if ( !v42 ) break; switch ( v42 ) { case 1u: v43 = "gj_twIcon_001.png"; break; case 2u: v43 = "gj_twitchIcon_001.png"; break; case 3u: v43 = "gj_instaIcon_001.png"; break; case 4u: v43 = "gj_tiktokIcon_001.png"; break; default: goto LABEL_23; } LABEL_24: v44 = (unsigned int)cocos2d::CCSprite::createWithSpriteFrameName(v43); v45 = CCMenuItemSpriteExtra::create(v44, 0, a1, (__int64)MyStuffPopup::onSocialPage); (*(void (__fastcall **)(struct cocos2d::CCObject *, _QWORD))(*(_QWORD *)v45 + 64LL))(v45, v42); *((_DWORD *)v45 + 93) = 1067030938; (*(void (__fastcall **)(_QWORD, struct cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))( *(_QWORD *)(a1 + 552), v45); cocos2d::CCArray::addObject(v41, v45); if ( ++v4 >= v40 ) goto LABEL_25; } LABEL_23: v43 = "gj_ytIcon_001.png"; goto LABEL_24; } LABEL_25: v46 = *(_QWORD *)(a1 + 552); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v52, v7, v8 - 10.0); cocos2d::CCNode::convertToNodeSpace(v46, v50, v47); GameToolbox::alignItemsHorisontally((__int64)v41, 9.0, v48, 0); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source