PopPluginRegisterDevice

INT64 __fastcall PopPluginRegisterDevice(UINT64 P3, INT64 a2, INT64 a3, INT64 a4, CHAR a5, INT64 a6){
  unsigned int v6; 
  unsigned __int8(__fastcall *v7)(__int64, _QWORD *); 
  _QWORD v10[3]; 
  __int64 v11; 
  unsigned int v12; 
  int v13; 
  v6 = 0;
  v7 = *(unsigned __int8(__fastcall **)(__int64, _QWORD *))(P3 + 96);
  v13 = 0;
  *(_QWORD *)a6 = 0i64;
  if( v7 && *(_DWORD *)(P3 + 16) >= 2u && a4 )
  {
    v10[0] = a2;
    v10[1] = a3;
    v10[2] = a4;
    v11 = 0i64;
    v12 = 0;
    if( !v7(3i64, v10) )
      PopFxBugCheck(0x605ui64, 3ui64, P3, 0i64);
    if( v12 )
    {
      v6 = v12;
      *(_QWORD *)a6 = v11;
    }
  }
  return v6;
}

Referenced by:

PopFxRegisterDeviceWithPep