Function at 0x51d210
Capabilities:
Check for unmoving mouse cursor

Disassembly:
sub esp, 0x1c
mov eax, dword [0x5a04a8]
push ebx
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 4], ecx
jne 0x51d72f
mov edx, 0x3e7
mov ecx, 0x5a00c0
mov dword [0x5a04a8], 1
call fcn.0041e210
mov ecx, dword [0x5a00bc]
cmp ecx, ebx
je 0x51d259
call fcn.00536900
test eax, eax
jne 0x51d259
mov dword [0x5a00bc], ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetCursorPos]
push esi
push edi
lea eax, [esp + 0x14]
push eax
xor esi, esi
xor edi, edi
call ebp
cmp dword [0x5a1b08], ebx
je 0x51d28d
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
push edx
call dword [sym.imp.USER32.dll_WindowFromPoint]
cmp dword [0x59f690], eax
je 0x51d292
mov edi, 1
lea eax, [esp + 0x14]
push eax
call ebp
mov edx, dword [0x59f690]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.USER32.dll_ScreenToClient]
cmp edi, ebx
jne 0x51d32e
mov edi, dword [0x5a1af8]
cmp edi, ebx
je 0x51d32e
mov ebp, dword [sym.imp.USER32.dll_PtInRect]
lea eax, [edi + 0xa24]
mov ecx, eax
mov edx, dword [ecx]
mov dword [esp + 0x1c], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x20], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x24], eax
mov ecx, dword [ecx + 0xc]
inc eax
add ecx, 2
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
cmp dword [edi + 0xa18], ebx
je 0x51d316
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
push edx
lea eax, [esp + 0x24]
push eax
call ebp
test eax, eax
je 0x51d316
mov ecx, edi
call fcn.0051ab00
test eax, eax
jne 0x51d322
mov edi, dword [edi + 0xd84]
cmp edi, ebx
jne 0x51d2c3
jmp 0x51d32e
mov dword [edi + 0xa38], 1
mov esi, edi
mov edi, dword [0x5a1af8]
cmp edi, ebx
je 0x51d363
cmp dword [edi + 0xa18], ebx
je 0x51d359
cmp dword [edi + 0xa38], ebx
je 0x51d359
cmp edi, esi
je 0x51d359
mov ecx, edi
mov dword [edi + 0xa38], ebx
call fcn.0051c6d0
mov edi, dword [edi + 0xd84]
cmp edi, ebx
jne 0x51d338
mov ecx, esi
call fcn.00536900
test eax, eax
jne 0x51d370
xor esi, esi
cmp dword [0x5a1b08], ebx
je 0x51d6d5
cmp esi, ebx
je 0x51d6d5
cmp dword [0x59f69c], ebx
jne 0x51d6d5
mov eax, dword [esi]
cmp eax, dword [0x5a1b0c]
jne 0x51d3b6
push eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x51d3b6
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x51d6d5
cmp dword [esi + 0xa3c], ebx
mov eax, dword [0x5a11c8]
jne 0x51d434
cmp eax, ebx
je 0x51d3cc
call fcn.00527000
cmp dword [0x5a00bc], esi
mov eax, dword [0x59f7c0]
je 0x51d406
cmp eax, ebx
je 0x51d420
mov edx, dword [0x59f690]
push 0x7e
push edx
mov dword [0x59f7c0], ebx
call dword [sym.imp.USER32.dll_KillTimer]
pop edi
mov dword [0x5a00bc], esi
pop esi
pop ebp
mov dword [0x5a04a8], ebx
pop ebx
add esp, 0x1c
ret
cmp eax, ebx
jne 0x51d420
mov eax, dword [0x59f690]
push ebx
push 0x32
push 0x7e
push eax
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [0x59f7c0], eax
pop edi
mov dword [0x5a00bc], esi
pop esi
pop ebp
mov dword [0x5a04a8], ebx
pop ebx
add esp, 0x1c
ret
cmp eax, ebx
je 0x51d471
cmp esi, dword [0x5a00bc]
jne 0x51d471
cmp dword [0x59f7c0], ebx
jne 0x51d726
mov ecx, dword [0x59f690]
push ebx
push 0x32
push 0x7e
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
pop edi
pop esi
pop ebp
mov dword [0x5a04a8], ebx
mov dword [0x59f7c0], eax
pop ebx
add esp, 0x1c
ret
cmp dword [0x59f7c0], ebx
mov edi, dword [sym.imp.USER32.dll_KillTimer]
je 0x51d490
mov edx, dword [0x59f690]
push 0x7e
push edx
mov dword [0x59f7c0], ebx
call edi
cmp dword [0x59f7c4], ebx
je 0x51d4a8
mov eax, dword [0x59f690]
push 0x7f
push eax
mov dword [0x59f7c4], ebx
call edi
cmp dword [esp + 0x10], ebx
jne 0x51d4e4
mov eax, dword [0x5a11c8]
cmp eax, ebx
je 0x51d4bf
push ebx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x59f690]
push ebx
push 0x32
push 0x7f
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
pop edi
pop esi
pop ebp
mov dword [0x5a04a8], ebx
mov dword [0x59f7c4], eax
pop ebx
add esp, 0x1c
ret
mov edx, dword [0x59f690]
push ebx
push 0x64
push 0x7f
push edx
mov dword [0x5a00bc], esi
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [0x59f7c4], eax
mov eax, dword [0x589be8]
cmp eax, 3
jne 0x51d539
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
add ebp, 0xa
add ecx, 0xf
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ecx
mov eax, dword [esi + 0xa28]
cmp ecx, eax
jg 0x51d5df
inc eax
mov dword [esp + 0x18], eax
jmp 0x51d5df
cmp eax, 2
jne 0x51d596
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
add eax, 0xa
add edx, 0xa
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
mov ecx, dword [esi + 0xa24]
cmp eax, ecx
jg 0x51d565
lea eax, [ecx + 1]
mov dword [esp + 0x14], eax
mov ecx, dword [esi + 0xa2c]
cmp eax, ecx
jl 0x51d574
dec ecx
mov dword [esp + 0x14], ecx
mov eax, dword [esi + 0xa28]
cmp edx, eax
jg 0x51d585
lea edx, [eax + 1]
mov dword [esp + 0x18], edx
mov eax, dword [esi + 0xa30]
cmp edx, eax
jl 0x51d5df
dec eax
mov dword [esp + 0x18], eax
jmp 0x51d5df
cmp eax, 1
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
jne 0x51d5be
add ecx, 0xa
add edi, 8
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edi
mov eax, dword [esi + 0xa2c]
cmp ecx, eax
jl 0x51d5df
dec eax
jmp 0x51d5db
mov eax, dword [0x589bcc]
sub edi, eax
sub ecx, 5
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edi
mov eax, dword [esi + 0xa24]
cmp ecx, eax
jg 0x51d5df
inc eax
mov dword [esp + 0x14], eax
mov edx, dword [0x59f690]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov ecx, esi
call fcn.0051ab00
mov edi, eax
cmp edi, ebx
je 0x51d726
mov eax, dword [esi + 0x700]
cmp eax, ebx
je 0x51d66c
cmp eax, 3
jne 0x51d68b
cmp dword [esi + 0x704], 1
mov ecx, dword [esi]
jne 0x51d646
call fcn.0050d190
cmp eax, ebx
je 0x51d68b
mov eax, dword [eax + 0x360]
push eax
push edi
push str._s__lu__
push 0x5a00c0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x51d68b
call fcn.0048a790
cmp eax, ebx
je 0x51d68b
mov ecx, dword [eax + 0x460]
push ecx
push edi
push str._s__lu__
push 0x5a00c0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x51d68b
mov edx, dword [esi + 0xbb4]
mov ecx, 1
call fcn.004b89f0
mov edx, 0x5a00c0
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
cmp cl, bl
jne 0x51d681
cmp byte [0x5a00c0], bl
jne 0x51d6aa
mov edx, 0x5a00c0
mov eax, edi
sub edx, edi
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x51d6a0
movzx ecx, word [esp + 0x18]
movzx edx, word [esp + 0x14]
shl ecx, 0x10
push 0x5a00c0
or ecx, edx
push 1
xor edx, edx
call fcn.00527530
pop edi
pop esi
pop ebp
mov dword [0x5a04a8], ebx
pop ebx
add esp, 0x1c
ret
cmp dword [esp + 0x10], 2
mov esi, dword [sym.imp.USER32.dll_KillTimer]
jne 0x51d6fa
cmp dword [0x59f7c0], ebx
je 0x51d6fa
mov eax, dword [0x59f690]
push 0x7e
push eax
mov dword [0x59f7c0], ebx
call esi
cmp dword [0x5a11c8], ebx
je 0x51d707
call fcn.00527000
cmp dword [0x59f7c4], ebx
mov dword [0x5a00bc], ebx
je 0x51d726
mov ecx, dword [0x59f690]
push 0x7f
push ecx
mov dword [0x59f7c4], ebx
call esi
pop edi
pop esi
mov dword [0x5a04a8], ebx
pop ebp
pop ebx
add esp, 0x1c
ret