// // SetupObjectOptions2Popup::init from 0x1003063b0 to 0x100306758 (936 bytes) // // 2 xrefs: // > SetGroupIDLayer::onExtra2 @ 0x1003012ec // > SetupObjectOptions2Popup::create @ 0x100301f04 // // 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:28:34 +0000 // __int64 __fastcall SetupObjectOptions2Popup::init(_BYTE *a1, __int64 a2, __int64 a3) { _BYTE *v3; // rbx __int64 result; // rax unsigned int v5; // r15d __int64 v6; // rax char v7; // [rsp+38h] [rbp-C8h] BYREF _BYTE v8[23]; // [rsp+39h] [rbp-C7h] BYREF char v9; // [rsp+50h] [rbp-B0h] BYREF char v10[15]; // [rsp+51h] [rbp-AFh] BYREF void *v11; // [rsp+60h] [rbp-A0h] __int128 v12; // [rsp+68h] [rbp-98h] BYREF void *v13; // [rsp+78h] [rbp-88h] __int128 v14; // [rsp+80h] [rbp-80h] BYREF void *v15; // [rsp+90h] [rbp-70h] std::string v16; // [rsp+98h] [rbp-68h] BYREF float v17[2]; // [rsp+B0h] [rbp-50h] BYREF unsigned __int64 v18; // [rsp+B8h] [rbp-48h] BYREF unsigned __int64 v19; // [rsp+C0h] [rbp-40h] BYREF unsigned __int64 v20; // [rsp+C8h] [rbp-38h] BYREF __int128 v21; // [rsp+D0h] [rbp-30h] BYREF void *v22; // [rsp+E0h] [rbp-20h] v3 = a1; result = SetupTriggerPopup::init((__int64)a1, a2, a3, 1, 320.0, 200.0, 0.0); if ( (_BYTE)result ) { v5 = result; SetupTriggerPopup::preSetup(a1); a1[744] = 1; v7 = 16; strcpy(v8, "Config 2"); SetupTriggerPopup::addTitle((__int64)a1, (__int64)&v7); if ( (v7 & 1) != 0 ) operator delete(*(void **)&v8[15]); v9 = 4; strcpy(v10, "OK"); SetupTriggerPopup::addCloseButton((__int64)a1, (__int64)&v9); if ( (v9 & 1) != 0 ) operator delete(v11); LOBYTE(v12) = 8; strcpy((char *)&v12 + 1, "Help"); v15 = operator new(0xC8u); *(_QWORD *)&v14 = 201; *((_QWORD *)&v14 + 1) = 197; strcpy( (char *)v15, "Enter Channel is used to set a specific enter effect.\n" "Material is used to link with specific events.\n" "ControlID allows you to reference specific objects when using remapping."); SetupTriggerPopup::addHelpButton((__int64)a1, &v12, &v14, 1.0); if ( (v14 & 1) != 0 ) { a1 = v15; operator delete(v15); } if ( (v12 & 1) != 0 ) { a1 = v13; operator delete(v13); } v6 = cocos2d::CCDirector::sharedDirector(a1, &v12); cocos2d::CCDirector::getWinSize(v17, v6); sub_100278250((float *)&v18, v17[0] * 0.5, (float)(0.5 * v17[1]) + 30.0); LOBYTE(v21) = 28; strcpy((char *)&v21 + 1, "Enter Channel:"); sub_100278250((float *)&v19, -80.0, 0.0); sub_100278350((double *)&v20, &v18, &v19); IDNameInput::create((_DWORD)v3, (_DWORD)v3 + 544, 8, 343, (unsigned int)&v21, (unsigned int)&v20, 6, 0, 0, 0); if ( (v21 & 1) != 0 ) operator delete(v22); v16.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)18; strcpy(v16.__r_.__value_.__s.__data_, "Material:"); sub_100278250((float *)&v20, 80.0, 0.0); sub_100278350((double *)&v21, &v18, &v20); SetupTriggerPopup::createValueControlAdvanced( (__int64)v3, 446, &v16, (__int64)&v21, 1, 3u, 0.69999999, 0.0, 0.0, 6u, 1, 0, 0, 0, 2u, 0); if ( (*(_BYTE *)&v16.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v16.__r_.__value_.__l.__data_); if ( v3[905] == 1 ) { LOBYTE(v21) = 20; strcpy((char *)&v21 + 1, "ControlID:"); sub_100278250((float *)&v19, 80.0, -55.0); sub_100278350((double *)&v20, &v18, &v19); IDNameInput::create((_DWORD)v3, (_DWORD)v3 + 544, 6, 534, (unsigned int)&v21, (unsigned int)&v20, 6, 0, 0, 0); if ( (v21 & 1) != 0 ) operator delete(v22); } SetupTriggerPopup::postSetup(v3); return v5; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source