// // sub_1004A0E78 from 0x1004a0e78 to 0x1004a0fdc (356 bytes) // // 4 xrefs: // > sub_10043DB34 @ 0x10043dbe4 // > sub_1004B66C0 @ 0x1004b67f8 // > sub_1004B7EC4 @ 0x1004b8088 // > sub_1004BC664 @ 0x1004bc8ec // // 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_1004A0E78(__int64 a1, __int128 *a2) { __int64 *v3; // x21 __int128 v4; // q0 __int128 v5; // q1 __int128 v6; // q2 unsigned int *v7; // x20 unsigned int v8; // w8 unsigned int v9; // w8 __int64 v10; // x8 __int64 (__fastcall *v11)(__int64 *, __int64, __int64, __int64, __int64, int); // x9 __int64 result; // x0 __int64 (__fastcall *v13)(__int64); // x9 __int64 i; // x9 _DWORD *v15; // x10 unsigned int v16; // w8 if ( !a2 ) return 31; v3 = (__int64 *)(a1 + 232); v4 = *a2; v5 = a2[1]; v6 = a2[2]; *(_QWORD *)(a1 + 280) = *((_QWORD *)a2 + 6); *(_OWORD *)(a1 + 264) = v6; *(_OWORD *)(a1 + 248) = v5; *(_OWORD *)(a1 + 232) = v4; *(_QWORD *)(a1 + 104) = a1; *(_DWORD *)(a1 + 96) = 0; v7 = (unsigned int *)(a1 + 100); do v8 = __ldaxr(v7); while ( __stlxr(v8 & 0xFFFFDFFF, v7) ); do v9 = __ldaxr(v7); while ( __stlxr(v9 & 0xFFFFFFBF, v7) ); *(_DWORD *)(a1 + 196) = 0; *(_DWORD *)(a1 + 440) = 0; if ( (*(_BYTE *)(*(_QWORD *)(a1 + 168) + 122LL) & 0x20) != 0 ) sub_1004A0FDC(a1, 0, 1); v10 = *v3; if ( *v3 ) { *(_QWORD *)(a1 + 488) = *(_QWORD *)(v10 + 184); v11 = *(__int64 (__fastcall **)(__int64 *, __int64, __int64, __int64, __int64, int))(v10 + 80); if ( !v11 ) { if ( !*(_QWORD *)(v10 + 72) ) goto LABEL_12; v11 = sub_1004A08C8; } *(_QWORD *)(a1 + 288) = v11; LABEL_12: result = sub_1004CF990(*(_QWORD *)(a1 + 168), 1048592, a1, 0); if ( (_DWORD)result ) return result; v10 = *v3; v13 = *(__int64 (__fastcall **)(__int64))(*v3 + 48); if ( v13 ) { *(_QWORD *)(a1 + 176) = a1; result = v13(a1 + 176); if ( (_DWORD)result ) return result; v10 = *v3; } } for ( i = 0; ; ++i ) { if ( v10 ) { if ( i >= *(int *)(v10 + 96) ) return 0; } else if ( i >= 0 ) { return 0; } v15 = *(_DWORD **)(*(_QWORD *)(v10 + 104) + 8 * i); if ( *v15 == 3 && v15[12] == -3 ) break; } do v16 = __ldaxr(v7); while ( __stlxr(v16 | 8, v7) ); return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source