Function at 0x10007e70
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
cmp eax, 0xffffffff
je 0x100080c1
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
mov dword [ebp + 8], ecx
mov dword [ebp - 4], edx
cmp eax, 3
ja case.default.0x10007e98
jmp dword [eax*4 + 0x100080cc]
sub esp, 0x18
lea eax, [edx - 1]
mov ecx, esp
mov dword [esi + 0x1c], eax
push 0x1000c664
jmp 0x10007ee2
sub esp, 0x18
lea eax, [edx + 1]
mov ecx, esp
mov dword [esi + 0x1c], eax
push 0x1000c8c0
jmp 0x10007ee2
sub esp, 0x18
lea eax, [ecx - 1]
mov ecx, esp
push 0x1000c8c4
jmp 0x10007edf
sub esp, 0x18
lea eax, [ecx + 1]
mov ecx, esp
push 0x1000c8c8
mov dword [esi + 0x18], eax
call fcn.10004700
mov ecx, esi
call fcn.100080e0
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0x18]
mov ebx, dword [esi + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
js 0x10008066
test ebx, ebx
js 0x10008066
cmp eax, 0x1d
jge 0x10008066
cmp ebx, 0x1d
jge 0x10008066
imul eax, eax, 0x1d
add eax, ebx
mov ebx, dword [ebp + 0xc]
lea eax, [eax + eax*4]
lea ebx, [ebx + eax*8]
mov eax, dword [ebx + 0x24]
cmp eax, 1
je 0x10008066
cmp eax, 2
jne 0x10007f4c
mov eax, dword [ebp + 0xc]
inc dword [eax + 0x8368]
jmp 0x10007f63
cmp eax, 3
jne 0x10008045
mov ecx, dword [ebp + 0xc]
mov eax, dword [0x1000c72c]
mov dword [ecx + 0x8370], eax
sub esp, 0x18
mov dword [ebx + 0x24], 0
mov ecx, esp
push 0x1000c3e0
call fcn.10004700
mov ecx, ebx
call fcn.100080e0
push dword [ebx + 0x20]
push 0xfffffffffffffff5
call edi
push eax
mov eax, dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
call eax
movzx eax, word [ebx + 0x18]
add ax, ax
mov word [ebp - 8], ax
movzx eax, word [ebx + 0x1c]
mov word [ebp - 6], ax
push dword [ebp - 8]
push 0xfffffffffffffff5
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
cmp dword [ebx + 0x14], 0xf
mov edx, ebx
jbe 0x10007fba
mov edx, dword [ebx]
push dword [ebx + 0x10]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.10004b80
add esp, 4
push 0xf
push 0xfffffffffffffff5
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
push eax
call ebx
imul eax, dword [ebp + 8], 0x1d
mov ecx, dword [ebp + 0xc]
add eax, dword [ebp - 4]
lea eax, [eax + eax*4]
push dword [ecx + eax*8 + 0x20]
lea eax, [ecx + eax*8]
push 0xfffffffffffffff5
mov dword [ebp + 8], eax
call edi
push eax
call ebx
mov ecx, dword [ebp + 8]
movzx eax, word [ecx + 0x18]
add ax, ax
mov word [ebp + 0xc], ax
movzx eax, word [ecx + 0x1c]
mov word [ebp + 0xe], ax
push dword [ebp + 0xc]
push 0xfffffffffffffff5
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov eax, dword [ebp + 8]
mov edx, eax
cmp dword [eax + 0x14], 0xf
jbe 0x10008029
mov edx, dword [eax]
push dword [eax + 0x10]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.10004b80
add esp, 4
push 0xf
push 0xfffffffffffffff5
call edi
push eax
call ebx
jmp 0x10008072
imul eax, ecx, 0x1d
mov ecx, dword [ebp + 0xc]
add eax, edx
lea eax, [eax + eax*4]
push dword [ecx + eax*8 + 0x20]
lea eax, [ecx + eax*8]
push 0xfffffffffffffff5
mov dword [ebp + 8], eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
jmp 0x10007ff5
mov ebx, dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], edx
push dword [esi + 0x20]
push 0xfffffffffffffff5
call edi
push eax
call ebx
movzx eax, word [esi + 0x18]
add ax, ax
mov word [ebp + 0xc], ax
movzx eax, word [esi + 0x1c]
mov word [ebp + 0xe], ax
push dword [ebp + 0xc]
push 0xfffffffffffffff5
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
cmp dword [esi + 0x14], 0xf
mov edx, esi
jbe 0x100080a7
mov edx, dword [esi]
push dword [esi + 0x10]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.10004b80
add esp, 4
push 0xf
push 0xfffffffffffffff5
call edi
push eax
call ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8