Function at 0x40a110
Capabilities:
Check for unmoving mouse cursor
Get graphical window text
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov esi, ecx
push 0x3ee
mov dword [ebp - 8], esi
call fcn.00464277
mov dword [ebp - 0xc], eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call fcn.00469631
lea ecx, [ebp - 0x28]
push ecx
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [ebp + 8]
cmp dword [edi + 4], 0x100
jne 0x40a29f
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0xa2
call esi
push 0xa3
shr eax, 0xf
and al, 1
mov byte [ebp + 0xb], al
call esi
movzx ebx, ax
shr ebx, 0xf
push 0xa0
and bl, 1
call esi
or bl, byte [ebp + 0xb]
push 0xa1
mov byte [ebp - 0x14], bl
shr eax, 0xf
and al, 1
mov byte [ebp - 1], al
call esi
push 0xa4
shr eax, 0xf
and al, 1
or al, byte [ebp - 1]
mov byte [ebp - 0x10], al
call esi
movzx ebx, ax
shr ebx, 0xf
push 0xa5
and bl, 1
call esi
shr eax, 0xf
and al, 1
or al, bl
cmp dword [edi + 8], 0x1b
mov byte [ebp + 8], al
jne 0x40a1da
mov ecx, dword [0x4f4a50]
call fcn.0040f61d
test al, al
jne 0x40a28a
mov ecx, dword [0x4f4a50]
call fcn.0040f628
test al, al
jne 0x40a28a
mov ecx, dword [0x4f4a50]
call fcn.0040f633
test al, al
je 0x40a220
push dword [ebp + 8]
mov ecx, dword [0x4f4a50]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [edi + 8]
call fcn.00476a53
push eax
call fcn.00409dd1
add esp, 0x14
test al, al
jne 0x40a28a
cmp dword [edi + 8], 0x1b
jne 0x40a257
mov ecx, dword [0x4f4a50]
call fcn.0040f61d
test al, al
jne 0x40a257
mov eax, dword [edi]
mov ecx, dword [ebp - 8]
cmp eax, dword [ecx + 0x20]
je 0x40a24f
mov edx, dword [ebp - 0xc]
cmp eax, dword [edx + 0x20]
je 0x40a24f
cmp eax, dword [ecx + 0x4bc]
jne 0x40a257
xor eax, eax
inc eax
jmp 0x40a368
cmp dword [edi + 8], 0xd
jne 0x40a278
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x20]
cmp dword [edi], eax
jne 0x40a278
push dword [edi + 0xc]
push 0xd
push dword [edi + 4]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x40a29c
mov ecx, dword [0x4f4a50]
call fcn.0040f616
cmp eax, 1
jne 0x40a29c
jmp 0x40a24f
mov eax, dword [ebp - 8]
push 0
push 0
push 0x12
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_PostMessageA]
mov esi, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
xor ebx, ebx
cmp ecx, ebx
je 0x40a360
mov eax, dword [edi]
cmp eax, dword [ecx + 0x20]
je 0x40a2bf
cmp eax, dword [esi + 0x4bc]
jne 0x40a360
mov eax, dword [edi + 4]
cmp eax, 0x200
jne 0x40a36f
cmp dword [esi + 0x6c0], 2
jne 0x40a360
mov ecx, dword [0x4f4a50]
call fcn.0040f6be
test al, al
jne 0x40a360
cmp byte [esi + 0x634], al
je 0x40a360
test byte [0x4f4d48], 1
jne 0x40a301
or dword [0x4f4d48], 1
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
cmp byte [0x4ee46c], 0
je 0x40a324
mov eax, dword [ebp - 0x18]
mov dword [0x4f4d40], eax
mov eax, dword [ebp - 0x14]
mov dword [0x4f4d44], eax
push dword [0x4f4d44]
lea ecx, [ebp - 0x18]
push dword [0x4f4d40]
mov byte [0x4ee46c], 0
call fcn.00409cac
test eax, eax
je 0x40a350
push ebx
push ebx
push 0x12
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [ebp - 0x18]
mov dword [0x4f4d40], eax
mov eax, dword [ebp - 0x14]
mov dword [0x4f4d44], eax
push edi
mov ecx, esi
call fcn.0040f2c2
pop edi
pop esi
pop ebx
leave
ret 4
cmp eax, 0x201
je 0x40a3c6
cmp eax, 0x202
je 0x40a3c6
cmp eax, 0x204
je 0x40a38b
cmp eax, 0x205
jne 0x40a360
mov ecx, dword [0x4f4a50]
call fcn.0040f60f
dec eax
jne 0x40a406
lea edi, [esi + 0x654]
push edi
call dword [sym.imp.USER32.dll_GetCursorPos]
push edi
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_ScreenToClient]
push ebx
push 0x64
push 0x96
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x40a24f
cmp dword [esi + 0x6c0], 2
jne 0x40a3f8
mov ecx, dword [0x4f4a50]
call fcn.0040f6c9
test al, al
jne 0x40a3f8
cmp byte [esi + 0x634], al
je 0x40a3f8
push ebx
push ebx
push 0x12
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x40a360
mov ecx, dword [0x4f4a50]
call fcn.0040f608
dec eax
je 0x40a412
dec eax
jne 0x40a360
jmp 0x40a24f
push dword [edi + 0xc]
push dword [edi + 8]
push dword [edi + 4]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x40a24f