// // sub_10042C7A4 from 0x10042c7a4 to 0x10042c8b8 (276 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_10042C7A4(__int64 a1, unsigned int a2) { int v2; // w11 int v4; // w8 int v5; // w10 int v6; // w9 unsigned __int8 *v7; // x11 unsigned int v8; // w13 if ( a2 >= 0x21 ) { v2 = *(_DWORD *)(a1 + 24); LABEL_3: *(_QWORD *)(a1 + 16) = 0; *(_DWORD *)a1 = v2; *(_DWORD *)(a1 + 4) = 1; return 0xFFFFFFFFLL; } v5 = *(_DWORD *)a1; v4 = *(_DWORD *)(a1 + 4); v6 = v4 + a2; v2 = *(_DWORD *)(a1 + 24); if ( *(_DWORD *)a1 + 4 < v2 ) goto LABEL_7; if ( v5 > v2 - ((v6 + 7) >> 3) ) goto LABEL_3; if ( !v6 ) return 0; LABEL_7: v7 = *(unsigned __int8 **)(a1 + 16); v8 = *v7 << (v4 + 24); if ( v6 >= 9 ) { v8 |= v7[1] << (v4 + 16); if ( (unsigned int)v6 >= 0x11 ) { v8 |= v7[2] << (v4 + 8); if ( (unsigned int)v6 >= 0x19 ) { v8 |= v7[3] << v4; if ( v4 ) { if ( (unsigned int)v6 >= 0x21 ) v8 |= v7[4] >> (8 - v4); } } } } *(_QWORD *)(a1 + 16) = &v7[v6 / 8]; *(_DWORD *)a1 = v6 / 8 + v5; *(_DWORD *)(a1 + 4) = v6 & 7; return v8 >> ((32 - a2) >> 1) >> ((33 - a2) >> 1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source