// // SetupShaderEffectPopup::setupShockWave from 0x1002b3080 to 0x1002b4280 (4608 bytes) // // 1 xrefs: // > SetupShaderEffectPopup::init @ 0x1002b2ec7 // // 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:02 +0000 // _QWORD *__fastcall SetupShaderEffectPopup::setupShockWave(float *a1) { float *v1; // rbx __int64 v2; // r14 unsigned __int64 *v3; // r15 __int64 v4; // rax __m128 v5; // xmm0 unsigned int v6; // r14d __m128 v7; // xmm0 __m128 v8; // rt1 __m128 v9; // xmm0 __m128 v10; // xmm0 unsigned __int64 v12; // [rsp+38h] [rbp-298h] BYREF __int128 v13; // [rsp+40h] [rbp-290h] BYREF void *v14; // [rsp+50h] [rbp-280h] __int128 v15; // [rsp+58h] [rbp-278h] BYREF void *v16; // [rsp+68h] [rbp-268h] std::string v17; // [rsp+70h] [rbp-260h] BYREF std::string v18; // [rsp+88h] [rbp-248h] BYREF std::string v19; // [rsp+A0h] [rbp-230h] BYREF std::string v20; // [rsp+B8h] [rbp-218h] BYREF __int128 v21; // [rsp+D0h] [rbp-200h] BYREF void *v22; // [rsp+E0h] [rbp-1F0h] __int128 v23; // [rsp+E8h] [rbp-1E8h] BYREF void *v24; // [rsp+F8h] [rbp-1D8h] __int128 v25; // [rsp+100h] [rbp-1D0h] BYREF void *v26; // [rsp+110h] [rbp-1C0h] std::string v27; // [rsp+118h] [rbp-1B8h] BYREF char v28; // [rsp+130h] [rbp-1A0h] BYREF _BYTE v29[23]; // [rsp+131h] [rbp-19Fh] BYREF std::string v30; // [rsp+148h] [rbp-188h] BYREF std::string v31; // [rsp+160h] [rbp-170h] BYREF std::string v32; // [rsp+178h] [rbp-158h] BYREF std::string v33; // [rsp+190h] [rbp-140h] BYREF __int128 v34; // [rsp+1A8h] [rbp-128h] BYREF void *v35; // [rsp+1B8h] [rbp-118h] __int128 v36; // [rsp+1C0h] [rbp-110h] BYREF void *v37; // [rsp+1D0h] [rbp-100h] __int128 v38; // [rsp+1D8h] [rbp-F8h] BYREF void *v39; // [rsp+1E8h] [rbp-E8h] std::string v40; // [rsp+1F0h] [rbp-E0h] BYREF std::string v41; // [rsp+208h] [rbp-C8h] BYREF __int128 v42; // [rsp+220h] [rbp-B0h] BYREF void *v43; // [rsp+230h] [rbp-A0h] std::string v44; // [rsp+238h] [rbp-98h] BYREF std::string v45; // [rsp+250h] [rbp-80h] BYREF unsigned __int64 v46; // [rsp+268h] [rbp-68h] BYREF unsigned __int64 v47; // [rsp+270h] [rbp-60h] BYREF unsigned __int64 v48; // [rsp+278h] [rbp-58h] BYREF double v49[3]; // [rsp+280h] [rbp-50h] BYREF unsigned __int64 v50; // [rsp+298h] [rbp-38h] BYREF unsigned __int64 v51[6]; // [rsp+2A0h] [rbp-30h] BYREF v1 = a1; v28 = 30; strcpy(v29, "Setup ShockWave"); v2 = SetupTriggerPopup::addTitle((__int64)a1, (__int64)&v28); if ( (v28 & 1) != 0 ) operator delete(*(void **)&v29[15]); v3 = (unsigned __int64 *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 192LL))(v2); sub_100278250((float *)&v46, 0.0, 2.0); sub_100278350(v49, v3, &v46); (*(void (__fastcall **)(__int64, double *))(*(_QWORD *)v2 + 184LL))(v2, v49); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v2 + 160LL))(v2, 0.40000001); LOBYTE(v13) = 18; strcpy((char *)&v13 + 1, "ShockWave"); v16 = operator new(0x1D8u); *(_QWORD *)&v15 = 473; *((_QWORD *)&v15 + 1) = 471; strcpy( (char *)v16, "Speed defines how fast the shockwave effect happens.\n" "Strength sets how distorted objects get within the waves.\n" "Thickness is how big each wave is.\n" "MaxSize modifies the maximum size of the wave.\n" "TimeOff is offset in seconds before the effect begins.\n" "Target lets you set a specific object to do the effect around.\n" "Relative makes the effect follow screen movement.\n" "Invert makes the effect go towards the center."); SetupTriggerPopup::addHelpButton((__int64)a1, &v13, &v15, 1.0); if ( (v15 & 1) != 0 ) { a1 = (float *)v16; operator delete(v16); } if ( (v13 & 1) != 0 ) { a1 = (float *)v14; operator delete(v14); } v4 = cocos2d::CCDirector::sharedDirector(a1, &v13); cocos2d::CCDirector::getWinSize(&v46, v4); sub_100278250((float *)&v50, (float)(*(float *)&v46 * 0.5) + -10.0, (float)(*((float *)&v46 + 1) * 0.5) + 110.0); v30.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)12; strcpy(v30.__r_.__value_.__s.__data_, "Speed:"); sub_100278250((float *)v51, -100.0, 0.0); sub_100278350(v49, &v50, v51); SetupTriggerPopup::createValueControlAdvanced( (__int64)v1, 175, &v30, (__int64)v49, 0, 1u, 0.60000002, 0.0, 5.0, 6u, 0, 0, 0, 1u, 3u, 1); if ( (*(_BYTE *)&v30.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v30.__r_.__value_.__l.__data_); v17.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)18; strcpy(v17.__r_.__value_.__s.__data_, "Strength:"); sub_100278250((float *)v51, 100.0, 0.0); sub_100278350(v49, &v50, v51); SetupTriggerPopup::createValueControlAdvanced( (__int64)v1, 176, &v17, (__int64)v49, 0, 1u, 0.60000002, 0.0, 1.0, 6u, 0, 0, 0, 1u, 3u, 1); if ( (*(_BYTE *)&v17.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v17.__r_.__value_.__l.__data_); v31.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)20; strcpy(v31.__r_.__value_.__s.__data_, "Thickness:"); sub_100278250((float *)v51, -100.0, -25.0); sub_100278350(v49, &v50, v51); SetupTriggerPopup::createValueControlAdvanced( (__int64)v1, 180, &v31, (__int64)v49, 0, 1u, 0.60000002, 0.0, 5.0, 6u, 0, 0, 0, 1u, 3u, 1); if ( (*(_BYTE *)&v31.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v31.__r_.__value_.__l.__data_); v32.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)12; strcpy(v32.__r_.__value_.__s.__data_, "WaveW:"); sub_100278250((float *)v51, 100.0, -25.0); sub_100278350(v49, &v50, v51); SetupTriggerPopup::createValueControlAdvanced( (__int64)v1, 179, &v32, (__int64)v49, 0, 1u, 0.60000002, 0.0, 5.0, 6u, 0, 0, 0, 1u, 3u, 1); if ( (*(_BYTE *)&v32.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v32.__r_.__value_.__l.__data_); v33.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)14; strcpy(v33.__r_.__value_.__s.__data_, "FadeIn:"); sub_100278250((float *)v51, -100.0, -50.0); sub_100278350(v49, &v50, v51); SetupTriggerPopup::createValueControlAdvanced( (__int64)v1, 181, &v33, (__int64)v49, 0, 1u, 0.60000002, 0.0, 5.0, 6u, 0, 0, 0, 1u, 3u, 1); if ( (*(_BYTE *)&v33.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v33.__r_.__value_.__l.__data_); v18.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)16; strcpy(v18.__r_.__value_.__s.__data_, "FadeOut:"); sub_100278250((float *)v51, 100.0, -50.0); sub_100278350(v49, &v50, v51); SetupTriggerPopup::createValueControlAdvanced( (__int64)v1, 182, &v18, (__int64)v49, 0, 1u, 0.60000002, 0.0, 5.0, 6u, 0, 0, 0, 1u, 3u, 1); if ( (*(_BYTE *)&v18.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v18.__r_.__value_.__l.__data_); v19.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)16; strcpy(v19.__r_.__value_.__s.__data_, "TimeOff:"); sub_100278250((float *)v51, -100.0, -75.0); sub_100278350(v49, &v50, v51); SetupTriggerPopup::createValueControlAdvanced( (__int64)v1, 177, &v19, (__int64)v49, 0, 1u, 0.60000002, -10.0, 10.0, 6u, 0, 0, 0, 1u, 3u, 1); if ( (*(_BYTE *)&v19.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v19.__r_.__value_.__l.__data_); v20.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)16; strcpy(v20.__r_.__value_.__s.__data_, "MaxSize:"); sub_100278250((float *)v51, 100.0, -75.0); sub_100278350(v49, &v50, v51); SetupTriggerPopup::createValueControlAdvanced( (__int64)v1, 512, &v20, (__int64)v49, 0, 1u, 0.60000002, 0.0, 1.0, 6u, 0, 0, 0, 1u, 3u, 1); if ( (*(_BYTE *)&v20.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v20.__r_.__value_.__l.__data_); sub_100278250((float *)v51, (float)(*(float *)&v46 * 0.5) + -35.0, *((float *)&v50 + 1) + -100.0); LOBYTE(v34) = 12; strcpy((char *)&v34 + 1, "Invert"); sub_100278250((float *)&v47, -100.0, 0.0); sub_100278350(v49, v51, &v47); SetupTriggerPopup::createToggleValueControl((int)v1, 184, &v34, (__int64)v49, 0, 0, 0.80000001, 0); if ( (v34 & 1) != 0 ) operator delete(v35); LOBYTE(v36) = 12; strcpy((char *)&v36 + 1, "Target"); sub_100278250((float *)&v47, 0.0, 0.0); sub_100278350(v49, v51, &v47); SetupTriggerPopup::createToggleValueControl((int)v1, 188, &v36, (__int64)v49, 0, 0, 0.80000001, 0); if ( (v36 & 1) != 0 ) operator delete(v37); LOBYTE(v21) = 16; strcpy((char *)&v21 + 1, "Relative"); sub_100278250((float *)&v47, 100.0, 0.0); sub_100278350(v49, v51, &v47); SetupTriggerPopup::createToggleValueControl((int)v1, 514, &v21, (__int64)v49, 0, 0, 0.80000001, 0); if ( (v21 & 1) != 0 ) operator delete(v22); LOBYTE(v38) = 14; strcpy((char *)&v38 + 1, "Animate"); sub_100278250( (float *)v49, (float)((float)((float)(v1[183] * 0.5) + (float)(*(float *)&v46 * 0.5)) + -72.0) + -90.0, (float)((float)(*((float *)&v46 + 1) * 0.5) - (float)(0.5 * v1[184])) + 20.0); SetupTriggerPopup::createToggleValueControl((int)v1, 513, &v38, (__int64)v49, 0, 0, 1.0, 0); if ( (v38 & 1) != 0 ) operator delete(v39); v40.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)24; strcpy(v40.__r_.__value_.__s.__data_, "Screen\nOffX:"); sub_100278250((float *)&v47, -100.0, -125.0); sub_100278350(v49, &v50, &v47); SetupTriggerPopup::createValueControlAdvanced( (__int64)v1, 290, &v40, (__int64)v49, 0, 1u, 0.60000002, -1.0, 1.0, 6u, 0, 0, 0x65u, 1u, 3u, 1); if ( (*(_BYTE *)&v40.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v40.__r_.__value_.__l.__data_); v41.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)24; strcpy(v41.__r_.__value_.__s.__data_, "Screen\nOffY:"); sub_100278250((float *)&v47, 100.0, -125.0); sub_100278350(v49, &v50, &v47); SetupTriggerPopup::createValueControlAdvanced( (__int64)v1, 291, &v41, (__int64)v49, 0, 1u, 0.60000002, -1.0, 1.0, 6u, 0, 0, 0x65u, 1u, 3u, 1); if ( (*(_BYTE *)&v41.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v41.__r_.__value_.__l.__data_); sub_100278250((float *)&v47, (float)(*(float *)&v46 * 0.5) + -20.0, *((float *)&v50 + 1) + -125.0); LOBYTE(v49[0]) = 16; strcpy((char *)v49 + 1, "CenterID"); sub_100278250((float *)&v12, -100.0, 0.0); sub_100278350((double *)&v48, &v47, &v12); IDNameInput::create((_DWORD)v1, (_DWORD)v1 + 544, 1, 51, (unsigned int)v49, (unsigned int)&v48, 6, 100, 0, 1); if ( (LOBYTE(v49[0]) & 1) != 0 ) operator delete(*(void **)&v49[2]); LOBYTE(v23) = 4; strcpy((char *)&v23 + 1, "P1"); sub_100278250((float *)&v48, 20.0, 0.0); sub_100278350(v49, &v47, &v48); SetupTriggerPopup::createToggleValueControl((int)v1, 138, &v23, (__int64)v49, 0, 0, 0.80000001, 100); if ( (v23 & 1) != 0 ) operator delete(v24); LOBYTE(v25) = 4; strcpy((char *)&v25 + 1, "P2"); sub_100278250((float *)&v48, 80.0, 0.0); sub_100278350(v49, &v47, &v48); SetupTriggerPopup::createToggleValueControl((int)v1, 200, &v25, (__int64)v49, 0, 0, 0.80000001, 100); if ( (v25 & 1) != 0 ) operator delete(v26); LOBYTE(v42) = 12; strcpy((char *)&v42 + 1, "Follow"); sub_100278250((float *)&v48, 140.0, 0.0); sub_100278350(v49, &v47, &v48); SetupTriggerPopup::createToggleValueControl((int)v1, 190, &v42, (__int64)v49, 0, 0, 0.80000001, 100); if ( (v42 & 1) != 0 ) operator delete(v43); v44.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)12; strcpy(v44.__r_.__value_.__s.__data_, "Inner:"); sub_100278250((float *)&v48, -100.0, -150.0); sub_100278350(v49, &v50, &v48); SetupTriggerPopup::createValueControlAdvanced( (__int64)v1, 183, &v44, (__int64)v49, 0, 1u, 0.60000002, 0.0, 5.0, 6u, 0, 0, 0x66u, 1u, 3u, 1); if ( (*(_BYTE *)&v44.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v44.__r_.__value_.__l.__data_); v45.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)12; strcpy(v45.__r_.__value_.__s.__data_, "Outer:"); sub_100278250((float *)&v48, 100.0, -150.0); sub_100278350(v49, &v50, &v48); SetupTriggerPopup::createValueControlAdvanced( (__int64)v1, 191, &v45, (__int64)v49, 0, 1u, 0.60000002, 0.0, 5.0, 6u, 0, 0, 0x66u, 1u, 3u, 1); if ( (*(_BYTE *)&v45.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v45.__r_.__value_.__l.__data_); v27.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)18; strcpy(v27.__r_.__value_.__s.__data_, "FadeTime:"); sub_100278250((float *)&v48, -100.0, -185.0); sub_100278350(v49, &v50, &v48); SetupTriggerPopup::createValueControlAdvanced( (__int64)v1, 10, &v27, (__int64)v49, 0, 1u, 0.60000002, 0.0, 1.0, 6u, 0, 0, 0x67u, 1u, 2u, 0); if ( (*(_BYTE *)&v27.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v27.__r_.__value_.__l.__data_); sub_100278250((float *)&v48, 100.0, -170.0); sub_100278350(v49, &v50, &v48); v5 = (__m128)0x3F266666u; SetupTriggerPopup::createEasingControls((__int64)v1, (__int64)v49, 0, 0x67u, 0.64999998); *(double *)v5.i64 = (*(double (__fastcall **)(float *, __int64))(*(_QWORD *)v1 + 1464LL))(v1, 188); v6 = _mm_cvtsi128_si32((__m128i)_mm_cmpeq_ss(v5, (__m128)0LL)) & 1; v7 = _mm_cmpneq_ss(v5, (__m128)0LL); (*(void (__fastcall **)(float *, __int64, _QWORD))(*(_QWORD *)v1 + 1352LL))( v1, 100, _mm_cvtsi128_si32((__m128i)v7) & 1); (*(void (__fastcall **)(float *, __int64, _QWORD))(*(_QWORD *)v1 + 1352LL))(v1, 101, v6); *(double *)v7.i64 = (*(double (__fastcall **)(float *, __int64))(*(_QWORD *)v1 + 1464LL))(v1, 184); v8.i32[0] = 0; v9 = _mm_cmpneq_ss(v7, v8); (*(void (__fastcall **)(float *, __int64, _QWORD))(*(_QWORD *)v1 + 1352LL))( v1, 102, _mm_cvtsi128_si32((__m128i)v9) & 1); *(double *)v9.i64 = (*(double (__fastcall **)(float *, __int64))(*(_QWORD *)v1 + 1464LL))(v1, 513); v8.i32[0] = 0; v10 = _mm_cmpneq_ss(v9, v8); (*(void (__fastcall **)(float *, __int64, _QWORD))(*(_QWORD *)v1 + 1352LL))( v1, 103, _mm_cvtsi128_si32((__m128i)v10) & 1); *(double *)v10.i64 = (*(double (__fastcall **)(float *, __int64))(*(_QWORD *)v1 + 1464LL))(v1, 513); v8.i32[0] = 0; return SetupTriggerPopup::toggleDisableButtons((__int64)v1, _mm_cvtsi128_si32((__m128i)_mm_cmpneq_ss(v10, v8)) & 1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source