Function at 0x4346a0
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, 0x1e5
push esi
push ebx
sub esp, 0x68
mov word [ebp - 0x46], dx
call fcn.00427180
lea eax, [ebp - 0x28]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_GetConsoleMode]
sub esp, 8
test eax, eax
jne 0x435980
mov dword [esp], eax
xor esi, esi
mov dword [esp + 4], str.setting_wrap_at_EOL__processed_output_n
call fcn.00427ef0
mov eax, 0x1ea
call fcn.00427180
movzx eax, word [ebp - 0x46]
mov dword [esp], edi
mov si, ax
mov eax, dword [sym.imp.kernel32.dll_SetConsoleCursorPosition]
sub si, 9
movzx esi, si
mov dword [esp + 4], esi
mov dword [ebp - 0x54], 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, 0x1ec
call fcn.00427180
lea eax, [ebp - 0x2c]
mov dword [esp], edi
mov dword [esp + 0xc], eax
mov eax, dword [sym.imp.kernel32.dll_WriteConsoleA]
mov dword [esp + 0x10], 0
mov dword [esp + 8], 8
mov dword [esp + 4], str.abcd_nf_tg
mov dword [ebp - 0x4c], eax
call eax
sub esp, 0x14
test eax, eax
je 0x434770
xor eax, eax
cmp dword [ebp - 0x2c], 8
sete al
mov dword [esp], eax
mov dword [esp + 4], str.WriteConsole_n
call fcn.00427ef0
movzx eax, word [ebp - 0x46]
mov ecx, str.abcd_nf_tg
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x44], ecx
mov edi, ecx
sub eax, ecx
sub eax, 9
mov word [ebp - 0x40], ax
movzx eax, word [ebp - 0x44]
mov word [ebp - 0x48], ax
movzx eax, word [ebp - 0x40]
mov dword [esp + 8], 1
lea ebx, [eax + edi]
lea eax, [ebp - 0x24]
mov dword [esp + 0x10], eax
movzx esi, bx
lea eax, [ebp - 0x30]
mov dword [esp + 0xc], esi
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ReadConsoleOutputCharacterA]
xor edx, edx
sub esp, 0x14
cmp eax, 1
je 0x434c30
mov dword [ebp - 0x3c], edx
movsx ebx, bx
call fcn.0057d110
mov dword [eax], 0x58f03f
mov dword [eax + 4], 0x1f0
movsx eax, byte [edi]
movsx ecx, byte [ebp - 0x30]
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 - 0x3c]
mov dword [esp], edx
call fcn.00427ef0
lea eax, [ebp - 0x24]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x2e]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ReadConsoleOutputAttribute]
xor edx, edx
sub esp, 0x14
cmp eax, 1
je 0x434c10
mov dword [ebp - 0x3c], edx
add edi, 1
call fcn.0057d110
mov dword [eax], 0x58f03f
mov dword [eax + 4], 0x1f0
movzx eax, word [ebp - 0x2e]
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 - 0x3c]
mov dword [esp], edx
call fcn.00427ef0
cmp edi, 0x590e08
jne 0x43479a
movzx eax, word [ebp - 0x46]
mov edi, dword [ebp - 0x38]
mov dword [esp + 8], 1
lea ebx, [eax - 5]
lea eax, [ebp - 0x2c]
mov dword [esp], edi
mov dword [esp + 0x10], eax
mov si, bx
lea eax, [ebp - 0x30]
mov dword [esp + 0xc], esi
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_ReadConsoleOutputAttribute]
sub esp, 0x14
cmp word [ebp - 0x30], 0x12
je 0x4358a0
lea eax, [ebp - 0x24]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x31]
mov dword [esp + 8], 1
mov dword [ebp - 0x38], eax
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_ReadConsoleOutputCharacterA]
xor edx, edx
sub esp, 0x14
cmp eax, 1
je 0x435760
mov eax, 0x1f7
mov dword [ebp - 0x3c], edx
movsx ebx, bx
call fcn.00427180
movsx eax, byte [ebp - 0x31]
mov dword [esp + 8], ebx
mov dword [esp + 0x14], 0x20
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0x20
mov dword [esp + 0xc], 0
mov dword [esp + 4], str.At___d__d_:_expecting_char__c__02x_got__c__02x_n
mov edx, dword [ebp - 0x3c]
mov dword [esp], edx
call fcn.00427ef0
lea eax, [ebp - 0x24]
mov dword [esp + 0xc], esi
xor esi, esi
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x2e]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_ReadConsoleOutputAttribute]
sub esp, 0x14
cmp eax, 1
je 0x435740
mov eax, 0x1f7
call fcn.00427180
movzx eax, word [ebp - 0x2e]
mov dword [esp + 8], ebx
mov dword [esp + 0x10], 7
mov dword [esp + 0x14], eax
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
lea eax, [ebp - 0x24]
mov dword [esp + 0xc], 0x10000
xor ebx, ebx
mov dword [esp + 0x10], eax
mov dword [esp + 8], 1
mov eax, dword [ebp - 0x38]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_ReadConsoleOutputCharacterA]
sub esp, 0x14
cmp eax, 1
je 0x4357c0
mov eax, 0x1f9
call fcn.00427180
movsx eax, byte [ebp - 0x31]
mov dword [esp], ebx
xor ebx, ebx
mov dword [esp + 0x14], 0x66
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0x66
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 - 0x24]
mov dword [esp + 0xc], 0x10000
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x2e]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_ReadConsoleOutputAttribute]
sub esp, 0x14
cmp eax, 1
je 0x4357a0
mov eax, 0x1f9
call fcn.00427180
movzx eax, word [ebp - 0x2e]
mov dword [esp], ebx
mov ebx, 1
mov dword [esp + 0x10], 0x12
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
jmp 0x434b9b
mov dword [ebp - 0x3c], edx
call fcn.0057d110
mov dword [eax], 0x58f03f
mov dword [eax + 4], 0x1fb
movsx eax, byte [ebp - 0x31]
mov dword [esp + 0x14], 0x20
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0x20
mov dword [esp + 0xc], 1
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 - 0x3c]
mov dword [esp], edx
call fcn.00427ef0
lea eax, [ebp - 0x24]
mov dword [esp + 0xc], esi
xor esi, esi
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x2e]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_ReadConsoleOutputAttribute]
sub esp, 0x14
cmp eax, 1
je 0x434bf0
call fcn.0057d110
mov dword [eax], 0x58f03f
mov dword [eax + 4], 0x1fb
movzx eax, word [ebp - 0x2e]
mov dword [esp + 8], ebx
add ebx, 1
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0x12
mov dword [esp + 0xc], 1
mov dword [esp + 4], str.At___d__d_:_expecting_attr__04x_got__04x_n
mov dword [esp], esi
call fcn.00427ef0
cmp ebx, 8
je 0x434c50
movzx esi, bx
lea ecx, [ebp - 0x24]
or esi, 0x10000
mov dword [ebp - 0x40], esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], esi
mov dword [esp + 8], 1
mov eax, dword [ebp - 0x38]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_ReadConsoleOutputCharacterA]
xor edx, edx
sub esp, 0x14
cmp eax, 1
jne 0x434ad0
cmp dword [ebp - 0x24], 1
jne 0x434ad0
xor edx, edx
cmp byte [ebp - 0x31], 0x20
sete dl
jmp 0x434ad0
cmp dword [ebp - 0x24], 1
jne 0x434b51
xor eax, eax
cmp word [ebp - 0x2e], 0x12
sete al
mov esi, eax
jmp 0x434b51
cmp dword [ebp - 0x24], 1
jne 0x434862
xor edx, edx
cmp word [ebp - 0x2e], 0x12
sete dl
jmp 0x434862
cmp dword [ebp - 0x24], 1
jne 0x4347e0
xor edx, edx
movzx eax, byte [ebp - 0x30]
cmp byte [edi], al
sete dl
jmp 0x4347e0
mov esi, dword [ebp - 0x40]
lea eax, [ebp - 0x24]
mov dword [esp + 8], 1
xor ebx, ebx
mov dword [esp + 0x10], eax
mov si, 8
mov dword [esp + 0xc], esi
mov eax, dword [ebp - 0x38]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_ReadConsoleOutputCharacterA]
sub esp, 0x14
cmp eax, 1
je 0x435880
mov eax, 0x1fc
call fcn.00427180
movsx eax, byte [ebp - 0x31]
mov dword [esp], ebx
xor ebx, ebx
mov dword [esp + 0x14], 0x67
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0x67
mov dword [esp + 0xc], 1
mov dword [esp + 8], 8
mov dword [esp + 4], str.At___d__d_:_expecting_char__c__02x_got__c__02x_n
call fcn.00427ef0
lea eax, [ebp - 0x24]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x2e]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_ReadConsoleOutputAttribute]
sub esp, 0x14
cmp eax, 1
je 0x435860
mov eax, 0x1fc
mov si, 9
call fcn.00427180
movzx eax, word [ebp - 0x2e]
mov dword [esp], ebx
xor ebx, ebx
mov dword [esp + 0x10], 0x12
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 1
mov dword [esp + 8], 8
mov dword [esp + 4], str.At___d__d_:_expecting_attr__04x_got__04x_n
call fcn.00427ef0
lea eax, [ebp - 0x24]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], eax
mov dword [esp + 8], 1
mov eax, dword [ebp - 0x38]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_ReadConsoleOutputCharacterA]
sub esp, 0x14
cmp eax, 1
je 0x435840
mov eax, 0x1fe
call fcn.00427180
movsx eax, byte [ebp - 0x31]
mov dword [esp], ebx
xor ebx, ebx
mov dword [esp + 0x14], 0x20
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0x20
mov dword [esp + 0xc], 1
mov dword [esp + 8], 9
mov dword [esp + 4], str.At___d__d_:_expecting_char__c__02x_got__c__02x_n
call fcn.00427ef0
lea eax, [ebp - 0x24]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x2e]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_ReadConsoleOutputAttribute]
sub esp, 0x14
cmp eax, 1
je 0x435820
mov eax, 0x1fe
call fcn.00427180
movzx eax, word [ebp - 0x2e]
mov dword [esp], ebx
mov dword [esp + 0x10], 7
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 1
mov dword [esp + 8], 9
mov dword [esp + 4], str.At___d__d_:_expecting_attr__04x_got__04x_n
call fcn.00427ef0
lea eax, [ebp - 0x24]
mov dword [esp], edi
mov dword [esp + 4], eax
mov eax, dword [sym.imp.kernel32.dll_GetConsoleScreenBufferInfo]
mov dword [ebp - 0x50], eax
call eax
sub esp, 8
mov ebx, eax
test eax, eax
je 0x434e49
xor ebx, ebx
cmp word [ebp - 0x20], 9
je 0x4359c0
mov eax, 0x1ff
call fcn.00427180
movsx eax, word [ebp - 0x1e]
mov dword [esp + 0x14], eax
movsx eax, word [ebp - 0x20]
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], eax
mov dword [esp + 8], 9
mov dword [esp + 4], str.Expected_cursor_at___d__d___got___d__d__n
mov dword [esp], ebx
call fcn.00427ef0
mov eax, 0x203
call fcn.00427180
movzx eax, word [ebp - 0x46]
mov dword [esp], edi
mov si, ax
sub si, 3
movzx eax, si
or eax, 0x20000
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x54]
call eax
sub esp, 8
test eax, eax
setne al
mov dword [esp + 4], str.Cursor_in_upper_left_3_n
movzx eax, al
mov dword [esp], eax
call fcn.00427ef0
mov eax, 0x205
call fcn.00427180
lea eax, [ebp - 0x2c]
mov dword [esp], edi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 8
mov dword [esp + 4], str.abcd_nf_tg
mov eax, dword [ebp - 0x4c]
call eax
sub esp, 0x14
test eax, eax
je 0x434f08
xor eax, eax
cmp dword [ebp - 0x2c], 8
sete al
mov dword [esp], eax
mov dword [esp + 4], str.WriteConsole_n
call fcn.00427ef0
movzx eax, word [ebp - 0x46]
sub ax, word [ebp - 0x48]
mov dword [ebp - 0x3c], edi
sub eax, 3
mov esi, dword [ebp - 0x44]
mov word [ebp - 0x46], ax
movzx eax, word [ebp - 0x46]
lea ecx, [ebp - 0x24]
mov dword [esp + 8], 1
mov dword [esp + 0x10], ecx
lea ebx, [eax + esi]
movzx edi, bx
or edi, 0x20000
mov dword [esp + 0xc], edi
mov eax, dword [ebp - 0x38]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ReadConsoleOutputCharacterA]
xor edx, edx
sub esp, 0x14
cmp eax, 1
je 0x4354a0
mov dword [ebp - 0x40], edx
movsx ebx, bx
call fcn.0057d110
mov dword [eax], 0x58f03f
mov dword [eax + 4], 0x209
movsx eax, byte [esi]
movsx ecx, byte [ebp - 0x31]
mov dword [esp + 0xc], 2
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 - 0x40]
mov dword [esp], edx
call fcn.00427ef0
lea eax, [ebp - 0x24]
mov dword [esp + 0xc], edi
xor edi, edi
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x2e]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ReadConsoleOutputAttribute]
sub esp, 0x14
cmp eax, 1
je 0x435480
call fcn.0057d110
add esi, 1
mov dword [eax], 0x58f03f
mov dword [eax + 4], 0x209
movzx eax, word [ebp - 0x2e]
mov dword [esp + 0x10], 0x12
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 2
mov dword [esp + 8], ebx
mov dword [esp + 4], str.At___d__d_:_expecting_attr__04x_got__04x_n
mov dword [esp], edi
call fcn.00427ef0
mov eax, 0x590e07
cmp eax, esi
jne 0x434f2d
lea eax, [ebp - 0x24]
mov edi, dword [ebp - 0x3c]
mov dword [esp + 0xc], 0x30000
xor ebx, ebx
mov dword [esp + 0x10], eax
mov esi, 0x30000
mov dword [esp + 8], 1
mov eax, dword [ebp - 0x38]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_ReadConsoleOutputCharacterA]
sub esp, 0x14
cmp eax, 1
je 0x435780
mov eax, 0x20c
call fcn.00427180
movsx eax, byte [ebp - 0x31]
mov dword [esp], ebx
xor ebx, ebx
mov dword [esp + 0x14], 0x64
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0x64
mov dword [esp + 0xc], 3
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 - 0x24]
mov dword [esp + 0xc], 0x30000
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x2e]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_ReadConsoleOutputAttribute]
sub esp, 0x14
cmp eax, 1
je 0x435800
mov eax, 0x20c
mov si, 1
call fcn.00427180
movzx eax, word [ebp - 0x2e]
mov dword [esp], ebx
mov dword [esp + 0x10], 0x12
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 3
mov dword [esp + 8], 0
mov dword [esp + 4], str.At___d__d_:_expecting_attr__04x_got__04x_n
call fcn.00427ef0
lea eax, [ebp - 0x2c]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x30]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_ReadConsoleOutputAttribute]
sub esp, 0x14
cmp word [ebp - 0x30], 0x12
je 0x4357e0
lea eax, [ebp - 0x24]
mov dword [esp + 0xc], esi
xor ebx, ebx
mov dword [esp + 0x10], eax
mov dword [esp + 8], 1
mov eax, dword [ebp - 0x38]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_ReadConsoleOutputCharacterA]
sub esp, 0x14
cmp eax, 1
je 0x435720
mov eax, 0x212
call fcn.00427180
movsx eax, byte [ebp - 0x31]
mov dword [esp], ebx
xor ebx, ebx
mov dword [esp + 0x14], 0x20
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0x20
mov dword [esp + 0xc], 3
mov dword [esp + 8], 1
mov dword [esp + 4], str.At___d__d_:_expecting_char__c__02x_got__c__02x_n
call fcn.00427ef0
lea eax, [ebp - 0x24]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x2e]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_ReadConsoleOutputAttribute]
sub esp, 0x14
cmp eax, 1
je 0x435700
mov eax, 0x212
call fcn.00427180
movzx eax, word [ebp - 0x2e]
mov dword [esp], ebx
mov dword [esp + 0x10], 7
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 3
mov dword [esp + 8], 1
mov dword [esp + 4], str.At___d__d_:_expecting_attr__04x_got__04x_n
call fcn.00427ef0
lea eax, [ebp - 0x24]
mov dword [esp + 0xc], 0x40000
xor ebx, ebx
mov dword [esp + 0x10], eax
mov dword [esp + 8], 1
mov eax, dword [ebp - 0x38]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_ReadConsoleOutputCharacterA]
sub esp, 0x14
cmp eax, 1
je 0x435960
mov eax, 0x215
call fcn.00427180
movsx eax, byte [ebp - 0x31]
mov dword [esp], ebx
xor ebx, ebx
mov dword [esp + 0x14], 0x66
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0x66
mov dword [esp + 0xc], 4
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 - 0x24]
mov dword [esp + 0xc], 0x40000
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x2e]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_ReadConsoleOutputAttribute]
sub esp, 0x14
cmp eax, 1
je 0x435940
mov eax, 0x215
call fcn.00427180
movzx eax, word [ebp - 0x2e]
mov dword [esp], ebx
mov ebx, 1
mov dword [esp + 0x10], 0x12
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.At___d__d_:_expecting_attr__04x_got__04x_n
call fcn.00427ef0
jmp 0x43538a
call fcn.0057d110
mov dword [eax], 0x58f03f
mov dword [eax + 4], 0x217
movzx eax, word [ebp - 0x2e]
mov dword [esp + 8], ebx
add ebx, 1
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0x12
mov dword [esp + 0xc], 4
mov dword [esp + 4], str.At___d__d_:_expecting_attr__04x_got__04x_n
mov dword [esp], esi
call fcn.00427ef0
cmp ebx, 8
je 0x4354c0
movzx esi, bx
lea ecx, [ebp - 0x24]
or esi, 0x40000
mov dword [ebp - 0x40], esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], esi
mov dword [esp + 8], 1
mov eax, dword [ebp - 0x38]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_ReadConsoleOutputCharacterA]
xor edx, edx
sub esp, 0x14
cmp eax, 1
je 0x435468
mov dword [ebp - 0x3c], edx
call fcn.0057d110
mov dword [eax], 0x58f03f
mov dword [eax + 4], 0x217
movsx eax, byte [ebp - 0x31]
mov dword [esp + 0x14], 0x20
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0x20
mov dword [esp + 0xc], 4
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 - 0x3c]
mov dword [esp], edx
call fcn.00427ef0
lea eax, [ebp - 0x24]
mov dword [esp + 0xc], esi
xor esi, esi
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x2e]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_ReadConsoleOutputAttribute]
sub esp, 0x14
cmp eax, 1
jne 0x435340
cmp dword [ebp - 0x24], 1
jne 0x435340
xor eax, eax
cmp word [ebp - 0x2e], 0x12
sete al
mov esi, eax
jmp 0x435340
cmp dword [ebp - 0x24], 1
jne 0x4353c7
xor edx, edx
cmp byte [ebp - 0x31], 0x20
sete dl
jmp 0x4353c7
cmp dword [ebp - 0x24], 1
jne 0x434ff3
xor eax, eax
cmp word [ebp - 0x2e], 0x12
sete al
mov edi, eax
jmp 0x434ff3
cmp dword [ebp - 0x24], 1
jne 0x434f71
xor edx, edx
movzx eax, byte [ebp - 0x31]
cmp byte [esi], al
sete dl
jmp 0x434f71
mov esi, dword [ebp - 0x40]
lea eax, [ebp - 0x24]
mov dword [esp + 8], 1
xor ebx, ebx
mov dword [esp + 0x10], eax
mov si, 8
mov dword [esp + 0xc], esi
mov eax, dword [ebp - 0x38]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_ReadConsoleOutputCharacterA]
sub esp, 0x14
cmp eax, 1
je 0x435920
mov eax, 0x218
call fcn.00427180
movsx eax, byte [ebp - 0x31]
mov dword [esp], ebx
xor ebx, ebx
mov dword [esp + 0x14], 0x67
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0x67
mov dword [esp + 0xc], 4
mov dword [esp + 8], 8
mov dword [esp + 4], str.At___d__d_:_expecting_char__c__02x_got__c__02x_n
call fcn.00427ef0
lea eax, [ebp - 0x24]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x2e]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_ReadConsoleOutputAttribute]
sub esp, 0x14
cmp eax, 1
je 0x435900
mov eax, 0x218
mov si, 9
call fcn.00427180
movzx eax, word [ebp - 0x2e]
mov dword [esp], ebx
xor ebx, ebx
mov dword [esp + 0x10], 0x12
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 4
mov dword [esp + 8], 8
mov dword [esp + 4], str.At___d__d_:_expecting_attr__04x_got__04x_n
call fcn.00427ef0
lea eax, [ebp - 0x24]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], eax
mov dword [esp + 8], 1
mov eax, dword [ebp - 0x38]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_ReadConsoleOutputCharacterA]
sub esp, 0x14
cmp eax, 1
je 0x4358e8
mov eax, 0x21a
call fcn.00427180
movsx eax, byte [ebp - 0x31]
mov dword [esp], ebx
xor ebx, ebx
mov dword [esp + 0x14], 0x20
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0x20
mov dword [esp + 0xc], 4
mov dword [esp + 8], 9
mov dword [esp + 4], str.At___d__d_:_expecting_char__c__02x_got__c__02x_n
call fcn.00427ef0
lea eax, [ebp - 0x24]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x2e]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_ReadConsoleOutputAttribute]
sub esp, 0x14
cmp eax, 1
je 0x4358c8
mov eax, 0x21a
call fcn.00427180
movzx eax, word [ebp - 0x2e]
mov dword [esp], ebx
mov dword [esp + 0x10], 7
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 4
mov dword [esp + 8], 9
mov dword [esp + 4], str.At___d__d_:_expecting_attr__04x_got__04x_n
call fcn.00427ef0
lea eax, [ebp - 0x24]
mov dword [esp], edi
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x50]
call eax
sub esp, 8
mov ebx, eax
test eax, eax
je 0x4356b4
xor ebx, ebx
cmp word [ebp - 0x20], 9
je 0x4359a8
mov eax, 0x21b
call fcn.00427180
movsx eax, word [ebp - 0x1e]
mov dword [esp + 0x14], eax
movsx eax, word [ebp - 0x20]
mov dword [esp], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 4
mov dword [esp + 8], 9
mov dword [esp + 4], str.Expected_cursor_at___d__d___got___d__d__n
call fcn.00427ef0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [ebp - 0x24], 1
jne 0x435210
xor ebx, ebx
cmp word [ebp - 0x2e], 7
sete bl
jmp 0x435210
cmp dword [ebp - 0x24], 1
jne 0x435199
xor ebx, ebx
cmp byte [ebp - 0x31], 0x20
sete bl
jmp 0x435199
cmp dword [ebp - 0x24], 1
jne 0x4349a3
xor eax, eax
cmp word [ebp - 0x2e], 7
sete al
mov esi, eax
jmp 0x4349a3
cmp dword [ebp - 0x24], 1
jne 0x434927
xor edx, edx
cmp byte [ebp - 0x31], 0x20
sete dl
jmp 0x434927
cmp dword [ebp - 0x24], 1
jne 0x43507e
xor ebx, ebx
cmp byte [ebp - 0x31], 0x64
sete bl
jmp 0x43507e
cmp dword [ebp - 0x24], 1
jne 0x434a89
xor ebx, ebx
cmp word [ebp - 0x2e], 0x12
sete bl
jmp 0x434a89
cmp dword [ebp - 0x24], 1
jne 0x434a0e
xor ebx, ebx
cmp byte [ebp - 0x31], 0x66
sete bl
jmp 0x434a0e
mov eax, 0x210
call fcn.00427180
mov dword [esp], str.Win9x_WinMe_changes_attribs_for__n_up_to_f_n
call fcn.00427ec0
jmp 0x43524a
cmp dword [ebp - 0x24], 1
jne 0x4350f9
xor ebx, ebx
cmp word [ebp - 0x2e], 0x12
sete bl
jmp 0x4350f9
cmp dword [ebp - 0x24], 1
jne 0x434de5
xor ebx, ebx
cmp word [ebp - 0x2e], 7
sete bl
jmp 0x434de5
cmp dword [ebp - 0x24], 1
jne 0x434d6e
xor ebx, ebx
cmp byte [ebp - 0x31], 0x20
sete bl
jmp 0x434d6e
cmp dword [ebp - 0x24], 1
jne 0x434cff
xor ebx, ebx
cmp word [ebp - 0x2e], 0x12
sete bl
jmp 0x434cff
cmp dword [ebp - 0x24], 1
jne 0x434c88
xor ebx, ebx
cmp byte [ebp - 0x31], 0x67
sete bl
jmp 0x434c88
mov eax, 0x1f5
call fcn.00427180
mov dword [esp], str.Win9x_WinMe_changes_attribs_for__n_up_to_f_n
call fcn.00427ec0
lea eax, [ebp - 0x31]
mov dword [ebp - 0x38], eax
jmp 0x4349d9
cmp dword [ebp - 0x24], 1
jne 0x435655
xor ebx, ebx
cmp word [ebp - 0x2e], 7
sete bl
jmp 0x435655
cmp dword [ebp - 0x24], 1
jne 0x4355de
xor ebx, ebx
cmp byte [ebp - 0x31], 0x20
sete bl
jmp 0x4355de
cmp dword [ebp - 0x24], 1
jne 0x43556f
xor ebx, ebx
cmp word [ebp - 0x2e], 0x12
sete bl
jmp 0x43556f
cmp dword [ebp - 0x24], 1
jne 0x4354f8
xor ebx, ebx
cmp byte [ebp - 0x31], 0x67
sete bl
jmp 0x4354f8
cmp dword [ebp - 0x24], 1
jne 0x4352fa
xor ebx, ebx
cmp word [ebp - 0x2e], 0x12
sete bl
jmp 0x4352fa
cmp dword [ebp - 0x24], 1
jne 0x43527f
xor ebx, ebx
cmp byte [ebp - 0x31], 0x66
sete bl
jmp 0x43527f
mov eax, dword [ebp - 0x28]
mov dword [esp], edi
or eax, 3
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_SetConsoleMode]
sub esp, 8
test eax, eax
setne al
movzx eax, al
jmp 0x4346d4
xor ebx, ebx
cmp word [ebp - 0x1e], 4
sete bl
jmp 0x4356b4
xor ebx, ebx
cmp word [ebp - 0x1e], 1
sete bl
jmp 0x434e49