// // sub_9EB44 from 0x9eb44 to 0x9ecd0 (396 bytes) // // 1 xrefs: // > sub_9EA78 @ 0x9ea80 // // 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_9EB44(__int64 a1, _BYTE *a2, unsigned int a3, unsigned int *a4) { __int64 v4; // x8 _BYTE *v7; // x21 unsigned int v8; // w3 unsigned int v9; // w22 unsigned int i; // w8 char v11; // w10 char v12; // w11 char v13; // w12 __int64 v14; // x8 unsigned int v15; // w9 __int64 result; // x0 unsigned int v17; // [xsp+8h] [xbp-28h] unsigned int v18; // [xsp+Ch] [xbp-24h] BYREF v4 = *(_QWORD *)(a1 + 8); v7 = a2; v8 = *(_DWORD *)(v4 + 8); if ( v8 - 1 > 1 || (*(_BYTE *)(a1 + 45) & 1) != 0 ) { sub_5C280(a3, &v18, *(_DWORD *)(v4 + 12), v8); v9 = sub_9ED3C(*(_QWORD *)(a1 + 368)); sub_5C214(v17, a4, *(_DWORD *)(*(_QWORD *)(a1 + 8) + 12LL), *(_DWORD *)(*(_QWORD *)(a1 + 8) + 8LL)); return v9; } if ( v8 != 2 ) { sub_9ED30(); v9 = sub_9ED3C(*(_QWORD *)(a1 + 368)); for ( i = v18 >> 2; i; v7 += 4 ) { v11 = v7[1] ^ 0x80; v12 = v7[2] ^ 0x80; v13 = v7[3] ^ 0x80; --i; *v7 ^= 0x80u; v7[1] = v11; v7[2] = v12; v7[3] = v13; } v14 = 0; v15 = v18 & 3; while ( v15 != (_DWORD)v14 ) v7[v14++] ^= 0x80u; sub_9D6E4(v18, a4, *(_QWORD *)(a1 + 8)); return v9; } if ( !*(_DWORD *)(a1 + 40) ) return 0; result = sub_E03B0(*(_QWORD *)(a1 + 368), a2, 2, *(_DWORD *)(v4 + 12) * a3, a4); *a4 /= *(_DWORD *)(*(_QWORD *)(a1 + 8) + 12LL); return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source