// // SetupShaderEffectPopup::setupInvertColor from 0x1002bb0a0 to 0x1002bb62f (1423 bytes) // // 1 xrefs: // > SetupShaderEffectPopup::init @ 0x1002b2f0d // // 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:04 +0000 // __int64 __fastcall SetupShaderEffectPopup::setupInvertColor(void *a1) { __int64 v1; // rbx __int64 v2; // rax __int128 v4; // [rsp+10h] [rbp-140h] BYREF void *v5; // [rsp+20h] [rbp-130h] __int128 v6; // [rsp+28h] [rbp-128h] BYREF void *v7; // [rsp+38h] [rbp-118h] __int128 v8; // [rsp+40h] [rbp-110h] BYREF void *v9; // [rsp+50h] [rbp-100h] __int128 v10; // [rsp+58h] [rbp-F8h] BYREF void *v11; // [rsp+68h] [rbp-E8h] __int128 v12; // [rsp+70h] [rbp-E0h] BYREF void *v13; // [rsp+80h] [rbp-D0h] __int128 v14; // [rsp+88h] [rbp-C8h] BYREF void *v15; // [rsp+98h] [rbp-B8h] __int128 v16; // [rsp+A0h] [rbp-B0h] BYREF void *v17; // [rsp+B0h] [rbp-A0h] __int128 v18; // [rsp+B8h] [rbp-98h] BYREF void *v19; // [rsp+C8h] [rbp-88h] float v20[2]; // [rsp+D0h] [rbp-80h] BYREF void *v21[3]; // [rsp+D8h] [rbp-78h] BYREF __int128 v22; // [rsp+F0h] [rbp-60h] BYREF void *v23; // [rsp+100h] [rbp-50h] __int128 v24; // [rsp+108h] [rbp-48h] BYREF void *v25; // [rsp+118h] [rbp-38h] unsigned __int64 v26; // [rsp+120h] [rbp-30h] BYREF double v27; // [rsp+128h] [rbp-28h] BYREF unsigned __int64 v28[4]; // [rsp+130h] [rbp-20h] BYREF v1 = (__int64)a1; strcpy((char *)v21, "$Setup Invert Color"); SetupTriggerPopup::addTitle((__int64)a1, (__int64)v21); if ( ((__int64)v21[0] & 1) != 0 ) operator delete(v21[2]); LOBYTE(v4) = 8; strcpy((char *)&v4 + 1, "Help"); v7 = operator new(0x1B0u); *(_QWORD *)&v6 = 433; *((_QWORD *)&v6 + 1) = 429; strcpy( (char *)v7, "Inverts colors on the screen.\n" "Target is how much of the filter to apply.\n" "FadeTime is time until final state is reached.\n" "R, G, and B let you customize the filter color.\n" "EditRGB allows editing the above values.\n" "TweenRGB makes transitions smoother.\n" "ClampRGB limits these values to 1.\n" "Tip: Use ClampRGB and set an R, G or B value\n" "over 1 to avoid the middle grey effect."); SetupTriggerPopup::addHelpButton((__int64)a1, &v4, &v6, 1.0); if ( (v6 & 1) != 0 ) { a1 = v7; operator delete(v7); } if ( (v4 & 1) != 0 ) { a1 = v5; operator delete(v5); } v2 = cocos2d::CCDirector::sharedDirector(a1, &v4); cocos2d::CCDirector::getWinSize(v20, v2); sub_100278250((float *)&v26, v20[0] * 0.5, (float)(0.5 * v20[1]) + 90.0); LOBYTE(v22) = 14; strcpy((char *)&v22 + 1, "Target:"); sub_100278250((float *)v28, -100.0, 0.0); sub_100278350(&v27, &v26, v28); SetupTriggerPopup::createValueControl(v1, 0xB0u, &v22, (__int64)&v27, 0.69999999, 0.0, 0.0); if ( (v22 & 1) != 0 ) operator delete(v23); LOBYTE(v8) = 18; strcpy((char *)&v8 + 1, "FadeTime:"); sub_100278250((float *)v28, 100.0, 0.0); sub_100278350(&v27, &v26, v28); SetupTriggerPopup::createValueControl(v1, 0xAu, &v8, (__int64)&v27, 0.69999999, 0.0, 0.0); if ( (v8 & 1) != 0 ) operator delete(v9); LOBYTE(v10) = 4; strcpy((char *)&v10 + 1, "R:"); sub_100278250((float *)v28, -130.0, -50.0); sub_100278350(&v27, &v26, v28); SetupTriggerPopup::createValueControl(v1, 0xB3u, &v10, (__int64)&v27, 0.60000002, 0.0, 0.0); if ( (v10 & 1) != 0 ) operator delete(v11); LOBYTE(v12) = 4; strcpy((char *)&v12 + 1, "G:"); sub_100278250((float *)v28, 0.0, -50.0); sub_100278350(&v27, &v26, v28); SetupTriggerPopup::createValueControl(v1, 0xB4u, &v12, (__int64)&v27, 0.60000002, 0.0, 0.0); if ( (v12 & 1) != 0 ) operator delete(v13); LOBYTE(v14) = 4; strcpy((char *)&v14 + 1, "B:"); sub_100278250((float *)v28, 130.0, -50.0); sub_100278350(&v27, &v26, v28); SetupTriggerPopup::createValueControl(v1, 0xBDu, &v14, (__int64)&v27, 0.60000002, 0.0, 0.0); if ( (v14 & 1) != 0 ) operator delete(v15); LOBYTE(v24) = 14; strcpy((char *)&v24 + 1, "EditRGB"); sub_100278250((float *)v28, -130.0, -105.0); sub_100278350(&v27, &v26, v28); SetupTriggerPopup::createToggleValueControl(v1, 188, &v24, (__int64)&v27, 0, 0, 1.0, 0); if ( (v24 & 1) != 0 ) operator delete(v25); LOBYTE(v16) = 16; strcpy((char *)&v16 + 1, "TweenRGB"); sub_100278250((float *)v28, -30.0, -105.0); sub_100278350(&v27, &v26, v28); SetupTriggerPopup::createToggleValueControl(v1, 190, &v16, (__int64)&v27, 0, 0, 1.0, 0); if ( (v16 & 1) != 0 ) operator delete(v17); LOBYTE(v18) = 16; strcpy((char *)&v18 + 1, "ClampRGB"); sub_100278250((float *)v28, 70.0, -105.0); sub_100278350(&v27, &v26, v28); SetupTriggerPopup::createToggleValueControl(v1, 194, &v18, (__int64)&v27, 0, 0, 1.0, 0); if ( (v18 & 1) != 0 ) operator delete(v19); sub_100278250((float *)v28, 0.0, -140.0); sub_100278350(&v27, &v26, v28); return SetupTriggerPopup::createEasingControls(v1, (__int64)&v27, 0, 0, 0.80000001); }
GD Web Decomp Icon

GD Web Decomp

Raw Source