Function at 0x438040
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x38
mov eax, dword [0x4c4074]
xor eax, esp
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x18]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
mov dword [esp + 0x14], eax
cmp edi, 1
jne 0x43813b
neg ecx
lea eax, [esi - 0x24]
sbb ecx, ecx
and ecx, eax
xor eax, eax
mov dword [esp + 0x10], ecx
add ecx, 0x24
mov dword [esp + 0x20], ecx
cmp byte [ecx], al
sete al
add eax, 0x7f84
push eax
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
mov ecx, dword [esp + 0x20]
mov dword [ecx + 0x30], eax
test byte [ecx + 0x4c], 0x10
jne 0x4380b9
xor eax, eax
cmp byte [ecx], al
sete al
add eax, 0x20
push eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [esp + 0x20]
mov dword [ecx + 0x2c], eax
mov eax, dword [esp + 0x10]
xor edx, edx
test ecx, ecx
push 0xffffffffffffffec
cmove eax, edx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0x200
mov eax, dword [esp + 0x20]
mov cl, byte [eax]
je 0x4380fb
xor eax, eax
test cl, cl
sete al
add eax, 0x2d
push eax
mov eax, dword [sym.imp.USER32.dll_GetSystemMetrics]
call eax
mov ecx, dword [esp + 0x20]
add eax, eax
mov dword [ecx + 0x38], eax
xor ecx, ecx
jmp 0x438118
mov dword [eax + 0x38], 0
xor eax, eax
test cl, cl
sete al
add eax, 0x2d
push eax
mov eax, dword [sym.imp.USER32.dll_GetSystemMetrics]
call eax
mov ecx, eax
add ecx, ecx
mov eax, dword [esp + 0x20]
push 0
mov dword [eax + 0x34], ecx
add eax, 0x3c
push eax
push 0
push 0x26
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov ecx, dword [esp + 0x14]
mov dword [ecx], 1
jmp 0x438172
cmp edi, 0xf
jne 0x43816a
sub esp, 8
push dword [ebp + 0x10]
push ecx
call fcn.00439030
mov ecx, dword [esp + 0x14]
mov dword [ecx], eax
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0046e38e
mov esp, ebp
pop ebp
ret 0x18
cmp edi, 0x318
je 0x438140
mov eax, dword [esi + 0x4c]
shr eax, 1
not al
test al, 1
je 0x4386c3
cmp edi, 0x20
jne 0x43820b
test esi, esi
lea ecx, [esi - 0x20]
mov eax, 4
mov edi, 1
cmove ecx, eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x10], ecx
cmp eax, dword [ecx]
jne 0x4381e6
cmp word [ebp + 0x14], di
jne 0x4381e6
call dword [sym.imp.USER32.dll_GetMessagePos]
movsx ecx, ax
shr eax, 0x10
cwde
mov dword [esp + 0x24], eax
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], ecx
push dword [eax]
call dword [sym.imp.USER32.dll_ScreenToClient]
push dword [esp + 0x24]
mov ecx, esi
push dword [esp + 0x24]
call fcn.00439410
test al, al
jne 0x4381e8
xor edi, edi
mov eax, dword [esp + 0x14]
mov dword [eax], edi
test edi, edi
jne 0x4382e4
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0046e38e
mov esp, ebp
pop ebp
ret 0x18
cmp edi, 0x200
jne 0x438334
mov eax, dword [ebp + 0x14]
mov ecx, 4
movsx edi, ax
shr eax, 0x10
test esi, esi
cwde
mov dword [esp + 0x20], eax
lea eax, [esi - 0x20]
cmove eax, ecx
mov dword [esp + 0x10], eax
call dword [sym.imp.USER32.dll_GetCapture]
mov ecx, dword [esp + 0x10]
cmp eax, dword [ecx]
jne 0x4382fc
cmp byte [esi], 0
mov eax, dword [esi + 0x40]
je 0x438255
sub edi, dword [esi + 0xc]
jmp 0x43825c
mov edi, dword [esp + 0x20]
sub edi, dword [esi + 0x10]
sub edi, eax
mov eax, 0xfffffffe
cmp edi, 0xffffffff
cmove edi, eax
cmp dword [esi + 0x1c], edi
je case.0x4385ad.14
test esi, esi
mov eax, esi
mov ecx, 0x24
cmove eax, ecx
cmp byte [esi + 0x3c], 0
mov dword [esp + 0x20], eax
je 0x4382c0
push 1
push edi
mov ecx, eax
call fcn.004396a0
test al, al
je case.0x4385ad.14
mov eax, dword [esp + 0x10]
push dword [eax]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [esp + 0x14]
mov dword [eax], 0
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0046e38e
mov esp, ebp
pop ebp
ret 0x18
mov ecx, esi
call fcn.00439290
mov ecx, dword [esp + 0x20]
push 0
push edi
call fcn.004396a0
mov ecx, esi
call fcn.00439290
mov eax, dword [esp + 0x14]
mov dword [eax], 0
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0046e38e
mov esp, ebp
pop ebp
ret 0x18
push dword [esp + 0x20]
mov ecx, esi
push edi
call fcn.00439410
test al, al
je 0x438315
push dword [esi + 0x30]
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, dword [esp + 0x14]
mov dword [eax], 0
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0046e38e
mov esp, ebp
pop ebp
ret 0x18
cmp edi, 0x201
jne 0x438461
mov eax, dword [ebp + 0x14]
mov ecx, 4
movsx edi, ax
shr eax, 0x10
test esi, esi
cwde
mov dword [esp + 0x10], eax
lea eax, [esi - 0x20]
cmove eax, ecx
mov dword [esp + 0x20], eax
call dword [sym.imp.USER32.dll_GetCapture]
mov ecx, dword [esp + 0x20]
cmp eax, dword [ecx]
je 0x438416
push dword [esp + 0x10]
mov ecx, esi
push edi
call fcn.00439410
test al, al
je 0x438416
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x20]
push dword [eax]
call dword [sym.imp.USER32.dll_SetCapture]
mov eax, dword [esp + 0x20]
push dword [eax]
call dword [sym.imp.USER32.dll_SetFocus]
push dword [esi + 0x30]
mov dword [esi + 0x24], eax
call dword [sym.imp.USER32.dll_SetCursor]
cmp byte [esi + 0x3c], 0
jne 0x4383bc
mov ecx, esi
call fcn.00439290
cmp byte [esi], 0
mov eax, dword [esi + 0x1c]
je 0x4383eb
sub edi, dword [esi + 0xc]
sub edi, eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x40], edi
mov dword [eax], 1
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0046e38e
mov esp, ebp
pop ebp
ret 0x18
mov edi, dword [esp + 0x10]
sub edi, dword [esi + 0x10]
sub edi, eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x40], edi
mov dword [eax], 1
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0046e38e
mov esp, ebp
pop ebp
ret 0x18
call dword [sym.imp.USER32.dll_GetCapture]
mov ecx, dword [esp + 0x20]
cmp eax, dword [ecx]
jne 0x4386fd
push dword [esp + 0x10]
mov ecx, esi
push edi
call fcn.00439410
test al, al
jne 0x4386fd
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esp + 0x14]
mov dword [eax], 1
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0046e38e
mov esp, ebp
pop ebp
ret 0x18
cmp edi, 0x202
jne 0x4384af
call dword [sym.imp.USER32.dll_GetCapture]
test esi, esi
lea ecx, [esi - 0x20]
mov edx, 4
cmove ecx, edx
cmp eax, dword [ecx]
jne 0x4386fd
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x20], eax
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esp + 0x14]
mov dword [eax], 1
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0046e38e
mov esp, ebp
pop ebp
ret 0x18
cmp edi, 0x203
jne 0x4384ee
test esi, esi
mov eax, 0x24
push 1
cmove esi, eax
push 0xffffffffffffffff
mov ecx, esi
call fcn.004396a0
mov eax, dword [esp + 0x14]
mov dword [eax], 0
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0046e38e
mov esp, ebp
pop ebp
ret 0x18
cmp edi, 0x215
jne 0x438570
cmp byte [esi + 0x3c], 0
jne 0x438503
mov ecx, esi
call fcn.00439290
mov eax, dword [esi + 0x20]
cmp eax, 0xffffffff
je 0x43853c
cmp byte [esi + 0x3c], 0
je 0x438516
cmp dword [esi + 0x1c], eax
je 0x43853c
mov ecx, esi
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], 0xffffffff
call fcn.00437ed0
test esi, esi
lea eax, [esi - 0x20]
mov ecx, 4
cmove eax, ecx
push dword [eax]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [esi + 0x24]
test eax, eax
je case.0x4385ad.14
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esp + 0x14]
mov dword [eax], 0
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0046e38e
mov esp, ebp
pop ebp
ret 0x18
cmp edi, 0x100
jne 0x4386c3
call dword [sym.imp.USER32.dll_GetCapture]
test esi, esi
lea ecx, [esi - 0x20]
mov edx, 4
cmove ecx, edx
cmp eax, dword [ecx]
jne 0x438315
mov edi, dword [ebp + 0x10]
lea eax, [edi - 0xd]
cmp eax, 0x1b
ja case.0x4385ad.14
movzx eax, byte [eax + 0x438858]
jmp dword [eax*4 + 0x438844]
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x20], eax
call dword [sym.imp.USER32.dll_ReleaseCapture]
jmp case.0x4385ad.14
cmp byte [esi], 0
je case.0x4385ad.14
lea eax, [esp + 0x20]
xorps xmm0, xmm0
push eax
movlpd qword [esp + 0x24], xmm0
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [esi + 0x1c]
cmp edi, 0x25
mov edi, dword [esi + 0x38]
mov ecx, 0xfffffff6
mov edx, 0xa
mov dword [esp + 0x10], eax
cmove edx, ecx
mov ecx, dword [esi + 0x34]
add edx, eax
lea eax, [ecx + edi]
cmp edx, eax
jl 0x43861c
mov eax, dword [esi + 0x14]
sub eax, dword [esi + 0x2c]
sub eax, dword [esi + 0xc]
sub eax, ecx
mov ecx, edx
sub eax, edi
cmp edx, eax
cmovg ecx, eax
mov eax, dword [esp + 0x20]
sub ecx, dword [esp + 0x10]
push dword [esp + 0x24]
add eax, ecx
mov dword [esp + 0x24], eax
push eax
jmp 0x43869b
cmp byte [esi], 0
jne case.0x4385ad.14
lea eax, [esp + 0x18]
xorps xmm0, xmm0
push eax
movlpd qword [esp + 0x1c], xmm0
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [esi + 0x1c]
cmp edi, 0x26
mov edi, dword [esi + 0x38]
mov ecx, 0xfffffff6
mov edx, 0xa
mov dword [esp + 0x10], eax
cmove edx, ecx
mov ecx, dword [esi + 0x34]
add edx, eax
lea eax, [ecx + edi]
cmp edx, eax
jl 0x438688
mov eax, dword [esi + 0x18]
sub eax, dword [esi + 0x2c]
sub eax, dword [esi + 0x10]
sub eax, ecx
mov ecx, edx
sub eax, edi
cmp edx, eax
cmovg ecx, eax
mov eax, dword [esp + 0x1c]
sub ecx, dword [esp + 0x10]
add eax, ecx
push eax
push dword [esp + 0x1c]
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_SetCursorPos]
mov eax, dword [esp + 0x14]
mov dword [eax], 0
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0046e38e
mov esp, ebp
pop ebp
ret 0x18
cmp edi, 7
jne 0x43871c
call dword [sym.imp.USER32.dll_GetCapture]
test esi, esi
lea ecx, [esi - 0x20]
mov edx, 4
cmove ecx, edx
cmp eax, dword [ecx]
je 0x4386fd
mov eax, dword [esi + 0x50]
cmp eax, 0xffffffff
jne 0x4386f3
mov eax, dword [esi + 0x28]
test eax, eax
je 0x4386f3
cmp eax, 1
jne 0x4386fd
push dword [esi + eax*4 + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esp + 0x14]
mov dword [eax], 1
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0046e38e
mov esp, ebp
pop ebp
ret 0x18
cmp edi, 0x21
jne 0x438805
push dword [ebp + 0x14]
test esi, esi
lea edi, [esi - 0x20]
push dword [ebp + 0x10]
mov eax, 4
mov ecx, 0x20
cmove edi, eax
lea eax, [esi - 4]
push 0x21
cmove eax, ecx
push dword [edi]
push dword [eax]
call dword [sym.imp.USER32.dll_CallWindowProcW]
mov dword [esp + 0x10], eax
cmp eax, 1
je 0x438761
cmp eax, 2
jne 0x4387e3
call dword [sym.imp.USER32.dll_GetMessagePos]
movsx ecx, ax
shr eax, 0x10
cwde
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push dword [edi]
mov dword [esp + 0x20], ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
xorps xmm0, xmm0
xor edi, edi
movaps xmmword [esp + 0x20], xmm0
nop dword [eax]
lea eax, [esp + 0x20]
mov ecx, esi
push eax
push edi
call fcn.00438ef0
test al, al
je 0x4387b8
push dword [esp + 0x1c]
lea eax, [esp + 0x24]
push dword [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x4387e0
inc edi
cmp edi, 2
jl 0x438790
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0046e38e
mov esp, ebp
pop ebp
ret 0x18
mov dword [esi + 0x28], edi
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0046e38e
mov esp, ebp
pop ebp
ret 0x18
cmp edi, 0x1a
jne 0x4381f6
mov eax, 0x24
test esi, esi
push 1
cmove esi, eax
mov ecx, esi
call fcn.00439200
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x3c]
mov dword [eax], 0
lea eax, [edi - 0x19]
pop edi
pop esi
xor ecx, esp
call fcn.0046e38e
mov esp, ebp
pop ebp
ret 0x18