// // sub_180004490 from 0x180004490 to 0x180004512 (130 bytes) // // 2 xrefs: // > sub_180017E70 @ 0x180017fb1 // > @ 0x1801f6270 // // 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 // __int64 __fastcall sub_180004490(__int64 a1, __int64 a2) { __int64 v2; // rsi int v4; // edi int v5; // ebx int v7; // eax v2 = *(_QWORD *)(a1 + 32); v4 = 0; v5 = *(_DWORD *)(v2 + 8); if ( (unsigned int)sub_180001340(a2, 1) ) return 4294967161LL; if ( v5 > 1 ) { do { ++v4; v5 = (unsigned int)v5 >> 1; } while ( (unsigned int)v5 > 1 ); } v7 = sub_180001340(a2, v4); if ( v7 == -1 ) return 4294967160LL; else return *(unsigned int *)(v2 + 4LL * *(unsigned __int8 *)(*(_QWORD *)(v2 + 32) + 2LL * v7)); }