// // CreatorSettingsPopup::init from 0x140448490 to 0x140448903 (1139 bytes) // // 2 xrefs: // > CreatorSettingsPopup::create @ 0x140448a39 // > @ 0x1409272a8 // // 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:24 +0000 // // Hidden C++ exception states: #wind=2 char __fastcall CreatorSettingsPopup::init(__int64 a1, __int64 a2, __int64 a3, int a4) { char result; // al __int64 v8; // rax __int64 v9; // rcx __int64 v10; // rax float v11; // xmm7_4 float v12; // xmm6_4 __int64 v13; // rax bool v14; // si cocos2d::CCObject *v15; // rbx cocos2d::CCObject *v16; // r15 float v17; // xmm2_4 __int64 v18; // rdi __int64 v19; // rbx __int64 v20; // rax __int64 v21; // rax cocos2d::CCObject *v22; // rbx cocos2d::CCObject *v23; // rsi __int64 v24; // rdi __int64 v25; // rbx __int64 v26; // rax __int64 v27; // rax struct cocos2d::CCSprite *v28; // rax int v29; // ebx cocos2d::CCObject *v30; // rsi __int64 v31; // rdi __int64 v32; // rbx __int64 v33; // rax __int64 v34; // rax float v35[2]; // [rsp+58h] [rbp-49h] BYREF _BYTE v36[8]; // [rsp+60h] [rbp-41h] BYREF __int128 v37; // [rsp+68h] [rbp-39h] BYREF __int64 v38; // [rsp+78h] [rbp-29h] __int64 v39; // [rsp+80h] [rbp-21h] void *v40; // [rsp+120h] [rbp+7Fh] BYREF result = SetupTriggerPopup::init(a1, 0, 0, a4, 1128792064, 7, 0); if ( result ) { *(_BYTE *)(a1 + 744) = 1; (*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 1096LL))(a1); qmemcpy(&v40, "PWi", 3); v8 = (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 584) + 472LL))(*(_QWORD *)(a1 + 584), 3); if ( v8 ) (**(void (__fastcall ***)(__int64, void **))(v8 + 320))(v8 + 320, &v40); *(_QWORD *)(a1 + 1024) = a2; *(_QWORD *)(a1 + 1032) = a3; v10 = cocos2d::CCDirector::sharedDirector(v9); cocos2d::CCDirector::getWinSize(v10, v35); v11 = v35[0] * 0.5; v12 = v35[1] * 0.5; v37 = 0; v38 = 0; v39 = 0; *(_QWORD *)&v37 = sub_14003D460(0x20u); v38 = 16; v39 = 31; strcpy((char *)v37, "Creator Settings"); SetupTriggerPopup::addTitle(a1, &v37); v13 = *(_QWORD *)(a1 + 1024); v14 = v13 && *(_DWORD *)(v13 + 972) == 5 && (*(_BYTE *)(v13 + 1072) || *(_QWORD *)(v13 + 2040)); v40 = operator new(0x2C8u); v15 = (cocos2d::CCObject *)ButtonSprite::ButtonSprite((__int64)v40); if ( v15 ) { if ( ButtonSprite::init_1( (__int64)v15, (__int64)"Description", 120, 0, 1061997773, 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, a1, (__int64)CreatorSettingsPopup::onDescription); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v16); if ( v14 ) v17 = v12 + 15.0; else v17 = v12 - 10.0; v18 = *(_QWORD *)v16; v19 = *(_QWORD *)(a1 + 552); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v40, v11, v17); cocos2d::CCNode::convertToNodeSpace(v19, v36, v20); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v18 + 184))(v16, v21); if ( v14 ) { v40 = operator new(0x2C8u); v22 = (cocos2d::CCObject *)ButtonSprite::ButtonSprite((__int64)v40); if ( v22 ) { if ( ButtonSprite::init_1( (__int64)v22, (__int64)"Controls", 120, 0, 1061997773, 1, &qword_140704F78, (__int64)"GJ_button_01.png", 1106247680) ) { cocos2d::CCObject::autorelease(v22); } else { (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v22 + 8LL))(v22, 1); LODWORD(v22) = 0; } } v23 = CCMenuItemSpriteExtra::create((int)v22, 0, a1, (__int64)CreatorSettingsPopup::onControls); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))( *(_QWORD *)(a1 + 552), v23); v24 = *(_QWORD *)v23; v25 = *(_QWORD *)(a1 + 552); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v40, v11, v12 - 35.0); cocos2d::CCNode::convertToNodeSpace(v25, v36, v26); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v24 + 184))(v23, v27); } v28 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_closeBtn_001.png"); v29 = (int)v28; (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v28 + 160LL))(v28); v30 = CCMenuItemSpriteExtra::create(v29, 0, a1, (__int64)sub_14009D628); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v30); v31 = *(_QWORD *)v30; v32 = *(_QWORD *)(a1 + 552); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v40, v11 - (float)(*(float *)(a1 + 732) * 0.5), (float)(*(float *)(a1 + 736) * 0.5) + v12); cocos2d::CCNode::convertToNodeSpace(v32, v36, v33); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v31 + 184))(v30, v34); (*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 1136LL))(a1); *(_BYTE *)(a1 + 744) = 0; return 1; } return result; }