// // sub_10053D9C4 from 0x10053d9c4 to 0x10053daf8 (308 bytes) // // 2 xrefs: // > sub_100531478 @ 0x100531f58 // > sub_100531478 @ 0x100531fc4 // // 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_10053D9C4(__int64 a1, _BYTE *a2, int *a3, int a4) { __int64 v7; // x21 __int64 v8; // x8 int v9; // w0 int v10; // w22 int v11; // w24 __int64 v12; // x2 __int64 v13; // x4 _BYTE *v15; // x25 __int64 v16; // x23 __int64 v17; // x0 _BYTE *v18; // x8 if ( !a1 || (v7 = *(_QWORD *)(a1 + 648)) == 0 && ((v8 = *(_QWORD *)(a1 + 368)) == 0 || (v7 = *(_QWORD *)(v8 + 728)) == 0) ) { v7 = 0; } v9 = sub_1005DEA4C(v7); v10 = v9; if ( a2 ) { if ( !v9 ) { v12 = 354; v13 = 254; goto LABEL_12; } v11 = 2 * v9 + 3; if ( v11 > a4 ) { v12 = 363; v13 = 260; LABEL_12: sub_1005E0E48(20, 307, v12, "d1_srtp.c", v13); return 1; } *a2 = (unsigned int)v9 >> 7; a2[1] = 2 * v9; v15 = a2 + 2; if ( v9 < 1 ) { v18 = a2 + 2; } else { v16 = 0; do { v17 = sub_1005DEA60(v7, v16); *v15 = BYTE1(*(_QWORD *)(v17 + 8)); a2[3] = *(_QWORD *)(v17 + 8); v16 = (unsigned int)(v16 + 1); v18 = a2 + 4; a2 = v15; v15 = v18; } while ( v10 != (_DWORD)v16 ); } *v18 = 0; } else { v11 = 2 * v9 + 3; } *a3 = v11; return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source