// // SetupTimeWarpPopup::init from 0x1405f95c0 to 0x1405f9a64 (1188 bytes) // // 2 xrefs: // > SetupTimeWarpPopup::create @ 0x1405f9578 // > @ 0x14092f5dc // // 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:08 +0000 // // Hidden C++ exception states: #wind=2 char __fastcall SetupTimeWarpPopup::init(__int64 a1, int a2, int a3, int a4) { char result; // al __int64 v6; // rcx __int64 v7; // rax struct cocos2d::CCLabelBMFont *v8; // rdi __int64 v9; // rbx __int64 v10; // rax cocos2d::CCObject *v11; // rbx cocos2d::CCObject *v12; // rax char *v13; // rsi __int64 v14; // rdi __int64 v15; // rbx __int64 v16; // rax __int64 v17; // rax struct cocos2d::CCLabelBMFont *v18; // rax __int64 v19; // rdi __int64 v20; // rbx __int64 v21; // rax __int64 v22; // r8 cocos2d::CCLayer *v23; // rax __int64 v24; // rax __int64 v25; // rbx __int64 v26; // rax __int128 *v27; // [rsp+58h] [rbp-49h] BYREF _BYTE v28[8]; // [rsp+60h] [rbp-41h] BYREF __int128 v29; // [rsp+68h] [rbp-39h] BYREF __int64 v30; // [rsp+78h] [rbp-29h] __int64 v31; // [rsp+80h] [rbp-21h] __int128 v32; // [rsp+88h] [rbp-19h] BYREF __int64 v33; // [rsp+98h] [rbp-9h] __int64 v34; // [rsp+A0h] [rbp-1h] float v35; // [rsp+120h] [rbp+7Fh] BYREF float v36; // [rsp+124h] [rbp+83h] result = SetupTriggerPopup::init(a1, a2, a3, a4, 1128792064, 1, 0); if ( result ) { (*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 1096LL))(a1); v7 = cocos2d::CCDirector::sharedDirector(v6); cocos2d::CCDirector::getWinSize(v7, &v35); v8 = cocos2d::CCLabelBMFont::create("Setup TimeWarp Effect", "goldFont.fnt"); (*(void (__fastcall **)(__int64, struct cocos2d::CCLabelBMFont *))(*(_QWORD *)a1 + 464LL))(a1, v8); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v8 + 160LL))(v8); v9 = *(_QWORD *)v8; cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v27, v35 * 0.5, (float)((float)(*(float *)(a1 + 736) * 0.5) + (float)(v36 * 0.5)) - 18.0); (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *, __int64))(v9 + 184))(v8, v10); v27 = (__int128 *)operator new(0x2C8u); v11 = (cocos2d::CCObject *)ButtonSprite::ButtonSprite((__int64)v27); if ( v11 ) { if ( ButtonSprite::init_1( (__int64)v11, (__int64)"OK", 40, 0, 1061997773, 1, "goldFont.fnt", (__int64)"GJ_button_01.png", 1106247680) ) { cocos2d::CCObject::autorelease(v11); } else { (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v11 + 8LL))(v11, 1); LODWORD(v11) = 0; } } v12 = CCMenuItemSpriteExtra::create((int)v11, 0, a1, (__int64)sub_14009D628); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v12); v27 = &v29; v29 = 0; v30 = 0; v31 = 0; *(_QWORD *)&v29 = sub_14003D460(0x70u); v30 = 104; v31 = 111; strcpy( (char *)v29, "Lets you warp all time a given amount.\nI need to add more options\nbefore you can do Za Warudo..."); v32 = 0; v33 = 4; v34 = 15; strcpy((char *)&v32, "Help"); v13 = InfoAlertButton::create((__int64)&v32, (__int64)&v29); (*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v13); v14 = *(_QWORD *)v13; v15 = *(_QWORD *)(a1 + 552); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v27, (float)((float)(v35 * 0.5) - (float)(*(float *)(a1 + 732) * 0.5)) + 18.0, (float)((float)(*(float *)(a1 + 736) * 0.5) + (float)(v36 * 0.5)) - 18.0); cocos2d::CCNode::convertToNodeSpace(v15, v28, v16); (*(void (__fastcall **)(char *, __int64))(v14 + 184))(v13, v17); v18 = cocos2d::CCLabelBMFont::create(" ", "goldFont.fnt"); *(_QWORD *)(a1 + 1000) = v18; (*(void (__fastcall **)(__int64, struct cocos2d::CCLabelBMFont *))(*(_QWORD *)a1 + 464LL))(a1, v18); v19 = **(_QWORD **)(a1 + 1000); v20 = *(_QWORD *)(a1 + 1000); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v28, v35 * 0.5, (float)(v36 * 0.5) + 20.0); (*(void (__fastcall **)(__int64, __int64))(v19 + 184))(v20, v21); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1000) + 160LL))(*(_QWORD *)(a1 + 1000)); v23 = Slider::create( a1, (__int64)SetupTimeWarpPopup::sliderChanged, v22, "slidergroove.png", (__int64)"sliderthumb.png", (__int64)"sliderthumbsel.png", 1.0); *(_QWORD *)(a1 + 1008) = v23; (*(void (__fastcall **)(__int64, cocos2d::CCLayer *))(*(_QWORD *)a1 + 464LL))(a1, v23); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v28, 0.0, -23.0); v25 = v24; v26 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1000) + 200LL))(*(_QWORD *)(a1 + 1000)); cocos2d::CCPoint::operator+(v26, &v27, v25); (*(void (__fastcall **)(_QWORD, __int128 **))(**(_QWORD **)(a1 + 1008) + 184LL))(*(_QWORD *)(a1 + 1008), &v27); SetupTimeWarpPopup::updateTimeWarpLabel(a1); Slider::setValue(*(_QWORD *)(a1 + 1008), (float)(*(float *)(a1 + 1016) - 0.1) / 1.9); SetupTriggerPopup::createMultiTriggerItemsDefaultVertical(a1); return 1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source