Function at 0x40ccf0
Capabilities:
Manipulate console buffer

Disassembly:
mov al, byte [0x260dd85]
movzx ecx, al
sub esp, 0x20
cmp ecx, dword [0x4b802c]
jge 0x40cfaa
cmp al, byte [0x260dd89]
ja 0x40cfaa
mov al, byte [0x260dd84]
movzx edx, al
cmp edx, dword [0x4b8bdc]
jge 0x40cfaa
cmp al, byte [0x260dd88]
ja 0x40cfaa
push ebx
push ebp
push esi
push edi
call fcn.00401d70
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, dword [0x4b8bdc]
mov ecx, eax
xor eax, eax
dec edx
mov word [esp + 0x28], ax
mov eax, dword [0x25f2560]
mov word [esp + 0x2c], dx
mov edx, dword [0x4b802c]
mov word [esp + 0x2a], ax
lea eax, [edx + eax - 1]
lea edx, [esp + 0x28]
push edx
mov edx, dword [0x4b8008]
mov word [esp + 0x32], ax
mov eax, dword [0x4b8038]
push eax
push edx
push 0x24c2200
push ecx
mov dword [esp + 0x38], ecx
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputA]
mov eax, dword [0x4b8bdc]
movzx edx, byte [0x260dd88]
lea ecx, [eax - 1]
cmp edx, ecx
jge 0x40cdaf
mov esi, edx
mov dword [esp + 0x10], esi
jmp 0x40cdb5
mov dword [esp + 0x10], ecx
mov esi, ecx
mov ecx, dword [0x4b802c]
movzx edi, byte [0x260dd89]
dec ecx
cmp edi, ecx
jge 0x40cdcd
mov dword [esp + 0x14], edi
jmp 0x40cdd3
mov dword [esp + 0x14], ecx
mov edi, ecx
mov cl, byte [0x260dd80]
test cl, cl
jne 0x40ce7a
movzx ebx, byte [0x260dd85]
cmp ebx, edi
jg 0x40cf84
movzx ebp, byte [0x260dd84]
lea ecx, [eax + eax]
imul eax, ebx
add eax, ebp
add eax, eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
lea esp, [esp]
movzx eax, byte [0x4b9462]
call fcn.0040c220
add eax, dword [esp + 0x18]
cmp ebp, esi
jg 0x40ce68
movsx ecx, word [0x4b8008]
movzx di, byte [0x260dd8d]
imul ecx, ebx
add ecx, ebp
sub esi, ebp
lea eax, [eax + 0x4b9000]
lea ecx, [ecx*4 + 0x24c2202]
inc esi
mov byte [ecx - 2], 0x20
mov byte [eax], 0x20
inc eax
mov word [ecx], di
mov dl, byte [ecx]
mov byte [eax], dl
inc eax
add ecx, 4
sub esi, 1
jne 0x40ce48
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
add dword [esp + 0x18], eax
inc ebx
cmp ebx, edi
jle 0x40ce10
jmp 0x40cf84
movzx esi, byte [0x260dd85]
movzx edx, cl
mov ecx, edi
sub ecx, edx
lea edx, [esi - 1]
cmp edx, ecx
mov ebx, edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], edx
jg 0x40ce9d
mov dword [esp + 0x14], ecx
cmp edi, esi
jl 0x40cf84
movzx edx, byte [0x260dd84]
mov ecx, eax
imul eax, edi
neg ecx
add ecx, ecx
add eax, edx
add eax, eax
mov dword [esp + 0x20], ecx
mov edi, eax
mov dword [esp + 0x1c], eax
jmp 0x40ced0
movzx eax, byte [0x4b9462]
movzx esi, byte [0x260dd84]
call fcn.0040c220
mov ebp, dword [esp + 0x10]
add eax, edi
cmp esi, ebp
jg 0x40cf5b
movsx edi, word [0x4b8008]
lea ecx, [eax + 0x4b9000]
mov eax, edi
imul eax, ebx
add eax, esi
lea eax, [eax*4 + 0x24c2200]
jmp 0x40cf10
movzx ebx, byte [0x260dd85]
mov edx, dword [esp + 0x14]
cmp edx, ebx
jl 0x40cf31
mov ebx, edi
imul ebx, edx
add ebx, esi
mov ebx, dword [ebx*4 + 0x24c2200]
mov dword [eax], ebx
jmp 0x40cf40
movzx bx, byte [0x260dd8d]
mov byte [eax], 0x20
mov word [eax + 2], bx
movzx ebx, byte [eax]
mov byte [ecx], bl
movzx ebx, byte [eax + 2]
inc ecx
mov byte [ecx], bl
inc esi
inc ecx
add eax, 4
cmp esi, ebp
jle 0x40cf10
mov ebx, dword [esp + 0x18]
jmp 0x40cf5f
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
movzx eax, byte [0x260dd85]
add edi, dword [esp + 0x20]
dec ebx
dec edx
cmp ebx, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], edx
jge 0x40ced0
mov edx, dword [0x4b8038]
mov eax, dword [0x4b8008]
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
push edx
push eax
push 0x24c2200
push ecx
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret