// // SelectSettingLayer::init from 0x10025aa10 to 0x10025af99 (1417 bytes) // // 1 xrefs: // > sub_100258810 @ 0x1002589c7 // // 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:27:28 +0000 // char __fastcall SelectSettingLayer::init(__int64 a1, int a2, unsigned int a3) { __int64 v6; // rax __int64 v7; // rax __int64 v8; // rdi __int64 v9; // rsi int v10; // eax __int64 v11; // rax __int64 v12; // rax __int64 v13; // r14 unsigned __int64 v14; // rdx unsigned int v15; // r15d char *v16; // r14 __int64 v17; // r13 __int64 v18; // r14 __int64 v19; // rax __int64 v20; // rdi unsigned int v21; // r14d char *v22; // rdi __int64 v23; // r12 __int64 v24; // r13 unsigned int v25; // r14d char *v26; // rax __int64 v27; // r15 __int64 v28; // r12 __int64 v29; // rcx _QWORD *v30; // rdi _DWORD *v31; // rsi _QWORD *v32; // rax _BYTE v34[8]; // [rsp+0h] [rbp-80h] BYREF _BYTE v35[8]; // [rsp+8h] [rbp-78h] BYREF __int64 v36; // [rsp+10h] [rbp-70h] _BYTE v37[8]; // [rsp+18h] [rbp-68h] BYREF float v38; // [rsp+20h] [rbp-60h] int v39; // [rsp+24h] [rbp-5Ch] float v40; // [rsp+28h] [rbp-58h] float v41; // [rsp+2Ch] [rbp-54h] int v42; // [rsp+30h] [rbp-50h] float v43; // [rsp+34h] [rbp-4Ch] _DWORD v44[4]; // [rsp+38h] [rbp-48h] BYREF void *__p; // [rsp+48h] [rbp-38h] float v46; // [rsp+50h] [rbp-30h] BYREF float v47; // [rsp+54h] [rbp-2Ch] v44[0] = -1778384896; if ( (unsigned __int8)cocos2d::CCLayerColor::initWithColor(a1, v44) ) { FLAlertLayer::incrementForcePrio(a1); v6 = cocos2d::CCLayer::create(); *(_QWORD *)(a1 + 584) = v6; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 456LL))(a1, v6); v7 = cocos2d::CCMenu::create(); *(_QWORD *)(a1 + 552) = v7; v8 = *(_QWORD *)(a1 + 584); v9 = v7; (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v8 + 464LL))(v8, v7, 10); *(_DWORD *)(a1 + 676) = a2; if ( a2 == 2 ) { v10 = 1; if ( a3 <= 4 ) v10 = dword_100A06AF0[a3]; } else { v10 = a3; } *(_DWORD *)(a1 + 672) = v10; v12 = cocos2d::CCDirector::sharedDirector(v8, v9); cocos2d::CCDirector::getWinSize(&v46, v12); v13 = *(_QWORD *)(a1 + 552); sub_100278250(v44, v46 * 0.5, (float)(v47 * 0.5) + 5.0); v11 = cocos2d::CCNode::convertToNodeSpace(v34, v13, v44); v14 = *(unsigned int *)(a1 + 676); LOBYTE(v11) = v14 < 3; if ( v14 < 3 ) { v39 = a2; v42 = v11; v43 = flt_100A06AC0[v14]; v38 = flt_100A06ACC[v14]; v15 = dword_100A06AD8[v14]; v16 = (char *)dword_100A06AE4 + dword_100A06AE4[v14]; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1000LL))(a1, 1); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1072LL))(a1, 1); sub_100278270(v44, 0.0, 0.0, COERCE_DOUBLE(1117782016), COERCE_DOUBLE(1117782016)); v17 = cocos2d::extension::CCScale9Sprite::create_2("GJ_square01.png", v44); sub_100278260(v44, COERCE_DOUBLE(1135869952), COERCE_DOUBLE(1126170624)); (*(void (__fastcall **)(__int64, _DWORD *))(*(_QWORD *)v17 + 320LL))(v17, v44); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), v17, 0xFFFFFFFFLL); sub_100278250(v44, v46 * 0.5, v47 * 0.5); (*(void (__fastcall **)(__int64, _DWORD *))(*(_QWORD *)v17 + 184LL))(v17, v44); v18 = cocos2d::CCLabelBMFont::create_3(v16, "bigFont.fnt"); sub_100278250(v44, v46 * 0.5, (float)((float)(v47 * 0.5) + 80.0) + -20.0); (*(void (__fastcall **)(__int64, _DWORD *))(*(_QWORD *)v18 + 184LL))(v18, v44); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v18); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v18 + 160LL))(v18, 0.89999998); v19 = sub_1007FE900(v18); *(_QWORD *)(a1 + 664) = v19; v20 = v19; cocos2d::CCObject::retain(v19); v36 = sub_1007FE900(v20); v41 = v43 * 0.5; v21 = 0; v40 = (float)((float)-v15 * 0.5) * v43; do { SelectSettingLayer::frameForItem(v44, *(unsigned int *)(a1 + 676), v21); v22 = (char *)v44 + 1; if ( (v44[0] & 1) != 0 ) v22 = (char *)__p; v23 = cocos2d::CCSprite::createWithSpriteFrameName(v22); sub_1007FEBF0(*(_QWORD *)(a1 + 664), v23); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v23 + 160LL))(v23, v38); v24 = CCMenuItemSpriteExtra::create(v23, 0, a1, SelectSettingLayer::onSelect, 0); if ( v39 == 1 && (v21 == 7 || v21 == 4) ) { (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v24 + 1056LL))(v24, 0); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v23 + 912LL))(v23, 125); } (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v24 + 72LL))(v24, v21); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v24); sub_1007FEBF0(v36, v24); sub_100278250(v35, (float)((float)((float)(int)v21 * v43) + v40) + v41, (float)(int)(v21 / v15) * -35.0); sub_100278350(v37, v34, v35); (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v24 + 184LL))(v24, v37); if ( (v44[0] & 1) != 0 ) operator delete(__p); ++v21; } while ( v15 != v21 ); *(_DWORD *)(a1 + 640) = -1; sub_1007FF190(v36); v25 = 0; v26 = ButtonSprite::create_1( (__int64)"OK", 0x28u, 0, 1u, (__int64)"goldFont.fnt", (__int64)"GJ_button_01.png", 0.80000001, 30.0); v27 = CCMenuItemSpriteExtra::create(v26, 0, a1, SelectSettingLayer::onClose, 0); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v27); v28 = *(_QWORD *)(a1 + 552); sub_100278250(v37, v46 * 0.5, (float)((float)(0.5 * v47) + -80.0) + 25.0); cocos2d::CCNode::convertToNodeSpace(v44, v28, v37); (*(void (__fastcall **)(__int64, _DWORD *))(*(_QWORD *)v27 + 184LL))(v27, v44); if ( (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 664)) ) { do { v32 = (_QWORD *)sub_1007FEFE0(*(_QWORD *)(a1 + 664), v25); if ( v25 == *(_DWORD *)(a1 + 672) ) { v29 = *v32; v30 = v32; v31 = &unk_100A06A06; } else { memset(v44, 125, 3); v29 = *v32; v30 = v32; v31 = v44; } (*(void (__fastcall **)(_QWORD *, _DWORD *))(v29 + 960))(v30, v31); ++v25; } while ( v25 < (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 664)) ); } *(_BYTE *)(a1 + 596) = 1; LOBYTE(v11) = v42; } } else { LOBYTE(v11) = 0; } return v11; }
GD Web Decomp Icon

GD Web Decomp

Raw Source