// // sub_10050FFF4 from 0x10050fff4 to 0x100510098 (164 bytes) // // 0 xrefs: // // 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_10050FFF4(__int64 a1, int a2) { __int64 v2; // x8 int v3; // w8 int *v4; // x9 int v5; // w12 __int64 v6; // x11 __int64 i; // x10 __int64 v8; // x9 int v9; // t1 __int64 v10; // x10 int v11; // w11 v2 = *(unsigned int *)(a1 + 52); if ( !(_DWORD)v2 ) return v2; v3 = *(_DWORD *)(a1 + 24); if ( !v3 ) return 28; v4 = (int *)(*(_QWORD *)(a1 + 16) + 4LL * ((v3 - 1) & a2)); v5 = *v4; if ( *v4 != -1 ) { v6 = v5; for ( i = *(_QWORD *)(a1 + 32); *(_DWORD *)(i + 16LL * v5) != a2; v6 = v5 ) { v8 = i + 16 * v6; v9 = *(_DWORD *)(v8 + 4); v4 = (int *)(v8 + 4); v5 = v9; if ( v9 == -1 ) return 0; } v2 = 0; v10 = i + 16 * v6; *(_QWORD *)(v10 + 8) = 0; *v4 = *(_DWORD *)(v10 + 4); v11 = *(_DWORD *)(a1 + 52); *(_DWORD *)(v10 + 4) = *(_DWORD *)(a1 + 48); *(_DWORD *)(a1 + 48) = v5; *(_DWORD *)(a1 + 52) = v11 - 1; return v2; } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source