// // SetupAreaMoveTriggerPopup::init from 0x1405a2b20 to 0x1405a39b1 (3729 bytes) // // 3 xrefs: // > EditorUI::editObject @ 0x1401bbdae // > @ 0x14092d500 // > @ 0x14092d50c // // 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:38 +0000 // // Hidden C++ exception states: #wind=3 char __fastcall SetupAreaMoveTriggerPopup::init(float *a1, int a2, int a3, int a4) { char result; // al _QWORD *v6; // r9 _QWORD *v7; // rcx const char *v8; // rdx __int64 v9; // r8 __int64 v10; // rcx __int64 v11; // rax __int64 v12; // rax __int64 v13; // rax __int64 v14; // rax __int64 v15; // rax __int64 v16; // rax __int64 v17; // rax __int64 v18; // rax __int64 v19; // rax int v20; // eax __int64 v21; // rax __int64 v22; // rax __int64 v23; // rax __int64 v24; // rax __int64 v25; // rax __int64 v26; // rax float v28; // [rsp+88h] [rbp-80h] BYREF float v29; // [rsp+8Ch] [rbp-7Ch] __int128 *v30; // [rsp+90h] [rbp-78h] BYREF __int128 *v31; // [rsp+98h] [rbp-70h] BYREF __int128 *v32; // [rsp+A0h] [rbp-68h] BYREF __int128 v33; // [rsp+A8h] [rbp-60h] BYREF __int64 v34; // [rsp+B8h] [rbp-50h] __int64 v35; // [rsp+C0h] [rbp-48h] __int128 v36; // [rsp+C8h] [rbp-40h] BYREF __int64 v37; // [rsp+D8h] [rbp-30h] __int64 v38; // [rsp+E0h] [rbp-28h] char v39; // [rsp+1A0h] [rbp+98h] BYREF result = SetupTriggerPopup::init((_DWORD)a1, a2, a3, a4, 1133248512, 1, 0); if ( result ) { (*(void (__fastcall **)(float *))(*(_QWORD *)a1 + 1096LL))(a1); v33 = 0; *(_QWORD *)&v33 = sub_14003D460(0x20u); v34 = 17; v35 = 31; strcpy((char *)v33, "Area Move Trigger"); SetupTriggerPopup::addTitle(a1, &v33); v33 = 0; v34 = 2; v35 = 15; strcpy((char *)&v33, "OK"); SetupTriggerPopup::addCloseButton(a1, &v33); v30 = &v33; v33 = 0; v34 = 0; v35 = 0; v6 = sub_14003D460(0x160u); *(_QWORD *)&v33 = v6; v34 = 347; v35 = 351; v7 = v6; v8 = "Moves objects using Target Group ID within an area around Center Group ID. The area can be spec" "ified by the arrow buttons and Length (for size).\n" "You can specify how much the objects in the area move depending on how close they are to the center.\n" "DEAP: Dont Edit Area Parent.\n" "Check the other pages for more settings."; v9 = 2; do { *(_OWORD *)v7 = *(_OWORD *)v8; *((_OWORD *)v7 + 1) = *((_OWORD *)v8 + 1); *((_OWORD *)v7 + 2) = *((_OWORD *)v8 + 2); *((_OWORD *)v7 + 3) = *((_OWORD *)v8 + 3); *((_OWORD *)v7 + 4) = *((_OWORD *)v8 + 4); *((_OWORD *)v7 + 5) = *((_OWORD *)v8 + 5); *((_OWORD *)v7 + 6) = *((_OWORD *)v8 + 6); v7 += 16; *((_OWORD *)v7 - 1) = *((_OWORD *)v8 + 7); v8 += 128; --v9; } while ( v9 ); *(_OWORD *)v7 = *(_OWORD *)v8; *((_OWORD *)v7 + 1) = *((_OWORD *)v8 + 1); *((_OWORD *)v7 + 2) = *((_OWORD *)v8 + 2); *((_OWORD *)v7 + 3) = *((_OWORD *)v8 + 3); *((_OWORD *)v7 + 4) = *((_OWORD *)v8 + 4); v7[10] = *((_QWORD *)v8 + 10); *((_WORD *)v7 + 44) = *((_WORD *)v8 + 44); *((_BYTE *)v7 + 90) = v8[90]; *((_BYTE *)v6 + 347) = 0; v36 = 0; v37 = 4; v38 = 15; strcpy((char *)&v36, "Help"); SetupTriggerPopup::addHelpButton(a1, &v36, &v33); SetupTriggerPopup::createMultiTriggerItemsDefaultHorizontal(a1); v11 = cocos2d::CCDirector::sharedDirector(v10); cocos2d::CCDirector::getWinSize(v11, &v28); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v39, v28 * 0.5, (float)(v29 * 0.5) + 95.0); v31 = &v33; v33 = 0; v34 = 6; v35 = 15; strcpy((char *)&v33, "Length"); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v32, -75.0, 0.0); cocos2d::CCPoint::operator+(&v39, &v30, v12); SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 222, (unsigned int)&v33, (unsigned int)&v30, 1059481190, 0, 2, 6, 0, 0, 1120403456, 0, 0, 1, 2, 0); v32 = &v36; v36 = 0; v37 = 2; v38 = 15; strcpy((char *)&v36, "+-"); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v31, 75.0, 0.0); cocos2d::CCPoint::operator+(&v39, &v30, v13); SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 223, (unsigned int)&v36, (unsigned int)&v30, 1059481190, 0, 2, 6, 0, 0, 1120403456, 0, 0, 1, 2, 0); v32 = &v33; v33 = 0; v34 = 6; v35 = 15; strcpy((char *)&v33, "Offset"); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v31, -75.0, -25.0); cocos2d::CCPoint::operator+(&v39, &v30, v14); SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 220, (unsigned int)&v33, (unsigned int)&v30, 1059481190, 0, 2, 6, 0, -1027080192, 1120403456, 0, 0, 1, 2, 0); v32 = &v36; v36 = 0; v37 = 2; v38 = 15; strcpy((char *)&v36, "+-"); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v31, 75.0, -25.0); cocos2d::CCPoint::operator+(&v39, &v30, v15); SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 221, (unsigned int)&v36, (unsigned int)&v30, 1059481190, 0, 2, 6, 0, -1027080192, 1120403456, 0, 0, 1, 2, 0); v32 = &v36; v37 = 8; v38 = 15; v36 = 0x7473694465766F4DuLL; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v31, -75.0, -50.0); cocos2d::CCPoint::operator+(&v39, &v30, v16); SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 218, (unsigned int)&v36, (unsigned int)&v30, 1059481190, 0, 2, 6, 0, 0, 1120403456, 0, 1, 1, 2, 0); v32 = &v36; v36 = 0; v37 = 2; v38 = 15; strcpy((char *)&v36, "+-"); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v31, 75.0, -50.0); cocos2d::CCPoint::operator+(&v39, &v30, v17); SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 219, (unsigned int)&v36, (unsigned int)&v30, 1059481190, 0, 2, 6, 0, 0, 1120403456, 0, 1, 1, 2, 0); v32 = &v33; *((_QWORD *)&v33 + 1) = 101; v34 = 9; v35 = 15; *(_QWORD *)&v33 = 0x6C676E4165766F4DLL; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v31, -75.0, -75.0); cocos2d::CCPoint::operator+(&v39, &v30, v18); SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 231, (unsigned int)&v33, (unsigned int)&v30, 1059481190, 0, 2, 6, 0, -1020002304, 1127481344, 0, 1, 1, 2, 0); v32 = &v36; v36 = 0; v37 = 2; v38 = 15; strcpy((char *)&v36, "+-"); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v31, 75.0, -75.0); cocos2d::CCPoint::operator+(&v39, &v30, v19); SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 232, (unsigned int)&v36, (unsigned int)&v30, 1059481190, 0, 2, 6, 0, 0, 1135869952, 0, 1, 1, 2, 0); v32 = &v33; v34 = 7; v35 = 15; v33 = 0x65646F4D0A5958uLL; cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v31, (float)((float)(a1[183] * 0.5) + (float)(v28 * 0.5)) - 58.0, (float)((float)(a1[184] * 0.5) + (float)(v29 * 0.5)) - 20.0); SetupTriggerPopup::createToggleValueControl((_DWORD)a1, 241, (unsigned int)&v33, v20, 0, 0, 0, 1065353216); v32 = &v33; v33 = 0; v34 = 5; v35 = 15; strcpy((char *)&v33, "RFade"); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v31, 75.0, -100.0); cocos2d::CCPoint::operator+(&v39, &v30, v21); SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 288, (unsigned int)&v33, (unsigned int)&v30, 1059481190, 0, 1, 6, 0, 0, 1114636288, 0, 1, 1, 2, 0); v32 = &v36; v37 = 8; v38 = 15; v36 = 0x65766974616C6552uLL; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v31, -91.0, -110.0); cocos2d::CCPoint::operator+(&v39, &v30, v22); SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 287, (unsigned int)&v36, (unsigned int)&v30, 0, 0, 1, 1065353216); v32 = &v33; v33 = 0; v34 = 5; v35 = 15; strcpy((char *)&v33, "MoveX"); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v31, -75.0, -50.0); cocos2d::CCPoint::operator+(&v39, &v30, v23); SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 237, (unsigned int)&v33, (unsigned int)&v30, 1059481190, 0, 2, 6, 0, 0, 1120403456, 0, 2, 1, 2, 0); v32 = &v36; v36 = 0; v37 = 2; v38 = 15; strcpy((char *)&v36, "+-"); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v31, 75.0, -50.0); cocos2d::CCPoint::operator+(&v39, &v30, v24); SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 238, (unsigned int)&v36, (unsigned int)&v30, 1059481190, 0, 2, 6, 0, 0, 1120403456, 0, 2, 1, 2, 0); v32 = &v33; v33 = 0; v34 = 5; v35 = 15; strcpy((char *)&v33, "MoveY"); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v31, -75.0, -75.0); cocos2d::CCPoint::operator+(&v39, &v30, v25); SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 239, (unsigned int)&v33, (unsigned int)&v30, 1059481190, 0, 2, 6, 0, 0, 1128792064, 0, 2, 1, 2, 0); v32 = &v36; v36 = 0; v37 = 2; v38 = 15; strcpy((char *)&v36, "+-"); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v31, 75.0, -75.0); cocos2d::CCPoint::operator+(&v39, &v30, v26); SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 240, (unsigned int)&v36, (unsigned int)&v30, 1059481190, 0, 2, 6, 0, 0, 1128792064, 0, 2, 1, 2, 0); SetupAreaMoveTriggerPopup::addAreaDefaultControls(a1, 3006); (*(void (__fastcall **)(float *))(*(_QWORD *)a1 + 1136LL))(a1); SetupTriggerPopup::createPageButtons(a1); SetupTriggerPopup::goToPage(a1, 0, 0); if ( cocos2d::CCDictionary::objectForKey(*((cocos2d::CCDictionary **)a1 + 104), 241) ) { (*(void (__fastcall **)(float *, __int64))(*(_QWORD *)a1 + 1160LL))(a1, 241); } else { (*(void (__fastcall **)(float *, __int64, _QWORD))(*(_QWORD *)a1 + 1088LL))(a1, 1, 0); (*(void (__fastcall **)(float *, __int64, _QWORD))(*(_QWORD *)a1 + 1088LL))(a1, 2, 0); } *((_BYTE *)a1 + 744) = 0; return 1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source