// // SupportLayer::customSetup from 0x100382330 to 0x100382bf2 (2242 bytes) // // 1 xrefs: // > @ 0x100b2a7b0 // // 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 12:29:09 +0000 // __int64 __fastcall SupportLayer::customSetup(__int64 a1, __int64 a2) { _QWORD **v2; // r13 __int64 v3; // rax char *v4; // rax void *v5; // rax int v6; // r14d char *v7; // rax char *v8; // rax void *v9; // rax int v10; // r12d char *v11; // rax _QWORD **v12; // rax int v13; // r15d char *v14; // rax void *v15; // rbx __int64 v16; // r12 __int64 v17; // rax char *v18; // rax void *v19; // r14 __int64 v20; // rax bool isSpecialChestUnlocked; // bl char *v22; // rax void *v23; // rbx unsigned __int64 *v24; // r14 unsigned int v25; // xmm0_4 __int64 v26; // r14 char *v27; // rbx double v28; // xmm0_8 char *v29; // rax void *v30; // r15 __int64 v31; // rax double v32; // xmm0_8 char *v33; // r15 __int64 v34; // rax double v35; // xmm0_8 char *v36; // rax void *v37; // rbx __int64 v38; // rax _QWORD **v39; // r12 __int64 v40; // rbx __int64 v41; // rax __int64 v42; // rax __int64 v43; // rbx __int64 v44; // rax void *v46; // [rsp+18h] [rbp-98h] char v47; // [rsp+20h] [rbp-90h] BYREF char v48[15]; // [rsp+21h] [rbp-8Fh] BYREF void *v49; // [rsp+30h] [rbp-80h] char v50; // [rsp+38h] [rbp-78h] BYREF _BYTE v51[23]; // [rsp+39h] [rbp-77h] BYREF unsigned __int64 v52; // [rsp+50h] [rbp-60h] BYREF void *v53; // [rsp+58h] [rbp-58h] _QWORD **v54; // [rsp+60h] [rbp-50h] void *v55; // [rsp+68h] [rbp-48h] float v56; // [rsp+74h] [rbp-3Ch] float v57; // [rsp+78h] [rbp-38h] BYREF float v58; // [rsp+7Ch] [rbp-34h] double v59[6]; // [rsp+80h] [rbp-30h] BYREF v2 = (_QWORD **)a1; v3 = cocos2d::CCDirector::sharedDirector(a1, a2); cocos2d::CCDirector::getWinSize(&v57, v3); v4 = ButtonSprite::create_1( (__int64)"Links", 0x46u, 0, 1u, (__int64)"bigFont.fnt", (__int64)"GJ_button_01.png", 0.5, 30.0); v5 = CCMenuItemSpriteExtra::create((__int64)v4, 0, a1, (__int64)SupportLayer::onLinks, 0); v6 = (int)v5; v46 = v5; v7 = ButtonSprite::create_1( (__int64)"Contact", 0x46u, 0, 1u, (__int64)"bigFont.fnt", (__int64)"GJ_button_01.png", 0.5, 30.0); v53 = CCMenuItemSpriteExtra::create((__int64)v7, 0, a1, (__int64)SupportLayer::onEmail, 0); v8 = ButtonSprite::create_1( (__int64)"Privacy", 0x46u, 0, 1u, (__int64)"bigFont.fnt", (__int64)"GJ_button_01.png", 0.5, 30.0); v9 = CCMenuItemSpriteExtra::create((__int64)v8, 0, a1, (__int64)SupportLayer::onPrivacy, 0); v10 = (int)v9; v55 = v9; v11 = ButtonSprite::create_1( (__int64)"ToS", 0x46u, 0, 1u, (__int64)"bigFont.fnt", (__int64)"GJ_button_01.png", 0.5, 30.0); v12 = (_QWORD **)CCMenuItemSpriteExtra::create((__int64)v11, 0, a1, (__int64)SupportLayer::onTOS, 0); v13 = (int)v12; v54 = v12; v14 = ButtonSprite::create_1( (__int64)"SFX", 0x46u, 0, 1u, (__int64)"bigFont.fnt", (__int64)"GJ_button_01.png", 0.5, 30.0); v15 = CCMenuItemSpriteExtra::create((__int64)v14, 0, a1, (__int64)SupportLayer::onSFX, 0); v16 = sub_1008735E0(v6, (_DWORD)v53, v10, v13, (_DWORD)v15, 0); sub_100278250((float *)v59, v57 * 0.5, (float)(v58 * 0.5) + 60.0); (*(void (__fastcall **)(__int64, double *))(*(_QWORD *)v16 + 184LL))(v16, v59); sub_100278250((float *)v59, -100.0, 20.0); (*(void (__fastcall **)(void *, double *))(*(_QWORD *)v46 + 184LL))(v46, v59); sub_100278250((float *)v59, 0.0, 20.0); (*(void (__fastcall **)(void *, double *))(*(_QWORD *)v53 + 184LL))(v53, v59); sub_100278250((float *)v59, 100.0, 20.0); (*(void (__fastcall **)(void *, double *))(*(_QWORD *)v15 + 184LL))(v15, v59); sub_100278250((float *)v59, -50.0, -20.0); (*(void (__fastcall **)(void *, double *))(*(_QWORD *)v55 + 184LL))(v55, v59); sub_100278250((float *)v59, 50.0, -20.0); ((void (__fastcall *)(_QWORD **, double *))(*v54)[23])(v54, v59); v50 = 30; strcpy(v51, "Low Detail Mode"); LOBYTE(v13) = *(_BYTE *)(GameManager::sharedState() + 925); sub_100278250((float *)v59, (float)(v57 * 0.5) + -160.0, (float)(v58 * 0.5) + -90.0); SupportLayer::createToggleButton( a1, (unsigned int)&v50, (unsigned int)SupportLayer::onLowDetail, 0, (unsigned __int8)v13 ^ 1, v16, (__int64)v59, 0); if ( (v50 & 1) != 0 ) { a1 = *(_QWORD *)&v51[15]; operator delete(*(void **)&v51[15]); } v17 = GJAccountManager::sharedState(a1, (__int64)&v50); if ( *(_DWORD *)(v17 + 352) > *(_DWORD *)(v17 + 356) ) { v18 = ButtonSprite::create_1( (__int64)"Req", 0xDCu, 0, 0, (__int64)"bigFont.fnt", (__int64)"GJ_button_04.png", 0.40000001, 25.0); v19 = CCMenuItemSpriteExtra::create((__int64)v18, 0, (__int64)v2, (__int64)SupportLayer::onRequestAccess, 0); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v16 + 456LL))(v16, v19); sub_100278250((float *)&v52, (float)(v57 * 0.5) + 150.0, (float)(v58 * 0.5) + -90.0); cocos2d::CCNode::convertToNodeSpace(v59, v16, (unsigned int *)&v52); (*(void (__fastcall **)(void *, double *))(*(_QWORD *)v19 + 184LL))(v19, v59); if ( (float)((float)rand() * 4.6566129e-10) > 0.89999998 ) { v20 = GameStatsManager::sharedState(); v47 = 8; strcpy(v48, "0023"); isSpecialChestUnlocked = GameStatsManager::isSpecialChestUnlocked(v20, (__int64)&v47); if ( (v47 & 1) != 0 ) operator delete(v49); if ( !isSpecialChestUnlocked ) { v22 = ButtonSprite::create_1( (__int64)"?", 0xDCu, 0, 0, (__int64)"goldFont.fnt", (__int64)"GJ_button_05.png", 0.60000002, 25.0); v23 = CCMenuItemSpriteExtra::create((__int64)v22, 0, (__int64)v2, (__int64)SupportLayer::onGetReward, 0); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v16 + 456LL))(v16, v23); v24 = (unsigned __int64 *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v19 + 192LL))(v19); sub_100278250((float *)&v52, -50.0, 0.0); sub_100278350(v59, v24, &v52); (*(void (__fastcall **)(void *, double *))(*(_QWORD *)v23 + 184LL))(v23, v59); } } } (*(void (__fastcall **)(_QWORD *, __int64, __int64))(*v2[72] + 464LL))(v2[72], v16, 1); v56 = 0.5; *(float *)&v25 = (float)(v57 * 0.5) + -55.0; *(float *)&v53 = *(float *)&v25; *(float *)&v55 = (float)(v57 * 0.5) + 45.0; v26 = cocos2d::CCMenu::create(); v27 = cocos2d::CCSprite::createWithSpriteFrameName( (__int64)"developedBy_001.png", COERCE_DOUBLE((unsigned __int64)v25)); (*(void (__fastcall **)(_QWORD *, char *))(*v2[72] + 456LL))(v2[72], v27); sub_100278250((float *)v59, *(float *)&v53, (float)(v58 * 0.5) + 0.0); v28 = (*(double (__fastcall **)(char *, double *))(*(_QWORD *)v27 + 184LL))(v27, v59); v29 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"robtoplogo_small.png", v28); v30 = CCMenuItemSpriteExtra::create((__int64)v29, 0, (__int64)v2, (__int64)SupportLayer::onRobTop, 0); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v26 + 456LL))(v26, v30); v31 = (*(__int64 (__fastcall **)(char *))(*(_QWORD *)v27 + 192LL))(v27); sub_100278250((float *)&v52, *(float *)&v55, *(float *)(v31 + 4)); v54 = v2; cocos2d::CCNode::convertToNodeSpace(v59, v26, (unsigned int *)&v52); v32 = (*(double (__fastcall **)(void *, double *))(*(_QWORD *)v30 + 184LL))(v30, v59); v33 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"poweredBy_001.png", v32); (*(void (__fastcall **)(_QWORD *, char *))(*v54[72] + 456LL))(v54[72], v33); v34 = (*(__int64 (__fastcall **)(char *))(*(_QWORD *)v27 + 192LL))(v27); sub_100278250((float *)v59, *(float *)&v53, *(float *)(v34 + 4) + -35.0); v35 = (*(double (__fastcall **)(char *, double *))(*(_QWORD *)v33 + 184LL))(v33, v59); v36 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"cocos2DxLogo.png", v35); v37 = CCMenuItemSpriteExtra::create((__int64)v36, 0, (__int64)v54, (__int64)SupportLayer::onCocos2d, 0); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v26 + 456LL))(v26, v37); v38 = (*(__int64 (__fastcall **)(char *))(*(_QWORD *)v33 + 192LL))(v33); sub_100278250((float *)&v52, *(float *)&v55, *(float *)(v38 + 4)); v55 = (void *)v26; cocos2d::CCNode::convertToNodeSpace(v59, v26, (unsigned int *)&v52); v39 = v54; (*(void (__fastcall **)(void *, double *))(*(_QWORD *)v37 + 184LL))(v37, v59); v40 = cocos2d::CCLabelBMFont::create_3("FMOD Studio by Firelight Technologies Pty Ltd.", "goldFont.fnt"); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v40 + 160LL))(v40, 0.34999999); (*(void (__fastcall **)(_QWORD *, __int64))(*v39[72] + 456LL))(v39[72], v40); v56 = v56 * v57; v41 = (*(__int64 (__fastcall **)(char *))(*(_QWORD *)v33 + 192LL))(v33); sub_100278250((float *)v59, v56, *(float *)(v41 + 4) + -26.0); (*(void (__fastcall **)(__int64, double *))(*(_QWORD *)v40 + 184LL))(v40, v59); v42 = AchievementManager::sharedState(v40, v59); if ( !(unsigned __int8)AchievementManager::isAchievementEarned(v42, "geometry.ach.secret08") ) { v43 = cocos2d::CCLabelBMFont::create_3("\"blockbite\"", "chatFont.fnt"); ((void (__fastcall *)(_QWORD **, __int64, __int64))(*v39)[58])(v39, v43, 3); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v43 + 160LL))(v43, 0.5); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v43 + 1072LL))(v43, &unk_100A08A7F); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v43 + 1024LL))(v43, 0); sub_100278250((float *)v59, v57 + -32.0, 8.0); (*(void (__fastcall **)(__int64, double *))(*(_QWORD *)v43 + 184LL))(v43, v59); v44 = cocos2d::CCFadeTo::create(100, 10.0); cocos2d::CCNode::runAction(v43, v44); } return (*(__int64 (__fastcall **)(_QWORD *, void *, __int64))(*v39[72] + 464LL))(v39[72], v55, 2); }
GD Web Decomp Icon

GD Web Decomp

Raw Source