// // StarInfoPopup::init from 0x14055c090 to 0x14055c8ec (2140 bytes) // // 2 xrefs: // > StarInfoPopup::create @ 0x14055c04a // > @ 0x14092c114 // // 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 // // Hidden C++ exception states: #wind=4 bool __fastcall StarInfoPopup::init( __int64 a1, signed int a2, signed int a3, signed int a4, signed int a5, signed int a6, signed int a7, signed int a8, signed int a9, signed int a10, char a11) { bool result; // al __int64 v15; // rcx __int64 v16; // rax __int64 v17; // rax __int64 *v18; // rdi __int64 v19; // rbx __int64 v20; // rax __int64 v21; // rbx __int64 v22; // rax __int64 v23; // rcx __int64 v24; // rax const char *v25; // rdx size_t v26; // r8 __m128i *v27; // rax const char *v28; // rdx cocos2d::CCString *v29; // rax const char *CString; // rax struct cocos2d::CCLabelBMFont *v31; // rdi __int64 v32; // rbx __int64 v33; // rax int v34; // esi signed int v35; // r12d signed int v36; // r15d __int64 v37; // rax signed int v38; // edi cocos2d::CCSprite *v39; // rbx __m128i *v40; // rax struct cocos2d::CCLabelBMFont *v41; // rbx __int64 v42; // rax signed int v43; // r12d __m128i *v44; // rax cocos2d::CCString *v45; // rax const char *v46; // rax struct cocos2d::CCLabelBMFont *v47; // rdi __int64 v48; // rbx __int64 v49; // rax __m128i *v50; // rax cocos2d::CCString *v51; // rax const char *v52; // rax struct cocos2d::CCLabelBMFont *v53; // rdi __int64 v54; // rbx __int64 v55; // rax __m128i *v56; // rax cocos2d::CCString *v57; // rax const char *v58; // rax struct cocos2d::CCLabelBMFont *v59; // rdi __int64 v60; // rbx __int64 v61; // rax __int64 *v62; // rbx cocos2d::CCObject *v63; // rsi __int64 v64; // rdi __int64 v65; // rbx __int64 v66; // rax __int64 v67; // rax float v68; // [rsp+48h] [rbp-C0h] BYREF float v69; // [rsp+4Ch] [rbp-BCh] int v70; // [rsp+50h] [rbp-B8h] BYREF float v71; // [rsp+54h] [rbp-B4h] signed int v72; // [rsp+58h] [rbp-B0h] signed int v73; // [rsp+5Ch] [rbp-ACh] signed int v74; // [rsp+60h] [rbp-A8h] BYREF signed int v75; // [rsp+68h] [rbp-A0h] BYREF int v76; // [rsp+70h] [rbp-98h] BYREF signed int v77; // [rsp+78h] [rbp-90h] signed int v78; // [rsp+7Ch] [rbp-8Ch] signed int v79; // [rsp+80h] [rbp-88h] signed int v80; // [rsp+84h] [rbp-84h] char v81[8]; // [rsp+88h] [rbp-80h] BYREF __m128i v82[2]; // [rsp+90h] [rbp-78h] BYREF __int128 v83; // [rsp+B0h] [rbp-58h] BYREF __int64 v84; // [rsp+C0h] [rbp-48h] unsigned __int64 v85; // [rsp+C8h] [rbp-40h] __m128i v86[2]; // [rsp+D0h] [rbp-38h] BYREF v75 = a4; v77 = a2; v74 = a5; v72 = a6; v73 = a7; v79 = a8; v78 = a9; v80 = a10; result = FLAlertLayer::init_1(a1, 75); if ( result ) { v16 = cocos2d::CCDirector::sharedDirector(v15); cocos2d::CCDirector::getWinSize(v16, &v68); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v82, 0.0, 0.0, 80.0, 80.0); v18 = (__int64 *)cocos2d::extension::CCScale9Sprite::create("GJ_square02.png", v17); v19 = *v18; cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v76, 380.0, 210.0); (*(void (__fastcall **)(__int64 *, __int64))(v19 + 312))(v18, v20); (*(void (__fastcall **)(_QWORD, __int64 *, __int64))(**(_QWORD **)(a1 + 584) + 456LL))( *(_QWORD *)(a1 + 584), v18, -1); v21 = *v18; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v76, v68 * 0.5, v69 * 0.5); (*(void (__fastcall **)(__int64 *, __int64))(v21 + 184))(v18, v22); v24 = cocos2d::CCMenu::create(v23); *(_QWORD *)(a1 + 552) = v24; (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v24, 10); v25 = "Classic"; if ( a11 ) v25 = "Platformer"; v83 = 0; v84 = 0; v85 = 0; v26 = -1; do ++v26; while ( v25[v26] ); sub_14003D230(&v83, v25, v26); v27 = GameToolbox::pointsToString(v82, a3 + a4 + v74 + v72 + v73); if ( v27[1].m128i_i64[1] > 0xFuLL ) v27 = (__m128i *)v27->m128i_i64[0]; v28 = (const char *)&v83; if ( v85 > 0xF ) v28 = (const char *)v83; v29 = cocos2d::CCString::createWithFormat("%s: %s", v28, v27->m128i_i8); CString = cocos2d::CCString::getCString(v29); v31 = cocos2d::CCLabelBMFont::create(CString, "goldFont.fnt"); sub_14003D310((__int64)v82); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), v31); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v31 + 160LL))(v31); v32 = *(_QWORD *)v31; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v76, v68 * 0.5, (float)((float)(v69 * 0.5) + 105.0) - 20.0); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v32 + 184))(v31, v33); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v81, (float)(v68 * 0.5) - 147.5, (float)(v69 * 0.5) + 25.0); v34 = 0; v35 = v75; v36 = v74; do { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v76, (float)v34 * 59.0, 0.0); cocos2d::CCPoint::operator+(v81, &v75, v37); switch ( v34 ) { case 0: v38 = v77; break; case 1: v38 = a3; break; case 2: v38 = v35; break; case 3: v38 = v36; break; case 4: v38 = v72; break; case 5: v38 = v73; break; } v39 = GJDifficultySprite::create(); (*(void (__fastcall **)(cocos2d::CCSprite *))(*(_QWORD *)v39 + 160LL))(v39); (*(void (__fastcall **)(cocos2d::CCSprite *, signed int *))(*(_QWORD *)v39 + 184LL))(v39, &v75); (*(void (__fastcall **)(_QWORD, cocos2d::CCSprite *))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), v39); v40 = GameToolbox::pointsToString(v86, v38); if ( v40[1].m128i_i64[1] > 0xFuLL ) v40 = (__m128i *)v40->m128i_i64[0]; v41 = cocos2d::CCLabelBMFont::create(v40->m128i_i8, "goldFont.fnt"); sub_14003D310((__int64)v86); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v41 + 160LL))(v41); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), v41); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v82, 0.0, -40.0); cocos2d::CCPoint::operator+(&v75, &v74, v42); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, signed int *))(*(_QWORD *)v41 + 184LL))(v41, &v74); ++v34; } while ( v34 <= 5 ); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v70, (float)((float)(v68 * 0.5) + 190.0) - 12.0, (float)((float)(v69 * 0.5) - 105.0) + 14.0); v43 = v79; if ( v78 > 0 ) { v44 = GameToolbox::pointsToString(v86, v78); if ( v44[1].m128i_i64[1] > 0xFuLL ) v44 = (__m128i *)v44->m128i_i64[0]; v45 = cocos2d::CCString::createWithFormat("Gauntlet: %s", v44->m128i_i8); v46 = cocos2d::CCString::getCString(v45); v47 = cocos2d::CCLabelBMFont::create(v46, "goldFont.fnt"); sub_14003D310((__int64)v86); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), v47); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v47 + 160LL))(v47); v48 = *(_QWORD *)v47; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v82, 1.0, 0.0); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v48 + 288))(v47, v49); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, int *))(*(_QWORD *)v47 + 184LL))(v47, &v70); v71 = v71 + 16.0; } if ( v43 > 0 ) { v50 = GameToolbox::pointsToString(v86, v43); if ( v50[1].m128i_i64[1] > 0xFuLL ) v50 = (__m128i *)v50->m128i_i64[0]; v51 = cocos2d::CCString::createWithFormat("Daily: %s", v50->m128i_i8); v52 = cocos2d::CCString::getCString(v51); v53 = cocos2d::CCLabelBMFont::create(v52, "goldFont.fnt"); sub_14003D310((__int64)v86); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), v53); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v53 + 160LL))(v53); v54 = *(_QWORD *)v53; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v82, 1.0, 0.0); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v54 + 288))(v53, v55); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, int *))(*(_QWORD *)v53 + 184LL))(v53, &v70); v71 = v71 + 16.0; } if ( v80 > 0 ) { v56 = GameToolbox::pointsToString(v86, v80); if ( v56[1].m128i_i64[1] > 0xFuLL ) v56 = (__m128i *)v56->m128i_i64[0]; v57 = cocos2d::CCString::createWithFormat("Map: %s", v56->m128i_i8); v58 = cocos2d::CCString::getCString(v57); v59 = cocos2d::CCLabelBMFont::create(v58, "goldFont.fnt"); sub_14003D310((__int64)v86); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), v59); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v59 + 160LL))(v59); v60 = *(_QWORD *)v59; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v82, 1.0, 0.0); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v60 + 288))(v59, v61); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, int *))(*(_QWORD *)v59 + 184LL))(v59, &v70); v71 = v71 + 16.0; } v62 = (__int64 *)ButtonSprite::create_1( (int)"OK", 0, 0, 1.0, 0, (__int64)"goldFont.fnt", (__int64)"GJ_button_01.png", 0); v82[0].m128i_i64[0] = (__int64)operator new(0x208u); v63 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::CCMenuItemSpriteExtra(v82[0].m128i_i64[0]); if ( v63 ) { if ( CCMenuItemSpriteExtra::init((__int64 *)v63, v62, 0, a1, (__int64)PagedListPopup::onClose) ) { cocos2d::CCObject::autorelease(v63); LABEL_38: (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))( *(_QWORD *)(a1 + 552), v63); v64 = *(_QWORD *)v63; v65 = *(_QWORD *)(a1 + 552); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v82, v68 * 0.5, (float)((float)(v69 * 0.5) - 105.0) + 25.0); cocos2d::CCNode::convertToNodeSpace(v65, &v76, v66); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v64 + 184))(v63, v67); sub_14003D310((__int64)&v83); return 1; } (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v63 + 8LL))(v63, 1); } v63 = nullptr; goto LABEL_38; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source