Function at 0x4a9230
Capabilities:
Check for unmoving mouse cursor
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d9338
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
cmp edi, 0xffffffff
jne 0x4a9279
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push eax
push ecx
call fcn.00425060
mov edi, dword [esi]
add esp, 8
push 1
push 0
push edx
mov edx, dword [edi + 0x34]
push eax
mov ecx, esi
call edx
mov edi, eax
mov ebx, dword [ebp + 8]
cmp ebx, 0x200
ja 0x4a935a
je 0x4a933c
cmp ebx, 0x20
jne case.0x4a9369.516
cmp dword [esi + 0x448], 0
je 0x4a9567
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
and ax, cx
mov edx, ecx
cmp ax, dx
jne 0x4a9330
cmp dword [esi + 0x44c], 0
je 0x4a9567
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [ebp - 0x14]
mov eax, dword [esi + 0x450]
mov ecx, edx
sub ecx, eax
js 0x4a92ed
mov eax, ecx
jmp 0x4a92ef
sub eax, edx
cmp eax, 5
jle 0x4a9567
mov ecx, dword [esi + 0x44c]
push ecx
call dword [sym.imp.USER32.dll_SetCursor]
cmp dword [esi + 0x448], 1
jne 0x4a9318
mov dword [esi + 0x448], 2
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, esi
call fcn.004a8c90
jmp 0x4a9567
cmp dword [esi + 0x448], 0
je 0x4a9567
push 0x200
mov ecx, esi
call fcn.004a8f10
jmp case.0x4a9369.516
lea eax, [ebx - 0x201]
cmp eax, 7
ja case.0x4a9369.516
jmp dword [eax*4 + 0x4a957c]
lea edx, [esi + 0x450]
push edx
mov dword [esi + 0x448], 1
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [esi]
mov edx, dword [eax + 0x28]
mov ecx, esi
call edx
cmp eax, edi
je case.0x4a9369.516
push edi
mov ecx, esi
call fcn.004a8960
jmp case.0x4a9369.516
cmp dword [esi + 0x448], 0
je 0x4a9567
push ebx
mov ecx, esi
call fcn.004a8f10
jmp case.0x4a9369.516
cmp ebx, 0x203
jne 0x4a93d9
mov eax, dword [0x52fe30]
cmp dword [eax + 0x1134c], 0
je case.0x4a9369.516
test edi, edi
jl case.0x4a9369.516
xor eax, eax
lea ecx, [ebp - 0x14]
push ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.USER32.dll_GetCursorPos]
push edi
mov ecx, esi
call fcn.004a8960
mov edi, eax
test edi, edi
je case.0x4a9369.516
push edi
lea ecx, [ebp - 0x20]
call fcn.004bca20
push 0x11
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_GetKeyState]
mov edx, 0x8000
and ax, dx
mov ecx, edx
xor edx, edx
cmp ax, cx
sete dl
mov eax, edx
cmp ebx, 0x203
jne 0x4a94bf
mov eax, dword [0x52fe30]
mov eax, dword [eax + 0x1134c]
dec eax
cmp eax, 3
ja case.default.0x4a9452
jmp dword [eax*4 + 0x4a959c]
mov eax, dword [0x52fe2c]
mov ecx, 0x200
or word [eax + 0x4148], cx
mov ecx, dword [0x52fe2c]
call fcn.00420050
jmp case.default.0x4a9452
push 0xabd2
lea ecx, [ebp - 0x20]
call fcn.004bc9d0
mov edx, dword [0x52fe2c]
mov ecx, dword [edx + 0x409c]
push eax
push 0
call fcn.00447fd0
jmp case.default.0x4a9452
push 0xabdc
lea ecx, [ebp - 0x20]
call fcn.004bc9d0
push eax
mov eax, dword [0x52fe2c]
mov ecx, dword [eax + 0x409c]
push 0
call fcn.00447fd0
jmp case.default.0x4a9452
cmp ebx, 0x205
jne case.0x4a9452.2
test eax, eax
jne case.0x4a9452.2
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
push eax
push ecx
push edx
lea ecx, [ebp - 0x20]
call fcn.004bc9d0
push eax
mov eax, dword [0x52fe2c]
mov ecx, dword [eax + 0x409c]
call fcn.0044b250
jmp case.default.0x4a9452
lea ecx, [ebp - 0x20]
call fcn.004bc9d0
mov ecx, eax
call fcn.004bcc80
mov ecx, eax
call fcn.00496f60
mov ecx, dword [0x52fe2c]
push edi
call fcn.0040aa50
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
call fcn.004bc960
cmp dword [esi + 0x448], 0
je 0x4a9567
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
and ax, cx
mov edx, ecx
cmp ax, dx
je 0x4a9567
cmp dword [esi + 0x448], 0
je 0x4a9567
push 0x7f00
push 0
mov dword [esi + 0x448], 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10