// // SetupPickupTriggerPopup::init from 0x1405cc410 to 0x1405ccafc (1772 bytes) // // 3 xrefs: // > SetupPickupTriggerPopup::create @ 0x1405cc3ce // > @ 0x14092e574 // > @ 0x14092e580 // // 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:34:53 +0000 // // Hidden C++ exception states: #wind=4 char __fastcall SetupPickupTriggerPopup::init(_BYTE *a1, int a2, int a3, int a4) { char result; // al __int64 v6; // rcx __int64 v7; // rax __int64 v8; // rax __int64 v9; // rdx void *v10; // rcx int v11; // ebx __int64 v12; // rax int v13; // r8d int v14; // r9d __int64 v15; // rax int v16; // r8d int v17; // r9d __int64 v18; // rax __int64 v19; // rax __int64 v20; // rax void **v21; // [rsp+88h] [rbp-80h] BYREF _BYTE v22[8]; // [rsp+90h] [rbp-78h] BYREF __int128 *v23; // [rsp+98h] [rbp-70h] BYREF __int128 v24; // [rsp+A0h] [rbp-68h] BYREF __int64 v25; // [rsp+B0h] [rbp-58h] __int64 v26; // [rsp+B8h] [rbp-50h] void **v27; // [rsp+C0h] [rbp-48h] BYREF float v28[2]; // [rsp+C8h] [rbp-40h] BYREF void *Block[2]; // [rsp+D0h] [rbp-38h] BYREF __m128i si128; // [rsp+E0h] [rbp-28h] result = SetupTriggerPopup::init((_DWORD)a1, a2, a3, a4, 1132068864, 1, 0); if ( result ) { a1[744] = 1; (*(void (__fastcall **)(_BYTE *))(*(_QWORD *)a1 + 1096LL))(a1); v7 = cocos2d::CCDirector::sharedDirector(v6); cocos2d::CCDirector::getWinSize(v7, v28); si128.m128i_i64[0] = 14; si128.m128i_i64[1] = 15; strcpy((char *)Block, "Pickup Trigger"); HIBYTE(Block[1]) = 0; SetupTriggerPopup::addTitle(a1, Block); *(_OWORD *)Block = 0; si128.m128i_i64[0] = 2; si128.m128i_i64[1] = 15; strcpy((char *)Block, "OK"); SetupTriggerPopup::addCloseButton(a1, Block); v21 = Block; *(_OWORD *)Block = 0; si128 = 0u; Block[0] = sub_14003D460(0x100u); si128.m128i_i64[0] = 254; si128.m128i_i64[1] = 255; strcpy( (char *)Block[0], "Changes the value of an Item ID by adding Count to the previous value.\n" "Use Multiply or Divide to modify in another way than addition.\n" "Override specifies the exact value to change to instead of modifying the previous value."); v24 = 0; v25 = 4; v26 = 15; strcpy((char *)&v24, "Help"); SetupTriggerPopup::addHelpButton(a1, &v24, Block); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v22, v28[0] * 0.5, v28[1] * 0.5); *(_OWORD *)Block = 0; si128 = _mm_load_si128((const __m128i *)&xmmword_140836570); strcpy((char *)Block, "ItemID"); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v23, -50.0, 50.0); cocos2d::CCPoint::operator+(v22, &v21, v8); v9 = (__int64)(a1 + 544); if ( !a1 ) v9 = 0; IDNameInput::create( (__int64)a1, v9, 2, 80, (__int64)Block, (const struct cocos2d::CCPoint *)&v21, 1061997773, 6, 0, 0, 0); if ( si128.m128i_i64[1] > 0xFuLL ) { v10 = Block[0]; if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 ) { v10 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v10 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v10); } v11 = (int)(*(float (__fastcall **)(_BYTE *, __int64))(*(_QWORD *)a1 + 1168LL))(a1, 88); v23 = &v24; v25 = 8; v26 = 15; v24 = 0x796C7069746C754DuLL; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v27, 50.0, 70.0); cocos2d::CCPoint::operator+(v22, &v21, v12); LOBYTE(v13) = v11 == 1; SetupTriggerPopup::createCustomToggleValueControl((_DWORD)a1, 1, v13, v14, (__int64)&v24, (__int64)&v21, 0, 0, 0); v27 = Block; *(_OWORD *)Block = 0; si128.m128i_i64[0] = 6; si128.m128i_i64[1] = 15; strcpy((char *)Block, "Divide"); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v23, 50.0, 30.0); cocos2d::CCPoint::operator+(v22, &v21, v15); LOBYTE(v16) = v11 == 2; SetupTriggerPopup::createCustomToggleValueControl((_DWORD)a1, 2, v16, v17, (__int64)Block, (__int64)&v21, 0, 0, 0); v27 = Block; *(_OWORD *)Block = 0; si128.m128i_i64[0] = 5; si128.m128i_i64[1] = 15; strcpy((char *)Block, "Count"); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v23, -50.0, -20.0); cocos2d::CCPoint::operator+(v22, &v21, v18); SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 77, (unsigned int)Block, (unsigned int)&v21, 1061997773, 1, 2, 6, 1, 0, 1120403456, 0, 1, 0, 2, 0); v27 = (void **)&v24; v25 = 8; v26 = 15; v24 = 0x656469727265764FuLL; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v23, 50.0, -20.0); cocos2d::CCPoint::operator+(v22, &v21, v19); SetupTriggerPopup::createToggleValueControl( (_DWORD)a1, 139, (unsigned int)&v24, (unsigned int)&v21, 0, 0, 1, 1065353216); v27 = Block; Block[1] = (void *)58; si128.m128i_i64[0] = 9; si128.m128i_i64[1] = 15; Block[0] = (void *)0x7265696669646F4DLL; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v23, 0.0, -20.0); cocos2d::CCPoint::operator+(v22, &v21, v20); SetupTriggerPopup::createValueControlAdvanced( (_DWORD)a1, 449, (unsigned int)Block, (unsigned int)&v21, 1061997773, 0, 1, 6, 0, 0, 1092616192, 0, 2, 0, 3, 0); SetupTriggerPopup::createMultiTriggerItemsDefault(a1); SetupPickupTriggerPopup::updateState(a1); (*(void (__fastcall **)(_BYTE *))(*(_QWORD *)a1 + 1136LL))(a1); a1[744] = 0; return 1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source