Function at 0x401e1c
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x8c
mov word [ebp - 0x54], 0
mov word [ebp - 0x52], 0
mov dword [ebp - 0x24], 2
lea edx, [ebp - 0x64]
mov ebx, 0x40e818
mov eax, 4
mov edi, edx
mov esi, ebx
mov ecx, eax
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x40f070]
lea edx, [ebp - 0x42]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._GetConsoleScreenBufferInfo_8
sub esp, 8
mov ax, word [ebp - 0x42]
mov word [ebp - 0x50], ax
mov word [ebp - 0x4e], 1
mov eax, dword [0x40f070]
mov edx, dword [ebp - 0x54]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._SetConsoleCursorPosition_8
sub esp, 8
mov dword [ebp - 0x2c], 0
jmp 0x401eb2
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax*4 + 0x40c014]
mov dword [esp + 4], eax
mov dword [esp], str.___s
call sym._printf
inc dword [ebp - 0x2c]
cmp dword [ebp - 0x2c], 4
jle 0x401e95
mov dword [esp], 0x40d34d
call sym._printf
mov word [ebp - 0x54], 0
mov eax, dword [ebp - 0x40]
dec eax
mov word [ebp - 0x52], ax
mov eax, dword [0x40f070]
mov edx, dword [ebp - 0x54]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._SetConsoleCursorPosition_8
sub esp, 8
mov dword [ebp - 0x2c], 0
jmp 0x401f0c
mov eax, dword [ebp - 0x2c]
mov eax, dword [ebp + eax*4 - 0x64]
mov dword [esp + 4], eax
mov dword [esp], str._____s
call sym._printf
inc dword [ebp - 0x2c]
cmp dword [ebp - 0x2c], 3
jle 0x401ef2
mov eax, dword [0x40f070]
lea edx, [ebp - 0x4c]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._GetConsoleCursorInfo_8
sub esp, 8
mov dword [ebp - 0x48], 0
mov eax, dword [0x40f070]
lea edx, [ebp - 0x4c]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._SetConsoleCursorInfo_8
sub esp, 8
mov eax, dword [ebp - 0x50]
movsx edx, ax
mov ax, word [ebp - 0x4e]
cwde
imul eax, edx
shl eax, 2
mov dword [esp], eax
call sym._malloc
mov dword [0x40f014], eax
mov eax, dword [ebp - 0x50]
dec eax
mov word [ebp - 0x6c], 0
mov word [ebp - 0x6a], 0
mov word [ebp - 0x68], ax
mov word [ebp - 0x66], 0
mov word [ebp - 0x54], 0
mov word [ebp - 0x52], 0
mov edx, dword [0x40f014]
mov eax, dword [0x40f070]
lea ecx, [ebp - 0x6c]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp - 0x54]
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp - 0x50]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._ReadConsoleOutputA_20
sub esp, 0x14
mov dword [ebp - 0x2c], 0
jmp 0x402029
mov eax, dword [0x40f014]
mov edx, dword [ebp - 0x2c]
shl edx, 2
add eax, edx
mov word [eax + 2], 0x70
mov eax, dword [0x40f014]
mov edx, dword [ebp - 0x2c]
shl edx, 2
add eax, edx
mov al, byte [eax]
mov byte [ebp - 0x19], al
cmp byte [ebp - 0x19], 0x40
jle 0x401ff4
cmp byte [ebp - 0x19], 0x5a
jle 0x402000
cmp byte [ebp - 0x19], 0x60
jle 0x402026
cmp byte [ebp - 0x19], 0x7a
jg 0x402026
mov eax, dword [0x40f014]
mov edx, dword [ebp - 0x2c]
shl edx, 2
lea edx, [eax + edx]
mov eax, dword [0x40f014]
mov ecx, dword [ebp - 0x2c]
shl ecx, 2
add eax, ecx
mov ax, word [eax + 2]
or eax, 0xc
mov word [edx + 2], ax
inc dword [ebp - 0x2c]
mov eax, dword [ebp - 0x50]
cwde
cmp eax, dword [ebp - 0x2c]
jg 0x401fc3
mov edx, dword [0x40f014]
mov eax, dword [0x40f070]
lea ecx, [ebp - 0x6c]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp - 0x54]
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp - 0x50]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._WriteConsoleOutputA_20
sub esp, 0x14
mov word [ebp - 0x70], 0
mov word [ebp - 0x6e], 1
mov eax, dword [0x40f070]
mov edx, dword [ebp - 0x70]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._SetConsoleCursorPosition_8
sub esp, 8
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax*4 + 0x40c014]
mov dword [esp], eax
call sym._strlen
mov edx, dword [ebp - 0x24]
add eax, edx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
jmp 0x4020d4
mov edx, dword [0x40f01c]
mov eax, dword [ebp - 0x28]
add edx, eax
mov ecx, dword [0x40f01c]
mov eax, dword [ebp - 0x28]
lea eax, [ecx + eax]
mov cl, byte [eax]
mov eax, dword [ebp - 0x2c]
inc eax
shl eax, 2
or eax, ecx
mov byte [edx], al
inc dword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x20]
jl 0x4020ad
mov eax, dword [ebp - 0x20]
add eax, 4
mov dword [ebp - 0x24], eax
inc dword [ebp - 0x2c]
cmp dword [ebp - 0x2c], 4
jle 0x40208b
mov eax, dword [0x40c0a8]
mov dword [esp], eax
call dbg.TagMainMenu
lea esp, [ebp - 0xc]
add esp, 0
pop ebx
pop esi
pop edi
leave
ret