Function at 0x554260
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x92c
push ebx
push esi
push edi
lea edi, [ebp - 0x92c]
mov ecx, 0x24b
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x818f7c]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x808], ax
push 0x7fe
push 0
lea eax, [ebp - 0x806]
push eax
call fcn.00533469
add esp, 0xc
mov dword [ebp - 0x814], 0
mov dword [ebp - 0x820], 0
mov dword [ebp - 0x82c], 0
mov dword [ebp - 0x838], 0
xor eax, eax
mov word [ebp - 0x844], ax
xor eax, eax
mov word [ebp - 0x842], ax
mov dword [ebp - 0x850], 0
mov dword [ebp - 0x85c], 0
movsx eax, byte [ebp + 0x14]
neg eax
sbb eax, eax
neg eax
mov ecx, 0x400
sub ecx, eax
cmp dword [ebp + 0xc], ecx
jl 0x55431f
movsx eax, byte [ebp + 0x14]
neg eax
sbb eax, eax
neg eax
mov ecx, 0x3ff
sub ecx, eax
mov dword [ebp + 0xc], ecx
call fcn.00532d07
mov dword [ebp - 0x838], eax
lea eax, [ebp - 0x820]
push eax
lea ecx, [ebp - 0x814]
push ecx
call fcn.005342b5
add esp, 8
mov ax, word [ebp - 0x814]
mov word [ebp - 0x844], ax
mov ax, word [ebp - 0x820]
mov word [ebp - 0x842], ax
movsx eax, byte [ebp + 0x14]
test eax, eax
je 0x55436d
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], 0
jle 0x5545f8
mov esi, esp
lea eax, [ebp - 0x850]
push eax
mov ecx, dword [ebp - 0x844]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x808]
push eax
mov ecx, dword [ebp - 0x838]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputAttribute]
cmp esi, esp
call fcn.00535fca
test eax, eax
je 0x5543b3
cmp dword [ebp - 0x850], 0
jne 0x5543bb
or eax, 0xffffffff
jmp 0x554611
mov eax, dword [ebp - 0x850]
cmp eax, dword [ebp + 0xc]
je 0x5543cf
mov eax, dword [ebp - 0x850]
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0x10], 0
je 0x55441e
mov dword [ebp - 0x85c], 0
jmp 0x5543f0
mov eax, dword [ebp - 0x85c]
add eax, 1
mov dword [ebp - 0x85c], eax
mov eax, dword [ebp - 0x85c]
cmp eax, dword [ebp + 0xc]
jge 0x55441c
mov eax, dword [ebp - 0x85c]
movzx ecx, word [ebp + eax*2 - 0x808]
or ecx, 8
mov edx, dword [ebp - 0x85c]
mov word [ebp + edx*2 - 0x808], cx
jmp 0x5543e1
jmp 0x554465
mov dword [ebp - 0x85c], 0
jmp 0x554439
mov eax, dword [ebp - 0x85c]
add eax, 1
mov dword [ebp - 0x85c], eax
mov eax, dword [ebp - 0x85c]
cmp eax, dword [ebp + 0xc]
jge 0x554465
mov eax, dword [ebp - 0x85c]
movzx ecx, word [ebp + eax*2 - 0x808]
and ecx, 0xfffffff7
mov edx, dword [ebp - 0x85c]
mov word [ebp + edx*2 - 0x808], cx
jmp 0x55442a
movsx eax, byte [ebp + 0x14]
test eax, eax
je 0x55448c
mov eax, dword [ebp - 0x85c]
movzx ecx, word [ebp + eax*2 - 0x80a]
and ecx, 0xfffffff7
mov edx, dword [ebp - 0x85c]
mov word [ebp + edx*2 - 0x80a], cx
mov esi, esp
lea eax, [ebp - 0x850]
push eax
mov ecx, dword [ebp - 0x844]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x808]
push eax
mov ecx, dword [ebp - 0x838]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputAttribute]
cmp esi, esp
call fcn.00535fca
mov esi, esp
lea eax, [ebp - 0x850]
push eax
mov ecx, dword [ebp - 0x844]
push ecx
movsx edx, byte [ebp + 0x14]
neg edx
sbb edx, edx
neg edx
mov eax, dword [ebp + 0xc]
sub eax, edx
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x838]
push edx
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
cmp esi, esp
call fcn.00535fca
call fcn.005350ac
mov dword [ebp - 0x82c], eax
mov dword [ebp - 0x85c], 0
jmp 0x554519
mov eax, dword [ebp - 0x85c]
add eax, 1
mov dword [ebp - 0x85c], eax
mov eax, dword [ebp - 0x85c]
cmp eax, dword [ebp + 0xc]
jge 0x5545f8
movsx eax, byte [ebp + 0x14]
test eax, eax
je 0x554584
mov eax, dword [ebp + 0xc]
sub eax, 1
cmp dword [ebp - 0x85c], eax
jne 0x554584
mov ax, word [ebp - 0x814]
mov word [ebp - 0x844], ax
mov ax, word [ebp - 0x820]
mov word [ebp - 0x842], ax
mov esi, esp
lea eax, [ebp - 0x850]
push eax
mov ecx, dword [ebp - 0x844]
push ecx
push 1
lea edx, [ebp + 0x14]
push edx
mov eax, dword [ebp - 0x838]
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
cmp esi, esp
call fcn.00535fca
mov eax, dword [ebp - 0x814]
add eax, 1
mov dword [ebp - 0x814], eax
mov ecx, dword [ebp - 0x814]
cmp ecx, dword [ebp - 0x82c]
jl 0x5545f3
call fcn.005343dc
mov dword [ebp - 0x868], eax
mov dword [ebp - 0x814], 0
mov eax, dword [ebp - 0x820]
add eax, 1
mov dword [ebp - 0x820], eax
mov ecx, dword [ebp - 0x820]
cmp ecx, dword [ebp - 0x868]
jl 0x5545f3
mov eax, dword [ebp - 0x868]
sub eax, 1
mov dword [ebp - 0x820], eax
mov eax, dword [ebp - 0x82c]
sub eax, 1
mov dword [ebp - 0x814], eax
jmp 0x5545f8
jmp 0x55450a
mov eax, dword [ebp - 0x820]
push eax
mov ecx, dword [ebp - 0x814]
push ecx
call fcn.00532078
add esp, 8
mov eax, dword [ebp + 0xc]
push edx
mov ecx, ebp
push eax
lea edx, [0x554640]
call fcn.0053491d
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00535561
add esp, 0x92c
cmp ebp, esp
call fcn.00535fca
mov esp, ebp
pop ebp
ret