// // sub_10052CE8C from 0x10052ce8c to 0x10052cfe8 (348 bytes) // // 2 xrefs: // > sub_10052ACA8 @ 0x10052ad14 // > sub_10052CFE8 @ 0x10052d004 // // 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_10052CE8C(__int64 a1) { __int64 v2; // x8 unsigned __int64 v4; // x10 __int64 v5; // x9 __int64 v6; // x8 __int64 v7; // x20 __int64 v8; // x21 __int64 v9; // x8 _QWORD *v10; // x21 int v11; // w9 __int64 v12; // x8 v2 = 14; if ( (*(_BYTE *)(*(_QWORD *)(*(_QWORD *)(a1 + 8) + 200LL) + 112LL) & 8) == 0 ) v2 = 5; if ( *(_QWORD *)(*(_QWORD *)(a1 + 128) + 264LL) ) return 1; v4 = *(_QWORD *)(a1 + 424); v5 = v2 + (unsigned int)(*(_DWORD *)(a1 + 456) + 80) + ((v4 >> 7) & 0x400 ^ 0x403); v6 = v2 + v5 + 83; if ( (v4 & 0x800) != 0 ) v7 = v5; else v7 = v6; v8 = *(_QWORD *)(a1 + 368); sub_100588190(9, 12, "s3_both.c", 603); v9 = *(_QWORD *)(v8 + 552); if ( v9 && *(_DWORD *)v9 == (_DWORD)v7 && (v10 = *(_QWORD **)(v9 + 16)) != nullptr ) { *(_QWORD *)(v9 + 16) = *v10; v11 = *(_DWORD *)(v9 + 8) - 1; *(_DWORD *)(v9 + 8) = v11; if ( !v11 ) *(_QWORD *)v9 = 0; sub_100588190(10, 12, "s3_both.c", 613); } else { sub_100588190(10, 12, "s3_both.c", 613); v10 = (_QWORD *)sub_100588710(v7, "s3_both.c", 615); } if ( v10 ) { v12 = *(_QWORD *)(a1 + 128); *(_QWORD *)(v12 + 264) = v10; *(_QWORD *)(v12 + 272) = v7; return 1; } else { sub_1005E0E48(20, 291, 65, "s3_both.c", 718); return 0; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source