// // sub_C78B0 from 0xc78b0 to 0xc79c0 (272 bytes) // // 3 xrefs: // > sub_6305C @ 0x631e0 // > sub_76DAC @ 0x76e68 // > sub_D7A88 @ 0xd7aa8 // // 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_C78B0(__int64 a1, __int128 *a2) { __int128 v2; // q1 __int128 v3; // q2 __int128 v4; // q3 __int64 v6; // x21 unsigned int *v7; // x20 unsigned int v8; // w8 unsigned int v9; // w8 __int64 v10; // x8 _QWORD *v11; // x8 __int64 (__fastcall *v12)(__int64 *, __int64, __int64, __int64, __int64, int); // x9 __int64 result; // x0 unsigned int v14; // w8 if ( !a2 ) return 31; v2 = a2[3]; v3 = *a2; v4 = a2[1]; v6 = a1 + 232; v7 = (unsigned int *)(a1 + 100); *(_OWORD *)(a1 + 264) = a2[2]; *(_OWORD *)(a1 + 280) = v2; *(_OWORD *)(a1 + 248) = v4; *(_OWORD *)(a1 + 232) = v3; *(_QWORD *)(a1 + 104) = a1; *(_DWORD *)(a1 + 96) = 0; do v8 = __ldaxr(v7); while ( __stlxr(v8 & 0xFFFFDFFF, v7) ); do v9 = __ldaxr(v7); while ( __stlxr(v9 & 0xFFFFFFBF, v7) ); v10 = *(_QWORD *)(a1 + 168); *(_DWORD *)(a1 + 196) = 0; *(_DWORD *)(a1 + 448) = 0; if ( (*(_BYTE *)(v10 + 122) & 0x20) != 0 ) sub_C79C0(a1, 0, 1); v11 = *(_QWORD **)v6; if ( *(_QWORD *)v6 ) { *(_QWORD *)(a1 + 496) = v11[23]; v12 = (__int64 (__fastcall *)(__int64 *, __int64, __int64, __int64, __int64, int))v11[10]; if ( !v12 ) { if ( !v11[9] ) { LABEL_12: result = sub_6AF80(*(_QWORD *)(a1 + 168), 0x100010u, a1, 0); if ( (_DWORD)result ) return result; if ( *(_QWORD *)(*(_QWORD *)v6 + 48LL) ) { result = sub_CD368(); if ( (_DWORD)result ) return result; } goto LABEL_15; } v12 = sub_C7588; } *(_QWORD *)(a1 + 296) = v12; goto LABEL_12; } LABEL_15: if ( !(unsigned int)sub_C7AC4(a1, 4294967293LL, 0) ) { do v14 = __ldaxr(v7); while ( __stlxr(v14 | 8, v7) ); } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source