Function at 0x42ed80
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ecx, 0x93
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x258]
mov esi, eax
xor eax, eax
push ebx
sub esp, 0x2fc
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x248], 0xc
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x1f8], eax
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x1e4], eax
mov dword [ebp - 0x1c8], eax
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x1c0], eax
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x1ac], eax
mov dword [ebp - 0x190], eax
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x188], eax
mov dword [ebp - 0x240], 1
mov dword [ebp - 0x22c], 6
mov dword [ebp - 0x218], 1
mov dword [ebp - 0x210], 0xc
mov dword [ebp - 0x208], 1
mov dword [ebp - 0x1fc], 1
mov dword [ebp - 0x1f4], 0x3e6
mov dword [ebp - 0x1f0], 0xc
mov dword [ebp - 0x1d8], 0xc
mov dword [ebp - 0x1d0], 1
mov dword [ebp - 0x1bc], 6
mov dword [ebp - 0x1a8], 1
mov dword [ebp - 0x1a0], 0xc
mov dword [ebp - 0x198], 1
mov dword [ebp - 0x18c], 1
mov dword [ebp - 0x184], 6
mov dword [ebp - 0x178], 0xffffffff
mov dword [ebp - 0x168], 0xc
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x118], eax
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x104], eax
mov dword [ebp - 0xe8], eax
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0xe0], eax
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xb0], eax
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0x160], 1
mov dword [ebp - 0x15c], 0xffffffff
mov dword [ebp - 0x14c], 6
mov dword [ebp - 0x140], 0xffffffff
mov dword [ebp - 0x138], 1
mov dword [ebp - 0x130], 0xc
mov dword [ebp - 0x128], 1
mov dword [ebp - 0x124], 0xffffffff
mov dword [ebp - 0x11c], 1
mov dword [ebp - 0x114], 6
mov dword [ebp - 0x110], 0xc
mov dword [ebp - 0x108], 0xffffffff
mov dword [ebp - 0xf8], 0xc
mov dword [ebp - 0xf0], 1
mov dword [ebp - 0xec], 0xffffffff
mov dword [ebp - 0xdc], 6
mov dword [ebp - 0xd0], 0xffffffff
mov dword [ebp - 0xc8], 1
mov dword [ebp - 0xc0], 0xc
mov dword [ebp - 0xb8], 1
mov dword [ebp - 0xb4], 0xffffffff
mov dword [ebp - 0xac], 1
mov dword [ebp - 0xa4], 6
mov dword [ebp - 0x98], esi
mov dword [ebp - 0x88], 0xc
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x2d4]
mov dword [ebp - 0x80], 1
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x74], 1
mov dword [ebp - 0x6c], 0xc
mov dword [ebp - 0x64], 1
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x58], 1
mov dword [ebp - 0x50], 0x3e6
mov dword [ebp - 0x4c], 0xc
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x34], 0xc
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x18], 0xc
mov dword [ebp - 0x10], 1
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetConsoleMode]
sub esp, 8
mov ebx, eax
mov eax, 0x76b
call fcn.00427180
xor eax, eax
cmp ebx, 1
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.Expected_GetConsoleMode_to_return_TRUE__got__d_n
mov dword [esp], eax
call fcn.00427ef0
test ebx, ebx
je 0x4300e0
mov eax, dword [ebp - 0x2d4]
mov dword [esp], esi
and eax, 0xffffffe7
mov dword [esp + 4], eax
mov eax, dword [sym.imp.kernel32.dll_SetConsoleMode]
mov dword [ebp - 0x2ec], eax
call eax
sub esp, 8
mov ebx, eax
mov eax, 0x773
call fcn.00427180
xor eax, eax
cmp ebx, 1
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.Expected_SetConsoleMode_to_return_TRUE__got__d_n
mov dword [esp], eax
call fcn.00427ef0
test ebx, ebx
je 0x4300b0
mov eax, dword [sym.imp.kernel32.dll_FlushConsoleInputBuffer]
mov dword [esp], esi
mov edi, 2
mov dword [ebp - 0x2e8], eax
call eax
sub esp, 4
mov ebx, eax
mov eax, 0x77c
call fcn.00427180
xor eax, eax
cmp ebx, 1
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.Expected_FlushConsoleInputBuffer_to_return_TRUE__got__d_n
lea ebx, [ebp - 0x258]
mov dword [esp], eax
call fcn.00427ef0
mov dword [ebp - 0x2f0], esi
mov eax, dword fs:[0x18]
mov dword [ebp - 0x2cc], 0
mov dword [ebp - 0x2c8], 0
mov dword [ebp - 0x2c4], 0
mov dword [ebp - 0x2c0], 1
mov dword [ebp - 0x2dc], eax
mov word [ebp - 0x2d0], di
xor edi, edi
lea esi, [esi]
mov esi, dword [ebx + 0x18]
test esi, esi
jne 0x42f263
mov eax, dword [ebp - 0x2dc]
mov dword [eax + 0x34], 0xdeadbeef
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x42f1a1
mov dword [ebp - 0x2d8], 0xdeadbeef
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 8]
mov dword [esp + 8], eax
mov eax, dword [ebx + 4]
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteConsoleInputA]
sub esp, 0x10
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x58f03f
mov dword [eax + 4], 0x78c
xor eax, eax
test esi, esi
sete al
mov dword [esp + 0xc], esi
mov dword [esp], eax
mov dword [esp + 8], edi
mov dword [esp + 4], str.__d__Expected_WriteConsoleInputA_to_return_FALSE__got__d_n
call fcn.00427ef0
mov eax, dword [ebp - 0x2dc]
mov esi, dword [eax + 0x34]
call fcn.0057d110
mov ecx, dword [ebx + 0x14]
mov edx, dword [ebx + 0x10]
mov dword [eax], 0x58f03f
mov dword [eax + 4], 0x78e
mov eax, 1
mov dword [ebp - 0x2e0], ecx
cmp edx, esi
je 0x42f23d
cmp ecx, esi
sete byte [ebp - 0x2e1]
xor eax, eax
movzx ecx, byte [ebp - 0x2e1]
test esi, esi
setne al
and eax, ecx
mov dword [esp + 0x14], esi
mov ecx, dword [ebp - 0x2e0]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 8], edi
mov dword [esp + 4], str.__d__Expected_last_error_to_be__lu_or__lu__got__lu_n
mov dword [esp], eax
call fcn.00427ef0
add edi, 1
add ebx, 0x1c
cmp edi, 0x15
jne 0x42f178
mov esi, dword [ebp - 0x2f0]
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x2d8], 0xdeadbeef
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_WriteConsoleInputA]
sub esp, 0x10
mov ebx, eax
mov eax, 0x795
call fcn.00427180
xor eax, eax
cmp ebx, 1
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.Expected_WriteConsoleInputA_to_return_TRUE__got__d_n
mov dword [esp], eax
call fcn.00427ef0
mov eax, 0x796
call fcn.00427180
mov eax, dword [ebp - 0x2d8]
mov dword [esp + 4], str.Expected_count_to_be_0__got__lu_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00427ef0
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x2d8], 0xdeadbeef
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x2d0]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_WriteConsoleInputA]
sub esp, 0x10
mov ebx, eax
mov eax, 0x79a
call fcn.00427180
xor eax, eax
cmp ebx, 1
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.Expected_WriteConsoleInputA_to_return_TRUE__got__d_n
mov dword [esp], eax
call fcn.00427ef0
mov eax, 0x79b
call fcn.00427180
mov eax, dword [ebp - 0x2d8]
mov dword [esp + 4], str.Expected_count_to_be_0__got__lu_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00427ef0
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x2d8], 0xdeadbeef
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x2d0]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_WriteConsoleInputA]
sub esp, 0x10
mov ebx, eax
mov eax, 0x79f
call fcn.00427180
xor eax, eax
cmp ebx, 1
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.Expected_WriteConsoleInputA_to_return_TRUE__got__d_n
mov dword [esp], eax
call fcn.00427ef0
mov eax, 0x7a0
call fcn.00427180
mov eax, dword [ebp - 0x2d8]
mov dword [esp + 4], str.Expected_count_to_be_1__got__lu_n
cmp eax, 1
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00427ef0
mov dword [esp], esi
mov eax, dword [ebp - 0x2e8]
call eax
sub esp, 4
mov ebx, eax
mov eax, 0x7a3
call fcn.00427180
xor eax, eax
cmp ebx, 1
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.Expected_FlushConsoleInputBuffer_to_return_TRUE__got__d_n
mov ebx, 2
mov dword [esp], eax
call fcn.00427ef0
lea eax, [ebp - 0x2d8]
mov word [ebp - 0x2d0], bx
mov dword [ebp - 0x2cc], 0
mov dword [ebp - 0x2c8], 0
mov dword [ebp - 0x2c4], 0
mov dword [ebp - 0x2c0], 1
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x2d0]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_WriteConsoleInputA]
sub esp, 0x10
mov ebx, eax
mov eax, 0x7aa
call fcn.00427180
xor eax, eax
cmp ebx, 1
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.Expected_WriteConsoleInputA_to_return_TRUE__got__d_n
mov dword [esp], eax
call fcn.00427ef0
mov eax, 0x7ab
call fcn.00427180
mov eax, dword [ebp - 0x2d8]
mov dword [esp + 4], str.Expected_count_to_be_1__got__lu_n
cmp eax, 1
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00427ef0
lea eax, [ebp - 0x2d8]
mov ebx, dword [sym.imp.kernel32.dll_GetNumberOfConsoleInputEvents]
mov dword [esp], esi
mov dword [esp + 4], eax
call ebx
sub esp, 8
mov dword [ebp - 0x2dc], eax
mov eax, 0x7ae
call fcn.00427180
mov edx, dword [ebp - 0x2dc]
xor eax, eax
mov dword [esp + 4], str.Expected_GetNumberOfConsoleInputEvents_to_return_TRUE__got__d_n
cmp edx, 1
mov dword [esp + 8], edx
sete al
mov dword [esp], eax
call fcn.00427ef0
mov eax, 0x7af
call fcn.00427180
mov eax, dword [ebp - 0x2d8]
mov dword [esp + 4], str.Expected_count_to_be_1__got__lu_n
cmp eax, 1
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00427ef0
lea eax, [ebp - 0x2d8]
mov dword [esp + 8], 1
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x2d0]
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_WriteConsoleInputA]
sub esp, 0x10
mov dword [ebp - 0x2dc], eax
mov eax, 0x7b2
call fcn.00427180
mov edx, dword [ebp - 0x2dc]
xor eax, eax
mov dword [esp + 4], str.Expected_WriteConsoleInputA_to_return_TRUE__got__d_n
cmp edx, 1
mov dword [esp + 8], edx
sete al
mov dword [esp], eax
call fcn.00427ef0
mov eax, 0x7b3
call fcn.00427180
mov eax, dword [ebp - 0x2d8]
mov dword [esp + 4], str.Expected_count_to_be_1__got__lu_n
cmp eax, 1
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00427ef0
lea eax, [ebp - 0x2d8]
mov dword [esp], esi
mov dword [esp + 4], eax
call ebx
sub esp, 8
mov dword [ebp - 0x2dc], eax
mov eax, 0x7b6
call fcn.00427180
mov edx, dword [ebp - 0x2dc]
xor eax, eax
mov dword [esp + 4], str.Expected_GetNumberOfConsoleInputEvents_to_return_TRUE__got__d_n
cmp edx, 1
mov dword [esp + 8], edx
sete al
mov dword [esp], eax
call fcn.00427ef0
mov ecx, dword [0x8f0770]
mov dword [ebp - 0x2dc], ecx
call fcn.0057d110
mov ecx, dword [eax + 0x10]
mov dword [eax + 0x14], 1
lea edx, [ecx + ecx]
mov ecx, dword [ebp - 0x2dc]
test ecx, ecx
setne cl
movzx ecx, cl
or edx, ecx
mov dword [eax + 0x10], edx
jmp 0x42f6a5
call fcn.0057d110
mov dword [eax], 0x58f03f
mov dword [eax + 4], 0x7b8
mov eax, dword [ebp - 0x2d8]
mov dword [esp + 4], str.Expected_count_to_be_1__got__lu_n
cmp eax, 1
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00427ef0
call fcn.0057d110
shr dword [eax + 0x10], 1
call fcn.0057d110
mov edx, dword [eax + 0x14]
mov dword [eax + 0x14], 0
test edx, edx
jne 0x42f668
mov dword [esp], esi
mov eax, dword [ebp - 0x2e8]
call eax
sub esp, 4
mov dword [ebp - 0x2dc], eax
mov eax, 0x7bb
call fcn.00427180
mov edx, dword [ebp - 0x2dc]
xor eax, eax
mov dword [esp + 4], str.Expected_FlushConsoleInputBuffer_to_return_TRUE__got__d_n
cmp edx, 1
mov dword [esp + 8], edx
sete al
mov dword [esp], eax
call fcn.00427ef0
lea edx, [ebp - 0x2bc]
mov eax, edx
mov ecx, 2
mov dword [eax + 4], 0
add eax, 0x14
mov word [eax - 0x14], cx
lea ecx, [ebp - 0x258]
mov dword [eax - 0xc], 0
mov dword [eax - 8], 0
mov dword [eax - 4], 1
cmp eax, ecx
jne 0x42f700
lea eax, [ebp - 0x2d8]
mov dword [esp + 4], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 5
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_WriteConsoleInputA]
sub esp, 0x10
mov dword [ebp - 0x2dc], eax
mov eax, 0x7c5
call fcn.00427180
mov ecx, dword [ebp - 0x2dc]
xor eax, eax
mov dword [esp + 4], str.Expected_WriteConsoleInputA_to_return_TRUE__got__d_n
cmp ecx, 1
mov dword [esp + 8], ecx
sete al
mov dword [esp], eax
call fcn.00427ef0
mov eax, 0x7c6
call fcn.00427180
mov eax, dword [ebp - 0x2d8]
mov dword [esp + 4], str.Expected_count_to_be_event_list_length__got__lu_n
cmp eax, 5
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00427ef0
lea eax, [ebp - 0x2d8]
mov dword [esp], esi
mov dword [esp + 4], eax
call ebx
sub esp, 8
mov dword [ebp - 0x2dc], eax
mov eax, 0x7ca
call fcn.00427180
mov ecx, dword [ebp - 0x2dc]
xor eax, eax
mov dword [esp + 4], str.Expected_GetNumberOfConsoleInputEvents_to_return_TRUE__got__d_n
cmp ecx, 1
mov dword [esp + 8], ecx
sete al
mov dword [esp], eax
call fcn.00427ef0
mov eax, 0x7cb
call fcn.00427180
mov eax, dword [ebp - 0x2d8]
mov dword [esp + 4], str.Expected_count_to_be_event_list_length__got__lu_n
cmp eax, 5
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00427ef0
lea edx, [ebp - 0x2bc]
lea eax, [ebp - 0x2d8]
mov dword [esp], esi
mov dword [esp + 4], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 5
call dword [sym.imp.kernel32.dll_WriteConsoleInputA]
sub esp, 0x10
mov dword [ebp - 0x2dc], eax
mov eax, 0x7cf
call fcn.00427180
mov edx, dword [ebp - 0x2dc]
xor eax, eax
mov dword [esp + 4], str.Expected_WriteConsoleInputA_to_return_TRUE__got__d_n
cmp edx, 1
mov dword [esp + 8], edx
sete al
mov dword [esp], eax
call fcn.00427ef0
mov eax, 0x7d0
call fcn.00427180
mov eax, dword [ebp - 0x2d8]
mov dword [esp + 4], str.Expected_count_to_be_event_list_length__got__lu_n
cmp eax, 5
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00427ef0
lea eax, [ebp - 0x2d8]
mov dword [esp], esi
mov dword [esp + 4], eax
call ebx
sub esp, 8
mov dword [ebp - 0x2dc], eax
mov eax, 0x7d4
call fcn.00427180
mov edx, dword [ebp - 0x2dc]
xor eax, eax
mov dword [esp + 4], str.Expected_GetNumberOfConsoleInputEvents_to_return_TRUE__got__d_n
cmp edx, 1
mov dword [esp + 8], edx
sete al
mov dword [esp], eax
call fcn.00427ef0
mov eax, 0x7d5
call fcn.00427180
mov eax, dword [ebp - 0x2d8]
mov dword [esp + 4], str.Expected_count_to_be_twice_event_list_length__got__lu_n
cmp eax, 0xa
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00427ef0
lea eax, [ebp - 0x2d8]
mov dword [esp + 8], 1
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x2d0]
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_WriteConsoleInputA]
sub esp, 0x10
mov dword [ebp - 0x2dc], eax
mov eax, 0x7da
call fcn.00427180
mov edx, dword [ebp - 0x2dc]
xor eax, eax
mov dword [esp + 4], str.Expected_WriteConsoleInputA_to_return_TRUE__got__d_n
cmp edx, 1
mov dword [esp + 8], edx
sete al
mov dword [esp], eax
call fcn.00427ef0
mov eax, 0x7db
call fcn.00427180
mov eax, dword [ebp - 0x2d8]
mov dword [esp + 4], str.Expected_count_to_be_1__got__lu_n
cmp eax, 1
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00427ef0
lea eax, [ebp - 0x2d8]
mov dword [esp], esi
mov dword [esp + 4], eax
call ebx
sub esp, 8
mov dword [ebp - 0x2dc], eax
mov eax, 0x7de
call fcn.00427180
mov edx, dword [ebp - 0x2dc]
xor eax, eax
mov dword [esp + 4], str.Expected_GetNumberOfConsoleInputEvents_to_return_TRUE__got__d_n
cmp edx, 1
mov dword [esp + 8], edx
sete al
mov dword [esp], eax
call fcn.00427ef0
mov ecx, dword [0x8f0770]
mov dword [ebp - 0x2dc], ecx
call fcn.0057d110
mov ecx, dword [eax + 0x10]
mov dword [eax + 0x14], 1
lea edx, [ecx + ecx]
mov ecx, dword [ebp - 0x2dc]
test ecx, ecx
setne cl
movzx ecx, cl
or edx, ecx
mov dword [eax + 0x10], edx
jmp 0x42fa5d
call fcn.0057d110
mov dword [eax], 0x58f03f
mov dword [eax + 4], 0x7e0
mov eax, dword [ebp - 0x2d8]
mov dword [esp + 4], str.Expected_count_to_be_twice_event_list_length__got__lu_n
cmp eax, 0xa
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00427ef0
call fcn.0057d110
shr dword [eax + 0x10], 1
call fcn.0057d110
mov edx, dword [eax + 0x14]
mov dword [eax + 0x14], 0
test edx, edx
jne 0x42fa20
mov dword [esp], esi
mov edi, dword [ebp - 0x2e8]
call edi
sub esp, 4
mov dword [ebp - 0x2dc], eax
mov eax, 0x7e4
call fcn.00427180
mov edx, dword [ebp - 0x2dc]
xor eax, eax
mov dword [esp + 4], str.Expected_FlushConsoleInputBuffer_to_return_TRUE__got__d_n
cmp edx, 1
mov dword [esp + 8], edx
sete al
mov dword [esp], eax
call fcn.00427ef0
mov eax, 1
mov edx, 0x20
mov dword [ebp - 0x2cc], 0
mov word [ebp - 0x2d0], ax
lea eax, [ebp - 0x2d8]
mov word [ebp - 0x2c4], dx
mov dword [ebp - 0x2c8], 0x200000
mov byte [ebp - 0x2c2], 0x20
mov dword [ebp - 0x2c0], 0
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x2d0]
mov dword [esp], esi
mov dword [esp + 8], 1
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_WriteConsoleInputA]
sub esp, 0x10
mov dword [ebp - 0x2dc], eax
mov eax, 0x7f2
call fcn.00427180
mov edx, dword [ebp - 0x2dc]
xor eax, eax
mov dword [esp + 4], str.Expected_WriteConsoleInputA_to_return_TRUE__got__d_n
cmp edx, 1
mov dword [esp + 8], edx
sete al
mov dword [esp], eax
call fcn.00427ef0
mov eax, 0x7f3
call fcn.00427180
mov eax, dword [ebp - 0x2d8]
mov dword [esp + 4], str.Expected_count_to_be_1__got__lu_n
cmp eax, 1
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00427ef0
lea eax, [ebp - 0x2d8]
mov dword [esp], esi
mov dword [esp + 4], eax
call ebx
sub esp, 8
mov dword [ebp - 0x2dc], eax
mov eax, 0x7f6
call fcn.00427180
mov edx, dword [ebp - 0x2dc]
xor eax, eax
mov dword [esp + 4], str.Expected_GetNumberOfConsoleInputEvents_to_return_TRUE__got__d_n
cmp edx, 1
mov dword [esp + 8], edx
sete al
mov dword [esp], eax
call fcn.00427ef0
mov eax, 0x7f7
call fcn.00427180
mov eax, dword [ebp - 0x2d8]
mov dword [esp + 4], str.Expected_count_to_be_1__got__lu_n
cmp eax, 1
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00427ef0
lea eax, [ebp - 0x2d8]
mov dword [esp], esi
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x2d0]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_WriteConsoleInputA]
sub esp, 0x10
mov dword [ebp - 0x2dc], eax
mov eax, 0x7fa
call fcn.00427180
mov edx, dword [ebp - 0x2dc]
xor eax, eax
mov dword [esp + 4], str.Expected_WriteConsoleInputA_to_return_TRUE__got__d_n
cmp edx, 1
mov dword [esp + 8], edx
sete al
mov dword [esp], eax
call fcn.00427ef0
mov eax, 0x7fb
call fcn.00427180
mov eax, dword [ebp - 0x2d8]
mov dword [esp + 4], str.Expected_count_to_be_1__got__lu_n
cmp eax, 1
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00427ef0
lea eax, [ebp - 0x2d8]
mov dword [esp], esi
mov dword [esp + 4], eax
call ebx
sub esp, 8
mov dword [ebp - 0x2dc], eax
mov eax, 0x7fe
call fcn.00427180
mov edx, dword [ebp - 0x2dc]
xor eax, eax
mov dword [esp + 4], str.Expected_GetNumberOfConsoleInputEvents_to_return_TRUE__got__d_n
cmp edx, 1
mov dword [esp + 8], edx
sete al
mov dword [esp], eax
call fcn.00427ef0
mov eax, 0x7ff
call fcn.00427180
mov eax, dword [ebp - 0x2d8]
mov dword [esp + 4], str.Expected_count_to_be_2__got__lu_n
cmp eax, 2
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00427ef0
mov dword [esp], esi
call edi
sub esp, 4
mov edi, eax
mov eax, 0x802
call fcn.00427180
xor eax, eax
cmp edi, 1
mov dword [esp + 8], edi
sete al
mov dword [esp + 4], str.Expected_FlushConsoleInputBuffer_to_return_TRUE__got__d_n
mov dword [esp], eax
call fcn.00427ef0
mov ecx, 2
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x2cc], 0
mov word [ebp - 0x2d0], cx
mov dword [ebp - 0x2c8], 0
mov dword [ebp - 0x2c4], 0
mov dword [ebp - 0x2c0], 1
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x2d0]
mov dword [esp], esi
mov dword [esp + 8], 1
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_WriteConsoleInputA]
sub esp, 0x10
mov edi, eax
mov eax, 0x809
call fcn.00427180
xor eax, eax
cmp edi, 1
mov dword [esp + 8], edi
sete al
mov dword [esp + 4], str.Expected_WriteConsoleInputA_to_return_TRUE__got__d_n
mov dword [esp], eax
call fcn.00427ef0
mov eax, 0x80a
call fcn.00427180
mov eax, dword [ebp - 0x2d8]
mov dword [esp + 4], str.Expected_count_to_be_1__got__lu_n
cmp eax, 1
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00427ef0
lea eax, [ebp - 0x2d8]
mov dword [esp], esi
mov dword [esp + 4], eax
call ebx
sub esp, 8
mov edi, eax
mov eax, 0x80d
call fcn.00427180
xor eax, eax
cmp edi, 1
mov dword [esp + 8], edi
sete al
mov dword [esp + 4], str.Expected_GetNumberOfConsoleInputEvents_to_return_TRUE__got__d_n
mov edi, 1
mov dword [esp], eax
call fcn.00427ef0
mov eax, 0x80e
call fcn.00427180
mov eax, dword [ebp - 0x2d8]
mov dword [esp + 4], str.Expected_count_to_be_1__got__lu_n
cmp eax, 1
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00427ef0
mov eax, 0x20
mov word [ebp - 0x2d0], di
mov word [ebp - 0x2c4], ax
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x2cc], 0
mov dword [ebp - 0x2c8], 0x200000
mov byte [ebp - 0x2c2], 0x20
mov dword [ebp - 0x2c0], 0
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x2d0]
mov dword [esp], esi
mov dword [esp + 8], 1
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_WriteConsoleInputA]
sub esp, 0x10
mov edi, eax
mov eax, 0x814
call fcn.00427180
xor eax, eax
cmp edi, 1
mov dword [esp + 8], edi
sete al
mov dword [esp + 4], str.Expected_WriteConsoleInputA_to_return_TRUE__got__d_n
mov dword [esp], eax
call fcn.00427ef0
mov eax, 0x815
call fcn.00427180
mov eax, dword [ebp - 0x2d8]
mov dword [esp + 4], str.Expected_count_to_be_1__got__lu_n
cmp eax, 1
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00427ef0
lea eax, [ebp - 0x2d8]
mov dword [esp], esi
mov dword [esp + 4], eax
call ebx
sub esp, 8
mov edi, eax
mov eax, 0x818
call fcn.00427180
xor eax, eax
cmp edi, 1
mov dword [esp + 8], edi
sete al
mov dword [esp + 4], str.Expected_GetNumberOfConsoleInputEvents_to_return_TRUE__got__d_n
mov dword [esp], eax
call fcn.00427ef0
mov eax, 0x819
call fcn.00427180
mov eax, dword [ebp - 0x2d8]
mov dword [esp + 4], str.Expected_count_to_be_2__got__lu_n
cmp eax, 2
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00427ef0
mov eax, 2
mov dword [ebp - 0x2cc], 0
mov word [ebp - 0x2d0], ax
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x2c8], 0
mov dword [ebp - 0x2c4], 0
mov dword [ebp - 0x2c0], 1
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x2d0]
mov dword [esp], esi
mov dword [esp + 8], 1
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_WriteConsoleInputA]
sub esp, 0x10
mov edi, eax
mov eax, 0x81f
call fcn.00427180
xor eax, eax
cmp edi, 1
mov dword [esp + 8], edi
sete al
mov dword [esp + 4], str.Expected_WriteConsoleInputA_to_return_TRUE__got__d_n
mov dword [esp], eax
call fcn.00427ef0
mov eax, 0x820
call fcn.00427180
mov eax, dword [ebp - 0x2d8]
mov dword [esp + 4], str.Expected_count_to_be_1__got__lu_n
cmp eax, 1
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00427ef0
lea eax, [ebp - 0x2d8]
mov dword [esp], esi
mov dword [esp + 4], eax
call ebx
sub esp, 8
mov ebx, eax
mov eax, 0x823
call fcn.00427180
xor eax, eax
cmp ebx, 1
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.Expected_GetNumberOfConsoleInputEvents_to_return_TRUE__got__d_n
mov dword [esp], eax
call fcn.00427ef0
mov eax, 0x824
call fcn.00427180
mov eax, dword [ebp - 0x2d8]
mov dword [esp + 4], str.Expected_count_to_be_3__got__lu_n
cmp eax, 3
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00427ef0
mov eax, dword [ebp - 0x2d4]
mov dword [esp], esi
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2ec]
call eax
sub esp, 8
mov ebx, eax
mov eax, 0x828
call fcn.00427180
xor eax, eax
cmp ebx, 1
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.Expected_SetConsoleMode_to_return_TRUE__got__d_n
mov dword [esp], eax
call fcn.00427ef0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0x776
call fcn.00427180
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp], str.SetConsoleMode_failed_with_last_error__lu_n
mov dword [esp + 4], eax
call fcn.00427740
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0x76e
call fcn.00427180
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp], str.GetConsoleMode_failed_with_last_error__lu_n
mov dword [esp + 4], eax
call fcn.00427740
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret