BcpPrintSpaces

INT64 __fastcall BcpPrintSpaces(INT64 a1, UINT64 a2, UINT64 a3, UINT64 a4, UINT64 a5, INT64 *a6){
  int v6; 
  unsigned int v7; 
  unsigned int v8; 
  unsigned int v9; 
  INT64 result; 
  unsigned int v12; 
  unsigned __int64 v13; 
  int v14; 
  int v15; 
  v6 = 0;
  v7 = a4;
  v14 = 0;
  v8 = a3;
  v15 = 0;
  v9 = a2;
  result = 0i64;
  if( (unsigned int)a2 >= (unsigned int)a3 )
  {
LABEL_6:
    *(_DWORD *)a6 = v6;
  }
  else
  {
    v12 = a5;
    while( 1 )
    {
      BgpDisplayCharacterEx(0x20u, a1, v9, v7, v12, v12, &v14, &v15, v13, &BcpWorkspace);
      if( (int)result < 0 )
        break;
      v9 += v14;
      if( v9 >= v8 )
      {
        v6 = v15;
        goto LABEL_6;
      }
    }
  }
  return result;
}

Referenced by:

BcpDisplayCriticalString