// // SetupPlayerControlPopup::init from 0x1405fdf40 to 0x1405fe4f0 (1456 bytes) // // 3 xrefs: // > SetupPlayerControlPopup::create @ 0x1405fdefe // > @ 0x14092f804 // > @ 0x14092f810 // // 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:10 +0000 // // Hidden C++ exception states: #wind=3 char __fastcall SetupPlayerControlPopup::init(_BYTE *a1, int a2, int a3, int a4) { char result; // al __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 __int128 *v15; // [rsp+48h] [rbp-49h] BYREF __int128 v16; // [rsp+50h] [rbp-41h] BYREF __int64 v17; // [rsp+60h] [rbp-31h] __int64 v18; // [rsp+68h] [rbp-29h] __int128 v19; // [rsp+70h] [rbp-21h] BYREF __int64 v20; // [rsp+80h] [rbp-11h] __int64 v21; // [rsp+88h] [rbp-9h] __int128 *v22; // [rsp+90h] [rbp-1h] BYREF __int128 *v23; // [rsp+98h] [rbp+7h] BYREF float v24[2]; // [rsp+A0h] [rbp+Fh] BYREF _BYTE v25[64]; // [rsp+A8h] [rbp+17h] BYREF char v26; // [rsp+110h] [rbp+7Fh] BYREF result = SetupTriggerPopup::init((_DWORD)a1, a2, a3, a4, 1130102784, 1, 0); if ( result ) { a1[744] = 1; (*(void (__fastcall **)(_BYTE *))(*(_QWORD *)a1 + 1096LL))(a1); v17 = 14; v18 = 15; strcpy((char *)&v16, "Player Control"); HIBYTE(v16) = 0; SetupTriggerPopup::addTitle(a1, &v16); v16 = 0; v17 = 2; v18 = 15; strcpy((char *)&v16, "OK"); SetupTriggerPopup::addCloseButton(a1, &v16); v15 = &v16; v16 = 0; v17 = 0; v18 = 0; *(_QWORD *)&v16 = sub_14003D460(0xB0u); v17 = 170; v18 = 175; strcpy( (char *)v16, "Controls player P1 or P2 behavior with a specified setting.\n" "Stop Slide can be used to stop the player from sliding after a force has been applied."); v19 = 0; v20 = 4; v21 = 15; strcpy((char *)&v19, "Help"); SetupTriggerPopup::addHelpButton(a1, &v19, &v16); SetupTriggerPopup::createMultiTriggerItemsDefault(a1); v7 = cocos2d::CCDirector::sharedDirector(v6); cocos2d::CCDirector::getWinSize(v7, v24); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v25, v24[0] * 0.5, v24[1] * 0.5); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v15, -20.0, 40.0); cocos2d::CCPoint::operator+(v25, &v26, v8); v22 = &v19; v19 = 0; v20 = 2; v21 = 15; strcpy((char *)&v19, "P1"); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v23, -40.0, 20.0); cocos2d::CCPoint::operator+(&v26, &v15, v9); SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 138, (unsigned int)&v19, (unsigned int)&v15, 0, 0, 0, 1065353216); v23 = &v19; v19 = 0; v20 = 2; v21 = 15; strcpy((char *)&v19, "P2"); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v22, 40.0, 20.0); cocos2d::CCPoint::operator+(&v26, &v15, v10); SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 200, (unsigned int)&v19, (unsigned int)&v15, 0, 0, 0, 1065353216); v23 = &v16; *((_QWORD *)&v16 + 1) = 112; v17 = 9; v18 = 15; *(_QWORD *)&v16 = 0x6D754A0A706F7453LL; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v22, -80.0, -20.0); cocos2d::CCPoint::operator+(&v26, &v15, v11); SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 540, (unsigned int)&v16, (unsigned int)&v15, 0, 0, 0, 1065353216); v23 = &v16; *((_QWORD *)&v16 + 1) = 101; v17 = 9; v18 = 15; *(_QWORD *)&v16 = 0x766F4D0A706F7453LL; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v22, 0.0, -20.0); cocos2d::CCPoint::operator+(&v26, &v15, v12); SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 541, (unsigned int)&v16, (unsigned int)&v15, 0, 0, 0, 1065353216); v23 = &v19; v20 = 8; v21 = 15; v19 = 0x746F520A706F7453uLL; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v22, 80.0, -20.0); cocos2d::CCPoint::operator+(&v26, &v15, v13); SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 542, (unsigned int)&v19, (unsigned int)&v15, 0, 0, 0, 1065353216); v23 = &v16; *((_QWORD *)&v16 + 1) = 25956; v17 = 10; v18 = 15; *(_QWORD *)&v16 = 0x696C530A706F7453LL; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v22, -80.0, -60.0); cocos2d::CCPoint::operator+(&v26, &v15, v14); SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 543, (unsigned int)&v16, (unsigned int)&v15, 0, 0, 0, 1065353216); (*(void (__fastcall **)(_BYTE *))(*(_QWORD *)a1 + 1136LL))(a1); a1[744] = 0; return 1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source