Function at 0x41d170
Capabilities:
Check for unmoving mouse cursor

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ebp, edx
mov ecx, dword [edi]
cmp ecx, 0x80000000
je 0x41d4e3
mov eax, dword [ebp]
cmp eax, 0x80000000
je 0x41d4e3
cmp dword [0x4fd9bc], 2
jne 0x41d1db
mov bl, byte [esp + 0x3c]
xor edx, edx
push eax
push ecx
movzx ecx, bl
shl ecx, 0x1f
or ecx, 1
call fcn.0041d660
add esp, 8
call fcn.0041dbe0
test bl, bl
je 0x41d4e3
mov dword [edi], closesocket
mov dword [ebp], closesocket
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov eax, dword [esp + 0x34]
mov ebx, dword [sym.imp.USER32.dll_GetCursorPos]
or dword [eax], 0x8001
cmp byte [esp + 0x3c], 0
je 0x41d238
cmp dword [0x4fd9bc], 1
jne 0x41d222
mov eax, dword [0x4fd9b4]
cmp eax, 0x80000000
jne 0x41d213
push 0x4fd9b4
call ebx
mov eax, dword [0x4fd9b4]
add dword [edi], eax
mov eax, dword [0x4fd9b8]
add dword [ebp], eax
jmp 0x41d2aa
lea eax, [esp + 0x28]
push eax
call ebx
mov eax, dword [esp + 0x28]
add dword [edi], eax
mov eax, dword [esp + 0x2c]
add dword [ebp], eax
jmp 0x41d2aa
mov eax, dword [0x4f8174]
movzx ebx, word [eax + 0xf0]
mov eax, ebx
and al, 0xc
cmp al, 8
je 0x41d2a4
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x41d2a4
push esi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x41d2a4
test bl, 0xc
jne 0x41d28d
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ebx, dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x41d2aa
mov eax, dword [esp + 0x18]
add dword [edi], eax
mov eax, dword [esp + 0x1c]
add dword [ebp], eax
jmp 0x41d2aa
lea eax, [esp + 0x18]
xorps xmm0, xmm0
push eax
push esi
movlpd qword [esp + 0x20], xmm0
call dword [sym.imp.USER32.dll_ClientToScreen]
jmp 0x41d274
mov ebx, dword [sym.imp.USER32.dll_GetCursorPos]
cmp dword [0x4fd9bc], 1
jne 0x41d2c2
mov eax, dword [edi]
mov dword [0x4fd9b4], eax
mov eax, dword [ebp]
mov dword [0x4fd9b8], eax
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call esi
push 1
mov dword [esp + 0x14], eax
call esi
mov ecx, dword [edi]
mov esi, eax
mov eax, ecx
mov dword [esp + 0x14], esi
shl eax, 0x10
cdq
idiv dword [esp + 0x10]
sar ecx, 0x1f
and ecx, 0xfffffffe
inc ecx
add eax, ecx
mov dword [edi], eax
mov ecx, dword [ebp]
mov eax, ecx
shl eax, 0x10
cdq
idiv esi
sar ecx, 0x1f
and ecx, 0xfffffffe
lea esi, [ecx + 1]
mov ecx, dword [0x4fd9bc]
add esi, eax
mov eax, dword [esp + 0x38]
mov dword [ebp], esi
test eax, eax
js 0x41d483
cmp eax, 0x64
jle 0x41d32b
mov dword [esp + 0x38], 0x64
jmp 0x41d333
test eax, eax
je 0x41d483
cmp ecx, 1
je 0x41d483
lea eax, [esp + 0x28]
push eax
call ebx
mov eax, dword [edi]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
mov eax, ecx
shl eax, 0x10
cdq
idiv dword [esp + 0x14]
mov edi, dword [esp + 0x28]
mov esi, eax
mov ebp, dword [ebp]
xor eax, eax
test ecx, ecx
setns al
xor ecx, ecx
lea esi, [esi + eax*2]
mov eax, edi
shl eax, 0x10
dec esi
cdq
idiv dword [esp + 0x10]
test edi, edi
mov ebx, eax
setns cl
lea ebx, [ebx + ecx*2]
dec ebx
mov ecx, dword [esp + 0x18]
cmp ebx, ecx
jne 0x41d394
cmp esi, ebp
je 0x41d4e3
cmp ebx, ecx
mov edi, dword [esp + 0x38]
jge 0x41d3ba
mov eax, ecx
sub eax, ebx
cdq
idiv edi
test eax, eax
je 0x41d3aa
cmp eax, 0x20
jge 0x41d3af
mov eax, 0x20
add eax, ebx
cmp eax, ecx
mov ebx, eax
cmovg ebx, ecx
jmp 0x41d3d8
jle 0x41d3d8
mov eax, ebx
sub eax, ecx
cdq
idiv edi
test eax, eax
je 0x41d3cc
cmp eax, 0x20
jge 0x41d3d1
mov eax, 0x20
sub ebx, eax
cmp ebx, ecx
cmovl ebx, ecx
cmp esi, ebp
jge 0x41d3fc
mov eax, ebp
sub eax, esi
cdq
idiv edi
test eax, eax
je 0x41d3ec
cmp eax, 0x20
jge 0x41d3f1
mov eax, 0x20
add eax, esi
cmp eax, ebp
mov esi, eax
cmovg esi, ebp
jmp 0x41d41a
jle 0x41d41a
mov eax, esi
sub eax, ebp
cdq
idiv edi
test eax, eax
je 0x41d40e
cmp eax, 0x20
jge 0x41d413
mov eax, 0x20
sub esi, eax
cmp esi, ebp
cmovl esi, ebp
cmp dword [0x4fd9bc], 0
je 0x41d43e
push esi
push ebx
xor edx, edx
mov ecx, 0x8001
call fcn.0041d660
add esp, 8
call fcn.0041dbe0
jmp 0x41d382
mov eax, dword [0x4f8174]
mov ecx, 0xffc3d44d
movzx eax, byte [eax + 0xf6]
sub ecx, eax
mov eax, esi
push ecx
xor ecx, ecx
cmp esi, 0x80000000
push 0
cmove eax, ecx
cmp ebx, 0x80000000
push eax
mov eax, ebx
cmove eax, ecx
push eax
push 0x8001
call dword [sym.imp.USER32.dll_mouse_event]
call fcn.0041dbe0
jmp 0x41d382
mov edx, dword [edi]
test ecx, ecx
je 0x41d4a7
push esi
push edx
xor edx, edx
mov ecx, 0x8001
call fcn.0041d660
add esp, 8
call fcn.0041dbe0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov eax, dword [0x4f8174]
mov ecx, 0xffc3d44d
movzx eax, byte [eax + 0xf6]
sub ecx, eax
xor eax, eax
push ecx
cmp esi, 0x80000000
push 0
cmove esi, eax
cmp edx, 0x80000000
push esi
cmove edx, eax
push edx
push 0x8001
call dword [sym.imp.USER32.dll_mouse_event]
call fcn.0041dbe0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret