// // SetupShaderEffectPopup::setupMotionBlur from 0x1405e5e30 to 0x1405e69e8 (3000 bytes) // // 2 xrefs: // > SetupShaderEffectPopup::init @ 0x1405dfb0b // > @ 0x14092ee74 // // 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::setupMotionBlur(__int64 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 __int64 v11; // rax __int64 v12; // rax __int64 v13; // rax __int64 v14; // rax __int64 v15; // rax __int64 v16; // rax int v17; // eax __int64 v18; // rax __int64 v19; // rdx void *v20; // rcx __int64 v21; // rax __int64 v22; // rax __int64 v23; // rax __int64 v24; // rax __int64 v25; // rax __int64 v26; // rax int v27; // r8d int v28; // r9d void **v30; // [rsp+88h] [rbp-80h] BYREF _BYTE v31[8]; // [rsp+90h] [rbp-78h] BYREF void **v32; // [rsp+98h] [rbp-70h] BYREF __int128 *v33; // [rsp+A0h] [rbp-68h] BYREF __int128 v34; // [rsp+A8h] [rbp-60h] BYREF __int64 v35; // [rsp+B8h] [rbp-50h] __int64 v36; // [rsp+C0h] [rbp-48h] float v37; // [rsp+C8h] [rbp-40h] BYREF float v38; // [rsp+CCh] [rbp-3Ch] void *Block[2]; // [rsp+D0h] [rbp-38h] BYREF __m128i si128; // [rsp+E0h] [rbp-28h] *(_OWORD *)Block = 0; Block[0] = sub_14003D460(0x20u); si128.m128i_i64[0] = 17; si128.m128i_i64[1] = 31; strcpy((char *)Block[0], "Setup Motion Blur"); SetupTriggerPopup::addTitle(a1, Block); v30 = Block; *(_OWORD *)Block = 0; si128 = 0u; v2 = sub_14003D460(0x1C0u); Block[0] = v2; si128.m128i_i64[0] = 446; si128.m128i_i64[1] = 447; v3 = v2; v4 = "Applies motion blur.\n" "TargetX and TargetY is how much blur to apply to each axis.\n" "FadeTime is time until final state is reached.\n" "Fade sets how much blur fades out at the edges.\n" "DualDir blurs in both directions instead of the default.\n" "Target lets you set a specific target object as the reference.\n" "You can also reference the player using P1 and P2 or the center of the screen using C."; 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 += 128; *((_OWORD *)v3 - 1) = *((_OWORD *)v4 + 7); v4 += 128; --v5; } while ( v5 ); *(_OWORD *)v3 = *(_OWORD *)v4; *((_OWORD *)v3 + 1) = *((_OWORD *)v4 + 1); *((_OWORD *)v3 + 2) = *((_OWORD *)v4 + 2); *((_QWORD *)v3 + 6) = *((_QWORD *)v4 + 6); *((_DWORD *)v3 + 14) = *((_DWORD *)v4 + 14); *((_WORD *)v3 + 30) = *((_WORD *)v4 + 30); v2[446] = 0; v34 = 0; v35 = 4; v36 = 15; strcpy((char *)&v34, "Help"); SetupTriggerPopup::addHelpButton(a1, &v34, Block); v7 = cocos2d::CCDirector::sharedDirector(v6); cocos2d::CCDirector::getWinSize(v7, &v37); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v31, v37 * 0.5, (float)(v38 * 0.5) + 95.0); v33 = &v34; v35 = 8; v36 = 15; v34 = 0x3A58746567726154uLL; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v32, -130.0, 0.0); cocos2d::CCPoint::operator+(v31, &v30, v8); SetupTriggerPopup::createValueControl(a1, 180, (unsigned int)&v34, (unsigned int)&v30, 1058642330, 0, 0); v32 = (void **)&v34; v35 = 8; v36 = 15; v34 = 0x3A59746567726154uLL; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v33, 0.0, 0.0); cocos2d::CCPoint::operator+(v31, &v30, v9); SetupTriggerPopup::createValueControl(a1, 189, (unsigned int)&v34, (unsigned int)&v30, 1058642330, 0, 0); v32 = Block; Block[1] = (void *)58; si128.m128i_i64[0] = 9; si128.m128i_i64[1] = 15; Block[0] = (void *)0x656D695465646146LL; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v33, -130.0, -50.0); cocos2d::CCPoint::operator+(v31, &v30, v10); SetupTriggerPopup::createValueControl(a1, 10, (unsigned int)Block, (unsigned int)&v30, 1058642330, 0, 0); v32 = Block; *(_OWORD *)Block = 0; si128.m128i_i64[0] = 5; si128.m128i_i64[1] = 15; strcpy((char *)Block, "Use\nX"); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v33, -45.0, -105.0); cocos2d::CCPoint::operator+(v31, &v30, v11); SetupTriggerPopup::createToggleValueControl(a1, 188, (unsigned int)Block, (unsigned int)&v30, 0, 0, 0, 1065353216); v32 = Block; *(_OWORD *)Block = 0; si128.m128i_i64[0] = 5; si128.m128i_i64[1] = 15; strcpy((char *)Block, "Use\nY"); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v33, 20.0, -105.0); cocos2d::CCPoint::operator+(v31, &v30, v12); SetupTriggerPopup::createToggleValueControl(a1, 190, (unsigned int)Block, (unsigned int)&v30, 0, 0, 0, 1065353216); v32 = Block; Block[1] = (void *)14969; si128.m128i_i64[0] = 10; si128.m128i_i64[1] = 15; Block[0] = (void *)0x7469736E65746E49LL; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v33, -130.0, -100.0); cocos2d::CCPoint::operator+(v31, &v30, v13); SetupTriggerPopup::createValueControl(a1, 176, (unsigned int)Block, (unsigned int)&v30, 1058642330, 0, 1084227584); v32 = Block; *(_OWORD *)Block = 0; si128.m128i_i64[0] = 5; si128.m128i_i64[1] = 15; strcpy((char *)Block, "Fade:"); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v33, 0.0, -50.0); cocos2d::CCPoint::operator+(v31, &v30, v14); SetupTriggerPopup::createValueControl(a1, 181, (unsigned int)Block, (unsigned int)&v30, 1058642330, 0, 1065353216); v32 = Block; si128.m128i_i64[0] = 12; si128.m128i_i64[1] = 15; strcpy((char *)Block, "Ref\nChannel:"); BYTE5(Block[1]) = 0; HIWORD(Block[1]) = 0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v33, 130.0, 0.0); cocos2d::CCPoint::operator+(v31, &v30, v15); SetupTriggerPopup::createValueControlAdvanced( a1, 71, (unsigned int)Block, (unsigned int)&v30, 1058642330, 1, 2, 6, 0, 0, 0, 0, 0, 0, 2, 0, v30); v32 = Block; si128.m128i_i64[0] = 12; si128.m128i_i64[1] = 15; strcpy((char *)Block, "Follow\nEase:"); BYTE5(Block[1]) = 0; HIWORD(Block[1]) = 0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v33, 130.0, -50.0); cocos2d::CCPoint::operator+(v31, &v30, v16); SetupTriggerPopup::createValueControl(a1, 191, (unsigned int)Block, (unsigned int)&v30, 1058642330, 0, 1092616192); v32 = (void **)&v34; v35 = 8; v36 = 15; v34 = 0x65766974616C6552uLL; cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v33, (float)((float)((float)(*(float *)(a1 + 732) * 0.5) + (float)(v37 * 0.5)) - 72.0) - 90.0, (float)((float)(v38 * 0.5) - (float)(*(float *)(a1 + 736) * 0.5)) + 20.0); SetupTriggerPopup::createToggleValueControl(a1, 514, (unsigned int)&v34, v17, 0, 0, 0, 1065353216); Block[1] = (void *)58; si128 = _mm_load_si128((const __m128i *)&xmmword_1408365A0); Block[0] = (void *)0x4449746567726154LL; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v32, 130.0, -115.0); cocos2d::CCPoint::operator+(v31, &v30, v18); v19 = a1 + 544; if ( !a1 ) v19 = 0; IDNameInput::create(a1, v19, 1, 51, (__int64)Block, (const struct cocos2d::CCPoint *)&v30, 1058642330, 6, 0, 0, 0); if ( si128.m128i_i64[1] > 0xFuLL ) { v20 = Block[0]; if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 ) { v20 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v20 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v20); } v32 = (void **)&v34; v34 = 0; v35 = 2; v36 = 15; strcpy((char *)&v34, "P1"); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v33, 100.0, -150.0); cocos2d::CCPoint::operator+(v31, &v30, v21); SetupTriggerPopup::createToggleValueControl(a1, 138, (unsigned int)&v34, (unsigned int)&v30, 0, 0, 0, 1065353216); v32 = (void **)&v34; v34 = 0; v35 = 2; v36 = 15; strcpy((char *)&v34, "P2"); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v33, 160.0, -150.0); cocos2d::CCPoint::operator+(v31, &v30, v22); SetupTriggerPopup::createToggleValueControl(a1, 200, (unsigned int)&v34, (unsigned int)&v30, 0, 0, 0, 1065353216); v32 = (void **)&v34; v34 = 0; v35 = 1; v36 = 15; LOWORD(v34) = 67; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v33, 130.0, -180.0); cocos2d::CCPoint::operator+(v31, &v30, v23); SetupTriggerPopup::createToggleValueControl(a1, 201, (unsigned int)&v34, (unsigned int)&v30, 0, 0, 0, 1065353216); v32 = Block; Block[1] = nullptr; si128.m128i_i64[0] = 7; si128.m128i_i64[1] = 15; Block[0] = (void *)0x7269446C617544LL; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v33, 0.0, -140.0); cocos2d::CCPoint::operator+(v31, &v30, v24); SetupTriggerPopup::createToggleValueControl(a1, 194, (unsigned int)Block, (unsigned int)&v30, 0, 0, 0, 1063675494); v32 = Block; Block[1] = (void *)121; si128.m128i_i64[0] = 9; si128.m128i_i64[1] = 15; Block[0] = (void *)0x6C6E4F7974706D45LL; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v33, 0.0, -170.0); cocos2d::CCPoint::operator+(v31, &v30, v25); SetupTriggerPopup::createToggleValueControl(a1, 515, (unsigned int)Block, (unsigned int)&v30, 0, 0, 0, 1063675494); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v32, -110.0, -143.0); cocos2d::CCPoint::operator+(v31, &v30, v26); return SetupTriggerPopup::createEasingControls(a1, (unsigned int)&v30, v27, v28, 0); }
GD Web Decomp Icon

GD Web Decomp

Raw Source