// // sub_180050710 from 0x180050710 to 0x18005078a (122 bytes) // // 4 xrefs: // > sub_1800510D0 @ 0x180051173 // > sub_180051B90 @ 0x180051d40 // > sub_180053530 @ 0x18005366d // > @ 0x1801f8958 // // 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 10:53:17 +0000 // __int64 __fastcall sub_180050710(__int64 a1, __int64 a2) { __int64 v2; // rbx int v4; // eax unsigned int v5; // edx int v6; // eax int v7[10]; // [rsp+20h] [rbp-28h] BYREF v2 = *(_QWORD *)(a1 + 32); sub_180048340((__int64)v7, *(_QWORD *)a2, *(_DWORD *)(a2 + 8)); if ( (unsigned int)sub_180048210(v7, 1u) ) return 4294967161LL; v4 = *(_DWORD *)(v2 + 8); v5 = 0; if ( v4 > 1 ) { do { ++v5; v4 = (unsigned int)v4 >> 1; } while ( (unsigned int)v4 > 1 ); } v6 = sub_180048210(v7, v5); if ( v6 == -1 ) return 4294967160LL; else return *(unsigned int *)(v2 + 4LL * **(int **)(v2 + 8LL * v6 + 32)); }