// // GJEffectManager::startTimer from 0x49f01c to 0x49f1b0 (404 bytes) // // 2 xrefs: // > GJBaseGameLayer::activateTimerTrigger @ 0x47648c // > GJEffectManager::updateTimer @ 0x49f24e // // 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 GJEffectManager::startTimer( GJEffectManager *a1, int a2, double a3, double a4, bool a5, bool a6, bool a7, float a8, bool a9, int a10, std::vector *const a11, int a12, int a13) { std::unordered_map *p_m_timerItemMap; // r5 float v17; // s18 float v18; // s16 int v19; // r0 unsigned int v20; // r3 void **v21; // r10 _BYTE *v22; // r6 int v23; // r8 unsigned int v24; // r9 std::_Hashtable, std::allocator>, std::__detail::_Select1st, std::equal_to, std::hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits>::size_type M_bucket_count; // r1 int v26; // r11 _DWORD **v27; // r0 _DWORD *v28; // r0 int v29; // [sp+4h] [bp-58h] BYREF int v30; // [sp+8h] [bp-54h] double v31; // [sp+10h] [bp-4Ch] bool v32; // [sp+18h] [bp-44h] float v33; // [sp+1Ch] [bp-40h] bool v34; // [sp+20h] [bp-3Ch] double v35; // [sp+28h] [bp-34h] bool v36; // [sp+30h] [bp-2Ch] int v37; // [sp+34h] [bp-28h] int v38; // [sp+38h] [bp-24h] int v39; // [sp+3Ch] [bp-20h] void *v40[3]; // [sp+40h] [bp-1Ch] BYREF char v41; // [sp+4Ch] [bp-10h] p_m_timerItemMap = &a1->m_timerItemMap; v29 = a2; if ( sub_498A8A(&a1->m_timerItemMap._M_h._M_buckets, a2) ) { v28 = std::__detail::_Map_base,std::allocator>,std::__detail::_Select1st,std::equal_to,std::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits,true>::operator[]( p_m_timerItemMap, (unsigned int *)&v29); v28[11] = a10; *((_BYTE *)v28 + 16) = a6; *((float *)v28 + 5) = a8; v28[12] = a12; *((_BYTE *)v28 + 24) = a9; *((double *)v28 + 4) = a4; v28[13] = a13; *((_BYTE *)v28 + 68) = 0; *((_BYTE *)v28 + 40) = a5; if ( !a7 ) *((double *)v28 + 1) = a3; } else { v17 = a3; v30 = a2; memset(v40, 0, sizeof(v40)); v37 = a10; v18 = a4; v38 = a12; v41 = 0; v33 = a8; v32 = a6; v34 = a9; v36 = a5; v39 = a13; v31 = v17; v35 = v18; std::vector::operator=(v40, (void **)&a11->m_start); v41 = 0; v19 = operator new(0x58u); v20 = v29; v21 = (void **)(v19 + 72); v22 = (_BYTE *)v19; *(_DWORD *)v19 = 0; v23 = v19; *(_DWORD *)(v19 + 8) = v20; *(_DWORD *)(v19 + 16) = v30; *(double *)(v19 + 24) = v31; *(_BYTE *)(v19 + 32) = v32; *(float *)(v19 + 36) = v33; *(_BYTE *)(v19 + 40) = v34; *(double *)(v19 + 48) = v35; *(_BYTE *)(v19 + 56) = v36; *(_DWORD *)(v19 + 60) = v37; *(_DWORD *)(v19 + 64) = v38; *(_DWORD *)(v19 + 68) = v39; std::_Vector_base::_Vector_base((_DWORD *)(v19 + 72), v40); v24 = *(_DWORD *)(v23 + 8); M_bucket_count = a1->m_timerItemMap._M_h._M_bucket_count; v22[84] = v41; v26 = v24 % M_bucket_count; v27 = sub_498A4C(p_m_timerItemMap, v24 % M_bucket_count, (_DWORD *)(v23 + 8)); if ( v27 && *v27 ) { std::_Vector_base::~_Vector_base(v21); operator delete(v22); } else { std::_Hashtable,std::allocator>,std::__detail::_Select1st,std::equal_to,std::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits>::_M_insert_unique_node( (int)p_m_timerItemMap, v26, v24, v22); } std::_Vector_base::~_Vector_base(v40); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source