// // addStarsToMap from 0x324bf4 to 0x324cc6 (210 bytes) // // 2 xrefs: // > GameManager::recountUserStats @ 0x328000 // > GameManager::recountUserStats @ 0x328024 // // 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 addStarsToMap(_DWORD *a1, _DWORD *a2) { int v3; // r4 const char **v4; // r11 unsigned int v5; // r5 int v6; // r9 int v7; // r11 _DWORD **v8; // r0 _DWORD *inserted; // r0 _DWORD *v10; // r0 int v12; // [sp+0h] [bp-24h] int v13; // [sp+Ch] [bp-18h] BYREF const char **v14; // [sp+10h] [bp-14h] BYREF int v15; // [sp+14h] [bp-10h] int v16; // [sp+18h] [bp-Ch] v14 = nullptr; v15 = 0; v16 = 0; sub_323710(a2, ",", (int)&v14); v3 = 1; v12 = (v15 - (int)v14) >> 2; while ( v3 < v12 ) { v4 = v14; v13 = atoi((&v14[v3])[-1]); v5 = v13; v6 = atoi(v4[v3]); if ( (unsigned int)(v6 - 1) <= 9 ) { v7 = v5 % a1[1]; v8 = sub_32054A(a1, v7, &v13); if ( !v8 || (inserted = *v8) == nullptr ) { v10 = (_DWORD *)operator new(0xCu); *v10 = 0; v10[1] = v5; v10[2] = 0; inserted = 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)a1, v7, v5, v10); } inserted[2] = v6; } v3 += 2; } return std::vector::~vector((void **)&v14); }
GD Web Decomp Icon

GD Web Decomp

Raw Source