Function at 0x401b99
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 [0x408070]
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 [0x408070]
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 0x401c14
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax*4 + 0x406018]
mov dword [esp + 4], eax
mov dword [esp], str.___s
call sym._printf
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 4
jle 0x401bf7
mov eax, dword [0x408070]
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 [0x408070]
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 [0x408014], 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 [0x408014]
mov eax, dword [0x408070]
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 0x401d25
mov eax, dword [0x408014]
mov edx, dword [ebp - 0x1c]
shl edx, 2
add eax, edx
mov word [eax + 2], 0x70
mov eax, dword [0x408014]
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 0x401cf0
cmp byte [ebp - 9], 0x5a
jle 0x401cfc
cmp byte [ebp - 9], 0x60
jle 0x401d22
cmp byte [ebp - 9], 0x7a
jg 0x401d22
mov eax, dword [0x408014]
mov edx, dword [ebp - 0x1c]
shl edx, 2
lea edx, [eax + edx]
mov eax, dword [0x408014]
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 0x401cbf
mov edx, dword [0x408014]
mov eax, dword [0x408070]
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 [0x408070]
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 + 0x406018]
mov dword [esp], eax
call sym._strlen
mov edx, dword [ebp - 0x14]
add eax, edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
jmp 0x401dd0
mov edx, dword [0x40801c]
mov eax, dword [ebp - 0x18]
add edx, eax
mov ecx, dword [0x40801c]
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 0x401da9
mov eax, dword [ebp - 0x10]
add eax, 4
mov dword [ebp - 0x14], eax
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 4
jle 0x401d87
mov eax, dword [0x4060b0]
mov dword [esp], eax
call dbg.TagMainMenu
leave
ret