Extract Local Variable

void loc100() {
        ...
        eax = ...;
        ...
        ...
        ... = eax;
        ...
}

void loc100() {
        int var1;
        ...
        var1 = ...;
        ...
        ...
        ... = var1;
        ...
}

Motivation

During compilation, local variables are mapped into registers or stack positions. This transformation must be reversed in order to improve code understanding.

Mechanics