// // sub_1005E5948 from 0x1005e5948 to 0x1005e5a70 (296 bytes) // // 2 xrefs: // > @ 0x10083bd68 // > @ 0x10083bec8 // // 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_1005E5948(__int64 a1, _BYTE *a2, unsigned __int8 *a3, unsigned __int64 a4) { unsigned __int64 v4; // x20 unsigned __int8 *v5; // x23 __int64 v7; // x19 void (__fastcall *v8)(unsigned __int8 *, _BYTE *, unsigned __int64, __int64, __int64); // x8 _BYTE *v9; // x28 unsigned __int8 *v10; // x0 unsigned __int64 v12; // [xsp+10h] [xbp-70h] unsigned __int64 v13; // [xsp+18h] [xbp-68h] unsigned __int8 *v14; // [xsp+20h] [xbp-60h] _BYTE *v15; // [xsp+28h] [xbp-58h] v4 = a4; v5 = a3; v7 = *(_QWORD *)(a1 + 120); v8 = *(void (__fastcall **)(unsigned __int8 *, _BYTE *, unsigned __int64, __int64, __int64))(v7 + 384); if ( v8 ) { v8(a3, a2, a4, v7, a1 + 40); } else { if ( a4 >> 62 ) { v13 = a4 - 0x4000000000000000LL; v12 = (a4 - 0x4000000000000000LL) & 0xC000000000000000LL; v9 = a2; v14 = &a3[v12 + 0x4000000000000000LL]; v15 = a2; do { sub_10059A30C( v5, v9, 0x4000000000000000LL, (int *)v7, (int *)(v7 + 128), (int *)(v7 + 256), (unsigned __int8 *)(a1 + 40), *(_DWORD *)(a1 + 16)); v4 -= 0x4000000000000000LL; v5 += 0x4000000000000000LL; v9 += 0x4000000000000000LL; } while ( v4 >> 62 ); v10 = v14; a2 = &v15[v12 + 0x4000000000000000LL]; v4 = v13 - v12; } else { v10 = a3; } if ( v4 ) sub_10059A30C( v10, a2, v4, (int *)v7, (int *)(v7 + 128), (int *)(v7 + 256), (unsigned __int8 *)(a1 + 40), *(_DWORD *)(a1 + 16)); } return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source