// // SupportLayer::customSetup from 0x140669ca0 to 0x14066a89e (3070 bytes) // // 2 xrefs: // > @ 0x140833038 // > @ 0x140931f94 // // 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:35:52 +0000 // // Hidden C++ exception states: #wind=12 __int64 __fastcall SupportLayer::customSetup(_QWORD **a1) { __int64 v2; // rax __int64 v3; // rax cocos2d::CCObject *v4; // rbx cocos2d::CCObject *v5; // rsi __int64 v6; // rax cocos2d::CCObject *v7; // rbx cocos2d::CCObject *v8; // r13 __int64 v9; // rax cocos2d::CCObject *v10; // rbx cocos2d::CCObject *v11; // r12 __int64 v12; // rax cocos2d::CCObject *v13; // rbx cocos2d::CCObject *v14; // r14 cocos2d::CCObject *v15; // rbx cocos2d::CCObject *v16; // rdi struct cocos2d::CCMenu *v17; // rsi __int64 v18; // rbx __int64 v19; // rax void (__fastcall **v20)(void **, _QWORD); // rbx __int64 v21; // rax __int64 v22; // rbx __int64 v23; // rax __int64 v24; // rbx __int64 v25; // rax __int64 v26; // rbx __int64 v27; // rax __int64 v28; // rbx __int64 v29; // rax __int64 v30; // rbx char v31; // bl int v32; // r9d __int64 v33; // rax int v34; // r8d __int64 v35; // rax cocos2d::CCObject *v36; // rbx cocos2d::CCObject *v37; // r14 __int64 v38; // rbx __int64 v39; // rax __int64 v40; // rax __int64 v41; // rcx cocos2d::CCObject *v42; // rbx cocos2d::CCObject *v43; // rdi __int64 v44; // rax __int64 v45; // rbx __int64 v46; // rax float v47; // xmm6_4 float v48; // xmm7_4 __int64 v49; // rcx __int64 v50; // r12 struct cocos2d::CCSprite *v51; // rsi __int64 v52; // rbx __int64 v53; // rax int v54; // eax cocos2d::CCObject *v55; // rdi __int64 v56; // rbx __int64 v57; // rax __int64 v58; // rax __int64 v59; // rax struct cocos2d::CCSprite *v60; // r14 __int64 v61; // rbx __int64 v62; // rax __int64 v63; // rax int v64; // eax cocos2d::CCObject *v65; // rdi __int64 v66; // rbx __int64 v67; // rax __int64 v68; // rax __int64 v69; // rax struct cocos2d::CCLabelBMFont *v70; // rdi __int64 v71; // rbx __int64 v72; // rax __int64 v73; // rax __int64 v74; // rdx __int64 v75; // rcx __int64 v76; // r8 __int64 v77; // rbx cocos2d::CCString *v78; // rax int v79; // ebx void *v80; // r8 cocos2d::CCNode *v81; // rdi __int64 v82; // rbx __int64 v83; // rax struct cocos2d::CCAction *v84; // rax void **v86; // [rsp+58h] [rbp-59h] BYREF float v87; // [rsp+60h] [rbp-51h] BYREF float v88; // [rsp+64h] [rbp-4Dh] void *v89; // [rsp+68h] [rbp-49h] BYREF void **v90; // [rsp+70h] [rbp-41h] BYREF void *v91; // [rsp+78h] [rbp-39h] BYREF void *Block[2]; // [rsp+80h] [rbp-31h] BYREF __int64 v93; // [rsp+90h] [rbp-21h] unsigned __int64 v94; // [rsp+98h] [rbp-19h] v2 = cocos2d::CCDirector::sharedDirector(a1); cocos2d::CCDirector::getWinSize(v2, &v87); v90 = (void **)operator new(0x2C8u); v3 = ButtonSprite::ButtonSprite((__int64)v90); v4 = (cocos2d::CCObject *)v3; if ( v3 ) { if ( ButtonSprite::init_1( v3, (__int64)"Links", 70, 0, 1056964608, 1, &qword_140704F78, (__int64)"GJ_button_01.png", 1106247680) ) { cocos2d::CCObject::autorelease(v4); } else { (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v4 + 8LL))(v4, 1); LODWORD(v4) = 0; } } v5 = CCMenuItemSpriteExtra::create((int)v4, 0, (int)a1, (__int64)SupportLayer::onLinks); v90 = (void **)v5; v89 = operator new(0x2C8u); v6 = ButtonSprite::ButtonSprite((__int64)v89); v7 = (cocos2d::CCObject *)v6; if ( v6 ) { if ( ButtonSprite::init_1( v6, (__int64)"Contact", 70, 0, 1056964608, 1, &qword_140704F78, (__int64)"GJ_button_01.png", 1106247680) ) { cocos2d::CCObject::autorelease(v7); } else { (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v7 + 8LL))(v7, 1); LODWORD(v7) = 0; } } v8 = CCMenuItemSpriteExtra::create((int)v7, 0, (int)a1, (__int64)SupportLayer::onEmail); v89 = operator new(0x2C8u); v9 = ButtonSprite::ButtonSprite((__int64)v89); v10 = (cocos2d::CCObject *)v9; if ( v9 ) { if ( ButtonSprite::init_1( v9, (__int64)"Privacy", 70, 0, 1056964608, 1, &qword_140704F78, (__int64)"GJ_button_01.png", 1106247680) ) { cocos2d::CCObject::autorelease(v10); } else { (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v10 + 8LL))(v10, 1); LODWORD(v10) = 0; } } v11 = CCMenuItemSpriteExtra::create((int)v10, 0, (int)a1, (__int64)SupportLayer::onPrivacy); v89 = operator new(0x2C8u); v12 = ButtonSprite::ButtonSprite((__int64)v89); v13 = (cocos2d::CCObject *)v12; if ( v12 ) { if ( ButtonSprite::init_1( v12, (__int64)"ToS", 70, 0, 1056964608, 1, &qword_140704F78, (__int64)"GJ_button_01.png", 1106247680) ) { cocos2d::CCObject::autorelease(v13); } else { (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v13 + 8LL))(v13, 1); LODWORD(v13) = 0; } } v14 = CCMenuItemSpriteExtra::create((int)v13, 0, (int)a1, (__int64)SupportLayer::onTOS); v89 = operator new(0x2C8u); v15 = (cocos2d::CCObject *)ButtonSprite::ButtonSprite((__int64)v89); if ( v15 ) { if ( ButtonSprite::init_1( (__int64)v15, (__int64)"SFX", 70, 0, 1056964608, 1, &qword_140704F78, (__int64)"GJ_button_01.png", 1106247680) ) { cocos2d::CCObject::autorelease(v15); } else { (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v15 + 8LL))(v15, 1); LODWORD(v15) = 0; } } v16 = CCMenuItemSpriteExtra::create((int)v15, 0, (int)a1, (__int64)SupportLayer::onSFX); v17 = cocos2d::CCMenu::create(v5, v8, v11, v14, v16, 0); v18 = *(_QWORD *)v17; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v89, v87 * 0.5, (float)(v88 * 0.5) + 60.0); (*(void (__fastcall **)(struct cocos2d::CCMenu *, __int64))(v18 + 184))(v17, v19); v20 = (void (__fastcall **)(void **, _QWORD))*v90; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v89, -100.0, 20.0); v20[23](v90, v21); v22 = *(_QWORD *)v8; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v89, 0.0, 20.0); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v22 + 184))(v8, v23); v24 = *(_QWORD *)v16; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v89, 100.0, 20.0); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v24 + 184))(v16, v25); v26 = *(_QWORD *)v11; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v89, -50.0, -20.0); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v26 + 184))(v11, v27); v28 = *(_QWORD *)v14; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v89, 50.0, -20.0); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v28 + 184))(v14, v29); v90 = Block; v30 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v91 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v91); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v30 = qword_14090BFD0; } v31 = *(_BYTE *)(v30 + 957); v93 = 15; v94 = 15; qmemcpy(Block, "Low Detail Mod", 14); HIWORD(Block[1]) = (unsigned __int8)aLowDetailMode[14]; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v86, (float)(v87 * 0.5) - 160.0, (float)(v88 * 0.5) - 90.0); LOBYTE(v32) = v31 == 0; SupportLayer::createToggleButton((_DWORD)a1, (unsigned int)Block, v34, v32, (__int64)v17, v33); v35 = GJAccountManager::sharedState(); if ( *(_DWORD *)(v35 + 360) - *(_DWORD *)(v35 + 364) > 0 ) { v86 = (void **)operator new(0x2C8u); v36 = (cocos2d::CCObject *)ButtonSprite::ButtonSprite((__int64)v86); if ( v36 ) { if ( ButtonSprite::init_1( (__int64)v36, (__int64)"Req", 220, 0, 1053609165, 0, &qword_140704F78, (__int64)"GJ_button_04.png", 1103626240) ) { cocos2d::CCObject::autorelease(v36); } else { (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v36 + 8LL))(v36, 1); LODWORD(v36) = 0; } } v37 = CCMenuItemSpriteExtra::create((int)v36, 0, (int)a1, (__int64)SupportLayer::onRequestAccess); (*(void (__fastcall **)(struct cocos2d::CCMenu *, cocos2d::CCObject *))(*(_QWORD *)v17 + 464LL))(v17, v37); v38 = *(_QWORD *)v37; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v86, (float)(v87 * 0.5) + 150.0, (float)(v88 * 0.5) - 90.0); cocos2d::CCNode::convertToNodeSpace(v17, &v91, v39); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v38 + 184))(v37, v40); if ( (float)((float)rand() / 32767.0) > 0.89999998 ) { v86 = Block; *(_OWORD *)Block = 0; v93 = 4; v94 = 15; strcpy((char *)Block, "0023"); v41 = qword_14090BFE0; if ( !qword_14090BFE0 ) { v91 = operator new(0x3E8u); qword_14090BFE0 = sub_1402D6480((__int64)v91); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFE0 + 72LL))(qword_14090BFE0); v41 = qword_14090BFE0; } if ( !GameStatsManager::isSpecialChestUnlocked(v41, Block) ) { v86 = (void **)operator new(0x2C8u); v42 = (cocos2d::CCObject *)ButtonSprite::ButtonSprite((__int64)v86); if ( v42 ) { if ( ButtonSprite::init_1( (__int64)v42, (__int64)"?", 220, 0, 1058642330, 0, "goldFont.fnt", (__int64)"GJ_button_05.png", 1103626240) ) { cocos2d::CCObject::autorelease(v42); } else { (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v42 + 8LL))(v42, 1); LODWORD(v42) = 0; } } v43 = CCMenuItemSpriteExtra::create((int)v42, 0, (int)a1, (__int64)SupportLayer::onGetReward); (*(void (__fastcall **)(struct cocos2d::CCMenu *, cocos2d::CCObject *))(*(_QWORD *)v17 + 464LL))(v17, v43); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v86, -50.0, 0.0); v45 = v44; v46 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v37 + 200LL))(v37); cocos2d::CCPoint::operator+(v46, &v90, v45); (*(void (__fastcall **)(cocos2d::CCObject *, void ***))(*(_QWORD *)v43 + 184LL))(v43, &v90); } } } (*(void (__fastcall **)(_QWORD *, struct cocos2d::CCMenu *, __int64))(*a1[72] + 456LL))(a1[72], v17, 1); v47 = (float)(v87 * 0.5) - 55.0; v48 = (float)(v87 * 0.5) + 45.0; v50 = cocos2d::CCMenu::create(v49); v51 = cocos2d::CCSprite::createWithSpriteFrameName("developedBy_001.png"); (*(void (__fastcall **)(_QWORD *, struct cocos2d::CCSprite *))(*a1[72] + 464LL))(a1[72], v51); v52 = *(_QWORD *)v51; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v86, v47, (float)(v88 * 0.5) + 0.0); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v52 + 184))(v51, v53); v54 = (unsigned int)cocos2d::CCSprite::createWithSpriteFrameName("robtoplogo_small.png"); v55 = CCMenuItemSpriteExtra::create(v54, 0, (int)a1, (__int64)MenuLayer::onRobTop); (*(void (__fastcall **)(__int64, cocos2d::CCObject *))(*(_QWORD *)v50 + 464LL))(v50, v55); v56 = *(_QWORD *)v55; v57 = (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v51 + 200LL))(v51); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v86, v48, *(float *)(v57 + 4)); cocos2d::CCNode::convertToNodeSpace(v50, &v91, v58); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v56 + 184))(v55, v59); v60 = cocos2d::CCSprite::createWithSpriteFrameName("poweredBy_001.png"); (*(void (__fastcall **)(_QWORD *, struct cocos2d::CCSprite *))(*a1[72] + 464LL))(a1[72], v60); v61 = *(_QWORD *)v60; v62 = (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v51 + 200LL))(v51); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v86, v47, *(float *)(v62 + 4) - 35.0); (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v61 + 184))(v60, v63); v64 = (unsigned int)cocos2d::CCSprite::createWithSpriteFrameName("cocos2DxLogo.png"); v65 = CCMenuItemSpriteExtra::create(v64, 0, (int)a1, (__int64)SupportLayer::onCocos2d); (*(void (__fastcall **)(__int64, cocos2d::CCObject *))(*(_QWORD *)v50 + 464LL))(v50, v65); v66 = *(_QWORD *)v65; v67 = (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v60 + 200LL))(v60); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v86, v48, *(float *)(v67 + 4)); cocos2d::CCNode::convertToNodeSpace(v50, &v91, v68); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v66 + 184))(v65, v69); v70 = cocos2d::CCLabelBMFont::create("FMOD Studio by Firelight Technologies Pty Ltd.", "goldFont.fnt"); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v70 + 160LL))(v70); (*(void (__fastcall **)(_QWORD *, struct cocos2d::CCLabelBMFont *))(*a1[72] + 464LL))(a1[72], v70); v71 = *(_QWORD *)v70; v72 = (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v60 + 200LL))(v60); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v86, v87 * 0.5, *(float *)(v72 + 4) - 26.0); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v71 + 184))(v70, v73); v77 = AchievementManager::sharedState(v75, v74, v76); *(_OWORD *)Block = 0; v93 = 0; v94 = 0; Block[0] = sub_14003D460(0x20u); v93 = 21; v94 = 31; strcpy((char *)Block[0], "geometry.ach.secret08"); v78 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v77 + 352), Block); v79 = cocos2d::CCString::intValue(v78); if ( v94 > 0xF ) { v80 = Block[0]; if ( v94 + 1 >= 0x1000 ) { v80 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v80 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v80); } if ( v79 < 100 ) { v81 = cocos2d::CCLabelBMFont::create("\"blockbite\"", "chatFont.fnt"); ((void (__fastcall *)(_QWORD **, cocos2d::CCNode *, __int64))(*a1)[57])(a1, v81, 3); (*(void (__fastcall **)(cocos2d::CCNode *))(*(_QWORD *)v81 + 160LL))(v81); (**((void (__fastcall ***)(__int64, void *))v81 + 46))((__int64)v81 + 368, &unk_1407046D8); (*(void (__fastcall **)(__int64, _QWORD))(*((_QWORD *)v81 + 46) + 40LL))((__int64)v81 + 368, 0); v82 = *(_QWORD *)v81; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v86, v87 - 32.0, 8.0); (*(void (__fastcall **)(cocos2d::CCNode *, __int64))(v82 + 184))(v81, v83); v84 = cocos2d::CCFadeTo::create(10.0, 0x64u); cocos2d::CCNode::runAction(v81, v84); } return (*(__int64 (__fastcall **)(_QWORD *, __int64, __int64))(*a1[72] + 456LL))(a1[72], v50, 2); }
GD Web Decomp Icon

GD Web Decomp

Raw Source