private static EFunctionType vertexToFunctionType(final BinExport2.CallGraph.Vertex.Type type) {
    switch (type) {
      case NORMAL:
        return EFunctionType.NORMAL;
      case LIBRARY:
        return EFunctionType.LIBRARY;
      case IMPORTED:
        return EFunctionType.IMPORTED;
      case THUNK:
        return EFunctionType.THUNK;
      case INVALID:
        return EFunctionType.UNKNOWN;
      default:
        throw new IllegalArgumentException("Invalid vertex type");
    }
  }
Reads data from BinExport2 files and renders disassemblies.
java/ui/src/main/java/com/google/security/zynamics/bindiff/io/BinExport2Reader.java