// // SetupStopTriggerPopup::init from 0x140609070 to 0x1406097ba (1866 bytes) // // 3 xrefs: // > SetupStopTriggerPopup::create @ 0x14060902e // > @ 0x14092fa5c // > @ 0x14092fa68 // // 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:35:13 +0000 // // Hidden C++ exception states: #wind=7 char __fastcall SetupStopTriggerPopup::init(_BYTE *a1, int a2, int a3, int a4) { char result; // al _BYTE *v6; // rsi _BYTE *v7; // rcx const char *v8; // rdx __int64 v9; // rax _QWORD *v10; // rcx _BYTE *v11; // rdx __int64 v12; // rax __int64 v13; // rcx __int64 v14; // rax int v15; // ebx const struct cocos2d::CCPoint *v16; // rax __int64 v17; // rdx void *v18; // rcx int v19; // eax int v20; // ebx __int64 v21; // rax int v22; // r8d int v23; // r9d __int64 v24; // rax int v25; // r8d int v26; // r9d __int64 v27; // rax int v28; // r8d int v29; // r9d __int128 *v30; // [rsp+60h] [rbp-A0h] BYREF __int128 v31; // [rsp+68h] [rbp-98h] BYREF __int64 v32; // [rsp+78h] [rbp-88h] __int64 v33; // [rsp+80h] [rbp-80h] float v34; // [rsp+88h] [rbp-78h] BYREF float v35; // [rsp+8Ch] [rbp-74h] _BYTE v36[8]; // [rsp+90h] [rbp-70h] BYREF void **v37; // [rsp+98h] [rbp-68h] BYREF float v38[2]; // [rsp+A0h] [rbp-60h] BYREF __int128 *v39; // [rsp+A8h] [rbp-58h] BYREF __int128 v40; // [rsp+B0h] [rbp-50h] BYREF __int64 v41; // [rsp+C0h] [rbp-40h] __int64 v42; // [rsp+C8h] [rbp-38h] __int128 v43; // [rsp+D0h] [rbp-30h] __m128i si128; // [rsp+E0h] [rbp-20h] void *Block[2]; // [rsp+F0h] [rbp-10h] BYREF __m128i v46; // [rsp+100h] [rbp+0h] __int128 v47; // [rsp+110h] [rbp+10h] __int64 v48; // [rsp+120h] [rbp+20h] __int64 v49; // [rsp+128h] [rbp+28h] result = SetupTriggerPopup::init((_DWORD)a1, a2, a3, a4, 1131413504, 1, 0); if ( result ) { v41 = 12; v42 = 15; strcpy((char *)&v40, "Stop Trigger"); BYTE13(v40) = 0; HIWORD(v40) = 0; v43 = 0; si128 = _mm_load_si128((const __m128i *)&Size); LOBYTE(v43) = 0; (*(void (__fastcall **)(_BYTE *, __int64))(*(_QWORD *)a1 + 1168LL))(a1, 533); a1[744] = 1; (*(void (__fastcall **)(_BYTE *))(*(_QWORD *)a1 + 1096LL))(a1); v46.m128i_i64[0] = 12; v46.m128i_i64[1] = 15; *(_OWORD *)Block = v40; SetupTriggerPopup::addTitle(a1, Block); v31 = 0; v32 = 2; v33 = 15; strcpy((char *)&v31, "OK"); SetupTriggerPopup::addCloseButton(a1, &v31); v47 = 0; v6 = sub_14003D460(0x170u); *(_QWORD *)&v47 = v6; v48 = 358; v49 = 367; v7 = v6; v8 = "Stops triggers from being active permanently.\n" "TargetID must be a group on the trigger(s) that you want to stop. If you only want to stop certain trig" "gers within a group, use Control ID.\n" "Hint: Unlike Group ID, Control ID can be remapped.\n" "Pause/Resume works on: Pulse, Col, Alpha, Move, Rotate, Scale, Spawn, Follow, FollowPY, ADVFollow"; 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 += 128; *((_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); *((_OWORD *)v7 + 5) = *((_OWORD *)v8 + 5); *((_DWORD *)v7 + 24) = *((_DWORD *)v8 + 24); *((_WORD *)v7 + 50) = *((_WORD *)v8 + 50); v6[358] = 0; v30 = &v31; v31 = 0; v32 = 0; v33 = 0; v10 = sub_14003D460(0x170u); *(_QWORD *)&v31 = v10; v32 = 358; v33 = 367; v11 = v6; v12 = 2; do { *(_OWORD *)v10 = *(_OWORD *)v11; *((_OWORD *)v10 + 1) = *((_OWORD *)v11 + 1); *((_OWORD *)v10 + 2) = *((_OWORD *)v11 + 2); *((_OWORD *)v10 + 3) = *((_OWORD *)v11 + 3); *((_OWORD *)v10 + 4) = *((_OWORD *)v11 + 4); *((_OWORD *)v10 + 5) = *((_OWORD *)v11 + 5); *((_OWORD *)v10 + 6) = *((_OWORD *)v11 + 6); v10 += 16; *((_OWORD *)v10 - 1) = *((_OWORD *)v11 + 7); v11 += 128; --v12; } while ( v12 ); *(_OWORD *)v10 = *(_OWORD *)v11; *((_OWORD *)v10 + 1) = *((_OWORD *)v11 + 1); *((_OWORD *)v10 + 2) = *((_OWORD *)v11 + 2); *((_OWORD *)v10 + 3) = *((_OWORD *)v11 + 3); *((_OWORD *)v10 + 4) = *((_OWORD *)v11 + 4); *((_OWORD *)v10 + 5) = *((_OWORD *)v11 + 5); *((_DWORD *)v10 + 24) = *((_DWORD *)v11 + 24); *((_WORD *)v10 + 50) = *((_WORD *)v11 + 50); *((_BYTE *)v10 + 102) = v11[102]; *(_OWORD *)Block = 0; v46.m128i_i64[0] = 4; v46.m128i_i64[1] = 15; strcpy((char *)Block, "Help"); SetupTriggerPopup::addHelpButton(a1, Block, &v31); SetupTriggerPopup::createMultiTriggerItemsDefault(a1); v14 = cocos2d::CCDirector::sharedDirector(v13); cocos2d::CCDirector::getWinSize(v14, &v34); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v38, v34 * 0.5, v35 * 0.5); v15 = 1; if ( (*(float (__fastcall **)(_BYTE *, __int64))(*(_QWORD *)a1 + 1168LL))(a1, 535) != 0.0 ) v15 = 6; Block[1] = nullptr; v46 = _mm_load_si128((const __m128i *)&xmmword_140836590); Block[0] = (void *)0x4449746567726154LL; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v30, (float)(v34 * 0.5) - 70.0, (float)(v35 * 0.5) + 45.0); v17 = (__int64)(a1 + 544); if ( !a1 ) v17 = 0; IDNameInput::create((__int64)a1, v17, v15, 51, (__int64)Block, v16, 1061997773, 6, 0, 0, 0); if ( v46.m128i_i64[1] > 0xFuLL ) { v18 = Block[0]; if ( (unsigned __int64)(v46.m128i_i64[1] + 1) >= 0x1000 ) { v18 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v18 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v18); } v30 = &v31; v32 = 14; v33 = 15; strcpy((char *)&v31, "Use\nControl ID"); HIBYTE(v31) = 0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v37, (float)(v34 * 0.5) + 45.0, (float)(v35 * 0.5) + 45.0); SetupTriggerPopup::createToggleValueControl((_DWORD)a1, 535, (unsigned int)&v31, v19, 0, 0, 0, 1065353216); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v36, v38[0], v38[1] - 20.0); v20 = (int)(*(float (__fastcall **)(_BYTE *, __int64))(*(_QWORD *)a1 + 1168LL))(a1, 580); v37 = Block; *(_OWORD *)Block = 0; v46.m128i_i64[0] = 4; v46.m128i_i64[1] = 15; strcpy((char *)Block, "Stop"); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v39, -75.0, 0.0); cocos2d::CCPoint::operator+(v36, &v30, v21); LOBYTE(v22) = v20 == 0; SetupTriggerPopup::createCustomToggleValueControl((_DWORD)a1, 0, v22, v23, (__int64)Block, (__int64)&v30, 1, 0, 0); v39 = &v31; v31 = 0; v32 = 5; v33 = 15; LODWORD(v31) = *(_DWORD *)"Pause"; WORD2(v31) = (unsigned __int8)aPause[4]; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v37, 0.0, 0.0); cocos2d::CCPoint::operator+(v36, &v30, v24); LOBYTE(v25) = v20 == 1; SetupTriggerPopup::createCustomToggleValueControl((_DWORD)a1, 1, v25, v26, (__int64)&v31, (__int64)&v30, 1, 0, 0); v39 = &v31; v31 = 0; v32 = 6; v33 = 15; strcpy((char *)&v31, "Resume"); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v37, 75.0, 0.0); cocos2d::CCPoint::operator+(v36, &v30, v27); LOBYTE(v28) = v20 == 2; SetupTriggerPopup::createCustomToggleValueControl((_DWORD)a1, 2, v28, v29, (__int64)&v31, (__int64)&v30, 1, 0, 0); (*(void (__fastcall **)(_BYTE *))(*(_QWORD *)a1 + 1136LL))(a1); a1[744] = 0; j_j_free(v6); return 1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source