Function at 0x41fff0
Capabilities:
Log keystrokes via polling
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x456d10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x24], eax
mov ecx, esi
mov eax, 1
mov dword [ebp - 0x20], 0
mov word [ebp - 0x18], ax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
lea edx, [ecx + 1]
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x420037
sub ecx, edx
cmp ecx, 5
jbe 0x4200ac
push 5
push esi
push str.SLEEP
call fcn.00429520
add esp, 0xc
test eax, eax
jne 0x420082
lea eax, [esi + 5]
push eax
call fcn.0042779b
imul eax, eax, 0x3e8
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004265fb
mov esp, ebp
pop ebp
ret
push esi
push str.ctrl_c
call fcn.004266cb
add esp, 8
test eax, eax
jne 0x4200ac
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GenerateConsoleCtrlEvent]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004265fb
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 0x2c]
push eax
push 0x4467cc
push esi
call fcn.0042be31
mov esi, dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov edi, eax
add esp, 0xc
test edi, edi
je 0x420275
nop
xor esi, esi
push edi
push dword [esi*4 + 0x4550d0]
call fcn.004266cb
add esp, 8
test eax, eax
je 0x4200ec
inc esi
cmp esi, 0x11
jl 0x4200d2
cmp esi, 0x10
ja case.default.0x4200f5
jmp dword [esi*4 + 0x4202f8]
mov dword [ebp - 0xe], 0x1001b
mov byte [ebp - 0xa], 0x1b
jmp 0x420243
mov dword [ebp - 0xe], 0x1c000d
mov byte [ebp - 0xa], 0xd
jmp 0x420243
mov dword [ebp - 0xe], 0x3b0070
jmp 0x420243
mov dword [ebp - 0xe], 0x3c0071
jmp 0x420243
mov dword [ebp - 0xe], 0x3d0072
jmp 0x420243
mov dword [ebp - 0xe], 0x3e0073
jmp 0x420243
mov dword [ebp - 0xe], 0x3f0074
jmp 0x420243
mov dword [ebp - 0xe], 0x400075
jmp 0x420243
mov dword [ebp - 0xe], 0x410076
jmp 0x420243
mov dword [ebp - 0xe], 0x420077
jmp 0x420243
mov dword [ebp - 0xe], 0x430078
jmp 0x420243
mov dword [ebp - 0xe], 0x440079
jmp 0x420243
mov dword [ebp - 0xe], 0x45007a
jmp 0x420243
mov dword [ebp - 0xe], 0x46007b
jmp 0x420243
or dword [ebp - 8], 8
mov dword [ebp - 0x20], 1
mov dword [ebp - 0xe], 0x1d0011
jmp 0x420243
or dword [ebp - 8], 2
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0xe], 0x380012
jmp 0x420243
or dword [ebp - 8], 0x10
mov ebx, 1
mov dword [ebp - 0xe], 0x2a0010
jmp 0x420243
cmp dword [ebp - 0x20], 0
je 0x4201ff
movsx eax, byte [edi]
push eax
call fcn.0042c2a8
add esp, 4
sub al, 0x40
jmp 0x420213
test ebx, ebx
je 0x420211
movsx eax, byte [edi]
push eax
call fcn.0042c2a8
add esp, 4
jmp 0x420213
mov al, byte [edi]
mov byte [ebp - 0xa], al
movsx ax, byte [edi]
movzx eax, ax
push eax
call dword [sym.imp.USER32.dll_OemKeyScan]
and eax, 0xff
mov word [ebp - 0xc], ax
movzx eax, byte [edi]
push eax
call dword [sym.imp.USER32.dll_VkKeyScanA]
mov ecx, 0xff
and ax, cx
mov word [ebp - 0xe], ax
mov esi, dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
lea eax, [ebp - 0x28]
push eax
push 1
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x24]
call esi
lea eax, [ebp - 0x2c]
push eax
push 0x4467cc
push 0
call fcn.0042be31
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4200d0
mov edi, dword [ebp - 0x24]
lea eax, [ebp - 0x28]
push eax
push 1
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0
push eax
push edi
call esi
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
test eax, eax
jne 0x42029e
test ecx, ecx
jne 0x42029e
test ebx, ebx
je 0x4202e5
test eax, eax
mov byte [ebp - 0xa], 0
mov eax, dword [ebp - 8]
je 0x4202b6
or eax, 8
mov dword [ebp - 0xe], 0x1d0011
mov dword [ebp - 8], eax
test ecx, ecx
je 0x4202c7
or eax, 2
mov dword [ebp - 0xe], 0x380012
mov dword [ebp - 8], eax
test ebx, ebx
je 0x4202d8
or eax, 0x10
mov dword [ebp - 0xe], 0x2a0010
mov dword [ebp - 8], eax
lea eax, [ebp - 0x28]
push eax
push 1
lea eax, [ebp - 0x18]
push eax
push edi
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004265fb
mov esp, ebp
pop ebp
ret