Function at 0x4b1060
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 0x14], 0
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0xc], 0
je 0x4b133c
test esi, esi
je 0x4b133c
push esi
push dword [0x6801f4]
call fcn.00491320
add esp, 8
test eax, eax
je 0x4b1324
cmp dword [esi + 0xce0], 0
jne 0x4b10b5
cmp dword [esi + 0xd28], 0
jne 0x4b10b5
lea edi, [esi + 0xb20]
jmp 0x4b10c9
lea edi, [esi + 0xb20]
push 0x1f40
push edi
call fcn.00433920
add esp, 8
call fcn.004d9850
push 0xcb6
push edi
call fcn.00433710
add esp, 8
test eax, eax
je 0x4b133c
mov eax, dword [esi + 0xe8]
add eax, 0xa
push eax
push 1
call fcn.004eea94
add esp, 8
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x4b1129
push 0x1934
push edi
call fcn.00433ae0
mov eax, dword [esi + 0xe8]
add eax, 0xa
push eax
push str.:4:TelNetScreenToFileFP___FAILED:_Could_not_calloc__ld_bytes_for_text_buffer:_OUT_OF_MEMORY_
call fcn.00424a90
add esp, 0x10
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
lea edi, [esi + 0xdc]
mov dword [ebp + 8], edi
push ebx
test ecx, ecx
js 0x4b114f
mov eax, dword [esi + 0xf0]
mov ebx, dword [edi]
cdq
idiv ebx
mov dword [ebp - 4], ebx
cmp ecx, eax
jle 0x4b115f
mov dword [ebp + 8], edi
mov eax, dword [esi + 0xf0]
mov ecx, dword [edi]
cdq
idiv ecx
mov dword [ebp - 4], ecx
mov ecx, eax
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 8], edi
mov edi, dword [ebp - 4]
test ebx, ebx
js 0x4b1182
mov eax, dword [esi + 0xf0]
cdq
idiv edi
cmp ebx, eax
jle 0x4b118d
lea eax, [esi + 0xdc]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0xf0]
cdq
idiv edi
mov ebx, eax
cmp ecx, ebx
jle 0x4b119f
mov eax, dword [ebp - 8]
mov dword [ebp + 0xc], ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp + 8], eax
mov edi, dword [ebp - 4]
lea eax, [ebx + 1]
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
imul eax, dword [ebp - 4]
imul edi, ecx
cmp edi, eax
jge 0x4b12d4
nop word [eax + eax]
movzx eax, di
shl eax, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0xe8]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x104]
mov dword [ebp - 4], eax
call fcn.004d9850
lea eax, [esi + 0xd44]
push 0xcdf
push eax
call fcn.00433710
add esp, 8
test eax, eax
je 0x4b1220
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
push dword [ebp - 8]
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
lea eax, [esi + 0xd44]
push 0x18d7
push eax
call fcn.00433ae0
add esp, 8
mov eax, dword [ebp - 0xc]
mov byte [eax + ebx], 0
test edi, edi
jle 0x4b12b1
mov ecx, dword [ebp + 8]
mov eax, edi
cdq
idiv dword [ecx]
test edx, edx
jne 0x4b12b1
lea eax, [esi + 0xb20]
push 0x1934
push eax
call fcn.00433ae0
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push dword [0x6801f4]
call fcn.00491320
add esp, 8
test eax, eax
je 0x4b12fa
cmp dword [esi + 0xce0], 0
jne 0x4b1280
cmp dword [esi + 0xd28], 0
je 0x4b1294
lea eax, [esi + 0xb20]
push 0x1f40
push eax
call fcn.00433920
add esp, 8
call fcn.004d9850
lea eax, [esi + 0xb20]
push 0xce8
push eax
call fcn.00433710
add esp, 8
test eax, eax
je 0x4b1312
push ebx
push 0x51c2d0
push dword [ebp + 0x14]
call fcn.004041d0
mov eax, dword [ebp + 8]
inc edi
add esp, 0xc
mov eax, dword [eax]
imul eax, dword [ebp - 0x14]
cmp edi, eax
jl 0x4b11c0
push ebx
call fcn.004eea9f
lea eax, [esi + 0xb20]
push 0x1934
push eax
call fcn.00433ae0
add esp, 0xc
mov eax, 1
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push str.C:UsersOfficeDocumentsVisual_StudioPAULATelNet.c
push 0xce8
push esi
push str.Invalid_HTELNET:__p___Line__d__in__s
call fcn.00424fd0
add esp, 0x10
push ebx
call fcn.004eea9f
add esp, 4
xor eax, eax
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push str.C:UsersOfficeDocumentsVisual_StudioPAULATelNet.c
push 0xcb6
push esi
push str.Invalid_HTELNET:__p___Line__d__in__s
call fcn.00424fd0
add esp, 0x10
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret