VslSetupLiveDumpBufferInSk

INT64 __fastcall VslSetupLiveDumpBufferInSk(
        PVOID *a1,
        UINT64 a2,
        UINT64 a3,
        UINT64 a4,
        _QWORD *a5,
        _QWORD *a6,
        _QWORD *a7,
        _QWORD *a8,
        _QWORD *a9){
  int v9; 
  int v10; 
  int v12; 
  int v13; 
  INT64 result[14]; 
  v9 = a3;
  v10 = a2;
  v12 = VslpLiveDumpStart((unsigned int)a2, (unsigned int)a3, (unsigned int)a4);
  if( v12 >= 0 )
  {
    v13 = v9 + v10;
    if( v13 )
    {
      do
      {
        v12 = VslpAddLiveDumpBufferChunk(*a1);
        if( v12 < 0 )
          goto LABEL_6;
        ++a1;
      }
      while( --v13 );
    }
    v12 = VslpSetupLiveDumpBuffer(a5, a6, a7, a8, a9);
    if( v12 < 0 )
    {
LABEL_6:
      memset((INT64)result, 0i64);
      VslpEnterIumSecureMode(2u, 58, 0i64, (INT64)result);
    }
  }
  return(unsigned int)v12;
}

Referenced by:

HvlPrepareLivedumpDescriptor