Function at 0x4013be
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov word [ebp - 0x44], 0
mov word [ebp - 0x42], 0
mov dword [ebp - 0x14], 2
mov eax, dword [0x40b070]
lea edx, [ebp - 0x32]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._GetConsoleScreenBufferInfo_8
sub esp, 8
mov ax, word [ebp - 0x32]
mov word [ebp - 0x40], ax
mov word [ebp - 0x3e], 1
mov eax, dword [0x40b070]
mov edx, dword [ebp - 0x44]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._SetConsoleCursorPosition_8
sub esp, 8
mov dword [ebp - 0x1c], 0
jmp 0x401439
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax*4 + 0x40801c]
mov dword [esp + 4], eax
mov dword [esp], str.___s
call sym._printf
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 4
jle 0x40141c
mov eax, dword [0x40b070]
lea edx, [ebp - 0x3c]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._GetConsoleCursorInfo_8
sub esp, 8
mov dword [ebp - 0x38], 0
mov eax, dword [0x40b070]
lea edx, [ebp - 0x3c]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._SetConsoleCursorInfo_8
sub esp, 8
mov eax, dword [ebp - 0x40]
movsx edx, ax
mov ax, word [ebp - 0x3e]
cwde
imul eax, edx
shl eax, 2
mov dword [esp], eax
call sym._malloc
mov dword [0x40b014], eax
mov eax, dword [ebp - 0x40]
dec eax
mov word [ebp - 0x4c], 0
mov word [ebp - 0x4a], 0
mov word [ebp - 0x48], ax
mov word [ebp - 0x46], 0
mov edx, dword [0x40b014]
mov eax, dword [0x40b070]
lea ecx, [ebp - 0x4c]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp - 0x44]
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp - 0x40]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._ReadConsoleOutputA_20
sub esp, 0x14
mov dword [ebp - 0x1c], 0
jmp 0x40154a
mov eax, dword [0x40b014]
mov edx, dword [ebp - 0x1c]
shl edx, 2
add eax, edx
mov word [eax + 2], 0x70
mov eax, dword [0x40b014]
mov edx, dword [ebp - 0x1c]
shl edx, 2
add eax, edx
mov al, byte [eax]
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0x40
jle 0x401515
cmp byte [ebp - 9], 0x5a
jle 0x401521
cmp byte [ebp - 9], 0x60
jle 0x401547
cmp byte [ebp - 9], 0x7a
jg 0x401547
mov eax, dword [0x40b014]
mov edx, dword [ebp - 0x1c]
shl edx, 2
lea edx, [eax + edx]
mov eax, dword [0x40b014]
mov ecx, dword [ebp - 0x1c]
shl ecx, 2
add eax, ecx
mov ax, word [eax + 2]
or eax, 4
mov word [edx + 2], ax
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x40]
cwde
cmp eax, dword [ebp - 0x1c]
jg 0x4014e4
mov edx, dword [0x40b014]
mov eax, dword [0x40b070]
lea ecx, [ebp - 0x4c]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp - 0x44]
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp - 0x40]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._WriteConsoleOutputA_20
sub esp, 0x14
mov word [ebp - 0x50], 0
mov word [ebp - 0x4e], 1
mov eax, dword [0x40b070]
mov edx, dword [ebp - 0x50]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._SetConsoleCursorPosition_8
sub esp, 8
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax*4 + 0x40801c]
mov dword [esp], eax
call sym._strlen
mov edx, eax
mov eax, dword [ebp - 0x14]
lea eax, [edx + eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
jmp 0x4015f8
mov edx, dword [0x40b01c]
mov eax, dword [ebp - 0x18]
add edx, eax
mov ecx, dword [0x40b01c]
mov eax, dword [ebp - 0x18]
lea eax, [ecx + eax]
mov cl, byte [eax]
mov eax, dword [ebp - 0x1c]
inc eax
shl eax, 2
or eax, ecx
mov byte [edx], al
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x10]
jl 0x4015d1
mov eax, dword [ebp - 0x10]
add eax, 4
mov dword [ebp - 0x14], eax
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 4
jle 0x4015ac
mov eax, dword [0x4080a0]
mov dword [esp], eax
call dbg.TagMainMenu
leave
ret