Function at 0x490860
Capabilities:
Log keystrokes via polling

Disassembly:
mov al, byte [0x6b1520]
sub esp, 0xf8
test al, al
je 0x490b90
mov ecx, dword [0x6b1728]
push ebx
push ebp
xor eax, eax
cmp ecx, eax
push esi
push edi
mov byte [0x6b1521], 0
mov word [0x6b1622], ax
mov word [0x6b1624], ax
je 0x4909ef
mov ebp, 1
mov dword [esp + 0x10], ebp
mov eax, 0x6b1548
mov edx, 0x6d
lea ecx, [ecx]
cmp byte [eax + 0x6d], 1
jne 0x4908bb
mov byte [eax], 0
jmp 0x4908d4
mov cl, byte [eax]
test cl, cl
jbe 0x4908d4
movzx ecx, cl
inc ecx
cmp ecx, 0xff
jle 0x4908d2
mov ecx, 0xff
mov byte [eax], cl
inc eax
dec edx
jne 0x4908b0
mov ecx, 0x1b
xor eax, eax
mov edi, 0x6b15b5
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov bl, 2
nop
mov eax, dword [0x6b1728]
mov ecx, dword [eax]
push 0
lea edx, [esp + 0x14]
push edx
lea edx, [esp + 0x1c]
push edx
push 0x14
push eax
call dword [ecx + 0x28]
test eax, eax
jg 0x4909ae
je 0x49093a
cmp eax, 0x8007000c
je 0x490925
cmp eax, 0x8007001e
jne 0x4909b3
mov eax, dword [0x6b1728]
mov dword [esp + 0x10], 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
jmp 0x4909a2
cmp dword [esp + 0x10], ebp
jne 0x4909ef
mov edx, dword [esp + 0x14]
mov si, word [edx*2 + 0x65bda8]
cmp si, 0xffff
je 0x4908f0
cmp si, 0x1e
jne 0x49096d
push 0x12
call edi
test ah, ah
jns 0x49096d
mov byte [0x6b1566], 0
jmp 0x4909a2
mov al, byte [esp + 0x18]
test al, al
movsx eax, si
jns 0x490981
mov byte [eax + 0x6b1548], 1
jmp 0x4909a2
cmp byte [eax + 0x6b1548], 1
jne 0x49099b
test byte [0x71246a], bl
jne 0x49099b
mov byte [eax + 0x6b15b5], 1
jmp 0x4909a2
mov byte [eax + 0x6b1548], 0
cmp dword [esp + 0x10], ebp
je 0x4908f0
jmp 0x4909ef
mov ecx, eax
dec ecx
je 0x4909c3
push str.IDirectInputDevice_GetDeviceData__mouse_
push eax
call fcn.00492240
add esp, 8
jmp 0x4909ef
push str.keyboard_buffer_overflow
push ebp
call fcn.00492240
mov eax, dword [0x6b1728]
add esp, 8
push 0
lea edx, [esp + 0x14]
push edx
push 0
push 0x14
mov dword [esp + 0x20], 0xffffffff
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
mov eax, dword [0x6b172c]
test eax, eax
je 0x490a8b
mov ecx, dword [0x719600]
test ecx, ecx
jne 0x490a8b
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push 0x14
push eax
call dword [ecx + 0x24]
mov esi, eax
cmp esi, 0x8007000c
je 0x490a50
cmp esi, 0x8007001e
je 0x490a50
test esi, esi
je 0x490a3d
push str.GetDeviceState__mouse_
push esi
call fcn.00492240
add esp, 8
jmp 0x490a5b
push 0x6b1734
lea ecx, [esp + 0x18]
call fcn.00491cb0
add esp, 4
jmp 0x490a8b
mov eax, dword [0x6b172c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
test esi, esi
jge 0x490a8b
xor edx, edx
mov dword [0x6b1734], edx
mov dword [0x6b1738], edx
mov dword [0x6b173c], edx
mov dword [0x6b1740], edx
mov dword [0x6b1744], edx
mov dword [0x6b1748], edx
mov dword [0x6b174c], edx
mov eax, dword [0x719600]
xor ebp, ebp
test eax, eax
jne 0x490b8c
mov ebx, 0x6b1790
nop
cmp ebx, 0x6b2990
jge 0x490b8c
mov ecx, dword [0x6b176c]
movsx eax, bp
cmp eax, ecx
jge 0x490b78
lea eax, [eax + eax*8]
shl eax, 6
cmp dword [eax + 0x6b19c0], 0xffffffff
setne al
test al, al
je 0x490b78
mov eax, dword [ebp*4 + 0x6b1770]
test eax, eax
je 0x490b78
mov ecx, dword [eax]
mov edi, dword [ebx + 0x230]
push eax
call dword [ecx + 0x64]
mov esi, eax
test esi, esi
jl 0x490b0f
mov eax, dword [ebp*4 + 0x6b1770]
mov edx, dword [eax]
lea ecx, [esp + 0x28]
push ecx
push 0xe0
push eax
call dword [edx + 0x24]
mov esi, eax
cmp esi, 0x8007000c
je 0x490b4f
cmp esi, 0x8007001e
je 0x490b4f
test esi, esi
je 0x490b33
push str.Poll_GetDeviceState__gamepad_
push esi
call fcn.00492240
add esp, 8
jmp 0x490b5c
lea edx, [edi + edi*4]
shl edx, 5
add edx, 0x6b2990
push edx
lea eax, [esp + 0x2c]
push eax
call fcn.004920c0
add esp, 8
jmp 0x490b78
mov eax, dword [ebp*4 + 0x6b1770]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
test esi, esi
jge 0x490b78
lea edi, [edi + edi*4]
shl edi, 5
add edi, 0x6b2990
mov ecx, 0x28
mov esi, 0x6b2c20
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x719600]
inc ebp
add ebx, 0x240
test eax, eax
je 0x490aa0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf8
ret