Function at 0x454871
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
sub esp, 4
push 0xfffffff5
call sub.KERNEL32.dll_GetStdHandle
add esp, 4
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x454a9a
mov edx, dword [ebp + 0x18]
cmp byte [ebx], 0
mov edx, dword [edx]
mov dword [ebp - 8], edx
jg 0x4548ae
mov byte [ebx], 1
cmp byte [ebx], 0x50
jle 0x4548b6
mov byte [ebx], 0x50
cmp byte [esi], 0
jg 0x4548be
mov byte [esi], 1
cmp byte [esi], 0x19
jle 0x4548c6
mov byte [esi], 0x19
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x10]
cmp byte [ecx], 0
jg 0x4548d4
mov byte [eax], 1
mov bl, byte [ebx]
mov byte [ebp - 9], bl
mov eax, dword [ebp + 0x10]
movsx edx, byte [ebp - 9]
movsx eax, byte [eax]
mov ecx, 0x51
sub ecx, edx
cmp eax, ecx
jle 0x4548fe
movsx edx, byte [ebp - 9]
mov eax, 0x51
mov ecx, dword [ebp + 0x10]
sub eax, edx
mov byte [ecx], al
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x14]
cmp byte [edx], 0
jg 0x45490c
mov byte [eax], 1
mov eax, dword [ebp + 0x14]
movsx ecx, byte [esi]
movsx eax, byte [eax]
mov edx, 0x1a
sub edx, ecx
cmp eax, edx
jle 0x45492f
movsx ecx, byte [esi]
mov eax, 0x1a
mov edx, dword [ebp + 0x14]
sub eax, ecx
mov byte [edx], al
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x10], 1
mov edx, dword [ebp + 0x10]
movsx edi, byte [ecx]
test edi, edi
jle 0x454a9a
movsx eax, byte [esi]
mov dl, byte [edx]
mov byte [ebp - 0xa], dl
dec eax
mov si, ax
xor eax, eax
movsx ecx, byte [ebp - 0xa]
cmp dl, 6
setle al
mov word [ebp - 0x14], si
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], eax
movsx ecx, byte [ebp - 9]
mov si, word [ebp - 0x14]
lea edx, [0x3a689d8]
mov word [0x3a6897a], si
lea esi, [0x3a68980]
dec ecx
mov word [0x3a68978], cx
mov eax, dword [0x3a68978]
movsx ecx, byte [ebp - 0xa]
sub esp, 4
push esi
push eax
push ecx
push edx
push dword [ebp - 4]
call sub.KERNEL32.dll_ReadConsoleOutputAttribute
movsx eax, byte [ebp - 0xa]
lea edx, [0x3a68980]
mov esi, dword [0x3a68978]
lea ecx, [0x3a68988]
push edx
push esi
push eax
push ecx
push dword [ebp - 4]
call sub.KERNEL32.dll_ReadConsoleOutputCharacterA
add esp, 4
mov esi, dword [ebp - 0x18]
mov eax, esi
test esi, esi
mov edx, dword [ebp - 0x10]
jle 0x454a87
add edx, dword [ebp - 8]
lea ecx, [0x3a68988]
lea esi, [0x3a689d8]
add edx, 0xffffffff
cmp dword [ebp - 0x1c], 0
jne 0x454a68
mov bl, byte [ecx]
mov byte [ebp - 0xb], bl
mov byte [edx], bl
mov bl, byte [esi]
mov byte [edx + 1], bl
mov bl, byte [ecx + 1]
mov byte [edx + 2], bl
mov bl, byte [esi + 2]
mov byte [edx + 3], bl
mov bl, byte [ecx + 2]
mov byte [edx + 4], bl
mov bl, byte [esi + 4]
mov byte [edx + 5], bl
mov bl, byte [ecx + 3]
mov byte [edx + 6], bl
mov bl, byte [esi + 6]
mov byte [edx + 7], bl
mov bl, byte [ecx + 4]
mov byte [edx + 8], bl
mov bl, byte [esi + 8]
mov byte [edx + 9], bl
mov bl, byte [ecx + 5]
mov byte [edx + 0xa], bl
mov bl, byte [esi + 0xa]
mov byte [edx + 0xb], bl
mov bl, byte [ecx + 6]
mov byte [edx + 0xc], bl
mov bl, byte [esi + 0xc]
mov byte [edx + 0xd], bl
mov ebx, dword [ebp - 0x10]
add ebx, 0xe
add edx, 0xe
add ecx, 7
add esi, 0xe
sub eax, 7
mov dword [ebp - 0x10], ebx
cmp eax, 6
jg 0x4549f2
test eax, eax
jle 0x454a87
mov bl, byte [ecx]
mov byte [edx], bl
mov bl, byte [esi]
mov byte [edx + 1], bl
mov ebx, dword [ebp - 0x10]
lea edx, [edx + 1]
add ebx, 2
inc edx
inc ecx
add esi, 2
dec eax
mov dword [ebp - 0x10], ebx
test eax, eax
jg 0x454a68
mov bx, word [ebp - 0x14]
inc bx
dec edi
mov word [ebp - 0x14], bx
test edi, edi
jg 0x454969
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14