Function at 0x48b338
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov byte [eax], 0
mov eax, dword [ebp - 4]
add dword [eax + 0x123c8], 1
jno 0x48b35e
call fcn.00403e88
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x123c8]
cmp eax, 0x2000
jbe 0x48b373
call fcn.00403e80
mov edx, dword [ebp - 4]
mov cl, byte [ebp - 5]
mov byte [edx + eax + 0x103c6], cl
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x123cc]
sub al, 1
jb 0x48b3a5
je 0x48b4e8
dec al
je 0x48b5cb
jmp 0x48b64e
mov dword [ebp - 0x10], 0xe
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x123c8]
sub eax, 2
jae 0x48b3d8
cmp byte [ebp - 5], 0xff
je 0x48b3d8
mov eax, dword [ebp - 0xc]
mov byte [eax], 1
mov eax, dword [ebp - 4]
mov dword [eax + 0x123c8], 0xffffffff
jmp 0x48b64e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x123c8]
cmp eax, dword [ebp - 0x10]
jne 0x48b64e
mov eax, dword [ebp - 4]
add eax, 0x103c6
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov al, byte [eax + 2]
sub al, 1
jb 0x48b40a
je 0x48b4a5
jmp 0x48b4d6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x39c]
call fcn.00469b5c
mov edx, dword [ebp - 0x14]
cmp ax, word [edx + 4]
jne 0x48b43b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x39c]
call fcn.00469b5c
shr eax, 0x10
mov edx, dword [ebp - 0x14]
cmp ax, word [edx + 6]
je 0x48b44f
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x39c]
call fcn.00469c40
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x39c]
call fcn.00469bb4
mov edx, dword [ebp - 0x14]
cmp al, byte [edx + 3]
je 0x48b479
mov eax, dword [ebp - 0x14]
mov dl, byte [eax + 3]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x39c]
call fcn.00469ca0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x39c]
call fcn.00469b84
mov edx, dword [ebp - 0x14]
cmp eax, dword [edx + 8]
je 0x48b4d6
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x39c]
call fcn.00469c60
jmp 0x48b4d6
mov eax, dword [ebp - 4]
mov byte [eax + 0x123cc], 1
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xb]
mov edx, dword [ebp - 4]
mov dword [edx + 0x123d0], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov ecx, dword [eax + 3]
mov dword [edx + 0x123d4], ecx
mov ecx, dword [eax + 7]
mov dword [edx + 0x123d8], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 0x123c8], 0xffffffff
jmp 0x48b64e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x123d0]
sub eax, 1
jno 0x48b4fb
call fcn.00403e88
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x1f3f
jle 0x48b510
mov dword [ebp - 0x1c], 0x1f3f
jmp 0x48b516
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x123c8]
cmp eax, dword [ebp - 0x10]
jne 0x48b64e
mov eax, dword [ebp - 4]
add eax, 0x123d4
push eax
xor edx, edx
xor eax, eax
call fcn.00469910
push eax
mov eax, dword [ebp - 4]
movsx edx, word [eax + 0x123da]
mov eax, dword [ebp - 4]
movsx eax, word [eax + 0x123d6]
sub edx, eax
jno 0x48b55f
call fcn.00403e88
add edx, 1
jno 0x48b569
call fcn.00403e88
mov eax, dword [ebp - 4]
movsx eax, word [eax + 0x123d8]
mov ecx, dword [ebp - 4]
movsx ecx, word [ecx + 0x123d4]
sub eax, ecx
jno 0x48b586
call fcn.00403e88
add eax, 1
jno 0x48b590
call fcn.00403e88
call fcn.00469910
push eax
mov eax, dword [ebp - 4]
add eax, 0x103c6
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3a0]
push eax
call sub.kernel32.dll_WriteConsoleOutputA
mov eax, dword [ebp - 4]
mov byte [eax + 0x123cc], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x123c8], 0xffffffff
jmp 0x48b64e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x123d0]
sub eax, 1
jno 0x48b5de
call fcn.00403e88
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x1fff
jle 0x48b5f3
mov dword [ebp - 0x24], 0x1fff
jmp 0x48b5f9
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x123c8]
cmp eax, dword [ebp - 0x10]
jne 0x48b64e
push 0
mov ecx, dword [ebp - 0x10]
add ecx, 1
jno 0x48b61c
call fcn.00403e88
mov eax, dword [ebp - 4]
lea edx, [eax + 0x103c6]
mov eax, dword [ebp - 4]
add eax, 0x123dc
call fcn.0040359c
call fcn.00402e88
mov eax, dword [ebp - 4]
mov byte [eax + 0x123cc], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x123c8], 0xffffffff
mov esp, ebp
pop ebp
ret