Function at 0x40a745
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x7c
mov word [ebp - 0x2a], 0
mov word [ebp - 0x28], 0
mov word [ebp - 0x2e], 0xa
mov word [ebp - 0x2c], 5
mov word [ebp - 0x26], 0x34
mov word [ebp - 0x24], 0x54
mov word [ebp - 0x22], 0x64
mov word [ebp - 0x3c], 2
mov word [ebp - 0x3a], 3
mov word [ebp - 0x38], 0xb
mov word [ebp - 0x36], 7
mov word [ebp - 0x44], 2
mov word [ebp - 0x42], 0xa
mov word [ebp - 0x40], 0xb
mov word [ebp - 0x3e], 0xe
mov word [ebp - 0x4c], 2
mov word [ebp - 0x4a], 0x11
mov word [ebp - 0x48], 0xb
mov word [ebp - 0x46], 0x15
lea edx, [ebp - 0x64]
mov ebx, 0x40e76c
mov eax, 6
mov edi, edx
mov esi, ebx
mov ecx, eax
rep movsd dword es:[edi], dword [esi]
mov dword [esp], 0xc8
call sym._malloc
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0
jmp 0x40a80f
mov eax, dword [ebp - 0x1c]
shl eax, 2
mov edx, eax
add edx, dword [ebp - 0x20]
mov ax, word [ebp - 0x26]
mov word [edx + 2], ax
mov eax, dword [ebp - 0x1c]
shl eax, 2
add eax, dword [ebp - 0x20]
mov byte [eax], 0x20
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 0x31
jle 0x40a7ed
mov eax, dword [0x40f070]
lea edx, [ebp - 0x3c]
mov dword [esp + 0x10], edx
mov edx, dword [ebp - 0x2a]
mov dword [esp + 0xc], edx
mov edx, dword [ebp - 0x2e]
mov dword [esp + 8], edx
mov edx, dword [ebp - 0x20]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._WriteConsoleOutputA_20
sub esp, 0x14
mov dword [ebp - 0x1c], 0
jmp 0x40a86b
mov eax, dword [ebp - 0x1c]
shl eax, 2
mov edx, eax
add edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
mov word [edx + 2], ax
mov eax, dword [ebp - 0x1c]
shl eax, 2
add eax, dword [ebp - 0x20]
mov byte [eax], 0x20
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 0x31
jle 0x40a84a
mov eax, dword [0x40f070]
lea edx, [ebp - 0x44]
mov dword [esp + 0x10], edx
mov edx, dword [ebp - 0x2a]
mov dword [esp + 0xc], edx
mov edx, dword [ebp - 0x2e]
mov dword [esp + 8], edx
mov edx, dword [ebp - 0x20]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._WriteConsoleOutputA_20
sub esp, 0x14
mov dword [ebp - 0x1c], 0
jmp 0x40a8c8
mov eax, dword [ebp - 0x1c]
shl eax, 2
mov edx, eax
add edx, dword [ebp - 0x20]
mov ax, word [ebp - 0x22]
mov word [edx + 2], ax
mov eax, dword [ebp - 0x1c]
shl eax, 2
add eax, dword [ebp - 0x20]
mov byte [eax], 0x20
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 0x31
jle 0x40a8a6
mov eax, dword [0x40f070]
lea edx, [ebp - 0x4c]
mov dword [esp + 0x10], edx
mov edx, dword [ebp - 0x2a]
mov dword [esp + 0xc], edx
mov edx, dword [ebp - 0x2e]
mov dword [esp + 8], edx
mov edx, dword [ebp - 0x20]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._WriteConsoleOutputA_20
sub esp, 0x14
mov word [ebp - 0x2a], 0xd
mov word [ebp - 0x28], 1
jmp 0x40a93e
mov eax, dword [0x40f070]
lea edx, [ebp - 0x34]
mov dword [esp + 0x10], edx
mov edx, dword [ebp - 0x2a]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 1
mov dword [esp + 4], 0x7c
mov dword [esp], eax
call sym._FillConsoleOutputCharacterA_20
sub esp, 0x14
mov eax, dword [ebp - 0x28]
inc eax
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x28]
cmp ax, 0x17
jle 0x40a908
mov word [ebp - 0x2a], 4
mov word [ebp - 0x28], 4
movzx edx, word [ebp - 0x26]
mov eax, dword [0x40f070]
lea ecx, [ebp - 0x34]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp - 0x2a]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 6
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._FillConsoleOutputAttribute_20
sub esp, 0x14
mov edx, dword [ebp - 0x64]
mov eax, dword [0x40f070]
lea ecx, [ebp - 0x34]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp - 0x2a]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 6
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._WriteConsoleOutputCharacterA_20
sub esp, 0x14
mov word [ebp - 0x2a], 4
mov word [ebp - 0x28], 6
movzx edx, word [ebp - 0x26]
mov eax, dword [0x40f070]
lea ecx, [ebp - 0x34]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp - 0x2a]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 6
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._FillConsoleOutputAttribute_20
sub esp, 0x14
mov edx, dword [ebp - 0x60]
mov eax, dword [0x40f070]
lea ecx, [ebp - 0x34]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp - 0x2a]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 6
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._WriteConsoleOutputCharacterA_20
sub esp, 0x14
mov word [ebp - 0x2a], 4
mov word [ebp - 0x28], 0xb
movzx edx, word [ebp - 0x24]
mov eax, dword [0x40f070]
lea ecx, [ebp - 0x34]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp - 0x2a]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 6
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._FillConsoleOutputAttribute_20
sub esp, 0x14
mov edx, dword [ebp - 0x5c]
mov eax, dword [0x40f070]
lea ecx, [ebp - 0x34]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp - 0x2a]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 6
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._WriteConsoleOutputCharacterA_20
sub esp, 0x14
mov word [ebp - 0x2a], 4
mov word [ebp - 0x28], 0xd
movzx edx, word [ebp - 0x24]
mov eax, dword [0x40f070]
lea ecx, [ebp - 0x34]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp - 0x2a]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 6
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._FillConsoleOutputAttribute_20
sub esp, 0x14
mov edx, dword [ebp - 0x58]
mov eax, dword [0x40f070]
lea ecx, [ebp - 0x34]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp - 0x2a]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 6
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._WriteConsoleOutputCharacterA_20
sub esp, 0x14
mov word [ebp - 0x2a], 4
mov word [ebp - 0x28], 0x12
movzx edx, word [ebp - 0x22]
mov eax, dword [0x40f070]
lea ecx, [ebp - 0x34]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp - 0x2a]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 6
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._FillConsoleOutputAttribute_20
sub esp, 0x14
mov edx, dword [ebp - 0x54]
mov eax, dword [0x40f070]
lea ecx, [ebp - 0x34]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp - 0x2a]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 6
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._WriteConsoleOutputCharacterA_20
sub esp, 0x14
mov word [ebp - 0x2a], 4
mov word [ebp - 0x28], 0x14
movzx edx, word [ebp - 0x22]
mov eax, dword [0x40f070]
lea ecx, [ebp - 0x34]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp - 0x2a]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 6
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._FillConsoleOutputAttribute_20
sub esp, 0x14
mov edx, dword [ebp - 0x50]
mov eax, dword [0x40f070]
lea ecx, [ebp - 0x34]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp - 0x2a]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 6
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._WriteConsoleOutputCharacterA_20
sub esp, 0x14
lea esp, [ebp - 0xc]
add esp, 0
pop ebx
pop esi
pop edi
leave
ret