Function at 0x41c580
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x6fb448]
xor eax, ebp
mov dword [ebp - 0x20], eax
mov word [ebp - 0x820], 0
push 0x7fe
push 0
lea eax, [ebp - 0x81e]
push eax
call fcn.005b02a0
add esp, 0xc
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov word [ebp - 0xc], 0
xor ecx, ecx
mov word [ebp - 0xa], cx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
movsx edx, byte [ebp + 0x14]
neg edx
sbb edx, edx
neg edx
mov eax, 0x400
sub eax, edx
cmp dword [ebp + 0xc], eax
jl 0x41c612
movsx ecx, byte [ebp + 0x14]
neg ecx
sbb ecx, ecx
neg ecx
mov edx, 0x3ff
sub edx, ecx
mov dword [ebp + 0xc], edx
call fcn.00401f5f
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00402356
add esp, 8
mov dx, word [ebp - 0x1c]
mov word [ebp - 0xc], dx
mov ax, word [ebp - 0x14]
mov word [ebp - 0xa], ax
movsx ecx, byte [ebp + 0x14]
test ecx, ecx
je 0x41c64b
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
cmp dword [ebp + 0xc], 0
jle 0x41c831
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x820]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputAttribute]
test eax, eax
je 0x41c67c
cmp dword [ebp - 0x18], 0
jne 0x41c684
or eax, 0xffffffff
jmp 0x41c844
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp + 0xc]
je 0x41c6a7
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
push str.:8:ReadConsoleOutputAttribute___FAILED:_Read__ld__not__ld.
call fcn.00401014
add esp, 0xc
mov edx, dword [ebp - 0x18]
mov dword [ebp + 0xc], edx
cmp dword [ebp + 0x10], 0
je 0x41c6e4
mov dword [ebp - 0x10], 0
jmp 0x41c6bf
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp + 0xc]
jge 0x41c6e2
mov edx, dword [ebp - 0x10]
movzx eax, word [ebp + edx*2 - 0x820]
or eax, 8
mov ecx, dword [ebp - 0x10]
mov word [ebp + ecx*2 - 0x820], ax
jmp 0x41c6b6
jmp 0x41c719
mov dword [ebp - 0x10], 0
jmp 0x41c6f6
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
jge 0x41c719
mov ecx, dword [ebp - 0x10]
movzx edx, word [ebp + ecx*2 - 0x820]
and edx, 0xfffffff7
mov eax, dword [ebp - 0x10]
mov word [ebp + eax*2 - 0x820], dx
jmp 0x41c6ed
movsx ecx, byte [ebp + 0x14]
test ecx, ecx
je 0x41c73a
mov edx, dword [ebp - 0x10]
movzx eax, word [ebp + edx*2 - 0x822]
and eax, 0xfffffff7
mov ecx, dword [ebp - 0x10]
mov word [ebp + ecx*2 - 0x822], ax
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x820]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputAttribute]
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0xc]
push edx
movsx eax, byte [ebp + 0x14]
neg eax
sbb eax, eax
neg eax
mov ecx, dword [ebp + 0xc]
sub ecx, eax
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
call fcn.00401e79
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], 0
jmp 0x41c797
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp + 0xc]
jge 0x41c831
movsx eax, byte [ebp + 0x14]
test eax, eax
je 0x41c7de
mov ecx, dword [ebp + 0xc]
sub ecx, 1
cmp dword [ebp - 0x10], ecx
jne 0x41c7de
mov dx, word [ebp - 0x1c]
mov word [ebp - 0xc], dx
mov ax, word [ebp - 0x14]
mov word [ebp - 0xa], ax
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0xc]
push edx
push 1
lea eax, [ebp + 0x14]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 8]
jl 0x41c82c
call fcn.0040245a
mov dword [ebp - 0x824], eax
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x824]
jl 0x41c82c
mov eax, dword [ebp - 0x824]
sub eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 0x1c], ecx
jmp 0x41c831
jmp 0x41c78e
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00401096
add esp, 8
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.005b0290
mov esp, ebp
pop ebp
ret