Function at 0x408954
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
call dbg.DrawCross
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call dbg.PrintCoalNode
jmp 0x4089b6
nop
jmp 0x4089b6
nop
jmp 0x4089b6
nop
jmp 0x4089b6
nop
jmp 0x4089b6
nop
jmp 0x4089b6
nop
mov eax, dword [0x40f080]
lea edx, [ebp - 0x80]
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 0x4089a6
mov eax, dword [ebp - 0x3c]
cmp eax, 1
jne 0x4089a9
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x70], eax
mov ax, word [ebp - 0x6e]
cmp ax, 0x14
jne 0x408a3f
mov eax, dword [ebp - 0x70]
cmp ax, 0x43
jle 0x408a3f
mov eax, dword [ebp - 0x70]
cmp ax, 0x47
jg 0x408a3f
call dbg.ClearWorkArea
call dbg.DrawCross
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dbg.SeekCoalPriorNode
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call dbg.PrintCoalNode
mov eax, dword [ebp - 0x70]
cmp ax, 0x49
jle 0x408aa2
mov eax, dword [ebp - 0x70]
cmp ax, 0x4d
jg 0x408aa2
mov ax, word [ebp - 0x6e]
cmp ax, 0x14
jne 0x408aa2
call dbg.ClearWorkArea
call dbg.DrawCross
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x90]
test eax, eax
jne 0x408a85
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call dbg.PrintCoalNode
jmp 0x408aa2
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x90]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call dbg.PrintCoalNode
mov ax, word [ebp - 0x6e]
cmp ax, 0x11
jle 0x408b85
mov ax, word [ebp - 0x6e]
cmp ax, 0x13
jg 0x408b85
mov eax, dword [ebp - 0x70]
cmp ax, 0x47
jle 0x408b85
mov eax, dword [ebp - 0x70]
cmp ax, 0x49
jg 0x408b85
call dbg.ClearWorkArea
call dbg.DrawCross
mov word [ebp - 0x84], 0x18
mov word [ebp - 0x82], 9
mov eax, dword [0x40f070]
mov edx, dword [ebp - 0x84]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._SetConsoleCursorPosition_8
sub esp, 8
mov word [ebp - 0x8c], 0x14
mov word [ebp - 0x8a], 8
mov word [ebp - 0x88], 0x41
mov word [ebp - 0x86], 0xa
lea eax, [ebp - 0x8c]
mov dword [esp], eax
call dbg.DrawBox
mov dword [esp], 0x40decc
call sym._printf
lea eax, [ebp - 0x79]
mov dword [esp + 4], eax
mov dword [esp], 0x40d6ab
call sym._scanf
call sym._getchar
mov al, byte [ebp - 0x79]
cmp al, 0x59
jne 0x408b70
mov eax, dword [ebp - 0x30]
leave
ret
call dbg.ClearWorkArea
call dbg.DrawCross
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call dbg.PrintCoalNode
mov ax, word [ebp - 0x6e]
cmp ax, 0x14
jle 0x4089ac
mov ax, word [ebp - 0x6e]
cmp ax, 0x16
jg 0x4089af
mov eax, dword [ebp - 0x70]
cmp ax, 0x47
jle 0x4089b2
mov eax, dword [ebp - 0x70]
cmp ax, 0x49
jg 0x4089b5
call dbg.ClearWorkArea
call dbg.DrawCross
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x8c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call dbg.PrintProvNode
jmp 0x408bee
nop
jmp 0x408bee
nop
jmp 0x408bee
nop
jmp 0x408bee
nop
jmp 0x408bee
nop
jmp 0x408bee
nop
mov eax, dword [0x40f080]
lea edx, [ebp - 0x80]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 1
lea edx, [ebp - 0x58]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._ReadConsoleInputA_16
sub esp, 0x10
mov eax, dword [ebp - 0x58]
cmp ax, 2
jne 0x408bde
mov eax, dword [ebp - 0x50]
cmp eax, 1
jne 0x408be1
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x74], eax
mov ax, word [ebp - 0x72]
cmp ax, 0x14
jne 0x408c77
mov eax, dword [ebp - 0x74]
cmp ax, 0x43
jle 0x408c77
mov eax, dword [ebp - 0x74]
cmp ax, 0x47
jg 0x408c77
call dbg.ClearWorkArea
call dbg.DrawCross
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call dbg.SeekProvPriorNode
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call dbg.PrintProvNode
mov ax, word [ebp - 0x72]
cmp ax, 0x14
jne 0x408cda
mov eax, dword [ebp - 0x74]
cmp ax, 0x49
jle 0x408cda
mov eax, dword [ebp - 0x74]
cmp ax, 0x4d
jg 0x408cda
call dbg.ClearWorkArea
call dbg.DrawCross
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x3c]
test eax, eax
jne 0x408cc0
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x8c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call dbg.PrintProvNode
jmp 0x408cda
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call dbg.PrintProvNode
mov ax, word [ebp - 0x72]
cmp ax, 0x11
jle 0x408d1b
mov ax, word [ebp - 0x72]
cmp ax, 0x13
jg 0x408d1b
mov eax, dword [ebp - 0x74]
cmp ax, 0x47
jle 0x408d1b
mov eax, dword [ebp - 0x74]
cmp ax, 0x49
jg 0x408d1b
call dbg.ClearWorkArea
call dbg.DrawCross
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call dbg.PrintCoalNode
nop
jmp 0x4089b6
mov ax, word [ebp - 0x72]
cmp ax, 0x14
jle 0x408be4
mov ax, word [ebp - 0x72]
cmp ax, 0x16
jg 0x408be7
mov eax, dword [ebp - 0x74]
cmp ax, 0x47
jle 0x408bea
mov eax, dword [ebp - 0x74]
cmp ax, 0x49
jg 0x408bed
call dbg.ClearWorkArea
call dbg.DrawCross
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x38]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dbg.PrintGnrtNode
jmp 0x408d81
nop
jmp 0x408d81
nop
jmp 0x408d81
nop
jmp 0x408d81
nop
jmp 0x408d81
nop
jmp 0x408d81
nop
mov eax, dword [0x40f080]
lea edx, [ebp - 0x80]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 1
lea edx, [ebp - 0x6c]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._ReadConsoleInputA_16
sub esp, 0x10
mov eax, dword [ebp - 0x6c]
cmp ax, 2
jne 0x408d71
mov eax, dword [ebp - 0x64]
cmp eax, 1
jne 0x408d74
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x78], eax
mov ax, word [ebp - 0x76]
cmp ax, 0x14
jne 0x408e0a
mov eax, dword [ebp - 0x78]
cmp ax, 0x43
jle 0x408e0a
mov eax, dword [ebp - 0x78]
cmp ax, 0x47
jg 0x408e0a
call dbg.ClearWorkArea
call dbg.DrawCross
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call dbg.SeekGnrtPriorNode
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call dbg.PrintGnrtNode
mov ax, word [ebp - 0x76]
cmp ax, 0x14
jne 0x408e6a
mov eax, dword [ebp - 0x78]
cmp ax, 0x49
jle 0x408e6a
mov eax, dword [ebp - 0x78]
cmp ax, 0x4d
jg 0x408e6a
call dbg.ClearWorkArea
call dbg.DrawCross
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x4c]
test eax, eax
jne 0x408e50
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x38]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dbg.PrintGnrtNode
jmp 0x408e6a
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x4c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call dbg.PrintGnrtNode
mov ax, word [ebp - 0x76]
cmp ax, 0x11
jle 0x408eab
mov ax, word [ebp - 0x76]
cmp ax, 0x13
jg 0x408eab
mov eax, dword [ebp - 0x78]
cmp ax, 0x47
jle 0x408eab
mov eax, dword [ebp - 0x78]
cmp ax, 0x49
jg 0x408eab
call dbg.ClearWorkArea
call dbg.DrawCross
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call dbg.PrintProvNode
nop
jmp 0x408bee
mov ax, word [ebp - 0x76]
cmp ax, 0x14
jle 0x408d77
mov ax, word [ebp - 0x76]
cmp ax, 0x16
jg 0x408d7a
mov eax, dword [ebp - 0x78]
cmp ax, 0x47
jle 0x408d7d
mov eax, dword [ebp - 0x78]
cmp ax, 0x49
jg 0x408d80
call dbg.ClearWorkArea
call dbg.DrawCross
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dbg.PrintGnrtNode
jmp 0x408d81