# sty1001/unowhy-tools-pe architecture

> Architecture diagram of the GitHub repository sty1001/unowhy-tools-pe, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/sty1001/unowhy-tools-pe
- Repository: https://github.com/sty1001/unowhy-tools-pe

## Overview

Unowhy Tools PE is a Windows PE launcher: its main form opens utility processes or a modal power form, which invokes Windows PE shutdown/reboot commands. The sampled code establishes those launch relationships; it does not expose the launched utilities’ internal workflows. The README identifies the ISO context but provides no further architecture.

Main entry points: [`Unowhy Tools PE/Main.cs`](https://github.com/sty1001/unowhy-tools-pe/blob/master/Unowhy%20Tools%20PE/Main.cs) (Main launcher), [`Unowhy Tools PE/Power.cs`](https://github.com/sty1001/unowhy-tools-pe/blob/master/Unowhy%20Tools%20PE/Power.cs) (Power dialog), [`Unowhy Tools PE/Program.cs`](https://github.com/sty1001/unowhy-tools-pe/blob/master/Unowhy%20Tools%20PE/Program.cs) (Application entry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Launcher UI"]
  node_program["Application entry<br/>[Program.cs]"]
  node_main["Main launcher<br/>[Main.cs]"]
end

subgraph group_pe["PE Operations"]
  node_power["Power dialog<br/>[Power.cs]"]
end

node_cmd["Command Prompt"]
node_epp["EPP utility"]
node_password["Password recovery"]
node_utbu["UTBU tool"]
node_wlu["WLU utility"]
node_cortex["Cortex MDR"]
node_wpeutil["Windows PE utility"]

node_program -->|"runs form"| node_main
node_main -->|"opens dialog"| node_power
node_main -->|"starts cmd.exe"| node_cmd
node_main -->|"starts epp.exe"| node_epp
node_main -->|"starts recovery app"| node_password
node_main -->|"runs batch tool"| node_utbu
node_main -->|"starts WLU.exe"| node_wlu
node_main -->|"runs batch tool"| node_cortex
node_power -->|"requests shutdown or reboot"| node_wpeutil

click node_program "https://github.com/sty1001/unowhy-tools-pe/blob/master/Unowhy%20Tools%20PE/Program.cs"
click node_main "https://github.com/sty1001/unowhy-tools-pe/blob/master/Unowhy%20Tools%20PE/Main.cs"
click node_power "https://github.com/sty1001/unowhy-tools-pe/blob/master/Unowhy%20Tools%20PE/Power.cs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_program,node_main toneBlue
class node_power toneAmber
class node_cmd,node_epp,node_password,node_utbu,node_wlu,node_cortex,node_wpeutil toneIndigo
```

## Components

### Launcher UI

- [Application entry](https://github.com/sty1001/unowhy-tools-pe/blob/master/Unowhy%20Tools%20PE/Program.cs): `Unowhy Tools PE/Program.cs`
- [Main launcher](https://github.com/sty1001/unowhy-tools-pe/blob/master/Unowhy%20Tools%20PE/Main.cs): `Unowhy Tools PE/Main.cs`

### PE Operations

- [Power dialog](https://github.com/sty1001/unowhy-tools-pe/blob/master/Unowhy%20Tools%20PE/Power.cs): `Unowhy Tools PE/Power.cs`

### Other components

- **Command Prompt**
- **EPP utility**
- **Password recovery**
- **UTBU tool**
- **WLU utility**
- **Cortex MDR**
- **Windows PE utility**

## Connections

- Application entry → Main launcher: runs form (evidence: `Unowhy Tools PE/Program.cs`)
- Main launcher → Power dialog: opens dialog (evidence: `Unowhy Tools PE/Main.cs`)
- Main launcher → Command Prompt: starts cmd.exe (evidence: `Unowhy Tools PE/Main.cs`)
- Main launcher → EPP utility: starts epp.exe (evidence: `Unowhy Tools PE/Main.cs`)
- Main launcher → Password recovery: starts recovery app (evidence: `Unowhy Tools PE/Main.cs`)
- Main launcher → UTBU tool: runs batch tool (evidence: `Unowhy Tools PE/Main.cs`)
- Main launcher → WLU utility: starts WLU.exe (evidence: `Unowhy Tools PE/Main.cs`)
- Main launcher → Cortex MDR: runs batch tool (evidence: `Unowhy Tools PE/Main.cs`)
- Power dialog → Windows PE utility: requests shutdown or reboot (evidence: `Unowhy Tools PE/Power.cs`)
