// // sub_D199C0 from 0xd199c0 to 0xd19c6c (684 bytes) // // 1 xrefs: // > sub_D19E54 @ 0xd19f90 // // 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 **__fastcall sub_D199C0(_QWORD *a1, __int64 a2, __int64 a3, unsigned int **a4))() { unsigned __int64 v7; // x3 unsigned __int64 v8; // x0 int **v9; // x0 int *v10; // x0 int *v11; // x0 unsigned int *v13; // x1 int v14; // w2 unsigned int *v15; // x1 int v16; // w2 unsigned int *v17; // x1 int v18; // w2 int *v19; // [xsp+48h] [xbp+48h] int *v20; // [xsp+50h] [xbp+50h] BYREF int *v21; // [xsp+58h] [xbp+58h] BYREF sub_D18D28((unsigned int **)&v20, a4); sub_D15FD4(&v20, (int *)": ", 2u); (*(void (__fastcall **)(int **__return_ptr, __int64, _QWORD))(*(_QWORD *)a3 + 24LL))(&v21, a3, (unsigned int)a2); v7 = *((_QWORD *)v20 - 3); v8 = v7 + *((_QWORD *)v21 - 3); if ( v8 > *((_QWORD *)v20 - 2) && v8 <= *((_QWORD *)v21 - 2) ) v9 = sub_D17B90(&v21, 0, v20, v7); else v9 = sub_D15E14(&v20, (_BYTE **)&v21); v19 = *v9; *v9 = (int *)&byte_124B6C8; sub_CF8FFC(a1); if ( v19 - 6 != (int *)&qword_124B6B0 ) { if ( &pthread_create ) { v15 = (unsigned int *)(v19 - 2); do v16 = __ldaxr(v15); while ( __stlxr(v16 - 1, v15) ); } else { v16 = *(v19 - 2); *(v19 - 2) = v16 - 1; } if ( v16 <= 0 ) operator delete(v19 - 6); } v10 = v21 - 6; if ( v21 - 6 != (int *)&qword_124B6B0 ) { if ( &pthread_create ) { v17 = (unsigned int *)(v21 - 2); do v18 = __ldaxr(v17); while ( __stlxr(v18 - 1, v17) ); } else { v18 = *(v21 - 2); *(v21 - 2) = v18 - 1; } if ( v18 <= 0 ) operator delete(v10); } v11 = v20 - 6; if ( v20 - 6 != (int *)&qword_124B6B0 ) { if ( &pthread_create ) { v13 = (unsigned int *)(v20 - 2); do v14 = __ldaxr(v13); while ( __stlxr(v14 - 1, v13) ); } else { v14 = *(v20 - 2); *(v20 - 2) = v14 - 1; } if ( v14 <= 0 ) operator delete(v11); } a1[2] = a2; a1[3] = a3; *a1 = off_121EAA0; return off_121EAA0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source