Function at 0x41f1500
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
test dl, dl
je 0x41f1515
add esp, 0xfffffff0
call sub.VCL30.dpl_System._ClassCreate_51F89FF7
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov eax, dword [ebp - 8]
mov dword [ebx + 4], eax
mov al, byte [eax + 0x48]
mov byte [ebx + 0x49], al
mov eax, dword [ebx + 4]
mov al, byte [eax + 0x48]
mov byte [ebx + 0x4a], al
mov eax, dword [ebx + 4]
mov al, byte [eax + 0x48]
mov byte [ebx + 0x48], al
mov byte [ebx + 0x4b], 0
lea eax, [ebx + 0x38]
push eax
mov eax, dword [ebx + 4]
call sub.VCL30.dpl_Controls.TWinControl.GetHandle_23EDC2EF
push eax
call sub.user32.dll_GetWindowRect
mov esi, dword [ebx + 4]
mov eax, esi
mov edx, dword [0x41eccec]
call sub.VCL30.dpl_System._IsClass_51F89FF7
test al, al
je 0x41f16b0
mov eax, dword [esi + 0x24]
mov edx, dword [0x41ffcb4]
cmp eax, dword [edx]
je 0x41f165c
mov eax, dword [esi + 0x141]
mov edx, dword [eax]
call dword [edx + 0x1c]
mov esi, eax
mov dl, 5
mov eax, esi
call fcn.041eeb88
mov eax, esi
call fcn.041eebf4
lea eax, [ebp - 0x10]
push eax
call sub.user32.dll_GetCursorPos
lea edx, [ebp - 0x30]
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x30]
push eax
lea edx, [ebp - 0x40]
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
pop eax
sub eax, dword [ebp - 0x38]
cdq
xor eax, edx
sub eax, edx
sar eax, 1
jns 0x41f15ca
adc eax, 0
sub dword [ebp - 0x10], eax
sub dword [ebp - 0xc], 5
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x38], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x3c], eax
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 0x38]
add eax, dword [ebx + 0x38]
mov dword [ebx + 0x40], eax
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 0x3c]
add eax, dword [ebx + 0x3c]
mov dword [ebx + 0x44], eax
mov eax, esi
call sub.VCL30.dpl_System.TObject.Free_23EDC2EF
xor esi, esi
xor edi, edi
lea eax, [ebp - 0x20]
push eax
mov eax, dword [0x41ffcb4]
mov eax, dword [eax]
call sub.VCL30.dpl_Controls.TWinControl.GetHandle_23EDC2EF
push eax
call sub.user32.dll_GetWindowRect
mov eax, dword [ebp - 0x14]
mov edx, dword [ebx + 0x44]
cmp eax, edx
jge 0x41f1624
sub eax, edx
add esi, eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebx + 0x3c]
cmp eax, edx
jle 0x41f1632
sub eax, edx
add esi, eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebx + 0x38]
cmp eax, edx
jle 0x41f1640
sub eax, edx
add edi, eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ebx + 0x40]
cmp eax, edx
jge 0x41f164e
sub eax, edx
add edi, eax
lea eax, [ebx + 0x38]
add dword [eax + 0xc], esi
add dword [eax + 4], esi
add dword [eax], edi
add dword [eax + 8], edi
lea eax, [ebp - 0x10]
push eax
call sub.user32.dll_GetCursorPos
lea eax, [ebp - 0x20]
push eax
mov eax, dword [0x41ffcb4]
mov eax, dword [eax]
call sub.VCL30.dpl_Controls.TWinControl.GetHandle_23EDC2EF
push eax
call sub.user32.dll_GetWindowRect
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
add edx, eax
sub edx, dword [ebx + 0x38]
mov dword [ebp - 0x20], edx
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
add ecx, edx
sub ecx, dword [ebx + 0x3c]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebx + 0x40]
sub ecx, eax
sub dword [ebp - 0x18], ecx
mov eax, dword [ebx + 0x44]
sub eax, edx
sub dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push eax
call sub.user32.dll_ClipCursor
mov ecx, dword [ebp - 8]
xor edx, edx
mov eax, ebx
call fcn.041a6cec
mov eax, dword [sym.imp.VCL30.dpl_Forms.Screen_0A68352A]
mov eax, dword [eax]
mov edx, 0xfffffff4
call sub.VCL30.dpl_Forms.TScreen.GetCursors_23EDC2EF
push eax
call sub.user32.dll_SetCursor
cmp byte [ebp - 1], 0
je 0x41f16e3
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret