Function at 0x42da00
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, 0x858
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 0x42ed48
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, 0x860
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 0x42ed18
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, 0x869
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 0x42dee3
mov eax, dword [ebp - 0x2dc]
mov dword [eax + 0x34], 0xdeadbeef
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x42de21
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_WriteConsoleInputW]
sub esp, 0x10
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x58f03f
mov dword [eax + 4], 0x879
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_WriteConsoleInputW_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], 0x87b
mov eax, 1
mov dword [ebp - 0x2e0], ecx
cmp edx, esi
je 0x42debd
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 0x42ddf8
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_WriteConsoleInputW]
sub esp, 0x10
mov ebx, eax
mov eax, 0x882
call fcn.00427180
xor eax, eax
cmp ebx, 1
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.Expected_WriteConsoleInputW_to_return_TRUE__got__d_n
mov dword [esp], eax
call fcn.00427ef0
mov eax, 0x883
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_WriteConsoleInputW]
sub esp, 0x10
mov ebx, eax
mov eax, 0x887
call fcn.00427180
xor eax, eax
cmp ebx, 1
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.Expected_WriteConsoleInputW_to_return_TRUE__got__d_n
mov dword [esp], eax
call fcn.00427ef0
mov eax, 0x888
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_WriteConsoleInputW]
sub esp, 0x10
mov ebx, eax
mov eax, 0x88c
call fcn.00427180
xor eax, eax
cmp ebx, 1
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.Expected_WriteConsoleInputW_to_return_TRUE__got__d_n
mov dword [esp], eax
call fcn.00427ef0
mov eax, 0x88d
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, 0x890
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_WriteConsoleInputW]
sub esp, 0x10
mov ebx, eax
mov eax, 0x897
call fcn.00427180
xor eax, eax
cmp ebx, 1
mov dword [esp + 8], ebx
sete al
mov dword [esp + 4], str.Expected_WriteConsoleInputW_to_return_TRUE__got__d_n
mov dword [esp], eax
call fcn.00427ef0
mov eax, 0x898
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, 0x89b
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, 0x89c
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_WriteConsoleInputW]
sub esp, 0x10
mov dword [ebp - 0x2dc], eax
mov eax, 0x89f
call fcn.00427180
mov edx, dword [ebp - 0x2dc]
xor eax, eax
mov dword [esp + 4], str.Expected_WriteConsoleInputW_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, 0x8a0
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, 0x8a3
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 0x42e325
call fcn.0057d110
mov dword [eax], 0x58f03f
mov dword [eax + 4], 0x8a5
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 0x42e2e8
mov dword [esp], esi
mov eax, dword [ebp - 0x2e8]
call eax
sub esp, 4
mov dword [ebp - 0x2dc], eax
mov eax, 0x8a8
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 ecx, eax
jne 0x42e380
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_WriteConsoleInputW]
sub esp, 0x10
mov dword [ebp - 0x2dc], eax
mov eax, 0x8b2
call fcn.00427180
mov ecx, dword [ebp - 0x2dc]
xor eax, eax
mov dword [esp + 4], str.Expected_WriteConsoleInputW_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, 0x8b3
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, 0x8b7
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, 0x8b8
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_WriteConsoleInputW]
sub esp, 0x10
mov dword [ebp - 0x2dc], eax
mov eax, 0x8bc
call fcn.00427180
mov edx, dword [ebp - 0x2dc]
xor eax, eax
mov dword [esp + 4], str.Expected_WriteConsoleInputW_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, 0x8bd
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, 0x8c1
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, 0x8c2
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_WriteConsoleInputW]
sub esp, 0x10
mov dword [ebp - 0x2dc], eax
mov eax, 0x8c7
call fcn.00427180
mov edx, dword [ebp - 0x2dc]
xor eax, eax
mov dword [esp + 4], str.Expected_WriteConsoleInputW_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, 0x8c8
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, 0x8cb
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 0x42e6dd
call fcn.0057d110
mov dword [eax], 0x58f03f
mov dword [eax + 4], 0x8cd
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 0x42e6a0
mov dword [esp], esi
mov edi, dword [ebp - 0x2e8]
call edi
sub esp, 4
mov dword [ebp - 0x2dc], eax
mov eax, 0x8d1
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 dword [ebp - 0x2cc], 0
mov word [ebp - 0x2d0], ax
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x2c8], 0x200000
mov dword [ebp - 0x2c4], 0x200020
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_WriteConsoleInputW]
sub esp, 0x10
mov dword [ebp - 0x2dc], eax
mov eax, 0x8df
call fcn.00427180
mov edx, dword [ebp - 0x2dc]
xor eax, eax
mov dword [esp + 4], str.Expected_WriteConsoleInputW_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, 0x8e0
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, 0x8e3
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, 0x8e4
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_WriteConsoleInputW]
sub esp, 0x10
mov dword [ebp - 0x2dc], eax
mov eax, 0x8e7
call fcn.00427180
mov edx, dword [ebp - 0x2dc]
xor eax, eax
mov dword [esp + 4], str.Expected_WriteConsoleInputW_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, 0x8e8
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, 0x8eb
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, 0x8ec
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, 0x8ef
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 edx, 2
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x2cc], 0
mov word [ebp - 0x2d0], dx
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_WriteConsoleInputW]
sub esp, 0x10
mov edi, eax
mov eax, 0x8f6
call fcn.00427180
xor eax, eax
cmp edi, 1
mov dword [esp + 8], edi
sete al
mov dword [esp + 4], str.Expected_WriteConsoleInputW_to_return_TRUE__got__d_n
mov dword [esp], eax
call fcn.00427ef0
mov eax, 0x8f7
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, 0x8fa
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, 0x8fb
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 ecx, 1
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x2cc], 0
mov word [ebp - 0x2d0], cx
mov dword [ebp - 0x2c8], 0x200000
mov dword [ebp - 0x2c4], 0x200020
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_WriteConsoleInputW]
sub esp, 0x10
mov edi, eax
mov eax, 0x901
call fcn.00427180
xor eax, eax
cmp edi, 1
mov dword [esp + 8], edi
sete al
mov dword [esp + 4], str.Expected_WriteConsoleInputW_to_return_TRUE__got__d_n
mov dword [esp], eax
call fcn.00427ef0
mov eax, 0x902
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, 0x905
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, 2
mov dword [esp], eax
call fcn.00427ef0
mov eax, 0x906
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
lea eax, [ebp - 0x2d8]
mov word [ebp - 0x2d0], di
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], esi
mov dword [esp + 8], 1
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_WriteConsoleInputW]
sub esp, 0x10
mov edi, eax
mov eax, 0x90c
call fcn.00427180
xor eax, eax
cmp edi, 1
mov dword [esp + 8], edi
sete al
mov dword [esp + 4], str.Expected_WriteConsoleInputW_to_return_TRUE__got__d_n
mov dword [esp], eax
call fcn.00427ef0
mov eax, 0x90d
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, 0x910
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, 0x911
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, 0x915
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, 0x863
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, 0x85b
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