// // OptionsLayer::customSetup from 0x1404cae60 to 0x1404cba0a (2986 bytes) // // 3 xrefs: // > @ 0x1407ced58 // > @ 0x1409295dc // > @ 0x1409295e8 // // 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:32:58 +0000 // // Hidden C++ exception states: #wind=8 __int64 __fastcall OptionsLayer::customSetup(__int64 *a1) { __int64 v2; // rax __int64 v3; // rcx int v4; // eax cocos2d::CCObject *v5; // r13 int v6; // eax cocos2d::CCObject *v7; // r12 int v8; // eax cocos2d::CCObject *v9; // r15 int v10; // eax cocos2d::CCObject *v11; // r14 int v12; // eax cocos2d::CCObject *v13; // rsi int v14; // eax cocos2d::CCObject *v15; // rdi int v16; // eax cocos2d::CCObject *v17; // rbx __int64 v18; // rax __int64 v19; // rax __int64 v20; // rax __int64 v21; // rax __int64 v22; // rax __int64 v23; // rax __int64 v24; // rax __int64 *v25; // rsi __int64 v26; // rcx __int64 v27; // r12 __int64 v28; // rcx int Stat; // edi const char *v30; // rcx struct cocos2d::CCSprite *v31; // r15 cocos2d::CCObject *v32; // r14 __int64 v33; // rbx __int64 v34; // rax __int64 v35; // rax float v36; // xmm6_4 float *v37; // rax struct cocos2d::CCSprite *v38; // rbx __int64 v39; // rax struct cocos2d::CCLabelBMFont *v40; // rbx __int64 v41; // rax struct cocos2d::CCLabelBMFont *v42; // r14 __int64 v43; // rbx __int64 v44; // rax __int64 v45; // r8 cocos2d::CCLayer *v46; // rax __int64 v47; // rdx __int64 v48; // rax __int64 v49; // rbx __int64 v50; // rax __int64 v51; // rax struct cocos2d::CCLabelBMFont *v52; // rdi __int64 v53; // rax __int64 v54; // rbx __int64 v55; // rax __int64 v56; // r8 cocos2d::CCLayer *v57; // rax __int64 v58; // rdx __int64 v59; // rax __int64 v60; // rbx __int64 v61; // rax __int64 v62; // rax __int64 v63; // rcx bool GameVariable; // di __int64 v65; // rax __int64 v66; // rbx __int64 v67; // rax float *v68; // rax char v70[8]; // [rsp+88h] [rbp-80h] BYREF _QWORD *v71; // [rsp+90h] [rbp-78h] BYREF char v72[8]; // [rsp+98h] [rbp-70h] BYREF _QWORD v73[14]; // [rsp+A0h] [rbp-68h] BYREF __int64 *v74; // [rsp+158h] [rbp+50h] BYREF char v75; // [rsp+160h] [rbp+58h] BYREF float v76; // [rsp+168h] [rbp+60h] BYREF float v77; // [rsp+16Ch] [rbp+64h] char v78; // [rsp+170h] [rbp+68h] BYREF v74 = a1; v2 = cocos2d::CCDirector::sharedDirector(a1); cocos2d::CCDirector::getWinSize(v2, &v76); a1[78] = cocos2d::CCMenu::create(v3); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v78, v76 * 0.5, (float)(v77 * 0.5) + 80.0); cocos2d::CCNode::convertToNodeSpace(a1[78], &v75, &v78); v4 = (unsigned int)ButtonSprite::create_1( (int)"Account", 130, 0, 1.0, 1, (__int64)"goldFont.fnt", (__int64)"GJ_button_01.png", 0); v5 = CCMenuItemSpriteExtra::create(v4, 0, (int)a1, (__int64)OptionsLayer::onAccount); (*(void (__fastcall **)(__int64, cocos2d::CCObject *))(*(_QWORD *)a1[78] + 464LL))(a1[78], v5); v6 = (unsigned int)ButtonSprite::create_1( (int)"How To Play", 130, 0, 1.0, 1, (__int64)"goldFont.fnt", (__int64)"GJ_button_01.png", 0); v7 = CCMenuItemSpriteExtra::create(v6, 0, (int)a1, (__int64)OptionsLayer::onHelp); (*(void (__fastcall **)(__int64, cocos2d::CCObject *))(*(_QWORD *)a1[78] + 464LL))(a1[78], v7); v8 = (unsigned int)ButtonSprite::create_1( (int)"Options", 130, 0, 1.0, 1, (__int64)"goldFont.fnt", (__int64)"GJ_button_01.png", 0); v9 = CCMenuItemSpriteExtra::create(v8, 0, (int)a1, (__int64)OptionsLayer::onOptions); (*(void (__fastcall **)(__int64, cocos2d::CCObject *))(*(_QWORD *)a1[78] + 464LL))(a1[78], v9); v10 = (unsigned int)ButtonSprite::create_1( (int)"Graphics", 130, 0, 1.0, 1, (__int64)"goldFont.fnt", (__int64)"GJ_button_01.png", 0); v11 = CCMenuItemSpriteExtra::create(v10, 0, (int)a1, (__int64)OptionsLayer::onVideo); (*(void (__fastcall **)(__int64, cocos2d::CCObject *))(*(_QWORD *)a1[78] + 464LL))(a1[78], v11); v12 = (unsigned int)ButtonSprite::create_1( (int)"Rate", 78, 0, 1.0, 1, (__int64)"goldFont.fnt", (__int64)"GJ_button_01.png", 0); v13 = CCMenuItemSpriteExtra::create(v12, 0, (int)a1, (__int64)OptionsLayer::onRate); (*(void (__fastcall **)(__int64, cocos2d::CCObject *))(*(_QWORD *)a1[78] + 464LL))(a1[78], v13); v14 = (unsigned int)ButtonSprite::create_1( (int)"Parent", 78, 0, 1.0, 1, (__int64)"goldFont.fnt", (__int64)"GJ_button_01.png", 0); v15 = CCMenuItemSpriteExtra::create(v14, 0, (int)a1, (__int64)OptionsLayer::onParental); (*(void (__fastcall **)(__int64, cocos2d::CCObject *))(*(_QWORD *)a1[78] + 464LL))(a1[78], v15); v16 = (unsigned int)ButtonSprite::create_1( (int)"Help", 78, 0, 1.0, 1, (__int64)"goldFont.fnt", (__int64)"GJ_button_01.png", 0); v17 = CCMenuItemSpriteExtra::create(v16, 0, (int)a1, (__int64)OptionsLayer::onSupport); (*(void (__fastcall **)(__int64, cocos2d::CCObject *))(*(_QWORD *)v74[78] + 464LL))(v74[78], v17); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v71, -79.0, 0.0); cocos2d::CCPoint::operator+(&v75, v70, v18); (*(void (__fastcall **)(cocos2d::CCObject *, char *))(*(_QWORD *)v5 + 184LL))(v5, v70); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v71, 79.0, 0.0); cocos2d::CCPoint::operator+(&v75, v70, v19); (*(void (__fastcall **)(cocos2d::CCObject *, char *))(*(_QWORD *)v7 + 184LL))(v7, v70); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v71, -79.0, -40.0); cocos2d::CCPoint::operator+(&v75, v70, v20); (*(void (__fastcall **)(cocos2d::CCObject *, char *))(*(_QWORD *)v9 + 184LL))(v9, v70); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v71, 79.0, -40.0); cocos2d::CCPoint::operator+(&v75, v70, v21); (*(void (__fastcall **)(cocos2d::CCObject *, char *))(*(_QWORD *)v11 + 184LL))(v11, v70); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v71, -105.0, -80.0); cocos2d::CCPoint::operator+(&v75, v70, v22); (*(void (__fastcall **)(cocos2d::CCObject *, char *))(*(_QWORD *)v13 + 184LL))(v13, v70); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v71, 0.0, -80.0); cocos2d::CCPoint::operator+(&v75, v70, v23); (*(void (__fastcall **)(cocos2d::CCObject *, char *))(*(_QWORD *)v15 + 184LL))(v15, v70); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v71, 105.0, -80.0); cocos2d::CCPoint::operator+(&v75, v70, v24); (*(void (__fastcall **)(cocos2d::CCObject *, char *))(*(_QWORD *)v17 + 184LL))(v17, v70); v25 = v74; (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v74[72] + 456LL))(v74[72], v74[78], 1); v27 = cocos2d::CCMenu::create(v26); v28 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v74 = (__int64 *)operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480((__int64)v74); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v28 = qword_14090BFE0; } Stat = GameStatsManager::getStat(v28, "12"); v30 = (const char *)&xmmword_14071C878; if ( Stat >= 10 ) v30 = "GJ_lock_open_001.png"; v31 = cocos2d::CCSprite::createWithSpriteFrameName(v30); v32 = CCMenuItemSpriteExtra::create((int)v31, 0, (int)v25, (__int64)OptionsLayer::onSecretVault); (*(void (__fastcall **)(__int64, cocos2d::CCObject *))(*(_QWORD *)v27 + 464LL))(v27, v32); v33 = *(_QWORD *)v32; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v74, v76 - 20.0, v77 - 18.0); cocos2d::CCNode::convertToNodeSpace(v27, &v71, v34); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v33 + 184))(v32, v35); if ( Stat < 10 ) { v36 = (float)(*(float *)((*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v32 + 320LL))(v32) + 4) * 0.5) - 21.0; v37 = (float *)(*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v32 + 320LL))(v32); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v74, *v37 * 0.5, v36); v38 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_coinsIcon2_001.png"); (*(void (__fastcall **)(struct cocos2d::CCSprite *, struct cocos2d::CCSprite *))(*(_QWORD *)v31 + 464LL))(v31, v38); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v71, 7.5, 0.0); cocos2d::CCPoint::operator+(&v74, v70, v39); (*(void (__fastcall **)(struct cocos2d::CCSprite *, char *))(*(_QWORD *)v38 + 184LL))(v38, v70); (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v38 + 160LL))(v38); v40 = cocos2d::CCLabelBMFont::create("10", (const char *)&qword_140704F78); (*(void (__fastcall **)(struct cocos2d::CCSprite *, struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v31 + 464LL))( v31, v40); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v71, -7.5, 0.0); cocos2d::CCPoint::operator+(&v74, v70, v41); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, char *))(*(_QWORD *)v40 + 184LL))(v40, v70); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v40 + 160LL))(v40); } *((_DWORD *)v32 + 93) = 1069547520; v42 = cocos2d::CCLabelBMFont::create("Music", (const char *)&qword_140704F78); (*(void (__fastcall **)(__int64, struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v25[72] + 464LL))(v25[72], v42); v43 = *(_QWORD *)v42; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v74, v76 * 0.5, (float)(v77 * 0.5) - 34.0); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v43 + 184))(v42, v44); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v42 + 160LL))(v42); v46 = Slider::create( (__int64)v25, (__int64)OptionsLayer::musicSliderChanged, v45, "slidergroove.png", (__int64)"sliderthumb.png", (__int64)"sliderthumbsel.png", 1.0); v25[81] = (__int64)v46; LOBYTE(v47) = 1; (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)v46 + 52) + 336LL))(*((_QWORD *)v46 + 52), v47); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v25[72] + 464LL))(v25[72], v25[81]); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v71, 0.0, -20.0); v49 = v48; v50 = (*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v42 + 200LL))(v42); cocos2d::CCPoint::operator+(v50, &v74, v49); (*(void (__fastcall **)(__int64, __int64 **))(*(_QWORD *)v25[81] + 184LL))(v25[81], &v74); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v25[81] + 64LL))(v25[81], 0); v51 = qword_14090BF60; if ( !qword_14090BF60 ) { v74 = (__int64 *)operator new(0x8A8u); qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v74); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60); v51 = qword_14090BF60; } Slider::setValue(v25[81], *(float *)(v51 + 512)); v52 = cocos2d::CCLabelBMFont::create("SFX", (const char *)&qword_140704F78); (*(void (__fastcall **)(__int64, struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v25[72] + 464LL))(v25[72], v52); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v71, 0.0, -40.0); v54 = v53; v55 = (*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v42 + 200LL))(v42); cocos2d::CCPoint::operator+(v55, &v74, v54); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64 **))(*(_QWORD *)v52 + 184LL))(v52, &v74); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v52 + 160LL))(v52); v57 = Slider::create( (__int64)v25, (__int64)EditorPauseLayer::sfxSliderChanged, v56, "slidergroove.png", (__int64)"sliderthumb.png", (__int64)"sliderthumbsel.png", 1.0); v25[82] = (__int64)v57; LOBYTE(v58) = 1; (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)v57 + 52) + 336LL))(*((_QWORD *)v57 + 52), v58); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v25[72] + 464LL))(v25[72], v25[82]); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v71, 0.0, -20.0); v60 = v59; v61 = (*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v52 + 200LL))(v52); cocos2d::CCPoint::operator+(v61, &v74, v60); (*(void (__fastcall **)(__int64, __int64 **))(*(_QWORD *)v25[82] + 184LL))(v25[82], &v74); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v25[82] + 64LL))(v25[82], 1); v62 = qword_14090BF60; if ( !qword_14090BF60 ) { v74 = (__int64 *)operator new(0x8A8u); qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v74); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60); v62 = qword_14090BF60; } Slider::setValue(v25[82], *(float *)(v62 + 516)); v63 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v74 = (__int64 *)operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v74); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v63 = qword_14090BFD0; } *(_QWORD *)(v63 + 984) = v25 + 77; v71 = v73; GameVariable = GameManager::getGameVariable(v63, "0122"); v73[1] = 25449; v73[2] = 10; v73[3] = 15; v73[0] = 0x73754D0A756E654DLL; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v70, 145.0, -35.0); v66 = v65; v67 = (*(__int64 (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v42 + 200LL))(v42); cocos2d::CCPoint::operator+(v67, &v74, v66); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v72, 0.0, 2.0); GameToolbox::createToggleButton( (const char *)v73, (__int64)OptionsLayer::onMenuMusic, !GameVariable, v27, (__int64)&v74, (__int64)v25, v25[72], 0.60000002, 0.34999999, 0.0, v68, (const char *)&qword_140704F78, 1, 0, nullptr); return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v25[72] + 464LL))(v25[72], v27); }
GD Web Decomp Icon

GD Web Decomp

Raw Source