// // SetupCountTriggerPopup::determineStartValues from 0x1002bc9b0 to 0x1002bcb1c (364 bytes) // // 1 xrefs: // > @ 0x100906550 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void __fastcall SetupCountTriggerPopup::determineStartValues(SetupCountTriggerPopup *a1) { __int64 v1; // rsi __int64 m_gameObjects; // r14 unsigned int i; // r15d __int64 v4; // rax int m_itemID; // edx int v6; // ecx bool v7; // zf int m_targetID; // edx int v9; // ecx int m_targetCount; // ecx int v11; // eax SetupTriggerPopup::determineStartValues(a1); if ( a1->m_gameObject ) { m_gameObjects = sub_10071F9E0(a1, v1); sub_10071FCD0(m_gameObjects, a1->m_gameObject); if ( !m_gameObjects ) return; } else { m_gameObjects = (__int64)a1->m_gameObjects; if ( !m_gameObjects ) return; } if ( (unsigned int)sub_100720070(m_gameObjects) ) { *(_QWORD *)&a1->m_itemID = -1; a1->m_targetCount = 99999; *(_WORD *)&a1->m_activateGroup = 257; if ( (unsigned int)sub_100720070(m_gameObjects) ) { for ( i = 0; i < (unsigned int)sub_100720070(m_gameObjects); ++i ) { v4 = sub_1007200C0(m_gameObjects, i); if ( *(_BYTE *)(v4 + 1637) ) { if ( *(_BYTE *)(v4 + 1844) ) goto LABEL_12; } else { a1->m_activateGroup = 0; if ( *(_BYTE *)(v4 + 1844) ) { LABEL_12: m_itemID = a1->m_itemID; v6 = *(_DWORD *)(v4 + 1680); if ( m_itemID != -1 ) goto LABEL_16; goto LABEL_17; } } a1->m_multiActivate = 0; m_itemID = a1->m_itemID; v6 = *(_DWORD *)(v4 + 1680); if ( m_itemID != -1 ) { LABEL_16: v7 = m_itemID == v6; v6 = 0; if ( v7 ) goto LABEL_18; } LABEL_17: a1->m_itemID = v6; LABEL_18: m_targetID = a1->m_targetID; v9 = *(_DWORD *)(v4 + 1464); if ( m_targetID == -1 || (v7 = m_targetID == v9, v9 = 0, !v7) ) a1->m_targetID = v9; m_targetCount = a1->m_targetCount; v11 = *(_DWORD *)(v4 + 1836); if ( m_targetCount != 99999 ) { v7 = m_targetCount == v11; v11 = 0; if ( v7 ) continue; } a1->m_targetCount = v11; } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source