// // SetupShaderEffectPopup::setupChromaticGlitch from 0x1405e3a60 to 0x1405e430a (2218 bytes) // // 2 xrefs: // > SetupShaderEffectPopup::init @ 0x1405dfadd // > @ 0x14092ee44 // // 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:01 +0000 // // Hidden C++ exception states: #wind=3 double __fastcall SetupShaderEffectPopup::setupChromaticGlitch(__int64 a1) { _QWORD *v2; // r9 _QWORD *v3; // rcx const char *v4; // rdx __int64 v5; // r8 __int64 v6; // rcx __int64 v7; // rax __int64 v8; // rax __int64 v9; // rax __int64 v10; // rax __int64 v11; // rax __int64 v12; // rax __int64 v13; // rax __int64 v14; // rax __int64 v15; // rax __int64 v16; // rax int v17; // eax __int64 v18; // rax int v19; // r8d int v20; // r9d __int128 *v22; // [rsp+48h] [rbp-C0h] BYREF __int128 *v23; // [rsp+50h] [rbp-B8h] BYREF __int128 v24; // [rsp+58h] [rbp-B0h] BYREF __int64 v25; // [rsp+68h] [rbp-A0h] __int64 v26; // [rsp+70h] [rbp-98h] __int128 v27; // [rsp+78h] [rbp-90h] BYREF __int64 v28; // [rsp+88h] [rbp-80h] __int64 v29; // [rsp+90h] [rbp-78h] char v30; // [rsp+150h] [rbp+48h] BYREF float v31; // [rsp+158h] [rbp+50h] BYREF float v32; // [rsp+15Ch] [rbp+54h] __int128 *v33; // [rsp+160h] [rbp+58h] BYREF v24 = 0; *(_QWORD *)&v24 = sub_14003D460(0x20u); v25 = 19; v26 = 31; strcpy((char *)v24, "Setup Chroma Glitch"); SetupTriggerPopup::addTitle(a1, &v24); v33 = &v24; v24 = 0; v25 = 0; v26 = 0; v2 = sub_14003D460(0x1B0u); *(_QWORD *)&v24 = v2; v25 = 421; v26 = 431; v3 = v2; v4 = "Applies chromatic aberration in waves alongside glitch lines.\n" "Speed is how fast the wave effect happens.\n" "Strength is how big the waves are.\n" "LineThickness is how big the lines are.\n" "LineStrength is the opacity of the lines.\n" "RGBOff sets color offset.\n" "FadeTime is time until final state is reached.\n" "RelativePos changes the shape of the effect based on position."; v5 = 3; do { *(_OWORD *)v3 = *(_OWORD *)v4; *((_OWORD *)v3 + 1) = *((_OWORD *)v4 + 1); *((_OWORD *)v3 + 2) = *((_OWORD *)v4 + 2); *((_OWORD *)v3 + 3) = *((_OWORD *)v4 + 3); *((_OWORD *)v3 + 4) = *((_OWORD *)v4 + 4); *((_OWORD *)v3 + 5) = *((_OWORD *)v4 + 5); *((_OWORD *)v3 + 6) = *((_OWORD *)v4 + 6); v3 += 16; *((_OWORD *)v3 - 1) = *((_OWORD *)v4 + 7); v4 += 128; --v5; } while ( v5 ); *(_OWORD *)v3 = *(_OWORD *)v4; *((_OWORD *)v3 + 1) = *((_OWORD *)v4 + 1); *((_DWORD *)v3 + 8) = *((_DWORD *)v4 + 8); *((_BYTE *)v3 + 36) = v4[36]; *((_BYTE *)v2 + 421) = 0; v27 = 0; v28 = 4; v29 = 15; strcpy((char *)&v27, "Help"); SetupTriggerPopup::addHelpButton(a1, &v27, &v24); v7 = cocos2d::CCDirector::sharedDirector(v6); cocos2d::CCDirector::getWinSize(v7, &v31); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v30, v31 * 0.5, (float)(v32 * 0.5) + 100.0); v22 = &v24; v24 = 0; v25 = 6; v26 = 15; strcpy((char *)&v24, "Speed:"); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v23, -100.0, 0.0); cocos2d::CCPoint::operator+(&v30, &v33, v8); SetupTriggerPopup::createValueControl(a1, 175, (unsigned int)&v24, (unsigned int)&v33, 1058642330, 0, 1084227584); v23 = &v24; v25 = 7; v26 = 15; v24 = 0x3A66664F424752uLL; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v22, 100.0, 0.0); cocos2d::CCPoint::operator+(&v30, &v33, v9); SetupTriggerPopup::createValueControl(a1, 180, (unsigned int)&v24, (unsigned int)&v33, 1058642330, 0, 1084227584); v23 = &v24; *((_QWORD *)&v24 + 1) = 58; v25 = 9; v26 = 15; *(_QWORD *)&v24 = 0x6874676E65727453LL; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v22, -100.0, -40.0); cocos2d::CCPoint::operator+(&v30, &v33, v10); SetupTriggerPopup::createValueControl(a1, 176, (unsigned int)&v24, (unsigned int)&v33, 1058642330, 0, 1084227584); v23 = &v24; *((_QWORD *)&v24 + 1) = 58; v25 = 9; v26 = 15; *(_QWORD *)&v24 = 0x656D695465646146LL; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v22, 100.0, -40.0); cocos2d::CCPoint::operator+(&v30, &v33, v11); SetupTriggerPopup::createValueControl(a1, 10, (unsigned int)&v24, (unsigned int)&v33, 1058642330, 0, 1084227584); v23 = &v24; v25 = 14; v26 = 15; strcpy((char *)&v24, "LineThickness:"); HIBYTE(v24) = 0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v22, -100.0, -80.0); cocos2d::CCPoint::operator+(&v30, &v33, v12); SetupTriggerPopup::createValueControl(a1, 179, (unsigned int)&v24, (unsigned int)&v33, 1058642330, 0, 0x40000000); v23 = &v24; *((_QWORD *)&v24 + 1) = 58; v25 = 9; v26 = 15; *(_QWORD *)&v24 = 0x48746E656D676553LL; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v22, 100.0, -80.0); cocos2d::CCPoint::operator+(&v30, &v33, v13); SetupTriggerPopup::createValueControl(a1, 189, (unsigned int)&v24, (unsigned int)&v33, 1058642330, 0, 1084227584); v23 = &v24; v25 = 13; v26 = 15; strcpy((char *)&v24, "LineStrength:"); HIWORD(v24) = 0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v22, -100.0, -120.0); cocos2d::CCPoint::operator+(&v30, &v33, v14); SetupTriggerPopup::createValueControl(a1, 191, (unsigned int)&v24, (unsigned int)&v33, 1058642330, 0, 0x40000000); v23 = &v24; HIWORD(v24) = 0; v25 = 7; v26 = 15; qmemcpy(&v24, "Disabl", 6); *(_QWORD *)((char *)&v24 + 6) = (unsigned __int8)aDisable[6]; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v22, 110.0, -125.0); cocos2d::CCPoint::operator+(&v30, &v33, v15); SetupTriggerPopup::createToggleValueControl(a1, 192, (unsigned int)&v24, (unsigned int)&v33, 0, 0, 0, 1065353216); v23 = &v24; v25 = 12; v26 = 15; strcpy((char *)&v24, "Relative\nPos"); BYTE13(v24) = 0; HIWORD(v24) = 0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v22, 110.0, -155.0); cocos2d::CCPoint::operator+(&v30, &v33, v16); SetupTriggerPopup::createToggleValueControl(a1, 194, (unsigned int)&v24, (unsigned int)&v33, 0, 0, 0, 1065353216); v33 = &v27; v28 = 8; v29 = 15; v27 = 0x65766974616C6552uLL; cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v23, (float)((float)((float)(*(float *)(a1 + 732) * 0.5) + (float)(v31 * 0.5)) - 72.0) - 90.0, (float)((float)(v32 * 0.5) - (float)(*(float *)(a1 + 736) * 0.5)) + 20.0); SetupTriggerPopup::createToggleValueControl(a1, 514, (unsigned int)&v27, v17, 0, 0, 0, 1065353216); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v23, 0.0, -160.0); cocos2d::CCPoint::operator+(&v30, &v33, v18); return SetupTriggerPopup::createEasingControls(a1, (unsigned int)&v33, v19, v20, 0); }
GD Web Decomp Icon

GD Web Decomp

Raw Source