Function at 0x496674
Capabilities:
Check for unmoving mouse cursor
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff80
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov byte [ebp - 1], al
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor ebx, ebx
push ebp
push 0x4969ba
push dword fs:[ebx]
mov dword fs:[ebx], esp
xor ebx, ebx
mov dword [ebp - 0xc], ebx
cmp edx, eax
jge 0x4966b3
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], eax
jmp 0x4966b9
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], edx
cmp ecx, dword [ebp - 8]
jle 0x4966c6
mov esi, dword [ebp - 8]
mov dword [ebp - 0x1c], ecx
jmp 0x4966ce
mov esi, ecx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
xor edx, edx
push ebp
push 0x496986
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
call sub.user32.dll_GetDC
mov dword [ebp - 0x20], eax
mov dl, 1
mov eax, dword [0x424b4c]
call fcn.00426a70
mov edi, eax
mov edx, dword [ebp - 0x20]
mov eax, edi
call fcn.004271f0
mov dl, 1
mov eax, dword [0x4251a8]
call fcn.0042b260
mov ebx, eax
mov edx, dword [ebp - 0x18]
sub edx, dword [ebp - 0x14]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov edx, dword [ebp - 0x1c]
sub edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebp - 0x1c]
sub eax, esi
push eax
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x14]
xor edx, edx
xor eax, eax
call fcn.00418538
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, esi
mov eax, dword [ebp - 0x14]
call fcn.00418538
lea eax, [ebp - 0x5c]
push eax
mov eax, ebx
call fcn.0042b828
lea edx, [ebp - 0x4c]
mov ecx, edi
call fcn.00426b90
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_GetCursorPos
mov dl, 1
mov eax, dword [0x4252ec]
call fcn.0042cd94
mov esi, eax
lea eax, [ebp - 0x30]
push eax
call sub.user32.dll_GetCursorPos
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
call sub.user32.dll_WindowFromPoint
push 0
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov dword [ebp - 0x34], eax
push 0xffffffffffffffff
mov eax, dword [ebp - 0x34]
push eax
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_AttachThreadInput
call sub.user32.dll_GetCursor
mov edx, eax
mov eax, esi
call fcn.0042d1a0
push 0
mov eax, dword [ebp - 0x34]
push eax
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_AttachThreadInput
lea eax, [ebp - 0x70]
push eax
mov eax, esi
call fcn.0042ced0
push eax
call sub.user32.dll_GetIconInfo
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x78], eax
xor eax, eax
mov dword [ebp - 0x74], eax
fild qword [ebp - 0x78]
call fcn.00402c30
mov edx, dword [ebp - 0x28]
sub edx, eax
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x78], eax
xor eax, eax
mov dword [ebp - 0x74], eax
fild qword [ebp - 0x78]
call fcn.00402c30
mov edx, dword [ebp - 0x24]
sub edx, eax
mov dword [ebp - 0x3c], edx
push esi
mov eax, ebx
call fcn.0042b828
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
call fcn.00426c18
mov eax, dword [ebp - 0x60]
push eax
call sub.gdi32.dll_DeleteObject
mov eax, dword [ebp - 0x64]
push eax
call sub.gdi32.dll_DeleteObject
mov eax, esi
call fcn.0042d164
mov eax, esi
call fcn.00403b24
cmp byte [ebp - 1], 0
jne 0x496883
mov eax, dword [0x4ba0ac]
mov eax, dword [eax + 0x2f8]
mov eax, dword [eax + 0x168]
mov edx, ebx
mov ecx, dword [eax]
call dword [ecx + 8]
mov dl, 3
mov eax, dword [0x4ba0ac]
call fcn.0046eef4
mov dl, 2
mov eax, dword [0x4ba0ac]
call fcn.0046f370
jmp 0x496963
push 0x4969d8
lea edx, [ebp - 0x7c]
xor eax, eax
mov al, byte [0x4ba0b2]
call fcn.00408f3c
push dword [ebp - 0x7c]
push 0x496a10
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404cb8
push 0
push 0x496a20
push dword [ebp - 0x10]
push 0x496a34
lea eax, [ebp - 0x80]
mov edx, 3
call fcn.00404cb8
mov eax, dword [ebp - 0x80]
mov cx, word [0x496a38]
mov dl, 3
call fcn.00431ca4
cmp ax, 6
je 0x4968e5
cmp ax, 7
jne 0x496939
cmp ax, 6
jne 0x4968fb
mov edx, dword [ebp - 0x10]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x50]
inc byte [0x4ba0b2]
mov eax, edi
call fcn.00403b24
mov eax, ebx
call fcn.00403b24
mov eax, dword [ebp - 0x20]
push eax
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [0x4ba0ac]
call fcn.004715e4
mov eax, dword [0x4ba0ac]
call fcn.00471820
mov byte [0x4ba0b1], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x496997
push 1
mov eax, dword [0x4ba0ac]
call fcn.0045aca0
push eax
call sub.user32.dll_ShowWindow
mov dl, 3
mov eax, dword [0x4ba0ac]
call fcn.0046eef4
mov dl, 2
mov eax, dword [0x4ba0ac]
call fcn.0046f370
mov eax, edi
call fcn.00403b24
mov eax, ebx
call fcn.00403b24
mov eax, dword [ebp - 0x20]
push eax
push 0
call sub.user32.dll_ReleaseDC
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x496997
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4969c1
lea eax, [ebp - 0x80]
mov edx, 2
call fcn.0040495c
lea eax, [ebp - 0x10]
call fcn.00404938
ret