// // SetupShaderEffectPopup::setupBulge from 0x1405e69f0 to 0x1405e7313 (2339 bytes) // // 2 xrefs: // > SetupShaderEffectPopup::init @ 0x1405dfb15 // > @ 0x14092ee80 // // 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:02 +0000 // // Hidden C++ exception states: #wind=4 double __fastcall SetupShaderEffectPopup::setupBulge(float *a1) { _BYTE *v2; // r9 _BYTE *v3; // rcx const char *v4; // rdx __int64 v5; // r8 __int64 v6; // rcx __int64 v7; // rax __int64 v8; // rax __int64 v9; // rax __int64 v10; // rax int v11; // eax int v12; // eax __int64 v13; // rax __int64 v14; // rax __int64 v15; // rax __int64 v16; // rdx void *v17; // rcx __int64 v18; // rax __int64 v19; // rax bool v20; // di __int64 v21; // rax int v22; // r8d int v23; // r9d __int64 v25; // [rsp+80h] [rbp-88h] void **v26; // [rsp+88h] [rbp-80h] BYREF void **v27; // [rsp+90h] [rbp-78h] BYREF _BYTE v28[8]; // [rsp+98h] [rbp-70h] BYREF void **v29; // [rsp+A0h] [rbp-68h] BYREF float v30; // [rsp+A8h] [rbp-60h] BYREF float v31; // [rsp+ACh] [rbp-5Ch] __int128 v32; // [rsp+B0h] [rbp-58h] BYREF __int64 v33; // [rsp+C0h] [rbp-48h] __int64 v34; // [rsp+C8h] [rbp-40h] void *Block[2]; // [rsp+D0h] [rbp-38h] BYREF __m128i si128; // [rsp+E0h] [rbp-28h] si128.m128i_i64[0] = 11; si128.m128i_i64[1] = 15; Block[0] = (void *)0x7542207075746553LL; Block[1] = (void *)6645612; SetupTriggerPopup::addTitle(a1, Block); v26 = Block; *(_OWORD *)Block = 0; si128 = 0u; v2 = sub_14003D460(0x130u); Block[0] = v2; si128.m128i_i64[0] = 303; si128.m128i_i64[1] = 303; v3 = v2; v4 = "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."; v5 = 2; 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 += 128; *((_OWORD *)v3 - 1) = *((_OWORD *)v4 + 7); v4 += 128; --v5; } while ( v5 ); *(_OWORD *)v3 = *(_OWORD *)v4; *((_OWORD *)v3 + 1) = *((_OWORD *)v4 + 1); *((_QWORD *)v3 + 4) = *((_QWORD *)v4 + 4); *((_DWORD *)v3 + 10) = *((_DWORD *)v4 + 10); *((_WORD *)v3 + 22) = *((_WORD *)v4 + 22); v3[46] = v4[46]; v2[303] = 0; v32 = 0; v33 = 4; v34 = 15; strcpy((char *)&v32, "Help"); SetupTriggerPopup::addHelpButton(a1, &v32, Block); v7 = cocos2d::CCDirector::sharedDirector(v6); cocos2d::CCDirector::getWinSize(v7, &v30); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v28, v30 * 0.5, (float)(v31 * 0.5) + 85.0); v29 = Block; *(_OWORD *)Block = 0; si128.m128i_i64[0] = 6; si128.m128i_i64[1] = 15; strcpy((char *)Block, "Bulge:"); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v27, -100.0, 0.0); cocos2d::CCPoint::operator+(v28, &v26, v8); SetupTriggerPopup::createValueControl( (_DWORD)a1, 176, (unsigned int)Block, (unsigned int)&v26, 1060320051, 0, 1065353216); v27 = Block; Block[1] = nullptr; si128.m128i_i64[0] = 7; si128.m128i_i64[1] = 15; Block[0] = (void *)0x3A737569646152LL; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v29, -100.0, -50.0); cocos2d::CCPoint::operator+(v28, &v26, v9); SetupTriggerPopup::createValueControl( (_DWORD)a1, 180, (unsigned int)Block, (unsigned int)&v26, 1060320051, 0, 1065353216); v27 = Block; Block[1] = (void *)58; si128.m128i_i64[0] = 9; si128.m128i_i64[1] = 15; Block[0] = (void *)0x656D695465646146LL; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v29, -100.0, -100.0); cocos2d::CCPoint::operator+(v28, &v26, v10); SetupTriggerPopup::createValueControl((_DWORD)a1, 10, (unsigned int)Block, (unsigned int)&v26, 1060320051, 0, 0); v27 = (void **)&v32; v33 = 8; v34 = 15; v32 = 0x65766974616C6552uLL; cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v29, (float)((float)((float)(a1[183] * 0.5) + (float)(v30 * 0.5)) - 72.0) - 90.0, (float)((float)(v31 * 0.5) - (float)(a1[184] * 0.5)) + 20.0); SetupTriggerPopup::createToggleValueControl((_DWORD)a1, 514, (unsigned int)&v32, v11, 0, 0, 0, 1065353216); v27 = Block; *(_OWORD *)Block = 0; si128.m128i_i64[0] = 6; si128.m128i_i64[1] = 15; strcpy((char *)Block, "Target"); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v29, (float)(v30 * 0.5) - 140.0, (float)(v31 * 0.5) - 70.0); SetupTriggerPopup::createToggleValueControl((_DWORD)a1, 188, (unsigned int)Block, v12, 0, 0, 0, 1065353216); v27 = Block; si128.m128i_i64[0] = 12; si128.m128i_i64[1] = 15; strcpy((char *)Block, "Screen\nOffX:"); BYTE5(Block[1]) = 0; HIWORD(Block[1]) = 0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v29, 100.0, 0.0); cocos2d::CCPoint::operator+(v28, &v26, v13); SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 290, (unsigned int)Block, (unsigned int)&v26, 1060320051, 0, 1, 6, 0, -1082130432, 1065353216, 0, 101, 0, 2, 0, v26); v27 = Block; si128.m128i_i64[0] = 12; si128.m128i_i64[1] = 15; strcpy((char *)Block, "Screen\nOffY:"); BYTE5(Block[1]) = 0; HIWORD(Block[1]) = 0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v29, 100.0, -50.0); cocos2d::CCPoint::operator+(v28, &v26, v14); LOBYTE(v25) = 0; SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 291, (unsigned int)Block, (unsigned int)&v26, 1060320051, 0, 1, 6, 0, -1082130432, 1065353216, 0, 101, 0, 2, v25); Block[1] = (void *)58; si128 = _mm_load_si128((const __m128i *)&xmmword_1408365A0); Block[0] = (void *)0x44497265746E6543LL; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v27, 100.0, 0.0); cocos2d::CCPoint::operator+(v28, &v26, v15); v16 = (__int64)(a1 + 136); if ( !a1 ) v16 = 0; IDNameInput::create( (__int64)a1, v16, 1, 51, (__int64)Block, (const struct cocos2d::CCPoint *)&v26, 1060320051, 6, 100, 0, 0); if ( si128.m128i_i64[1] > 0xFuLL ) { v17 = Block[0]; if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 ) { v17 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v17 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v17); } v27 = (void **)&v32; v32 = 0; v33 = 2; v34 = 15; strcpy((char *)&v32, "P1"); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v29, 60.0, -40.0); cocos2d::CCPoint::operator+(v28, &v26, v18); SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 138, (unsigned int)&v32, (unsigned int)&v26, 0, 0, 100, 1065353216); v27 = (void **)&v32; v32 = 0; v33 = 2; v34 = 15; strcpy((char *)&v32, "P2"); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v29, 130.0, -40.0); cocos2d::CCPoint::operator+(v28, &v26, v19); SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 200, (unsigned int)&v32, (unsigned int)&v26, 0, 0, 100, 1065353216); v20 = (*(float (__fastcall **)(float *, __int64))(*(_QWORD *)a1 + 1168LL))(a1, 188) != 0.0; (*(void (__fastcall **)(float *, __int64, bool))(*(_QWORD *)a1 + 1088LL))(a1, 100, v20); (*(void (__fastcall **)(float *, __int64, bool))(*(_QWORD *)a1 + 1088LL))(a1, 101, !v20); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v27, 100.0, -100.0); cocos2d::CCPoint::operator+(v28, &v26, v21); return SetupTriggerPopup::createEasingControls((_DWORD)a1, (unsigned int)&v26, v22, v23, 0); }
GD Web Decomp Icon

GD Web Decomp

Raw Source