Function at 0x43baf0
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
mov esi, dword fs:[0x18]
sub esp, 0x38
mov dword [ebp - 0x2c], edx
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_FlushConsoleInputBuffer]
mov dword [ebp - 0x30], eax
call eax
sub esp, 4
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x58f03f
mov dword [eax + 4], 0x91f
mov eax, dword [esi + 0x34]
mov dword [esp], edi
lea edi, [ebp - 0x24]
mov dword [esp + 8], eax
mov dword [esp + 4], str.FlushConsoleInputBuffer_failed:__lu_n
call fcn.00427ef0
mov eax, dword [sym.imp.kernel32.dll_GetNumberOfConsoleInputEvents]
mov dword [esp + 4], edi
mov dword [esp], ebx
mov dword [ebp - 0x28], eax
call eax
sub esp, 8
mov edi, eax
mov eax, 0x922
call fcn.00427180
mov eax, dword [esi + 0x34]
mov dword [esp], edi
lea edi, [ebp - 0x24]
mov dword [esp + 4], str.GetNumberOfConsoleInputEvents_failed:__lu_n
mov dword [esp + 8], eax
call fcn.00427ef0
mov eax, 0x923
call fcn.00427180
mov eax, dword [ebp - 0x24]
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
mov ecx, dword [sym.imp.kernel32.dll_WriteConsoleInputW]
lea edx, [ebp - 0x20]
mov eax, 1
mov word [ebp - 0x20], ax
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], 0xd0001
mov dword [ebp - 0x14], 0xd000d
mov dword [ebp - 0x10], 0
mov dword [esp + 4], edx
mov dword [esp + 0xc], edi
mov dword [esp], ebx
mov dword [esp + 8], 1
mov dword [ebp - 0x34], ecx
call ecx
sub esp, 0x10
mov edi, eax
mov eax, 0x92d
call fcn.00427180
mov eax, dword [esi + 0x34]
mov dword [esp], edi
lea edi, [ebp - 0x24]
mov dword [esp + 4], str.WriteConsoleInputW_failed:__lu_n
mov dword [esp + 8], eax
call fcn.00427ef0
mov dword [esp + 4], edi
mov dword [esp], ebx
mov eax, dword [ebp - 0x28]
call eax
sub esp, 8
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x58f03f
mov dword [eax + 4], 0x930
mov eax, dword [esi + 0x34]
mov dword [esp], edi
mov dword [esp + 8], eax
mov dword [esp + 4], str.GetNumberOfConsoleInputEvents_failed:__lu_n
call fcn.00427ef0
call fcn.0057d110
mov dword [eax], 0x58f03f
mov dword [eax + 4], 0x931
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], str.Expected_count_to_be_0__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], ebx
mov ecx, dword [ebp - 0x30]
call ecx
sub esp, 4
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x58f03f
mov dword [eax + 4], 0x934
mov eax, dword [esi + 0x34]
mov dword [esp], edi
lea edi, [ebp - 0x24]
mov dword [esp + 8], eax
mov dword [esp + 4], str.FlushConsoleInputBuffer_failed:__lu_n
call fcn.00427ef0
mov dword [esp + 4], edi
mov dword [esp], ebx
mov eax, dword [ebp - 0x28]
call eax
sub esp, 8
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x58f03f
mov dword [eax + 4], 0x937
mov eax, dword [esi + 0x34]
mov dword [esp], edi
lea edi, [ebp - 0x24]
mov dword [esp + 8], eax
mov dword [esp + 4], str.GetNumberOfConsoleInputEvents_failed:__lu_n
call fcn.00427ef0
call fcn.0057d110
mov dword [eax], 0x58f03f
mov dword [eax + 4], 0x938
mov eax, dword [ebp - 0x24]
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 - 0x20]
mov dword [esp], ebx
mov dword [esp + 0xc], edi
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov ecx, dword [ebp - 0x34]
call ecx
sub esp, 0x10
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x58f03f
mov dword [eax + 4], 0x93b
mov eax, dword [esi + 0x34]
mov dword [esp], edi
lea edi, [ebp - 0x24]
mov dword [esp + 8], eax
mov dword [esp + 4], str.WriteConsoleInputW_failed:__lu_n
call fcn.00427ef0
mov dword [esp + 4], edi
mov dword [esp], ebx
mov eax, dword [ebp - 0x28]
call eax
sub esp, 8
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x58f03f
mov dword [eax + 4], 0x93e
mov eax, dword [esi + 0x34]
mov dword [esp], edi
mov dword [esp + 8], eax
mov dword [esp + 4], str.GetNumberOfConsoleInputEvents_failed:__lu_n
call fcn.00427ef0
call fcn.0057d110
mov dword [eax], 0x58f03f
mov dword [eax + 4], 0x93f
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], str.Expected_count_to_be_0__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], ebx
mov edi, dword [sym.imp.kernel32.dll_FlushFileBuffers]
call edi
sub esp, 4
mov dword [ebp - 0x34], eax
call fcn.0057d110
mov dword [eax], 0x58f03f
mov dword [eax + 4], 0x942
mov eax, dword [esi + 0x34]
mov dword [esp + 4], 0x591bbf
mov dword [esp + 8], eax
mov ecx, dword [ebp - 0x34]
mov dword [esp], ecx
call fcn.00427ef0
lea edx, [ebp - 0x24]
mov dword [esp], ebx
mov dword [esp + 4], edx
mov eax, dword [ebp - 0x28]
call eax
sub esp, 8
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x58f03f
mov dword [eax + 4], 0x945
mov eax, dword [esi + 0x34]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], str.GetNumberOfConsoleInputEvents_failed:__lu_n
call fcn.00427ef0
call fcn.0057d110
mov dword [eax], 0x58f03f
mov dword [eax + 4], 0x946
mov eax, dword [ebp - 0x24]
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
mov edx, dword [ebp - 0x2c]
mov dword [esp], edx
mov ecx, dword [ebp - 0x30]
call ecx
sub esp, 4
mov ebx, eax
mov eax, 0x949
call fcn.00427180
mov ecx, dword [esi + 0x34]
xor eax, eax
test ebx, ebx
jne 0x43beb6
xor eax, eax
cmp ecx, 6
sete al
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], str.FlushConsoleInputBuffer_returned:__x__lu__n
call fcn.00427ef0
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call edi
sub esp, 4
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x58f03f
mov dword [eax + 4], 0x94d
xor eax, eax
mov edx, dword fs:[0x18]
mov ecx, dword [edx + 0x34]
test ebx, ebx
jne 0x43bf05
xor eax, eax
cmp ecx, 6
sete al
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 4], str.FlushFileBuffers_returned:__x__lu__n
mov dword [esp], eax
call fcn.00427ef0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret