Function at 0x43fa60
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, edx
push esi
mov esi, eax
push ebx
sub esp, 0x40
mov dword [ebp - 0x20], eax
call fcn.0057d110
mov dword [eax], 0x58f03f
mov dword [eax + 4], 0x1c0
lea eax, [ebp - 0x14]
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetConsoleMode]
sub esp, 8
test eax, eax
jne 0x4400d0
mov dword [esp], eax
mov dword [esp + 4], str.setting_wrap_at_EOL__clearing_processed_output_n
call fcn.00427ef0
call fcn.0057d110
movzx ecx, di
sub cx, 9
mov dword [eax], 0x58f03f
movzx ecx, cx
mov dword [eax + 4], 0x1c5
mov eax, dword [sym.imp.kernel32.dll_SetConsoleCursorPosition]
mov dword [esp + 4], ecx
mov esi, dword [ebp - 0x20]
mov dword [esp], esi
mov dword [ebp - 0x2c], eax
call eax
sub esp, 8
test eax, eax
setne al
mov dword [esp + 4], str.Cursor_in_upper_left_9_n
movzx eax, al
mov dword [esp], eax
call fcn.00427ef0
mov eax, 0x1c7
call fcn.00427180
lea eax, [ebp - 0x18]
mov dword [esp], esi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 8
mov dword [esp + 4], str.abcd_nf_tg
call dword [sym.imp.kernel32.dll_WriteConsoleA]
sub esp, 0x14
test eax, eax
je 0x43fb3a
xor eax, eax
cmp dword [ebp - 0x18], 8
sete al
mov dword [esp], eax
mov esi, str.abcd_nf_tg
mov dword [esp + 4], str.WriteConsole_n
call fcn.00427ef0
mov eax, edi
mov word [ebp - 0x28], di
sub eax, esi
sub eax, 9
mov word [ebp - 0x26], ax
jmp 0x43fc3a
mov dword [ebp - 0x24], edx
movsx ebx, bx
call fcn.0057d110
mov dword [eax], 0x58f03f
mov dword [eax + 4], 0x1cc
movsx eax, byte [esi]
movsx ecx, byte [ebp - 0x1b]
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 8], ebx
mov dword [esp + 4], str.At___d__d_:_expecting_char__c__02x_got__c__02x_n
mov edx, dword [ebp - 0x24]
mov dword [esp], edx
call fcn.00427ef0
lea eax, [ebp - 0x10]
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x1a]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ReadConsoleOutputAttribute]
xor edx, edx
sub esp, 0x14
cmp eax, 1
je 0x43fc98
mov dword [ebp - 0x24], edx
add esi, 1
call fcn.0057d110
mov dword [eax], 0x58f03f
mov dword [eax + 4], 0x1cc
movzx eax, word [ebp - 0x1a]
mov dword [esp + 0x10], 0x12
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], str.At___d__d_:_expecting_attr__04x_got__04x_n
mov edx, dword [ebp - 0x24]
mov dword [esp], edx
call fcn.00427ef0
mov eax, 0x590e0c
cmp eax, esi
je 0x43fcb8
movzx eax, word [ebp - 0x26]
mov dword [esp + 8], 1
lea ebx, [eax + esi]
lea eax, [ebp - 0x10]
mov dword [esp + 0x10], eax
movzx edi, bx
lea eax, [ebp - 0x1b]
mov dword [esp + 0xc], edi
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ReadConsoleOutputCharacterA]
xor edx, edx
sub esp, 0x14
cmp eax, 1
jne 0x43fb68
cmp dword [ebp - 0x10], 1
jne 0x43fb68
xor edx, edx
movzx eax, byte [ebp - 0x1b]
cmp byte [esi], al
sete dl
jmp 0x43fb68
cmp dword [ebp - 0x10], 1
jne 0x43fbea
xor edx, edx
cmp word [ebp - 0x1a], 0x12
sete dl
jmp 0x43fbea
mov ecx, edi
movzx edi, word [ebp - 0x28]
lea eax, [ebp - 0x10]
xor esi, esi
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x1b]
lea ebx, [edi - 1]
mov cx, bx
mov dword [esp + 0xc], ecx
mov dword [ebp - 0x24], ecx
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ReadConsoleOutputCharacterA]
mov ecx, dword [ebp - 0x24]
sub esp, 0x14
cmp eax, 1
je 0x440020
mov dword [ebp - 0x24], ecx
movsx ebx, bx
call fcn.0057d110
mov dword [eax], 0x58f03f
mov dword [eax + 4], 0x1cf
movsx eax, byte [ebp - 0x1b]
mov dword [esp], esi
xor esi, esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 0x20
mov dword [esp + 0x10], 0x20
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], str.At___d__d_:_expecting_char__c__02x_got__c__02x_n
call fcn.00427ef0
lea eax, [ebp - 0x10]
mov dword [esp + 0x10], eax
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x1a]
mov dword [esp + 8], 1
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ReadConsoleOutputAttribute]
sub esp, 0x14
cmp eax, 1
je 0x4400b0
call fcn.0057d110
mov dword [eax], 0x58f03f
mov dword [eax + 4], 0x1cf
movzx eax, word [ebp - 0x1a]
mov dword [esp + 8], ebx
xor ebx, ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 7
mov dword [esp + 0xc], 0
mov dword [esp + 4], str.At___d__d_:_expecting_attr__04x_got__04x_n
mov dword [esp], esi
call fcn.00427ef0
mov ecx, 0x10000
lea eax, [ebp - 0x10]
mov dword [ebp - 0x24], ecx
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x1b]
mov dword [esp + 0xc], 0x10000
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ReadConsoleOutputCharacterA]
mov ecx, dword [ebp - 0x24]
sub esp, 0x14
cmp eax, 1
je 0x440090
mov dword [ebp - 0x24], ecx
call fcn.0057d110
mov dword [eax], 0x58f03f
mov dword [eax + 4], 0x1d1
movsx eax, byte [ebp - 0x1b]
mov dword [esp], ebx
xor ebx, ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 0x20
mov dword [esp + 0x10], 0x20
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.At___d__d_:_expecting_char__c__02x_got__c__02x_n
call fcn.00427ef0
lea eax, [ebp - 0x10]
mov dword [esp + 0xc], 0x10000
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x1a]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ReadConsoleOutputAttribute]
mov ecx, dword [ebp - 0x24]
sub esp, 0x14
cmp eax, 1
je 0x440070
mov eax, 0x1d1
mov dword [ebp - 0x24], ecx
call fcn.00427180
movzx eax, word [ebp - 0x1a]
mov dword [esp], ebx
mov dword [esp + 0x10], 7
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.At___d__d_:_expecting_attr__04x_got__04x_n
call fcn.00427ef0
call fcn.0057d110
mov ecx, dword [ebp - 0x24]
mov dword [eax], 0x58f03f
mov cx, di
mov dword [eax + 4], 0x1d5
sub cx, 3
movzx ecx, cx
mov dword [esp + 4], ecx
mov edi, dword [ebp - 0x20]
mov dword [esp], edi
mov eax, dword [ebp - 0x2c]
call eax
sub esp, 8
test eax, eax
setne al
mov dword [esp + 4], str.Cursor_in_upper_left_3_n
xor ebx, ebx
movzx eax, al
mov dword [esp], eax
call fcn.00427ef0
lea eax, [ebp - 0x10]
mov dword [esp + 0xc], 0x10005
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x1b]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_ReadConsoleOutputCharacterA]
sub esp, 0x14
cmp eax, 1
je 0x440058
call fcn.0057d110
mov dword [eax], 0x58f03f
mov dword [eax + 4], 0x1d9
movsx eax, byte [ebp - 0x1b]
mov dword [esp], ebx
xor ebx, ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 0x20
mov dword [esp + 0x10], 0x20
mov dword [esp + 0xc], 1
mov dword [esp + 8], 5
mov dword [esp + 4], str.At___d__d_:_expecting_char__c__02x_got__c__02x_n
call fcn.00427ef0
lea eax, [ebp - 0x10]
mov dword [esp + 0xc], 0x10005
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x1a]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ReadConsoleOutputAttribute]
sub esp, 0x14
cmp eax, 1
je 0x440040
call fcn.0057d110
mov dword [eax], 0x58f03f
mov dword [eax + 4], 0x1d9
movzx eax, word [ebp - 0x1a]
mov dword [esp], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 7
mov dword [esp + 0xc], 1
mov dword [esp + 8], 5
mov dword [esp + 4], str.At___d__d_:_expecting_attr__04x_got__04x_n
call fcn.00427ef0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [ebp - 0x10], 1
jne 0x43fcfe
xor eax, eax
cmp byte [ebp - 0x1b], 0x20
sete al
mov esi, eax
jmp 0x43fcfe
cmp dword [ebp - 0x10], 1
jne 0x43ffcf
xor ebx, ebx
cmp word [ebp - 0x1a], 7
sete bl
jmp 0x43ffcf
cmp dword [ebp - 0x10], 1
jne 0x43ff4d
xor ebx, ebx
cmp byte [ebp - 0x1b], 0x20
sete bl
jmp 0x43ff4d
cmp dword [ebp - 0x10], 1
jne 0x43fe92
xor ebx, ebx
cmp word [ebp - 0x1a], 7
sete bl
jmp 0x43fe92
cmp dword [ebp - 0x10], 1
jne 0x43fe06
xor ebx, ebx
cmp byte [ebp - 0x1b], 0x20
sete bl
jmp 0x43fe06
cmp dword [ebp - 0x10], 1
jne 0x43fd85
xor eax, eax
cmp word [ebp - 0x1a], 7
sete al
mov esi, eax
jmp 0x43fd85
mov eax, dword [ebp - 0x14]
and eax, 0xfffffffc
or eax, 2
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetConsoleMode]
sub esp, 8
test eax, eax
setne al
movzx eax, al
jmp 0x43fa9d