Function at 0x4041c0
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push esi
push edi
mov eax, dword [0x4301e8]
movzx ecx, byte [eax + 0x34]
test ecx, ecx
jne 0x4041da
jmp 0x404664
lea edx, [ebp - 0x2c]
push edx
call dword [sym.imp.USER32.dll_GetCursorPos]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.USER32.dll_WindowFromPoint]
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 8]
call fcn.00407050
lea edx, [ebp - 0x44]
push edx
mov ecx, 0x430424
call fcn.004061d0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
jmp 0x40422f
push 0
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 8]
call fcn.004070b0
lea ecx, [ebp - 0x54]
push ecx
mov ecx, 0x430424
call fcn.00406200
push eax
lea ecx, [ebp - 8]
call fcn.004070f0
movzx edx, al
test edx, edx
je 0x40428c
push 1
call dword [sym.imp.KERNEL32.DLL_Sleep]
lea ecx, [ebp - 8]
call fcn.00407090
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [eax + 0xc]
jne 0x40428a
lea ecx, [ebp - 8]
call fcn.00407090
cmp dword [eax], 0
jne 0x40428a
lea ecx, [ebp - 8]
call fcn.00407070
mov ecx, 7
mov esi, eax
mov edi, 0x430408
rep movsd dword es:[edi], dword [esi]
jmp 0x40428c
jmp 0x404221
mov edx, dword [0x430414]
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x4042a2
jmp 0x404664
call dword [sym.imp.USER32.dll_GetFocus]
cmp dword [0x430420], eax
je 0x4042c7
call dword [sym.imp.USER32.dll_GetFocus]
cmp dword [0x43041c], eax
je 0x4042c7
mov dword [ebp - 0x5c], 0
jmp 0x4042ce
mov dword [ebp - 0x5c], 1
mov al, byte [ebp - 0x5c]
mov byte [ebp - 0x2d], al
movzx ecx, byte [ebp - 0x2d]
test ecx, ecx
je 0x404344
mov edx, dword [0x4301e4]
movzx eax, byte [edx + 0x40]
test eax, eax
jne 0x404329
mov dword [ebp - 0x2c], 2
mov dword [ebp - 0x28], 2
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [0x43041c]
push edx
call dword [sym.imp.USER32.dll_ClientToScreen]
push 0x11
push 0
push 0
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push 0
mov edx, dword [0x4301e4]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
push 2
push 0xff
push 0
mov ecx, dword [0x4301e4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
jmp 0x404359
push 2
push 0
push 0
mov eax, dword [0x4301e4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
mov edx, dword [0x4301e4]
mov al, byte [ebp - 0x2d]
mov byte [edx + 0x40], al
lea ecx, [ebp - 0x2c]
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [0x43041c]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [0x4301e4]
movzx edx, byte [ecx + 0x41]
test edx, edx
je 0x4043b6
mov eax, dword [0x4301e8]
mov dword [eax + 0x30], 1
mov ecx, dword [0x4301e8]
mov byte [ecx + 0x2c], 0
mov edx, dword [0x4301e4]
mov byte [edx + 0x41], 0
mov byte [ebp - 9], 1
jmp 0x4044b4
call dword [sym.imp.USER32.dll_GetFocus]
cmp dword [0x430420], eax
je 0x4043eb
call dword [sym.imp.USER32.dll_GetFocus]
cmp dword [0x43041c], eax
je 0x4043eb
mov eax, dword [ebp - 0x20]
cmp eax, dword [0x430414]
je 0x404412
mov ecx, dword [0x4301e8]
mov edx, dword [ebp - 0x20]
cmp edx, dword [ecx + 4]
je 0x404412
mov ecx, dword [0x4301e8]
add ecx, 4
call fcn.0040abc0
test eax, eax
je 0x40440d
push 0
mov ecx, dword [0x4301e8]
add ecx, 4
call fcn.0040aba0
jmp 0x404664
mov ecx, dword [0x4301e8]
add ecx, 4
call fcn.0040abc0
test eax, eax
je 0x40445c
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x2c]
jg 0x40444d
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x2c]
jl 0x40444d
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 0x28]
jg 0x40444d
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x28]
jl 0x40444d
mov dword [ebp - 0x60], 1
jmp 0x404454
mov dword [ebp - 0x60], 0
mov cl, byte [ebp - 0x60]
mov byte [ebp - 9], cl
jmp 0x4044b4
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_WindowFromPoint]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4044a7
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4044a7
mov eax, dword [0x43041c]
cmp eax, dword [ebp - 0x24]
je 0x40449e
mov ecx, dword [0x430420]
cmp ecx, dword [ebp - 0x24]
jne 0x4044a7
mov dword [ebp - 0x64], 1
jmp 0x4044ae
mov dword [ebp - 0x64], 0
mov dl, byte [ebp - 0x64]
mov byte [ebp - 9], dl
mov eax, dword [0x4301e8]
cmp dword [eax + 0x30], 1
je 0x4044cd
cmp dword [0x43025c], 0
jne 0x4044cd
jmp 0x404664
movzx ecx, byte [ebp - 9]
test ecx, ecx
je 0x4045d1
mov edx, dword [0x4301e8]
movzx eax, byte [edx + 0x2c]
test eax, eax
jne 0x4045cf
mov dword [ebp - 0x2c], 0
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0x18]
mov dword [ebp - 0x28], ecx
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [0x43041c]
push eax
call dword [sym.imp.USER32.dll_ClientToScreen]
mov ecx, dword [0x4301e8]
add ecx, 4
call fcn.0040abc0
test eax, eax
jne 0x4045cf
mov ecx, dword [0x4301e8]
cmp dword [ecx + 0x30], 0
jne 0x40453c
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov edx, dword [0x4301e8]
mov dword [edx + 0x30], eax
mov eax, dword [0x4301e8]
mov esi, dword [eax + 0x30]
mov ecx, dword [0x4301e8]
add esi, dword [ecx + 0x28]
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
cmp esi, eax
jae 0x4045cf
push pe_nt_image_headers32
mov edx, dword [0x4301e8]
mov eax, dword [edx + 0x38]
push eax
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x2c]
push eax
push 0
mov ecx, dword [0x4301e8]
add ecx, 4
call fcn.0040ab00
lea ecx, [ebp - 0x3c]
push ecx
mov edx, dword [0x4301e8]
mov eax, dword [edx + 0x24]
mov ecx, dword [0x4301e8]
mov edx, dword [ecx + 0x24]
mov eax, dword [eax]
push edx
mov ecx, dword [eax + 0x48]
call ecx
test eax, eax
jl 0x4045cf
push str.focuson__
mov edx, dword [ebp - 0x3c]
push edx
lea eax, [ebp - 0x58]
push eax
call fcn.00403f10
add esp, 0xc
lea ecx, [ebp - 0x58]
call fcn.00405920
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [edx + 8]
call ecx
jmp 0x4045e7
mov edx, dword [0x4301e8]
mov dword [edx + 0x30], 0
mov eax, dword [0x4301e8]
mov byte [eax + 0x2c], 0
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [0x4301e8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0x2c]
jg 0x404624
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x2c]
jl 0x404624
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x28]
jg 0x404624
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0x28]
jl 0x404624
mov dword [ebp - 0x68], 1
jmp 0x40462b
mov dword [ebp - 0x68], 0
mov dl, byte [ebp - 0x68]
mov byte [ebp - 0xa], dl
mov ecx, dword [0x4301e8]
add ecx, 4
call fcn.0040abc0
cmp eax, 1
jne 0x404664
movzx eax, byte [ebp - 9]
test eax, eax
jne 0x404664
movzx ecx, byte [ebp - 0xa]
test ecx, ecx
jne 0x404664
push 0
mov ecx, dword [0x4301e8]
add ecx, 4
call fcn.0040aba0
pop edi
pop esi
mov esp, ebp
pop ebp
ret