Function at 0x407875
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov word [ebp - 0x1c], 0
mov word [ebp - 0x1a], 0
mov word [ebp - 0x18], 0x34
mov word [ebp - 0x16], 0xbc
mov word [ebp - 0x14], 0x54
mov word [ebp - 0x12], 0xdc
mov word [ebp - 0x10], 0x64
mov word [ebp - 0xe], 0xec
mov dword [ebp - 0xc], 1
call dbg.CreatButton
jmp 0x4078ba
nop
mov eax, dword [0x40f080]
lea edx, [ebp - 0x4c]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 1
lea edx, [ebp - 0x44]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._ReadConsoleInputA_16
sub esp, 0x10
mov eax, dword [ebp - 0x44]
cmp ax, 2
jne 0x4078b9
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
cmp ax, 1
jle 0x407a78
mov eax, dword [ebp - 0x48]
cmp ax, 0xb
jg 0x407a78
mov ax, word [ebp - 0x46]
cmp ax, 2
jle 0x407a78
mov ax, word [ebp - 0x46]
cmp ax, 7
jg 0x407a78
mov word [ebp - 0x1c], 2
mov word [ebp - 0x1a], 3
jmp 0x40796a
movzx edx, word [ebp - 0x16]
mov eax, dword [0x40f070]
lea ecx, [ebp - 0x30]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 0xa
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._FillConsoleOutputAttribute_20
sub esp, 0x14
mov ax, word [ebp - 0x1a]
inc eax
mov word [ebp - 0x1a], ax
mov ax, word [ebp - 0x1a]
cmp ax, 7
jle 0x407933
mov eax, dword [ebp - 0x3c]
cmp eax, 1
jne 0x407ac9
mov word [ebp - 0x1c], 0xe
mov word [ebp - 0x1a], 1
mov eax, dword [0x40f070]
mov edx, dword [ebp - 0x1c]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._SetConsoleCursorPosition_8
sub esp, 8
mov dword [esp], 0x40db68
call sym._printf
lea eax, [ebp - 0x23]
mov dword [esp], eax
call sym._gets
lea eax, [ebp - 0x23]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dbg.DelCoalNode
mov dword [ebp - 0xc], eax
mov word [ebp - 0x1a], 3
mov eax, dword [0x40f070]
mov edx, dword [ebp - 0x1c]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._SetConsoleCursorPosition_8
sub esp, 8
cmp dword [ebp - 0xc], 0
je 0x407a00
mov dword [esp], 0x40db89
call sym._printf
jmp 0x407a0c
mov dword [esp], 0x40dba2
call sym._printf
mov word [ebp - 0x1c], 0xe
mov word [ebp - 0x1a], 5
mov eax, dword [0x40f070]
mov edx, dword [ebp - 0x1c]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._SetConsoleCursorPosition_8
sub esp, 8
mov dword [esp], 0x40dbbc
call sym._printf
lea eax, [ebp - 0x2c]
mov dword [esp + 4], eax
mov dword [esp], 0x40d6ab
call sym._scanf
call sym._getchar
mov al, byte [ebp - 0x2c]
cmp al, 0x59
je 0x407a61
mov al, byte [ebp - 0x2c]
cmp al, 0x4e
jne 0x407a3b
mov al, byte [ebp - 0x2c]
cmp al, 0x59
jne 0x407ef0
call dbg.ClearWorkArea
call dbg.CreatButton
jmp 0x407aca
mov word [ebp - 0x1c], 2
mov word [ebp - 0x1a], 3
jmp 0x407abd
movzx edx, word [ebp - 0x18]
mov eax, dword [0x40f070]
lea ecx, [ebp - 0x30]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 0xa
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._FillConsoleOutputAttribute_20
sub esp, 0x14
mov ax, word [ebp - 0x1a]
inc eax
mov word [ebp - 0x1a], ax
mov ax, word [ebp - 0x1a]
cmp ax, 7
jle 0x407a86
jmp 0x407aca
nop
mov eax, dword [ebp - 0x48]
cmp ax, 1
jle 0x407c8a
mov eax, dword [ebp - 0x48]
cmp ax, 0xb
jg 0x407c8a
mov ax, word [ebp - 0x46]
cmp ax, 9
jle 0x407c8a
mov ax, word [ebp - 0x46]
cmp ax, 0xe
jg 0x407c8a
mov word [ebp - 0x1c], 2
mov word [ebp - 0x1a], 0xa
jmp 0x407b45
movzx edx, word [ebp - 0x12]
mov eax, dword [0x40f070]
lea ecx, [ebp - 0x30]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 0xa
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._FillConsoleOutputAttribute_20
sub esp, 0x14
mov ax, word [ebp - 0x1a]
inc eax
mov word [ebp - 0x1a], ax
mov ax, word [ebp - 0x1a]
cmp ax, 0xe
jle 0x407b0e
mov eax, dword [ebp - 0x3c]
cmp eax, 1
jne 0x407cdb
mov word [ebp - 0x1c], 0xe
mov word [ebp - 0x1a], 1
mov eax, dword [0x40f070]
mov edx, dword [ebp - 0x1c]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._SetConsoleCursorPosition_8
sub esp, 8
mov dword [esp], 0x40dbf4
call sym._printf
lea eax, [ebp - 0x23]
mov dword [esp], eax
call sym._gets
mov word [ebp - 0x1a], 3
mov eax, dword [0x40f070]
mov edx, dword [ebp - 0x1c]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._SetConsoleCursorPosition_8
sub esp, 8
mov dword [esp], 0x40dc2d
call sym._printf
lea eax, [ebp - 0x26]
mov dword [esp], eax
call sym._gets
mov eax, dword [ebp + 8]
mov eax, dword [eax]
lea edx, [ebp - 0x26]
mov dword [esp + 8], edx
lea edx, [ebp - 0x23]
mov dword [esp + 4], edx
mov dword [esp], eax
call dbg.DelProvNode
mov dword [ebp - 0xc], eax
mov word [ebp - 0x1a], 5
mov eax, dword [0x40f070]
mov edx, dword [ebp - 0x1c]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._SetConsoleCursorPosition_8
sub esp, 8
cmp dword [ebp - 0xc], 0
je 0x407c18
mov dword [esp], 0x40db89
call sym._printf
jmp 0x407c24
mov dword [esp], 0x40dba2
call sym._printf
mov word [ebp - 0x1a], 7
mov eax, dword [0x40f070]
mov edx, dword [ebp - 0x1c]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._SetConsoleCursorPosition_8
sub esp, 8
mov dword [esp], 0x40dbbc
call sym._printf
lea eax, [ebp - 0x2c]
mov dword [esp + 4], eax
mov dword [esp], 0x40d6ab
call sym._scanf
call sym._getchar
mov al, byte [ebp - 0x2c]
cmp al, 0x59
je 0x407c73
mov al, byte [ebp - 0x2c]
cmp al, 0x4e
jne 0x407c4d
mov al, byte [ebp - 0x2c]
cmp al, 0x59
jne 0x407ef3
call dbg.ClearWorkArea
call dbg.CreatButton
jmp 0x407cdc
mov word [ebp - 0x1c], 2
mov word [ebp - 0x1a], 0xa
jmp 0x407ccf
movzx edx, word [ebp - 0x14]
mov eax, dword [0x40f070]
lea ecx, [ebp - 0x30]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 0xa
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._FillConsoleOutputAttribute_20
sub esp, 0x14
mov ax, word [ebp - 0x1a]
inc eax
mov word [ebp - 0x1a], ax
mov ax, word [ebp - 0x1a]
cmp ax, 0xe
jle 0x407c98
jmp 0x407cdc
nop
mov eax, dword [ebp - 0x48]
cmp ax, 1
jle 0x407e9c
mov eax, dword [ebp - 0x48]
cmp ax, 0xb
jg 0x407e9c
mov ax, word [ebp - 0x46]
cmp ax, 0x10
jle 0x407e9c
mov ax, word [ebp - 0x46]
cmp ax, 0x15
jg 0x407e9c
mov word [ebp - 0x1c], 2
mov word [ebp - 0x1a], 0x11
jmp 0x407d57
movzx edx, word [ebp - 0xe]
mov eax, dword [0x40f070]
lea ecx, [ebp - 0x30]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 0xa
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._FillConsoleOutputAttribute_20
sub esp, 0x14
mov ax, word [ebp - 0x1a]
inc eax
mov word [ebp - 0x1a], ax
mov ax, word [ebp - 0x1a]
cmp ax, 0x15
jle 0x407d20
mov eax, dword [ebp - 0x3c]
cmp eax, 1
jne 0x407e96
mov word [ebp - 0x1c], 0xe
mov word [ebp - 0x1a], 1
mov eax, dword [0x40f070]
mov edx, dword [ebp - 0x1c]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._SetConsoleCursorPosition_8
sub esp, 8
mov dword [esp], 0x40dc48
call sym._printf
lea eax, [ebp - 0x26]
mov dword [esp], eax
call sym._gets
mov word [ebp - 0x1a], 3
mov eax, dword [0x40f070]
mov edx, dword [ebp - 0x1c]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._SetConsoleCursorPosition_8
sub esp, 8
mov dword [esp], 0x40dc6d
call sym._printf
lea eax, [ebp - 0x2b]
mov dword [esp], eax
call sym._gets
mov eax, dword [ebp + 8]
mov eax, dword [eax]
lea edx, [ebp - 0x2b]
mov dword [esp + 8], edx
lea edx, [ebp - 0x26]
mov dword [esp + 4], edx
mov dword [esp], eax
call dbg.DelGnrtNode
mov dword [ebp - 0xc], eax
mov word [ebp - 0x1a], 5
mov eax, dword [0x40f070]
mov edx, dword [ebp - 0x1c]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._SetConsoleCursorPosition_8
sub esp, 8
cmp dword [ebp - 0xc], 0
je 0x407e2a
mov dword [esp], 0x40db89
call sym._printf
jmp 0x407e36
mov dword [esp], 0x40dba2
call sym._printf
mov word [ebp - 0x1a], 7
mov eax, dword [0x40f070]
mov edx, dword [ebp - 0x1c]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._SetConsoleCursorPosition_8
sub esp, 8
mov dword [esp], 0x40dbbc
call sym._printf
lea eax, [ebp - 0x2c]
mov dword [esp + 4], eax
mov dword [esp], 0x40d6ab
call sym._scanf
call sym._getchar
mov al, byte [ebp - 0x2c]
cmp al, 0x59
je 0x407e85
mov al, byte [ebp - 0x2c]
cmp al, 0x4e
jne 0x407e5f
mov al, byte [ebp - 0x2c]
cmp al, 0x59
jne 0x407ef6
call dbg.ClearWorkArea
call dbg.CreatButton
nop
jmp 0x4078ba
mov word [ebp - 0x1c], 2
mov word [ebp - 0x1a], 0x11
jmp 0x407ee1
movzx edx, word [ebp - 0x10]
mov eax, dword [0x40f070]
lea ecx, [ebp - 0x30]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 0xa
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._FillConsoleOutputAttribute_20
sub esp, 0x14
mov ax, word [ebp - 0x1a]
inc eax
mov word [ebp - 0x1a], ax
mov ax, word [ebp - 0x1a]
cmp ax, 0x15
jle 0x407eaa
jmp 0x4078ba
nop
jmp 0x407ef7
nop
jmp 0x407ef7
nop
mov eax, 1
leave
ret