NTSTATUS

NTSTATUS (__stdcall *__fastcall WdHwpGetWriteMethod(char a1, char a2))(UINT16, UINT64){
  __int64 v2; 

  v2 = 0i64;
  if( a1 )
  {
    if( a1 == 1 )
    {
      switch( a2 )
      {
        case 1:
          return WdHwpWritePortUChar;
        case 2:
          return WdHwpWritePortUShort;
        case 4:
          return(NTSTATUS(__stdcall *)(UINT16, UINT64))WRITE_PORT_ULONG;
      }
    }
  }
  else
  {
    switch( a2 )
    {
      case 1:
        return(NTSTATUS(__stdcall *)(UINT16, UINT64))WdHwpWriteRegisterUChar;
      case 2:
        return(NTSTATUS(__stdcall *)(UINT16, UINT64))WdHwpWriteRegisterUShort;
      case 4:
        return(NTSTATUS(__stdcall *)(UINT16, UINT64))WdHwpWriteRegisterULong;
    }
  }
  return(NTSTATUS(__stdcall *)(UINT16, UINT64))v2;
}

Referenced by:

No references.