// // SetupDashRingPopup::init from 0x100587060 to 0x100587628 (1480 bytes) // // 1 xrefs: // > SetupDashRingPopup::create @ 0x10058701e // // 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 // bool __fastcall SetupDashRingPopup::init(SetupDashRingPopup *a1, DashRingObject *a2, cocos2d::CCArray *a3) { bool result; // al bool v4; // r15 char v5; // [rsp+38h] [rbp-128h] BYREF _BYTE v6[23]; // [rsp+39h] [rbp-127h] BYREF char v7; // [rsp+50h] [rbp-110h] BYREF char v8[15]; // [rsp+51h] [rbp-10Fh] BYREF void *v9; // [rsp+60h] [rbp-100h] char v10; // [rsp+68h] [rbp-F8h] BYREF char v11[15]; // [rsp+69h] [rbp-F7h] BYREF void *v12; // [rsp+78h] [rbp-E8h] __int128 v13; // [rsp+80h] [rbp-E0h] BYREF void *v14; // [rsp+90h] [rbp-D0h] char v15[16]; // [rsp+98h] [rbp-C8h] BYREF void *v16; // [rsp+A8h] [rbp-B8h] char v17; // [rsp+B0h] [rbp-B0h] BYREF _BYTE v18[23]; // [rsp+B1h] [rbp-AFh] BYREF _BYTE v19[24]; // [rsp+C8h] [rbp-98h] BYREF char v20; // [rsp+E0h] [rbp-80h] BYREF _BYTE v21[23]; // [rsp+E1h] [rbp-7Fh] BYREF __int128 v22; // [rsp+F8h] [rbp-68h] BYREF void *v23; // [rsp+108h] [rbp-58h] __int128 v24; // [rsp+110h] [rbp-50h] BYREF void *v25; // [rsp+120h] [rbp-40h] float v26; // [rsp+128h] [rbp-38h] BYREF float v27; // [rsp+12Ch] [rbp-34h] unsigned __int64 v28; // [rsp+130h] [rbp-30h] BYREF unsigned __int64 v29; // [rsp+138h] [rbp-28h] BYREF double v30[4]; // [rsp+140h] [rbp-20h] BYREF result = SetupTriggerPopup::init(a1, a2, a3, 320.0, 240.0, 1); if ( result ) { v4 = result; SetupTriggerPopup::preSetup(a1); v5 = 16; strcpy(v6, "Dash Orb"); SetupTriggerPopup::addTitle((__int64)a1, (__int64)&v5); if ( (v5 & 1) != 0 ) operator delete(*(void **)&v6[15]); v7 = 4; strcpy(v8, "OK"); SetupTriggerPopup::addCloseButton((__int64)a1, (__int64)&v7); if ( (v7 & 1) != 0 ) operator delete(v9); v10 = 8; strcpy(v11, "Help"); v14 = operator new(0x120u); *(_QWORD *)&v13 = 289; *((_QWORD *)&v13 + 1) = 281; strcpy( (char *)v14, "Speed changes the speed of the dash.\n" "End Boost is the force applied when the dash stops.\n" "Max Duration will end the dash automatically after this time.\n" "Allow Collide makes the dash not end on collision.\n" "Stop Slide will limit the end momentum."); SetupTriggerPopup::addHelpButton((__int64)a1, (__int64)&v10, &v13, (__m128)0x3F800000u); if ( (v13 & 1) != 0 ) operator delete(v14); if ( (v10 & 1) != 0 ) operator delete(v12); cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v26); sub_10028CBE0((float *)&v28, v26 * 0.5, (float)(v27 * 0.5) + 70.0); strcpy(v15, "\nSpeed"); sub_10028CBE0((float *)&v29, 0.0, 0.0); sub_10028CCE0(v30, &v28, &v29); SetupTriggerPopup::createValueControlAdvanced( (__int64)a1, 586, (__int64)v15, (float *)v30, 0, Float, 0.80000001, 0.0, 2.0, 6, 0, 0, 0, 1, 2, 0); if ( (v15[0] & 1) != 0 ) operator delete(v16); v17 = 18; strcpy(v18, "End Boost"); sub_10028CBE0((float *)&v29, 0.0, -40.0); sub_10028CCE0(v30, &v28, &v29); SetupTriggerPopup::createValueControlAdvanced( (__int64)a1, 588, (__int64)&v17, (float *)v30, 0, Float, 0.80000001, 0.0, 2.0, 6, 0, 0, 0, 1, 2, 0); if ( (v17 & 1) != 0 ) operator delete(*(void **)&v18[15]); v20 = 24; strcpy(v21, "Max Duration"); sub_10028CBE0((float *)&v29, 0.0, -80.0); sub_10028CCE0(v30, &v28, &v29); SetupTriggerPopup::createValueControlAdvanced( (__int64)a1, 590, (__int64)&v20, (float *)v30, 0, Float, 0.80000001, 0.0, 2.0, 6, 0, 0, 0, 1, 2, 0); if ( (v20 & 1) != 0 ) operator delete(*(void **)&v21[15]); LOBYTE(v22) = 26; strcpy((char *)&v22 + 1, "Allow\nCollide"); sub_10028CBE0((float *)&v29, -80.0, -120.0); sub_10028CCE0(v30, &v28, &v29); SetupTriggerPopup::createToggleValueControl((int)a1, 587, &v22, 1.0, (__int64)v30, 0, 0, 0); if ( (v22 & 1) != 0 ) operator delete(v23); LOBYTE(v24) = 20; strcpy((char *)&v24 + 1, "Stop\nSlide"); sub_10028CBE0((float *)&v29, 20.0, -120.0); sub_10028CCE0(v30, &v28, &v29); SetupTriggerPopup::createToggleValueControl((int)a1, 589, &v24, 1.0, (__int64)v30, 0, 0, 0); if ( (v24 & 1) != 0 ) operator delete(v25); strcpy(v19, "\"NO Multi\nActivate"); sub_10028CBE0( (float *)v30, (float)((float)(v26 * 0.5) - (float)(a1->m_width * 0.5)) + 20.0, (float)((float)(v27 * 0.5) - (float)(0.5 * a1->m_height)) + 25.0); SetupTriggerPopup::createToggleValueControl((int)a1, 444, (__int128 *)v19, 1.0, (__int64)v30, 0, 0, 0); if ( (v19[0] & 1) != 0 ) operator delete(*(void **)&v19[16]); SetupTriggerPopup::postSetup(a1); return v4; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source