// // sub_1004B7A70 from 0x1004b7a70 to 0x1004b7f0b (1179 bytes) // // 1 xrefs: // > sub_1004B7960 @ 0x1004b7a27 // // 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 12:31:01 +0000 // __int64 __fastcall sub_1004B7A70(float *a1, __int64 a2, __int64 a3) { __int64 result; // rax unsigned int v4; // r12d __int64 v5; // rax __int128 v6; // [rsp+40h] [rbp-100h] BYREF void *v7; // [rsp+50h] [rbp-F0h] char v8; // [rsp+58h] [rbp-E8h] BYREF char v9[15]; // [rsp+59h] [rbp-E7h] BYREF void *v10; // [rsp+68h] [rbp-D8h] __int128 v11; // [rsp+70h] [rbp-D0h] BYREF void *v12; // [rsp+80h] [rbp-C0h] __int128 v13; // [rsp+88h] [rbp-B8h] BYREF void *v14; // [rsp+98h] [rbp-A8h] std::string v15; // [rsp+A0h] [rbp-A0h] BYREF __int64 v16; // [rsp+B8h] [rbp-88h] BYREF _BYTE v17[24]; // [rsp+C0h] [rbp-80h] BYREF __int128 v18; // [rsp+D8h] [rbp-68h] BYREF void *v19; // [rsp+E8h] [rbp-58h] std::string v20; // [rsp+F0h] [rbp-50h] BYREF unsigned __int64 v21; // [rsp+108h] [rbp-38h] BYREF double v22; // [rsp+110h] [rbp-30h] BYREF unsigned __int64 v23[5]; // [rsp+118h] [rbp-28h] BYREF result = SetupTriggerPopup::init((__int64)a1, a2, a3, 1, 400.0, 260.0, 0.0); if ( (_BYTE)result ) { v4 = result; SetupTriggerPopup::preSetup(a1); strcpy(v17, "*Setup Camera Rotation"); SetupTriggerPopup::addTitle((__int64)a1, (__int64)v17); if ( (v17[0] & 1) != 0 ) operator delete(*(void **)&v17[16]); v8 = 4; strcpy(v9, "OK"); SetupTriggerPopup::addCloseButton((__int64)a1, (__int64)&v8); if ( (v8 & 1) != 0 ) operator delete(v10); LOBYTE(v11) = 8; strcpy((char *)&v11 + 1, "Help"); v14 = operator new(0xF8u); *(_QWORD *)&v13 = 249; *((_QWORD *)&v13 + 1) = 244; strcpy( (char *)v14, "Rotates the camera to the target value.\n" "Move Time is how fast the rotate happens.\n" "Easing changes the method used.\n" "Add the rotation to the current camera rotation.\n" "Snap360 converts rotation to closest 360."); SetupTriggerPopup::addHelpButton((__int64)a1, &v11, &v13, 1.0); if ( (v13 & 1) != 0 ) operator delete(v14); if ( (v11 & 1) != 0 ) operator delete(v12); SetupTriggerPopup::createMultiTriggerItemsDefault(a1, (__int64)&v11); v5 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(&v16, v5); sub_100278250((float *)&v21, *(float *)&v16 * 0.5, 0.5 * *((float *)&v16 + 1)); v15.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)16; strcpy(v15.__r_.__value_.__s.__data_, "Degrees:"); sub_100278250((float *)v23, -100.0, 60.0); sub_100278350(&v22, &v21, v23); SetupTriggerPopup::createValueControlAdvanced( (__int64)a1, 68, &v15, (__int64)&v22, 0, 1u, 0.80000001, -360.0, 360.0, 0xAu, 0, 0, 0, 0, 2u, 0); if ( (*(_BYTE *)&v15.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v15.__r_.__value_.__l.__data_); LOBYTE(v6) = 6; *(_DWORD *)((char *)&v6 + 1) = 6579265; sub_100278250((float *)v23, 60.0, 70.0); sub_100278350(&v22, &v21, v23); SetupTriggerPopup::createToggleValueControl((int)a1, 70, &v6, (__int64)&v22, 0, 0, 1.0, 0); if ( (v6 & 1) != 0 ) operator delete(v7); LOBYTE(v18) = 14; strcpy((char *)&v18 + 1, "Snap360"); sub_100278250((float *)v23, 60.0, 30.0); sub_100278350(&v22, &v21, v23); SetupTriggerPopup::createToggleValueControl((int)a1, 394, &v18, (__int64)&v22, 0, 0, 1.0, 0); if ( (v18 & 1) != 0 ) operator delete(v19); v20.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)20; strcpy(v20.__r_.__value_.__s.__data_, "Move Time:"); sub_100278250((float *)v23, -100.0, -10.0); sub_100278350(&v22, &v21, v23); SetupTriggerPopup::createValueControlAdvanced( (__int64)a1, 10, &v20, (__int64)&v22, 0, 1u, 0.80000001, 0.0, 10.0, 0xAu, 0, 0, 0, 0, 2u, 0); if ( (*(_BYTE *)&v20.__r_.__value_.__s.0 & 1) != 0 ) operator delete(v20.__r_.__value_.__l.__data_); sub_100278250((float *)v23, 95.0, -10.0); sub_100278350(&v22, &v21, v23); SetupTriggerPopup::createEasingControls((__int64)a1, (__int64)&v22, 0, 0, 0.80000001); SetupTriggerPopup::postSetup(a1); return v4; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source