// // sub_10052CD3C from 0x10052cd3c to 0x10052ce8c (336 bytes) // // 5 xrefs: // > sub_10052A5B0 @ 0x10052a5f4 // > sub_10052B0A8 @ 0x10052b0fc // > sub_10052CFE8 @ 0x10052cff8 // > sub_10052E57C @ 0x10052eaac // > sub_10052EC84 @ 0x10052f700 // // 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_10052CD3C(_QWORD *a1) { __int64 v2; // x8 __int64 v3; // x10 __int64 v4; // x9 __int64 v5; // x8 __int64 v6; // x22 __int64 v7; // x21 __int64 v8; // x20 __int64 v9; // x8 _QWORD *v10; // x21 int v11; // w9 v2 = a1[16]; if ( *(_QWORD *)(v2 + 240) ) goto LABEL_20; v3 = *(_DWORD *)(*(_QWORD *)(a1[1] + 200LL) + 112LL) & 8LL; v4 = a1[53]; if ( (v4 & 0x20) != 0 ) { *(_DWORD *)(v2 + 236) = 1; v5 = v3 + 33096; } else { v5 = v3 + 16712; } if ( (v4 & 0x20000) != 0 ) v6 = v5; else v6 = v5 + 1024; v7 = a1[46]; if ( (v4 & 0x20000) != 0 ) v8 = (unsigned int)v5; else v8 = (unsigned int)(v5 + 1024); sub_100588190(9, 12, "s3_both.c", 603); v9 = *(_QWORD *)(v7 + 560); if ( v9 && *(_DWORD *)v9 == (_DWORD)v8 && (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(v8, "s3_both.c", 615); } if ( v10 ) { v2 = a1[16]; *(_QWORD *)(v2 + 240) = v10; *(_QWORD *)(v2 + 248) = v6; LABEL_20: a1[13] = *(_QWORD *)(v2 + 240); return 1; } sub_1005E0E48(20, 156, 65, "s3_both.c", 681); return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source