// // SetupObjectOptions2Popup::init from 0x140597810 to 0x140597d25 (1301 bytes) // // 2 xrefs: // > SetGroupIDLayer::onExtra2 @ 0x140591c36 // > @ 0x14092d1d0 // // 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:34:34 +0000 // // Hidden C++ exception states: #wind=3 char __fastcall SetupObjectOptions2Popup::init(_BYTE *a1, int a2, int a3, int a4) { char result; // al __int64 v6; // rcx __int64 v7; // rax __int64 v8; // rdi __int64 v9; // rax void *v10; // rcx __int64 v11; // rax __int64 v12; // rax void *v13; // rcx void **v14; // [rsp+88h] [rbp-80h] BYREF _BYTE v15[8]; // [rsp+90h] [rbp-78h] BYREF float v16[2]; // [rsp+98h] [rbp-70h] BYREF void **v17; // [rsp+A0h] [rbp-68h] BYREF _BYTE v18[8]; // [rsp+A8h] [rbp-60h] BYREF __int128 v19; // [rsp+B0h] [rbp-58h] BYREF __int64 v20; // [rsp+C0h] [rbp-48h] __int64 v21; // [rsp+C8h] [rbp-40h] void *Block[2]; // [rsp+D0h] [rbp-38h] BYREF __m128i si128; // [rsp+E0h] [rbp-28h] result = SetupTriggerPopup::init((_DWORD)a1, a2, a3, a4, 1128792064, 1, 0); if ( result ) { a1[744] = 1; (*(void (__fastcall **)(_BYTE *))(*(_QWORD *)a1 + 1096LL))(a1); a1[744] = 1; Block[1] = nullptr; si128.m128i_i64[0] = 8; si128.m128i_i64[1] = 15; Block[0] = (void *)0x32206769666E6F43LL; SetupTriggerPopup::addTitle(a1, Block); *(_OWORD *)Block = 0; si128.m128i_i64[0] = 2; si128.m128i_i64[1] = 15; strcpy((char *)Block, "OK"); SetupTriggerPopup::addCloseButton(a1, Block); v14 = Block; *(_OWORD *)Block = 0; si128 = 0u; Block[0] = sub_14003D460(0xD0u); si128.m128i_i64[0] = 197; si128.m128i_i64[1] = 207; strcpy( (char *)Block[0], "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."); v19 = 0; v20 = 4; v21 = 15; strcpy((char *)&v19, "Help"); SetupTriggerPopup::addHelpButton(a1, &v19, Block); v7 = cocos2d::CCDirector::sharedDirector(v6); cocos2d::CCDirector::getWinSize(v7, v16); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, v16[0] * 0.5, (float)(v16[1] * 0.5) + 30.0); si128 = _mm_load_si128((const __m128i *)&xmmword_1408365F0); strcpy((char *)Block, "Enter Channel:"); HIBYTE(Block[1]) = 0; v8 = (__int64)(a1 + 544); if ( !a1 ) v8 = 0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v17, -80.0, 0.0); cocos2d::CCPoint::operator+(v15, &v14, v9); IDNameInput::create( (__int64)a1, v8, 8, 343, (__int64)Block, (const struct cocos2d::CCPoint *)&v14, 1060320051, 6, 0, 0, 0); if ( si128.m128i_i64[1] > 0xFuLL ) { v10 = Block[0]; if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 ) { v10 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v10 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v10); } v17 = Block; Block[1] = (void *)58; si128.m128i_i64[0] = 9; si128.m128i_i64[1] = 15; Block[0] = (void *)0x6C6169726574614DLL; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, 80.0, 0.0); cocos2d::CCPoint::operator+(v15, &v14, v11); SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 446, (unsigned int)Block, (unsigned int)&v14, 1060320051, 1, 3, 6, 1, 0, 0, 0, 0, 0, 2, 0); if ( a1[889] ) { Block[1] = (void *)14916; si128 = _mm_load_si128((const __m128i *)&xmmword_1408365B0); Block[0] = (void *)0x496C6F72746E6F43LL; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, 80.0, -55.0); cocos2d::CCPoint::operator+(v15, &v14, v12); IDNameInput::create( (__int64)a1, v8, 6, 534, (__int64)Block, (const struct cocos2d::CCPoint *)&v14, 1060320051, 6, 0, 0, 0); if ( si128.m128i_i64[1] > 0xFuLL ) { v13 = Block[0]; if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 ) { v13 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v13 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v13); } } (*(void (__fastcall **)(_BYTE *))(*(_QWORD *)a1 + 1136LL))(a1); a1[744] = 0; return 1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source