// // SetupShaderEffectPopup::setupBulge from 0x1002cc6b0 to 0x1002ccee8 (2104 bytes) // // 1 xrefs: // > SetupShaderEffectPopup::init @ 0x1002c61cd // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void __fastcall SetupShaderEffectPopup::setupBulge(SetupShaderEffectPopup *a1) { __m128 v1; // xmm0 char v2; // [rsp+40h] [rbp-170h] BYREF char v3[15]; // [rsp+41h] [rbp-16Fh] BYREF void *v4; // [rsp+50h] [rbp-160h] __int128 v5; // [rsp+58h] [rbp-158h] BYREF void *v6; // [rsp+68h] [rbp-148h] __int128 v7; // [rsp+70h] [rbp-140h] BYREF void *v8; // [rsp+80h] [rbp-130h] __int128 v9; // [rsp+88h] [rbp-128h] BYREF void *v10; // [rsp+98h] [rbp-118h] char v11; // [rsp+A0h] [rbp-110h] BYREF _BYTE v12[23]; // [rsp+A1h] [rbp-10Fh] BYREF __int128 v13; // [rsp+B8h] [rbp-F8h] BYREF void *v14; // [rsp+C8h] [rbp-E8h] __int128 v15; // [rsp+D0h] [rbp-E0h] BYREF void *v16; // [rsp+E0h] [rbp-D0h] char v17; // [rsp+E8h] [rbp-C8h] BYREF _BYTE v18[23]; // [rsp+E9h] [rbp-C7h] BYREF __int128 v19; // [rsp+100h] [rbp-B0h] BYREF void *v20; // [rsp+110h] [rbp-A0h] __int128 v21; // [rsp+118h] [rbp-98h] BYREF void *v22; // [rsp+128h] [rbp-88h] __int128 v23; // [rsp+130h] [rbp-80h] BYREF void *v24; // [rsp+140h] [rbp-70h] char v25; // [rsp+148h] [rbp-68h] BYREF _BYTE v26[23]; // [rsp+149h] [rbp-67h] BYREF char v27; // [rsp+160h] [rbp-50h] BYREF _BYTE v28[23]; // [rsp+161h] [rbp-4Fh] BYREF float v29; // [rsp+178h] [rbp-38h] BYREF float v30; // [rsp+17Ch] [rbp-34h] unsigned __int64 v31; // [rsp+180h] [rbp-30h] BYREF unsigned __int64 v32; // [rsp+188h] [rbp-28h] BYREF double v33[4]; // [rsp+190h] [rbp-20h] BYREF v17 = 22; strcpy(v18, "Setup Bulge"); SetupTriggerPopup::addTitle((__int64)a1, (__int64)&v17); if ( (v17 & 1) != 0 ) operator delete(*(void **)&v18[15]); v2 = 8; strcpy(v3, "Help"); v6 = operator new(0x130u); *(_QWORD *)&v5 = 305; *((_QWORD *)&v5 + 1) = 303; strcpy( (char *)v6, "Bulges the screen.\n" "Bulge defines how strong the effect is.\n" "Radius is how large the effect is.\n" "Screen OffX and OffY offsets the center of the effect.\n" "FadeTime is time until final state is reached.\n" "Target lets you set a specific target object as the center."); SetupTriggerPopup::addHelpButton((__int64)a1, (__int64)&v2, &v5, (__m128)0x3F800000u); if ( (v5 & 1) != 0 ) operator delete(v6); if ( (v2 & 1) != 0 ) operator delete(v4); cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v29); sub_10028CBE0((float *)&v31, v29 * 0.5, (float)(v30 * 0.5) + 85.0); LOBYTE(v19) = 12; strcpy((char *)&v19 + 1, "Bulge:"); sub_10028CBE0((float *)&v32, -100.0, 0.0); sub_10028CCE0(v33, &v31, &v32); SetupTriggerPopup::createValueControl((int)a1, 176, &v19, COERCE_DOUBLE(1060320051), 0.0, 1.0); if ( (v19 & 1) != 0 ) operator delete(v20); LOBYTE(v21) = 14; strcpy((char *)&v21 + 1, "Radius:"); sub_10028CBE0((float *)&v32, -100.0, -50.0); sub_10028CCE0(v33, &v31, &v32); SetupTriggerPopup::createValueControl((int)a1, 180, &v21, COERCE_DOUBLE(1060320051), 0.0, 1.0); if ( (v21 & 1) != 0 ) operator delete(v22); LOBYTE(v7) = 18; strcpy((char *)&v7 + 1, "FadeTime:"); sub_10028CBE0((float *)&v32, -100.0, -100.0); sub_10028CCE0(v33, &v31, &v32); SetupTriggerPopup::createValueControl((int)a1, 10, &v7, COERCE_DOUBLE(1060320051), 0.0, 0.0); if ( (v7 & 1) != 0 ) operator delete(v8); LOBYTE(v9) = 16; strcpy((char *)&v9 + 1, "Relative"); sub_10028CBE0( (float *)v33, (float)((float)((float)(a1->m_width * 0.5) + (float)(v29 * 0.5)) + -72.0) + -90.0, (float)((float)(v30 * 0.5) - (float)(a1->m_height * 0.5)) + 20.0); SetupTriggerPopup::createToggleValueControl((int)a1, 514, &v9, 1.0, (__int64)v33, 0, 0, 0); if ( (v9 & 1) != 0 ) operator delete(v10); LOBYTE(v23) = 12; strcpy((char *)&v23 + 1, "Target"); sub_10028CBE0((float *)v33, (float)(v29 * 0.5) + -140.0, (float)(0.5 * v30) + -70.0); SetupTriggerPopup::createToggleValueControl((int)a1, 188, &v23, 1.0, (__int64)v33, 0, 0, 0); if ( (v23 & 1) != 0 ) operator delete(v24); v25 = 24; strcpy(v26, "Screen\nOffX:"); sub_10028CBE0((float *)&v32, 100.0, 0.0); sub_10028CCE0(v33, &v31, &v32); SetupTriggerPopup::createValueControlAdvanced( (__int64)a1, 290, (__int64)&v25, (float *)v33, 0, Float, 0.69999999, -1.0, 1.0, 6, 0, 0, 101, 0, 2, 0); if ( (v25 & 1) != 0 ) operator delete(*(void **)&v26[15]); v27 = 24; strcpy(v28, "Screen\nOffY:"); sub_10028CBE0((float *)&v32, 100.0, -50.0); sub_10028CCE0(v33, &v31, &v32); SetupTriggerPopup::createValueControlAdvanced( (__int64)a1, 291, (__int64)&v27, (float *)v33, 0, Float, 0.69999999, -1.0, 1.0, 6, 0, 0, 101, 0, 2, 0); if ( (v27 & 1) != 0 ) operator delete(*(void **)&v28[15]); v11 = 18; strcpy(v12, "CenterID:"); sub_10028CBE0((float *)&v32, 100.0, 0.0); sub_10028CCE0(v33, &v31, &v32); SetupTriggerPopup::createValueControlAdvanced( (__int64)a1, 51, (__int64)&v11, (float *)v33, 1, Int, 0.69999999, 0.0, 1.0, 6, 1, 0, 100, 0, 2, 0); if ( (v11 & 1) != 0 ) operator delete(*(void **)&v12[15]); LOBYTE(v13) = 4; strcpy((char *)&v13 + 1, "P1"); sub_10028CBE0((float *)&v32, 60.0, -40.0); sub_10028CCE0(v33, &v31, &v32); SetupTriggerPopup::createToggleValueControl((int)a1, 138, &v13, 1.0, (__int64)v33, 0, 0, 100); if ( (v13 & 1) != 0 ) operator delete(v14); LOBYTE(v15) = 4; strcpy((char *)&v15 + 1, "P2"); sub_10028CBE0((float *)&v32, 130.0, -40.0); sub_10028CCE0(v33, &v31, &v32); v1 = (__m128)0x3F800000u; SetupTriggerPopup::createToggleValueControl((int)a1, 200, &v15, 1.0, (__int64)v33, 0, 0, 100); if ( (v15 & 1) != 0 ) operator delete(v16); *(double *)v1.i64 = ((double (__fastcall *)(SetupShaderEffectPopup *, __int64))a1->getValue)(a1, 188); ((void (__fastcall *)(SetupShaderEffectPopup *, __int64, _QWORD))a1->toggleGroup)( a1, 100, _mm_cvtsi128_si32((__m128i)_mm_cmpneq_ss(v1, (__m128)0LL)) & 1); ((void (__fastcall *)(SetupShaderEffectPopup *, __int64, _QWORD))a1->toggleGroup)( a1, 101, _mm_cvtsi128_si32((__m128i)_mm_cmpeq_ss(v1, (__m128)0LL)) & 1); sub_10028CBE0((float *)&v32, 100.0, -100.0); sub_10028CCE0(v33, &v31, &v32); SetupTriggerPopup::createEasingControls(a1, (cocos2d::CCPoint)1061997773LL, -100.0, (int)v33, 0); }
GD Web Decomp Icon

GD Web Decomp

Raw Source