Function at 0x1018d980
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x1023c014]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_LoadCursorW]
mov ebx, ecx
push edi
push 0x7f00
push 0
mov dword [esp + 0x20], ebx
call esi
push 0x7f86
push 0
mov dword [esp + 0x14], eax
call esi
mov ecx, dword [ebx + 4]
mov edx, eax
mov dword [esp + 0x1c], edx
mov eax, dword [ecx + 4]
test eax, eax
jne 0x1018d9cd
xor edi, edi
jmp 0x1018d9d3
mov eax, dword [eax + 0x5c]
mov edi, dword [eax + 8]
push edx
call dword [sym.imp.USER32.dll_SetCursor]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [ebx + 4]
mov esi, dword [eax + 4]
test esi, esi
je 0x1018da11
lea edx, [esp + 0x3c]
mov ecx, esi
call fcn.1001bb30
test eax, eax
je 0x1018da11
mov eax, dword [esi + 0x5c]
lea ecx, [esp + 0x3c]
push ecx
push dword [eax + 8]
call sym.HncOfficeFramework.dll_void___cdecl_ClientToScreen_struct_HWND_____struct_tagRECT__
add esp, 8
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x3c]
cdq
sub eax, edx
mov esi, eax
mov eax, dword [esp + 0x48]
sub eax, dword [esp + 0x40]
cdq
sub eax, edx
sar esi, 1
add esi, dword [esp + 0x3c]
sar eax, 1
add eax, dword [esp + 0x40]
push eax
push esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], eax
call dword [sym.imp.USER32.dll_SetCursorPos]
push edi
call dword [sym.imp.USER32.dll_SetCapture]
push 0
push 0
push 0
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x1018dc3a
mov ebx, dword [sym.imp.USER32.dll_ClientToScreen]
nop dword [eax + eax]
call dword [sym.imp.USER32.dll_GetCapture]
cmp edi, eax
jne 0x1018dc3a
mov eax, dword [esp + 0x24]
cmp eax, 0x200
ja 0x1018db02
je 0x1018dbb9
cmp eax, 0x20
je 0x1018dbfc
cmp eax, 0x100
jne 0x1018db09
mov eax, dword [esp + 0x28]
cmp eax, 0x1b
je 0x1018dbe4
cmp eax, 0x25
jb 0x1018db09
cmp eax, 0x28
ja 0x1018db09
call dword [sym.imp.USER32.dll_ReleaseCapture]
push dword [esp + 0xc]
mov eax, dword [sym.imp.USER32.dll_SetCursor]
call eax
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_PostMessageW]
push 0
push 0xf010
push 0x112
push edi
call dword [sym.imp.USER32.dll_DefWindowProcW]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.1008548c
mov esp, ebp
pop ebp
ret
cmp eax, 0x201
je 0x1018db19
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x1018dbb9
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 4]
mov esi, dword [eax + 4]
test esi, esi
je 0x1018db95
lea edx, [esp + 0x3c]
mov ecx, esi
call fcn.1001bb30
test eax, eax
je 0x1018db95
mov eax, dword [esi + 0x5c]
mov esi, dword [eax + 8]
lea eax, [esp + 0x3c]
push eax
push esi
call ebx
lea eax, [esp + 0x44]
push eax
push esi
call ebx
push 0xffffffffffffffec
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x400000
je 0x1018db79
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x44], edx
jmp 0x1018db81
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x3c]
cmp ecx, edx
jle 0x1018db9d
mov eax, ecx
mov ecx, edx
mov edx, eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x44], edx
jmp 0x1018db9d
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x10]
cmp ecx, esi
jg 0x1018dbb9
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x40], eax
jg 0x1018dbb9
cmp edx, esi
jle 0x1018dbb9
cmp dword [esp + 0x48], eax
jg 0x1018dc19
push 0
push 0
push 0
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x1018da70
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.1008548c
mov esp, ebp
pop ebp
ret
call dword [sym.imp.USER32.dll_ReleaseCapture]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.1008548c
mov esp, ebp
pop ebp
ret
push dword [esp + 0x1c]
mov eax, dword [sym.imp.USER32.dll_SetCursor]
call eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.1008548c
mov esp, ebp
pop ebp
ret
call dword [sym.imp.USER32.dll_ReleaseCapture]
push dword [esp + 0xc]
mov eax, dword [sym.imp.USER32.dll_SetCursor]
call eax
push 0
push 2
push 0xa1
push edi
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1008548c
mov esp, ebp
pop ebp
ret