// // DemonInfoPopup::init from 0xa56d5c to 0xa57670 (2324 bytes) // // 2 xrefs: // > DemonInfoPopup::create @ 0xa5783c // > @ 0x94498 // // This function is hookable on this platform (idp: arm, 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 13:00:08 +0000 // __int64 __fastcall DemonInfoPopup::init( cocos2d::CCNode **this, unsigned int a2, int a3, unsigned int a4, unsigned int a5, unsigned int a6, unsigned int a7, int a8, unsigned int a9, unsigned int a10, unsigned int a11, GameToolbox *a12, GameToolbox *a13) { cocos2d::CCDirector *v17; // x0 __int64 v18; // x20 void (__fastcall *v19)(__int64, __int64 *); // x21 __int64 (__fastcall *v20)(__int64, __int64 *); // x21 cocos2d::CCMenu *v21; // x0 __int64 v22; // x0 const char *v23; // x1 cocos2d::CCString *v24; // x0 cocos2d::CCLabelBMFont *CString; // x0 const char *v26; // x2 cocos2d::CCArray *v27; // x20 const char *v28; // x1 cocos2d::CCString *v29; // x0 cocos2d::CCLabelBMFont *v30; // x0 const char *v31; // x2 cocos2d::CCObject *v32; // x28 int v33; // w22 void (__fastcall *v34)(cocos2d::CCObject *, __int64 *); // x3 __int64 v35; // x20 cocos2d::CCString *v36; // x0 const char *v37; // x0 size_t v38; // x0 cocos2d::CCSprite *v39; // x0 __int64 v40; // x20 const char *v41; // x2 cocos2d::CCLabelBMFont *v42; // x0 __int64 v43; // x20 void (__fastcall *v44)(__int64, __int64 *); // x28 const char *v45; // x2 cocos2d::CCLabelBMFont *v46; // x0 __int64 v47; // x27 void (__fastcall *v48)(__int64, __int64 *); // x28 __int64 v49; // x20 void (__fastcall *v50)(__int64, __int64 *); // x3 const char *v51; // x1 __int64 v52; // x2 __int64 v53; // x3 bool v54; // w4 __int64 v55; // x5 const char *v56; // x6 const char *v57; // x1 cocos2d::CCString *v58; // x0 cocos2d::CCLabelBMFont *v59; // x0 const char *v60; // x2 __int64 v61; // x20 void (__fastcall *v62)(__int64, __int64 *); // x21 const char *v63; // x1 cocos2d::CCString *v64; // x0 cocos2d::CCLabelBMFont *v65; // x0 const char *v66; // x2 __int64 v67; // x20 void (__fastcall *v68)(__int64, __int64 *); // x21 __int64 v69; // x0 __int64 v70; // x20 cocos2d::CCNode *v71; // x22 void (__fastcall *v72)(__int64, __int64 *); // x21 unsigned __int8 v78; // [xsp+97h] [xbp+97h] char *v79; // [xsp+A0h] [xbp+A0h] __int64 v80; // [xsp+B0h] [xbp+B0h] BYREF _BYTE v81[8]; // [xsp+B8h] [xbp+B8h] BYREF __int64 v82; // [xsp+C0h] [xbp+C0h] BYREF _BYTE v83[8]; // [xsp+C8h] [xbp+C8h] BYREF __int64 v84[2]; // [xsp+D0h] [xbp+D0h] BYREF __int64 v85[2]; // [xsp+E0h] [xbp+E0h] BYREF void *v86; // [xsp+F0h] [xbp+F0h] unsigned __int64 v87[2]; // [xsp+F8h] [xbp+F8h] BYREF void *v88; // [xsp+108h] [xbp+108h] unsigned __int64 v89[2]; // [xsp+110h] [xbp+110h] BYREF void *v90; // [xsp+120h] [xbp+120h] v78 = FLAlertLayer::init((FLAlertLayer *)this, 75); if ( !v78 ) return v78; v17 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)v78); cocos2d::CCDirector::getWinSize(&v80, v17); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v84, 0.0, 0.0, 80.0, 80.0); v18 = cocos2d::extension::CCScale9Sprite::create("GJ_square02.png", v84); v19 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v18 + 320LL); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v84, 380.0, 210.0); v19(v18, v84); (*(void (__fastcall **)(_QWORD, __int64, __int64))(*(_QWORD *)*(this + 73) + 464LL))(*(this + 73), v18, 0xFFFFFFFFLL); v20 = *(__int64 (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v18 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v84, *(float *)&v80 * 0.5, *((float *)&v80 + 1) * 0.5); v21 = (cocos2d::CCMenu *)v20(v18, v84); v22 = cocos2d::CCMenu::create(v21); *(this + 69) = (cocos2d::CCNode *)v22; (*(void (__fastcall **)(_QWORD, __int64, __int64))(*(_QWORD *)*(this + 73) + 464LL))(*(this + 73), v22, 10); GameToolbox::pointsToString((GameToolbox *)(a2 + a3 + a4 + a5 + a6), v89); v23 = (char *)v89 + 1; if ( (v89[0] & 1) != 0 ) v23 = (const char *)v90; v24 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"Classic: %s", v23); CString = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v24); v27 = (cocos2d::CCArray *)cocos2d::CCLabelBMFont::create(CString, "goldFont.fnt", v26); if ( (v89[0] & 1) != 0 ) operator delete(v90); (*(void (__fastcall **)(_QWORD, cocos2d::CCArray *))(*(_QWORD *)*(this + 73) + 456LL))(*(this + 73), v27); (*(void (__fastcall **)(cocos2d::CCArray *, float))(*(_QWORD *)v27 + 160LL))(v27, 0.7); GameToolbox::pointsToString((GameToolbox *)(a7 + a8 + a9 + a10 + a11), v89); v28 = (char *)v89 + 1; if ( (v89[0] & 1) != 0 ) v28 = (const char *)v90; v29 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"Platformer: %s", v28); v30 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v29); v32 = (cocos2d::CCObject *)cocos2d::CCLabelBMFont::create(v30, "goldFont.fnt", v31); if ( (v89[0] & 1) != 0 ) operator delete(v90); v33 = 0; (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(*(_QWORD *)*(this + 73) + 456LL))(*(this + 73), v32); (*(void (__fastcall **)(cocos2d::CCObject *, float))(*(_QWORD *)v32 + 160LL))(v32, 0.7); v34 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v32 + 1072LL); LOWORD(v84[0]) = -14081; BYTE2(v84[0]) = -1; v34(v32, v84); v35 = cocos2d::CCArray::create(v27, v32, 0); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v84, *(float *)&v80 * 0.5, (float)((float)(*((float *)&v80 + 1) * 0.5) + 105.0) - 20.0); GameToolbox::alignItemsHorisontally(v35, (__int64)v84, 0, 30.0); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v81, (float)(*(float *)&v80 * 0.5) + -140.0, (float)(*((float *)&v80 + 1) * 0.5) + 35.0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v84, 0.0, 0.0); cocos2d::CCPoint::operator+(&v82, v81); v36 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"difficulty_%02d_btn2_001.png", &byte_7); while ( 1 ) { v37 = (const char *)cocos2d::CCString::getCString(v36); v85[0] = 0; v85[1] = 0; v86 = nullptr; v79 = (char *)v37; v38 = strlen(v37); std::string::__init(v85, v79, v38); v39 = (cocos2d::CCSprite *)((char *)v85 + 1); if ( (v85[0] & 1) != 0 ) v39 = (cocos2d::CCSprite *)v86; v40 = cocos2d::CCSprite::createWithSpriteFrameName(v39, (const char *)LOBYTE(v85[0])); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v40 + 160LL))(v40, 1.0); (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v40 + 184LL))(v40, &v82); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 73) + 456LL))(*(this + 73), v40); GameToolbox::pointsToString((GameToolbox *)a2, v87); v42 = (cocos2d::CCLabelBMFont *)((char *)v87 + 1); if ( (v87[0] & 1) != 0 ) v42 = (cocos2d::CCLabelBMFont *)v88; v43 = cocos2d::CCLabelBMFont::create(v42, "goldFont.fnt", v41); if ( (v87[0] & 1) != 0 ) operator delete(v88); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v43 + 160LL))(v43, 0.6); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 73) + 456LL))(*(this + 73), v43); v44 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v43 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v83, 0.0, -50.0); cocos2d::CCPoint::operator+(v84, &v82); v44(v43, v84); GameToolbox::pointsToString((GameToolbox *)a7, v89); v46 = (cocos2d::CCLabelBMFont *)((char *)v89 + 1); if ( (v89[0] & 1) != 0 ) v46 = (cocos2d::CCLabelBMFont *)v90; v47 = cocos2d::CCLabelBMFont::create(v46, "goldFont.fnt", v45); if ( (v89[0] & 1) != 0 ) operator delete(v90); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v47 + 160LL))(v47, 0.6); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 73) + 456LL))(*(this + 73), v47); v48 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v47 + 184LL); v49 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v43 + 192LL))(v43); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v83, 0.0, -26.0); cocos2d::CCPoint::operator+(v84, v49); v48(v47, v84); v50 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v47 + 1072LL); LOWORD(v84[0]) = -14081; BYTE2(v84[0]) = -1; v50(v47, v84); if ( (v85[0] & 1) != 0 ) break; if ( ++v33 == 5 ) goto LABEL_29; LABEL_24: cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v84, (float)v33 * 70.0, 0.0); cocos2d::CCPoint::operator+(&v82, v81); switch ( v33 ) { case 3: a7 = a10; a2 = a5; v36 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"difficulty_%02d_btn2_001.png", byte_9); break; case 4: a7 = a11; a2 = a6; v36 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"difficulty_%02d_btn2_001.png", &byte_9[1]); break; case 2: a7 = a9; a2 = a4; v36 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"difficulty_%02d_btn2_001.png", &byte_6); break; default: a7 = a8; a2 = a3; v36 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"difficulty_%02d_btn2_001.png", byte_8); break; } } ++v33; operator delete(v86); if ( v33 != 5 ) goto LABEL_24; LABEL_29: cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v82, (float)((float)(*(float *)&v80 * 0.5) + 190.0) - 12.0, (float)((float)(*((float *)&v80 + 1) * 0.5) + -105.0) + 14.0); if ( (int)a13 > 0 ) { GameToolbox::pointsToString((GameToolbox *)(unsigned int)a13, v89); v57 = (char *)v89 + 1; if ( (v89[0] & 1) != 0 ) v57 = (const char *)v90; v58 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"Gauntlet: %s", v57); v59 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v58); v61 = cocos2d::CCLabelBMFont::create(v59, "goldFont.fnt", v60); if ( (v89[0] & 1) != 0 ) operator delete(v90); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 73) + 456LL))(*(this + 73), v61); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v61 + 160LL))(v61, 0.4); v62 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v61 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v84, 1.0, 0.0); v62(v61, v84); (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v61 + 184LL))(v61, &v82); *((float *)&v82 + 1) = *((float *)&v82 + 1) + 16.0; } if ( (int)a12 > 0 ) { GameToolbox::pointsToString((GameToolbox *)(unsigned int)a12, v89); v63 = (char *)v89 + 1; if ( (v89[0] & 1) != 0 ) v63 = (const char *)v90; v64 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"Weekly: %s", v63); v65 = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v64); v67 = cocos2d::CCLabelBMFont::create(v65, "goldFont.fnt", v66); if ( (v89[0] & 1) != 0 ) operator delete(v90); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 73) + 456LL))(*(this + 73), v67); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v67 + 160LL))(v67, 0.4); v68 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v67 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v84, 1.0, 0.0); v68(v67, v84); (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v67 + 184LL))(v67, &v82); } v69 = ButtonSprite::create((ButtonSprite *)"OK", v51, v52, v53, v54, v55, v56); v70 = CCMenuItemSpriteExtra::create(v69, 0, (__int64)this, (__int64)DemonInfoPopup::onClose, 0); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v70); v71 = *(this + 69); v72 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v70 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v83, *(float *)&v80 * 0.5, (float)((float)(*((float *)&v80 + 1) * 0.5) + -105.0) + 25.0); cocos2d::CCNode::convertToNodeSpace(v84, v71, (const cocos2d::CCPoint *)v83); v72(v70, v84); return v78; }
GD Web Decomp Icon

GD Web Decomp

Raw Source