Function at 0x40cde0
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push 0xffffffffffffffff
push 0x44f038
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetCursorPos]
push esi
lea eax, [esp + 0x18]
push eax
mov esi, ecx
mov byte [esp + 0xf], 0
call ebx
test eax, eax
je 0x40d6d4
mov edx, dword [esi + 0xcc]
push ebp
push edi
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov al, byte [esi + 0xe0]
test al, al
je 0x40cf55
push 0
lea eax, [esp + 0x3c]
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
lea ecx, [esp + 0x18]
push ecx
call ebx
mov eax, dword [esi + 0xcc]
lea edx, [esp + 0x28]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esi + 0xe8]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov ebx, dword [esi + 0xe4]
mov edi, dword [sym.imp.USER32.dll_OffsetRect]
sub ecx, eax
push ecx
sub edx, ebx
push edx
lea eax, [esp + 0x30]
push eax
call edi
mov eax, dword [esi + 0x94]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x2c]
lea ebx, [eax + ecx]
cmp edx, ebx
jg 0x40ceb2
mov ebx, ecx
sub ebx, eax
cmp edx, ebx
jl 0x40ceb2
sub ecx, edx
push ecx
push 0
lea ecx, [esp + 0x30]
push ecx
jmp 0x40ced3
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x34]
lea ebx, [eax + ecx]
cmp edx, ebx
jg 0x40ced5
mov ebx, ecx
sub ebx, eax
cmp edx, ebx
jl 0x40ced5
sub ecx, edx
push ecx
push 0
lea edx, [esp + 0x30]
push edx
call edi
mov ecx, dword [esi + 0x94]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x28]
lea ebx, [ecx + eax]
cmp edx, ebx
jg 0x40cefe
mov ebx, eax
sub ebx, ecx
cmp edx, ebx
jl 0x40cefe
push 0
sub eax, edx
push eax
lea eax, [esp + 0x30]
push eax
jmp 0x40cf1f
mov eax, dword [esp + 0x40]
mov ebx, dword [esp + 0x30]
lea ebp, [ecx + eax]
cmp ebx, ebp
jg 0x40cf25
mov ebp, eax
sub ebp, ecx
cmp ebx, ebp
jl 0x40cf25
push 0
sub eax, ebx
push eax
lea ecx, [esp + 0x30]
push ecx
call edi
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esi + 0xcc]
push 5
push 0
push 0
push eax
push edx
push 0
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
pop edi
pop ebp
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
add esp, 0x44
ret 8
mov eax, dword [esi + 0xfc]
xor ebp, ebp
cmp eax, ebp
je 0x40d353
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push ebp
call edi
push 1
mov ebp, eax
call edi
lea edx, [esp + 0x18]
mov edi, eax
push edx
mov dword [esp + 0x60], edi
call ebx
mov ecx, dword [esi + 0xcc]
lea eax, [esp + 0x38]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esi + 0xfc]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x44]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x40]
dec ecx
cmp ecx, 7
mov dword [esp + 0x28], edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ebx
ja case.default.0x40cfc3
jmp dword [ecx*4 + 0x40d6e8]
mov edx, dword [esi + 0xe4]
mov ecx, dword [esp + 0x18]
mov edi, dword [esi + 0xe8]
sub ecx, edx
mov edx, dword [esp + 0x1c]
sub edx, edi
mov edi, eax
sub edi, ecx
mov dword [esp + 0x28], ecx
mov ecx, dword [esi + 0x7c]
cmp edi, ecx
mov dword [esp + 0x2c], edx
jge 0x40cff9
sub eax, ecx
jmp 0x40d00f
mov ecx, dword [esi + 0x84]
test ecx, ecx
je 0x40d009
cmp ebp, ecx
jl 0x40d009
mov ebp, ecx
cmp edi, ebp
jle 0x40d013
sub eax, ebp
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x80]
mov ecx, ebx
sub ecx, edx
cmp ecx, eax
jge 0x40d02c
sub ebx, eax
mov dword [esp + 0x2c], ebx
jmp case.default.0x40cfc3
mov eax, dword [esi + 0x88]
test eax, eax
jne 0x40d03c
mov eax, dword [esp + 0x5c]
jmp 0x40d046
mov edx, dword [esp + 0x5c]
cmp edx, eax
jge 0x40d046
mov eax, edx
cmp ecx, eax
jle case.default.0x40cfc3
sub ebx, eax
mov dword [esp + 0x2c], ebx
jmp case.default.0x40cfc3
mov edi, dword [esi + 0xe4]
mov eax, dword [esi + 0xf4]
mov ecx, dword [esp + 0x18]
sub eax, edi
mov edi, dword [esi + 0xe8]
add eax, ecx
mov ecx, dword [esp + 0x1c]
sub ecx, edi
mov edi, dword [esi + 0x7c]
mov dword [esp + 0x30], eax
sub eax, edx
cmp eax, edi
mov dword [esp + 0x2c], ecx
jge 0x40d092
add edi, edx
mov dword [esp + 0x30], edi
jmp 0x40d0ac
mov edi, dword [esi + 0x84]
test edi, edi
je 0x40d0a2
cmp ebp, edi
jl 0x40d0a2
mov ebp, edi
cmp eax, ebp
jle 0x40d0ac
add ebp, edx
mov dword [esp + 0x30], ebp
mov eax, dword [esi + 0x80]
mov edx, ebx
sub edx, ecx
cmp edx, eax
jge 0x40d0c5
sub ebx, eax
mov dword [esp + 0x2c], ebx
jmp case.default.0x40cfc3
mov eax, dword [esi + 0x88]
test eax, eax
jne 0x40d0d5
mov eax, dword [esp + 0x5c]
jmp 0x40d0df
mov ecx, dword [esp + 0x5c]
cmp ecx, eax
jge 0x40d0df
mov eax, ecx
cmp edx, eax
jle case.default.0x40cfc3
sub ebx, eax
mov dword [esp + 0x2c], ebx
jmp case.default.0x40cfc3
mov ecx, dword [esi + 0xe4]
mov edx, dword [esp + 0x18]
mov ebx, dword [esi + 0xe8]
sub edx, ecx
mov ecx, dword [esi + 0xf8]
sub ecx, ebx
add ecx, dword [esp + 0x1c]
mov ebx, eax
sub ebx, edx
mov dword [esp + 0x28], edx
mov edx, dword [esi + 0x7c]
cmp ebx, edx
mov dword [esp + 0x34], ecx
jge 0x40d12b
sub eax, edx
mov dword [esp + 0x28], eax
jmp 0x40d1a0
mov edx, dword [esi + 0x84]
test edx, edx
je 0x40d13b
cmp ebp, edx
jl 0x40d13b
mov ebp, edx
cmp ebx, ebp
jle 0x40d1a0
sub eax, ebp
mov dword [esp + 0x28], eax
jmp 0x40d1a0
mov ebx, dword [esi + 0xe4]
mov eax, dword [esi + 0xf4]
mov ecx, dword [esp + 0x18]
sub eax, ebx
mov ebx, dword [esi + 0xe8]
add eax, ecx
mov ecx, dword [esi + 0xf8]
sub ecx, ebx
add ecx, dword [esp + 0x1c]
mov ebx, dword [esi + 0x7c]
mov dword [esp + 0x30], eax
sub eax, edx
cmp eax, ebx
mov dword [esp + 0x34], ecx
jge 0x40d186
add ebx, edx
mov dword [esp + 0x30], ebx
jmp 0x40d1a0
mov ebx, dword [esi + 0x84]
test ebx, ebx
je 0x40d196
cmp ebp, ebx
jl 0x40d196
mov ebp, ebx
cmp eax, ebp
jle 0x40d1a0
add ebp, edx
mov dword [esp + 0x30], ebp
mov edx, dword [esp + 0x2c]
mov eax, dword [esi + 0x80]
sub ecx, edx
cmp ecx, eax
jge 0x40d1bb
add eax, edx
mov dword [esp + 0x34], eax
jmp case.default.0x40cfc3
mov eax, dword [esi + 0x88]
test eax, eax
je 0x40d1c9
cmp edi, eax
jge 0x40d1cb
mov eax, edi
cmp ecx, eax
jle case.default.0x40cfc3
add eax, edx
mov dword [esp + 0x34], eax
jmp case.default.0x40cfc3
mov edx, dword [esi + 0xe4]
mov ecx, dword [esp + 0x18]
sub ecx, edx
mov edx, eax
sub edx, ecx
mov dword [esp + 0x28], ecx
mov ecx, dword [esi + 0x7c]
cmp edx, ecx
jge 0x40d204
sub eax, ecx
mov dword [esp + 0x28], eax
jmp case.default.0x40cfc3
mov ecx, dword [esi + 0x84]
test ecx, ecx
je 0x40d214
cmp ebp, ecx
jl 0x40d214
mov ebp, ecx
cmp edx, ebp
jle case.default.0x40cfc3
sub eax, ebp
mov dword [esp + 0x28], eax
jmp case.default.0x40cfc3
mov eax, dword [esi + 0xf4]
mov edi, dword [esi + 0xe4]
mov ecx, dword [esp + 0x18]
sub eax, edi
add eax, ecx
mov ecx, dword [esi + 0x7c]
mov dword [esp + 0x30], eax
sub eax, edx
cmp eax, ecx
jge 0x40d253
add ecx, edx
mov dword [esp + 0x30], ecx
jmp case.default.0x40cfc3
mov ecx, dword [esi + 0x84]
test ecx, ecx
je 0x40d263
cmp ebp, ecx
jl 0x40d263
mov ebp, ecx
cmp eax, ebp
jle case.default.0x40cfc3
add ebp, edx
mov dword [esp + 0x30], ebp
jmp case.default.0x40cfc3
mov ecx, dword [esi + 0xe8]
mov eax, dword [esp + 0x1c]
sub eax, ecx
mov ecx, ebx
sub ecx, eax
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x80]
cmp ecx, eax
jge 0x40d29c
sub ebx, eax
mov dword [esp + 0x2c], ebx
jmp case.default.0x40cfc3
mov eax, dword [esi + 0x88]
test eax, eax
je 0x40d2aa
cmp edi, eax
jge 0x40d2ac
mov eax, edi
cmp ecx, eax
jle case.default.0x40cfc3
sub ebx, eax
mov dword [esp + 0x2c], ebx
jmp case.default.0x40cfc3
mov edx, dword [esi + 0xe8]
mov eax, dword [esi + 0xf8]
mov ecx, dword [esp + 0x1c]
sub eax, edx
mov edx, dword [esp + 0x2c]
add eax, ecx
mov ecx, dword [esi + 0x80]
mov dword [esp + 0x34], eax
sub eax, edx
cmp eax, ecx
jl 0x40d2f4
mov ecx, dword [esi + 0x88]
test ecx, ecx
je 0x40d2ee
cmp edi, ecx
jge 0x40d2f0
mov ecx, edi
cmp eax, ecx
jle case.default.0x40cfc3
add ecx, edx
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x3c]
push edx
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
jne 0x40d6d2
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
push 0x104
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x30]
sub edx, ecx
push edx
push eax
mov eax, dword [esi + 0xcc]
push ecx
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
pop edi
pop ebp
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
add esp, 0x44
ret 8
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push ecx
push edx
push eax
mov ecx, esi
call fcn.0040cb80
test al, al
je 0x40d377
mov al, byte [esi + 0x120]
test al, al
je 0x40d37b
mov dword [esp + 0x14], ebp
mov eax, dword [esi + 0xc8]
cmp eax, ebp
mov bl, byte [esp + 0x5c]
mov edi, dword [sym.imp.USER32.dll_InvalidateRect]
je 0x40d61b
mov ecx, dword [eax + 0xbc]
cmp ecx, 2
je 0x40d3a7
cmp ecx, 4
jne 0x40d570
cmp dword [eax + 0xac], ebp
jne 0x40d3cb
cmp dword [eax + 0xb0], ebp
jne 0x40d3cb
cmp dword [eax + 0xb4], ebp
jne 0x40d3cb
cmp dword [eax + 0xb8], ebp
je 0x40d570
mov edx, dword [esi + 0xe4]
mov ecx, dword [esi + 0xec]
mov ebx, dword [esi + 0xe8]
mov ebp, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
sub ecx, edx
mov edx, dword [esi + 0xf0]
add ecx, ebp
sub edx, ebx
add edx, edi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
mov ebp, dword [eax + 0x9c]
mov edi, dword [eax + 0xa4]
lea ebx, [eax + 0x9c]
sub edi, ebp
add edi, ecx
mov dword [esp + 0x30], edi
mov ebp, dword [eax + 0xa8]
mov dword [esp + 0x18], ebx
sub ebp, dword [eax + 0xa0]
add ebp, edx
mov dword [esp + 0x34], ebp
mov ebx, dword [eax + 0xac]
cmp ebx, ecx
jle 0x40d44d
mov edi, dword [esp + 0x18]
mov dword [esp + 0x28], ebx
mov ecx, dword [eax + 0xa4]
sub ecx, dword [edi]
add ecx, ebx
mov dword [esp + 0x30], ecx
jmp 0x40d46d
mov ecx, dword [eax + 0xb4]
cmp ecx, edi
jge 0x40d46d
mov edi, dword [esp + 0x18]
mov dword [esp + 0x30], ecx
mov edi, dword [edi]
sub edi, dword [eax + 0xa4]
add edi, ecx
mov dword [esp + 0x28], edi
mov ecx, dword [eax + 0xb0]
cmp ecx, edx
jle 0x40d48f
mov dword [esp + 0x2c], ecx
mov edx, dword [eax + 0xa8]
sub edx, dword [eax + 0xa0]
add edx, ecx
mov dword [esp + 0x34], edx
jmp 0x40d4af
mov ecx, dword [eax + 0xb8]
cmp ecx, ebp
jge 0x40d4af
mov dword [esp + 0x34], ecx
mov edx, dword [eax + 0xa0]
sub edx, dword [eax + 0xa8]
add edx, ecx
mov dword [esp + 0x2c], edx
mov bl, byte [esp + 0x5c]
test bl, bl
mov edi, dword [sym.imp.USER32.dll_InvalidateRect]
mov byte [esp + 0x13], 1
je 0x40d4e2
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0xcc]
push 0
push eax
push ecx
call edi
mov eax, dword [esi + 0xcc]
push 0
lea edx, [esp + 0x2c]
push edx
push eax
call edi
mov eax, dword [esi + 0xc8]
add eax, 0x9c
push eax
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
jne 0x40d56e
mov edx, dword [esi + 0xc8]
mov eax, dword [esp + 0x28]
add edx, 0x9c
mov dword [edx], eax
mov ecx, dword [esp + 0x2c]
mov dword [edx + 4], ecx
mov eax, dword [esp + 0x30]
mov dword [edx + 8], eax
mov ecx, dword [esp + 0x34]
mov dword [edx + 0xc], ecx
mov edx, dword [esi + 0xc8]
push edx
lea eax, [esp + 0x60]
push eax
mov ecx, esi
call fcn.0040cd00
mov edx, dword [eax]
mov eax, dword [esi + 0xc8]
lea ecx, [esp + 0x28]
push ecx
push 0x10
push edx
push eax
mov ecx, esi
mov dword [esp + 0x60], 0
call fcn.0040c900
lea ecx, [esp + 0x5c]
call fcn.00403e40
mov eax, dword [esi + 0xc8]
test eax, eax
je 0x40d619
xor ebp, ebp
mov eax, dword [esi + 0xc8]
cmp dword [esp + 0x14], eax
je 0x40d5e4
mov ecx, dword [eax + 0xbc]
cmp ecx, 1
jne 0x40d5b4
test bl, bl
mov dword [eax + 0xbc], ebp
mov byte [esp + 0x13], cl
je 0x40d5ac
mov ecx, dword [esi + 0xc8]
mov edx, dword [esi + 0xcc]
push ebp
add ecx, 0x9c
push ecx
push edx
call edi
mov dword [esi + 0xc8], ebp
jmp 0x40d61b
cmp ecx, 2
jne 0x40d61b
test bl, bl
mov dword [eax + 0xbc], 4
mov byte [esp + 0x13], 1
je 0x40d61b
mov eax, dword [esi + 0xc8]
mov ecx, dword [esi + 0xcc]
push ebp
add eax, 0x9c
push eax
push ecx
call edi
jmp 0x40d61b
cmp dword [eax + 0xbc], 4
jne 0x40d61b
test bl, bl
mov dword [eax + 0xbc], 2
mov byte [esp + 0x13], 1
je 0x40d61b
mov edx, dword [esi + 0xc8]
mov eax, dword [esi + 0xcc]
push ebp
add edx, 0x9c
push edx
push eax
call edi
jmp 0x40d61b
xor ebp, ebp
cmp dword [esi + 0xc8], ebp
jne 0x40d68d
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40d68d
cmp dword [eax + 0xbc], ebp
jne 0x40d68d
mov ecx, dword [eax + 0x14]
cmp dword [ecx - 0xc], ebp
je 0x40d68d
mov dword [eax + 0xbc], 1
cmp dword [esi + 0xd8], ebp
mov edx, dword [esp + 0x14]
mov dword [esi + 0xc8], edx
jne 0x40d672
mov eax, dword [esi + 0xcc]
push ebp
push 0x32
push 0x14d
push eax
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [esi + 0xd8], eax
test bl, bl
je 0x40d6ac
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0xcc]
push ebp
add ecx, 0x9c
push ecx
push edx
call edi
jmp 0x40d6ac
mov al, byte [esp + 0x13]
test al, al
jne 0x40d6ac
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push eax
push ecx
mov ecx, esi
call fcn.0040c9b0
mov dword [esi + 0x100], eax
cmp dword [esi + 0xc8], ebp
jne 0x40d6d2
mov eax, dword [esi + 0xd8]
cmp eax, ebp
je 0x40d6d2
mov edx, dword [esi + 0xcc]
push eax
push edx
call dword [sym.imp.USER32.dll_KillTimer]
mov dword [esi + 0xd8], ebp
pop edi
pop ebp
mov ecx, dword [esp + 0x40]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x44
ret 8