// // SetupCameraGuidePopup::init from 0x1406072f0 to 0x1406078b2 (1474 bytes) // // 3 xrefs: // > SetupCameraGuidePopup::create @ 0x1406072ae // > @ 0x14092f9cc // > @ 0x14092f9d8 // // 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:12 +0000 // // Hidden C++ exception states: #wind=3 char __fastcall SetupCameraGuidePopup::init(__int64 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 int v11; // eax char v12; // [rsp+80h] [rbp-88h] __int64 v13; // [rsp+80h] [rbp-88h] __int64 v14; // [rsp+80h] [rbp-88h] __int64 v15; // [rsp+80h] [rbp-88h] _BYTE v16[8]; // [rsp+88h] [rbp-80h] BYREF __int128 *v17; // [rsp+90h] [rbp-78h] BYREF __int128 *v18; // [rsp+98h] [rbp-70h] BYREF __int128 *v19; // [rsp+A0h] [rbp-68h] BYREF __int128 v20; // [rsp+A8h] [rbp-60h] BYREF __int64 v21; // [rsp+B8h] [rbp-50h] __int64 v22; // [rsp+C0h] [rbp-48h] __int128 v23; // [rsp+C8h] [rbp-40h] BYREF __int64 v24; // [rsp+D8h] [rbp-30h] __int64 v25; // [rsp+E0h] [rbp-28h] float v26; // [rsp+160h] [rbp+58h] BYREF float v27; // [rsp+164h] [rbp+5Ch] result = SetupTriggerPopup::init(a1, a2, a3, a4, 1132068864, 1, 0); if ( result ) { *(_BYTE *)(a1 + 744) = 1; (*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 1096LL))(a1); *(_BYTE *)(a1 + 888) = 1; v21 = 12; v22 = 15; strcpy((char *)&v20, "Camera Guide"); BYTE13(v20) = 0; HIWORD(v20) = 0; SetupTriggerPopup::addTitle(a1, &v20); v20 = 0; v21 = 2; v22 = 15; strcpy((char *)&v20, "OK"); SetupTriggerPopup::addCloseButton(a1, &v20); v17 = &v20; v20 = 0; v21 = 0; v22 = 0; *(_QWORD *)&v20 = sub_14003D460(0xD0u); v21 = 205; v22 = 207; strcpy( (char *)v20, "Preview the camera bounds at specified Zoom and Offset values for different aspect ratios. The inn" "er line is the guaranteed view 4:3 and the outer line is based on your window aspect ratio."); v23 = 0; v24 = 4; v25 = 15; strcpy((char *)&v23, "Help"); SetupTriggerPopup::addHelpButton(a1, &v23, &v20); v7 = cocos2d::CCDirector::sharedDirector(v6); cocos2d::CCDirector::getWinSize(v7, &v26); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v16, v26 * 0.5, v27 * 0.5); v18 = &v20; v20 = 0; v21 = 5; v22 = 15; strcpy((char *)&v20, "Zoom:"); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v19, 0.0, 70.0); cocos2d::CCPoint::operator+(v16, &v17, v8); v12 = 0; SetupTriggerPopup::createValueControlAdvanced( a1, 371, (unsigned int)&v20, (unsigned int)&v17, 1061997773, 0, 1, 4, 0, 1053609165, 1077936128, 0, 0, 0, 3, v12); v19 = &v20; v21 = 9; v22 = 15; *(_QWORD *)&v20 = *(_QWORD *)"Offset X:"; *((_QWORD *)&v20 + 1) = (unsigned __int8)aOffsetX[8]; BYTE9(v20) = 0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v18, -85.0, -5.0); cocos2d::CCPoint::operator+(v16, &v17, v9); LOBYTE(v13) = 0; SetupTriggerPopup::createValueControlAdvanced( a1, 28, (unsigned int)&v20, (unsigned int)&v17, 1061997773, 0, 2, 10, 0, -1027080192, 1120403456, 0, 0, 0, 0, v13); v19 = &v20; v21 = 9; v22 = 15; *(_QWORD *)&v20 = *(_QWORD *)"Offset Y:"; *((_QWORD *)&v20 + 1) = (unsigned __int8)aOffsetY[8]; BYTE9(v20) = 0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v18, 90.0, -5.0); cocos2d::CCPoint::operator+(v16, &v17, v10); LOBYTE(v14) = 0; SetupTriggerPopup::createValueControlAdvanced( a1, 29, (unsigned int)&v20, (unsigned int)&v17, 1061997773, 0, 2, 10, 0, -1027080192, 1120403456, 0, 0, 0, 0, v14); v19 = &v20; v21 = 15; v22 = 15; strcpy((char *)&v20, "Preview\nOpacity"); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v18, (float)((float)(*(float *)(a1 + 732) * 0.5) + (float)(v26 * 0.5)) - 72.0, (float)((float)(v27 * 0.5) - (float)(*(float *)(a1 + 736) * 0.5)) + 40.0); LOBYTE(v15) = 0; SetupTriggerPopup::createValueControlAdvanced( a1, 506, (unsigned int)&v20, v11, 1059481190, 0, 1, 5, 0, 0, 0, 0, 0, 0, 2, v15); (*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 1136LL))(a1); *(_BYTE *)(a1 + 744) = 0; return 1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source