// // sub_10038AFD0 from 0x10038afd0 to 0x10038b443 (1139 bytes) // // 1 xrefs: // > sub_10038AEC0 @ 0x10038af87 // // 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:29:11 +0000 // __int64 __fastcall sub_10038AFD0(float *a1, __int64 a2, __int64 a3) { __int64 result; // rax unsigned int v4; // r15d __int64 v5; // rax char v6; // [rsp+40h] [rbp-E0h] BYREF char v7[15]; // [rsp+41h] [rbp-DFh] BYREF void *v8; // [rsp+50h] [rbp-D0h] __int128 v9; // [rsp+58h] [rbp-C8h] BYREF void *v10; // [rsp+68h] [rbp-B8h] __int128 v11; // [rsp+70h] [rbp-B0h] BYREF void *v12; // [rsp+80h] [rbp-A0h] float v13[2]; // [rsp+88h] [rbp-98h] BYREF void *v14[3]; // [rsp+90h] [rbp-90h] BYREF std::string v15; // [rsp+A8h] [rbp-78h] BYREF __int128 v16; // [rsp+C0h] [rbp-60h] BYREF void *v17; // [rsp+D0h] [rbp-50h] unsigned __int64 v18; // [rsp+D8h] [rbp-48h] BYREF unsigned __int64 v19; // [rsp+E0h] [rbp-40h] BYREF double v20[2]; // [rsp+E8h] [rbp-38h] BYREF void *v21; // [rsp+F8h] [rbp-28h] unsigned __int64 v22[4]; // [rsp+100h] [rbp-20h] BYREF result = SetupTriggerPopup::init((__int64)a1, a2, a3, 1, 400.0, 280.0, 0.0); if ( (_BYTE)result ) { v4 = result; SetupTriggerPopup::preSetup(a1); strcpy((char *)v14, "$Time Event Trigger"); SetupTriggerPopup::addTitle((__int64)a1, (__int64)v14); if ( ((__int64)v14[0] & 1) != 0 ) operator delete(v14[2]); v6 = 4; strcpy(v7, "OK"); SetupTriggerPopup::addCloseButton((__int64)a1, (__int64)&v6); if ( (v6 & 1) != 0 ) operator delete(v8); LOBYTE(v9) = 8; strcpy((char *)&v9 + 1, "Help"); v12 = operator new(0x80u); *(_QWORD *)&v11 = 129; *((_QWORD *)&v11 + 1) = 123; strcpy( (char *)v12, "Activates objects using TargetID when a specific TargetTime is reached for a timer given by ItemID."); SetupTriggerPopup::addHelpButton((__int64)a1, &v9, &v11, 1.0); if ( (v11 & 1) != 0 ) operator delete(v12); if ( (v9 & 1) != 0 ) operator delete(v10); SetupTriggerPopup::createMultiTriggerItemsDefault(a1, (__int64)&v9); v5 = cocos2d::CCDirector::sharedDirector(a1, &v9); cocos2d::CCDirector::getWinSize(v13, v5); sub_100278250((float *)&v19, v13[0] * 0.5, (float)(0.5 * v13[1]) + 85.0); LOBYTE(v20[0]) = 14; strcpy((char *)v20 + 1, "TimerID"); sub_100278250((float *)&v18, -85.0, -15.0); sub_100278350((double *)v22, &v19, &v18); IDNameInput::create((_DWORD)a1, (_DWORD)a1 + 544, 4, 80, (unsigned int)v20, (unsigned int)v22, 6, 0, 0, 0); if ( (LOBYTE(v20[0]) & 1) != 0 ) operator delete(v21); LOBYTE(v20[0]) = 16; strcpy((char *)v20 + 1, "TargetID"); sub_100278250((float *)&v18, 85.0, -15.0); sub_100278350((double *)v22, &v19, &v18); IDNameInput::create((_DWORD)a1, (_DWORD)a1 + 544, 1, 51, (unsigned int)v20, (unsigned int)v22, 6, 0, 0, 0); if ( (LOBYTE(v20[0]) & 1) != 0 ) operator delete(v21); v15.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)20; strcpy(v15.__r_.__value_.__s.__data_, "TargetTime"); sub_100278250((float *)v22, -85.0, -60.0); sub_100278350(v20, &v19, v22); SetupTriggerPopup::createValueControlAdvanced( (__int64)a1, 473, &v15, (__int64)v20, 0, 1u, 0.80000001, 0.0, 100.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(v16) = 28; strcpy((char *)&v16 + 1, "Multi\nActivate"); sub_100278250((float *)v22, 85.0, -60.0); sub_100278350(v20, &v19, v22); SetupTriggerPopup::createToggleValueControl((int)a1, 475, &v16, (__int64)v20, 0, 0, 1.0, 0); if ( (v16 & 1) != 0 ) operator delete(v17); SetupTriggerPopup::postSetup(a1); return v4; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source