// // sub_1004C4710 from 0x1004c4710 to 0x1004c47e4 (212 bytes) // // 2 xrefs: // > sub_1004BDD4C @ 0x1004bdd64 // > sub_1004C47E4 @ 0x1004c48a0 // // 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_1004C4710(__int64 a1) { unsigned int v2; // w9 unsigned int v3; // w8 __int64 v4; // x8 _QWORD *v5; // x8 _QWORD *v6; // x9 _QWORD *v7; // t1 _BOOL4 v8; // w20 _QWORD *v9; // x10 unsigned int v11; // w9 unsigned int v12; // w8 if ( *(_QWORD *)(a1 + 264) ) { if ( (v2 = atomic_load((unsigned int *)(a1 + 272))) != 0 && (v3 = atomic_load((unsigned int *)(a1 + 272)), v3 != 2) || *(_BYTE *)(a1 + 92) ) { sub_1004B5C70(*(pthread_mutex_t **)(*(_QWORD *)(*(_QWORD *)(a1 + 264) + 16LL) + 360LL)); v4 = *(_QWORD *)(a1 + 264); v7 = *(_QWORD **)(v4 + 24); v5 = (_QWORD *)(v4 + 24); v6 = v7; v8 = v7 == v5 && v5[1] == (_QWORD)v5; if ( v7 == v5 && v5[1] == (_QWORD)v5 ) v9 = v5; else v9 = (_QWORD *)v5[1]; *v9 = v6; *(_QWORD *)(*v5 + 8LL) = v9; *v5 = v5; v5[1] = v5; sub_1004B5CA0(*(pthread_mutex_t **)(*(v5 - 1) + 360LL)); if ( v8 ) { while ( 1 ) { v11 = atomic_load((unsigned int *)(a1 + 272)); if ( !v11 || (v12 = atomic_load((unsigned int *)(a1 + 272)), v12 == 2) ) { if ( !*(_BYTE *)(a1 + 92) ) break; } sub_1004B586C(2); } } else { atomic_store(0, (unsigned int *)(a1 + 272)); } } } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source