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

Disassembly:
sub esp, 0x20
xor eax, eax
push esi
mov esi, ecx
mov ecx, dword [esp + 0x2c]
push edi
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x58]
lea edx, [esp + 0x10]
mov dword [esp + 0x24], ecx
push edx
mov ecx, esi
mov dword [esp + 0x1c], 0x80e8
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edi
call fcn.0050cdd0
test eax, eax
jne 0x514db2
mov eax, dword [esi]
mov edx, dword [eax + 0x140]
push ebx
push ebp
push 0xffffffffffffffff
mov ecx, esi
call edx
push edi
mov ecx, esi
call fcn.0050cf20
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [esi]
mov eax, dword [edx + 0x158]
mov ecx, esi
call eax
mov ecx, esi
mov ebx, eax
mov dword [esi + 0x218], 1
call fcn.00509770
test eax, 0x800
je 0x514c5d
mov ecx, dword [esi + 0x200]
test ecx, ecx
je 0x514c2a
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 1
call eax
mov dword [esi + 0x200], 0
push 0
push edi
mov ecx, esi
call fcn.00512ae0
mov edx, dword [esi + 0x208]
mov ecx, dword [esi + 0x204]
push edx
push ecx
mov dword [esi + 0x200], eax
mov eax, dword [eax + 4]
push 0
push eax
call fcn.00485f40
mov ecx, dword [eax + 0x78]
mov ecx, dword [ecx]
call fcn.0050ad60
mov ebp, dword [esp + 0x38]
push ebx
push 0
push 3
mov ecx, ebp
call fcn.0056865f
mov ebx, eax
mov dword [esp + 0x38], ebx
cmp ebx, 2
jne 0x514c9b
mov eax, dword [esi + 0x228]
cmp eax, 0xffffffff
je 0x514c89
cmp eax, dword [esi + 0x70]
jg 0x514c89
inc edi
mov edx, dword [esi + 0x20]
push 0
push edi
push 0x1008
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, dword [esi + 0x228]
mov ecx, esi
mov dword [esi + 0x228], 0xffffffff
mov dword [esi + 0x218], 0
call fcn.00509770
test eax, 0x800
je 0x514cd2
call fcn.00485f40
mov eax, dword [eax + 0x78]
mov ecx, dword [eax]
call fcn.0050aed0
push 0xffffffffffffffff
mov ecx, esi
call fcn.00510730
test ebp, ebp
je 0x514ceb
mov edx, dword [ebp]
mov eax, dword [edx + 4]
push 1
mov ecx, ebp
call eax
cmp ebx, 2
je 0x514cfa
cmp ebx, 1
jne 0x514d0d
cmp edi, 0xffffffff
je 0x514d0d
mov ecx, dword [esi + 0x20]
push 0x105
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_RedrawWindow]
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
movzx edi, word [esp + 0x14]
movzx edx, word [esp + 0x10]
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
shl edi, 0x10
push 0x11
or edi, edx
call ebx
xor ecx, ecx
test ax, ax
setge cl
push 0x10
dec ecx
and ecx, 8
mov ebp, ecx
call ebx
xor edx, edx
test ax, ax
setge dl
push edi
dec edx
and edx, 4
or edx, ebp
mov eax, edx
push eax
mov eax, dword [esi + 0x20]
push 0x202
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esi + 0x58]
mov edx, dword [esp + 0x38]
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x24], ecx
push eax
mov ecx, esi
mov dword [esp + 0x24], 0x80eb
mov dword [esp + 0x30], edx
call fcn.0050cdd0
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x20
ret 8