Function at 0x40c500
Capabilities:
Check for unmoving mouse cursor

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
mov esi, dword [esp + 0x44]
push edi
mov edi, ecx
mov eax, dword [esi + 8]
cmp eax, 0xfffffd44
ja 0x40c57c
je 0x40c550
add eax, 0x2c5
cmp eax, 3
ja case.0x40c7e4.144
jmp dword [eax*4 + 0x40cfdc]
mov eax, dword [edi + 0x10]
push 0
push 0
push 0x421
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 8
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x28]
mov eax, dword [esi + 0x14]
push ecx
push edx
push eax
call fcn.00404b90
mov ecx, dword [edi + 0x90]
add esp, 4
push eax
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 8
cmp eax, 0xfffffe65
ja 0x40c64e
je 0x40c5ca
cmp eax, 0xfffffdf8
jne case.0x40c7e4.144
mov eax, dword [0x4cae84]
test eax, eax
je case.0x40c7e4.144
mov eax, dword [esi + 4]
mov edx, dword [edi + 0x90]
push eax
mov dword [esi + 0x60], edx
call fcn.00404b90
and eax, 0xffff
add esp, 4
mov dword [esi + 0xc], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 8
mov eax, dword [0x4caed8]
test eax, eax
jne 0x40c5ed
mov ecx, dword [esi]
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov edx, dword [esi]
xor eax, 8
push eax
push 0xfffffffffffffff0
push edx
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov ecx, dword [edi + 0xc]
mov eax, dword [esi]
cmp eax, ecx
jne case.0x40c7e4.144
mov dword [edi + 0x4ac], 0
mov eax, dword [esi + 0x10]
test eax, eax
je case.0x40c7e4.144
mov eax, dword [esi + 0x1c]
test eax, eax
je case.0x40c7e4.144
push eax
mov eax, dword [edi + 0x90]
push ecx
push eax
call fcn.00404960
add esp, 0xc
test eax, eax
je case.0x40c7e4.144
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x10]
push ecx
push edx
mov ecx, edi
call fcn.004183e0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 8
cmp eax, 0xfffffecd
ja 0x40c7cc
je 0x40c770
add eax, 0x19a
cmp eax, 8
ja case.0x40c7e4.144
jmp dword [eax*4 + 0x40cfec]
mov eax, dword [esi]
mov ecx, dword [edi + 0xc]
cmp eax, ecx
jne case.0x40c7e4.144
mov dword [edi + 0x4ac], 1
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 8
cmp dword [esi + 0xc], 2
jne case.0x40c7e4.144
mov ebx, dword [sym.imp.USER32.dll_LoadCursorA]
push 0x7f02
push 0
call ebx
mov ebp, dword [sym.imp.USER32.dll_SetCursor]
push eax
call ebp
mov ecx, dword [edi + 0xc]
push 0
push 0
push 0xb
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [esi + 0x3c]
mov ecx, edi
push edx
call fcn.004178c0
mov eax, dword [edi + 0xc]
push 0
push 1
push 0xb
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x7f00
push 0
call ebx
push eax
call ebp
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 8
cmp dword [esi + 0xc], 1
jne 0x40c715
mov ecx, edi
call fcn.004178f0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 8
mov ecx, dword [edi + 4]
push 0
push 0x12c
push 2
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 8
mov esi, dword [esi + 0x34]
test esi, esi
je case.0x40c7e4.144
mov ecx, esi
call fcn.00404680
jmp 0x40cfc6
mov eax, dword [edi + 0xc]
mov ecx, dword [esi]
cmp ecx, eax
jne case.0x40c7e4.144
mov edx, dword [esi + 0x5c]
mov ecx, edi
push edx
push eax
call fcn.00419020
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 8
mov eax, dword [esi + 0x14]
test byte [eax], 1
je case.0x40c7e4.144
mov ebx, dword [eax + 4]
mov eax, dword [esi + 0xc]
mov ecx, dword [edi + 8]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x101d
push ecx
call ebp
mov eax, dword [esi + 0xc]
mov ecx, dword [edi + 8]
mov edx, ebx
and edx, 0xffff
push edx
push eax
push 0x101e
push ecx
call ebp
mov edx, dword [esi + 0xc]
mov ecx, edi
push edx
call fcn.00417330
mov dword [eax*4 + 0x4caaac], ebx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 8
add eax, 0x9d
cmp eax, 0x9a
ja case.0x40c7e4.144
xor ecx, ecx
mov cl, byte [eax + 0x40d048]
jmp dword [ecx*4 + 0x40d010]
mov ecx, edi
call fcn.004139f0
mov edx, dword [esi]
xor eax, eax
mov dword [edi + 0x34], edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 8
mov eax, dword [esi]
mov ecx, dword [edi + 0x10]
cmp eax, ecx
jne case.0x40c7e4.144
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [edi + 0x10]
push edx
push eax
push ecx
mov ecx, edi
call fcn.00415350
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 8
mov esi, dword [esi]
mov eax, dword [edi + 8]
cmp esi, eax
jne 0x40c8f9
mov eax, dword [0x4caedc]
test eax, eax
je 0x40c8c8
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [edi + 8]
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [edi + 8]
lea edx, [esp + 0x18]
push edx
push 0
push 0x1039
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
jl 0x40c8c8
push 5
mov ecx, edi
call fcn.00417360
cmp dword [esp + 0x28], eax
jne 0x40c8c8
mov eax, dword [edi + 0x6e4]
test eax, eax
jne 0x40c8e5
mov eax, dword [edi + 0x6e0]
test eax, eax
je 0x40c8e5
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, edi
call fcn.004138b0
mov ecx, edi
call fcn.0040f4a0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 8
mov eax, dword [edi + 0x404]
test eax, eax
je 0x40c8e5
mov ecx, edi
call fcn.0040d8d0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 8
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_MessageBeep]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 8
mov edx, dword [edi + 0xa0]
cmp esi, dword [edx + 0x44]
jne 0x40c917
mov ecx, edi
call fcn.0040da10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 8
cmp esi, dword [edi + 0x1c]
jne 0x40c959
push 0xffffffffffffffff
mov ecx, edi
call fcn.00418d40
test eax, eax
je case.0x40c7e4.144
mov ecx, dword [eax + 0xc]
cmp ecx, 1
mov ecx, edi
jne 0x40c948
call fcn.00411380
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 8
call fcn.0040d8d0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 8
cmp esi, dword [edi + 0x14]
jne case.0x40c7e4.144
mov eax, dword [edi + 0x8c]
mov ecx, edi
test eax, eax
je 0x40c97f
call fcn.00410790
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 8
call fcn.00410780
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 8
mov eax, dword [esi]
mov ecx, dword [edi + 8]
cmp eax, ecx
jne case.0x40c7e4.144
push esi
mov ecx, edi
call fcn.0041ac80
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 8
mov eax, dword [edi + 8]
mov ecx, dword [esi]
cmp ecx, eax
jne case.0x40c7e4.144
push 0
push eax
mov ecx, edi
call fcn.00419020
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 8
mov ecx, dword [esi]
mov eax, dword [edi + 8]
cmp ecx, eax
jne case.0x40c7e4.144
mov edx, dword [esi + 0x10]
mov ecx, edi
push edx
call fcn.00417330
mov ecx, 5
cmp eax, ecx
ja case.default.0x40c9f7
jmp dword [eax*4 + 0x40d0e4]
mov eax, dword [0x4ca928]
test eax, eax
jne 0x40ca19
mov ecx, dword [0x4ca930]
xor eax, eax
test ecx, ecx
sete al
mov dword [0x4ca930], eax
mov ecx, edi
mov dword [0x4ca928], 0
call fcn.0041b580
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 8
mov eax, dword [0x4ca928]
mov ebx, 1
cmp eax, ebx
jne 0x40ca56
mov eax, dword [0x4ca930]
xor ecx, ecx
test eax, eax
sete cl
mov dword [0x4ca930], ecx
mov ecx, edi
mov dword [0x4ca928], ebx
call fcn.0041b580
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 8
mov ecx, dword [0x4ca928]
mov eax, 2
cmp ecx, eax
jne 0x40cadc
jmp 0x40cac9
mov ecx, dword [0x4ca928]
mov eax, 3
cmp ecx, eax
jne 0x40cadc
mov edx, dword [0x4ca930]
xor ecx, ecx
test edx, edx
sete cl
mov dword [0x4ca930], ecx
mov ecx, edi
mov dword [0x4ca928], eax
call fcn.0041b580
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 8
mov ecx, dword [0x4ca928]
mov eax, 4
cmp ecx, eax
jne 0x40cadc
mov ecx, dword [0x4ca930]
xor edx, edx
test ecx, ecx
sete dl
mov dword [0x4ca930], edx
mov ecx, edi
mov dword [0x4ca928], eax
call fcn.0041b580
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 8
cmp dword [0x4ca928], ecx
jne 0x40cb0e
mov edx, dword [0x4ca930]
xor eax, eax
test edx, edx
sete al
mov dword [0x4ca930], eax
mov dword [0x4ca928], ecx
mov ecx, edi
call fcn.0041b580
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 8
mov eax, dword [0x4cae88]
test eax, eax
je case.0x40c7e4.144
mov ecx, dword [esi + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esi + 0x10]
mov ecx, dword [edi + 8]
mov ebp, eax
mov eax, dword [esi]
add ebp, edx
cmp eax, ecx
jne 0x40cc51
mov edx, dword [esi + 0x18]
mov ecx, edi
push edx
call fcn.004136f0
mov ebx, eax
test ebx, ebx
je case.0x40c7e4.144
mov edi, dword [esi + 0x14]
mov ecx, ebx
push edi
call fcn.0041db20
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ecx, ebx
call fcn.0041db20
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
call esi
sub edi, eax
mov ecx, ebx
mov dword [esp + 0x48], edi
call fcn.0041db20
push eax
call esi
add ebp, eax
mov eax, dword [ebx + 4]
test eax, eax
jne case.0x40c7e4.144
mov eax, dword [ebx + 0x30]
test eax, eax
jl 0x40cbe5
mov byte [ebp], 0x20
mov eax, dword [ebx + 0x2c]
mov ecx, dword [ebx + 0x28]
mov edx, dword [ebx + 0x24]
push 0
push 1
push eax
mov eax, dword [ebx + 0x30]
push ecx
push edx
inc ebp
push eax
push 0
push ebp
call fcn.00446610
add esp, 0x20
push ebp
call esi
add ebp, eax
push ebp
call esi
or ecx, 0xffffffff
sub ecx, eax
add edi, ecx
mov dword [esp + 0x48], edi
mov edx, dword [0x4be044]
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x1c]
mov dword [esp + 0x18], edx
push 0x14
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x1c]
push eax
call esi
mov edx, dword [ebx + 0x1c]
lea ecx, [esp + eax + 0x1c]
push ecx
push edx
call fcn.0043c470
add esp, 0xc
lea eax, [esp + 0x18]
push str._bytes
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x18]
push ecx
call esi
cmp eax, dword [esp + 0x48]
jg case.0x40c7e4.144
lea edx, [esp + 0x18]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 8
cmp eax, dword [edi + 0x1c]
jne case.0x40c7e4.144
mov eax, dword [esi + 0x18]
mov ecx, edi
push eax
call fcn.00418d40
mov ecx, dword [esi + 0x14]
mov edx, dword [eax + 8]
push ecx
push ebp
push edx
call dword [sym.imp.USER32.dll_OemToCharBuffA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 8
mov eax, dword [esi]
mov ecx, dword [edi + 8]
cmp eax, ecx
je 0x40cc92
cmp eax, dword [edi + 0x1c]
jne case.0x40c7e4.144
test byte [esi + 0x1c], 8
je case.0x40c7e4.144
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je case.0x40c7e4.144
mov dword [edi + 0x2b4], 1
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 8
mov ecx, dword [esi]
mov eax, dword [edi + 8]
cmp ecx, eax
jne case.0x40c7e4.144
mov esi, dword [esi + 0x2c]
mov eax, dword [esi + 4]
cmp eax, 3
je case.0x40c527.707
cmp eax, 2
je case.0x40c527.707
mov edx, dword [esi + 0x5c]
push 4
push edx
call fcn.00498c50
add esp, 8
test eax, eax
je 0x40cd26
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0x90]
push 0
push 0x6a
push 0x206
push eax
push ecx
call fcn.0043cea0
add esp, 0x14
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 8
mov dword [edi + 0x4ac], 1
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 8
mov eax, dword [0x4caed8]
xor ebp, ebp
cmp eax, ebp
jne 0x40cd63
mov edx, dword [esi]
push 0xfffffffffffffff0
push edx
call dword [sym.imp.USER32.dll_GetWindowLongA]
xor eax, 0x200
push eax
mov eax, dword [esi]
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov eax, dword [esi]
mov ecx, dword [edi + 8]
cmp eax, ecx
jne 0x40ce74
mov dword [edi + 0x4ac], ebp
mov eax, dword [esi + 0x10]
cmp eax, 0xffffffff
je case.0x40c7e4.144
push eax
mov ecx, edi
call fcn.004136f0
mov ebx, eax
mov eax, dword [esi + 0x20]
cmp eax, ebp
jne 0x40cdd8
mov ecx, dword [ebx + 0x60]
push ecx
call fcn.00498600
add esp, 4
mov ecx, ebx
mov dword [ebx + 0x60], ebp
mov dword [esp + 0x20], ebp
call fcn.0041db20
mov ecx, dword [edi + 8]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x10]
lea edx, [esp + 0x18]
push edx
push eax
push 0x102e
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 8
mov edx, dword [edi + 8]
push eax
mov eax, dword [edi + 0x90]
push edx
push eax
call fcn.00404960
add esp, 0xc
test eax, eax
jne 0x40ce3d
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x10]
lea edx, [esp + 0x18]
mov dword [esp + 0x2c], ecx
mov ecx, dword [edi + 8]
push edx
push eax
push 0x102e
push ecx
mov dword [esp + 0x30], ebp
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [esi + 0x20]
mov ecx, ebx
push edx
call fcn.0041dcb0
mov eax, dword [edi + 4]
mov ebx, 1
push ebp
push ebx
push 5
push eax
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 8
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x10]
push ecx
push edx
mov ecx, edi
call fcn.00414210
test eax, eax
je case.0x40c7e4.144
mov esi, dword [esi + 0x10]
mov eax, dword [edi + 8]
push esi
push esi
push 0x1015
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 8
cmp eax, dword [edi + 0x1c]
jne case.0x40c7e4.144
cmp dword [esi + 0x10], 0xffffffff
je case.0x40c7e4.144
mov eax, dword [esi + 0x20]
cmp eax, ebp
je case.0x40c7e4.144
push eax
push ecx
mov ecx, dword [edi + 0x90]
push ecx
call fcn.00404960
add esp, 0xc
test eax, eax
je case.0x40c7e4.144
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x10]
push edx
push eax
mov ecx, edi
call fcn.00418da0
test eax, eax
je case.0x40c7e4.144
mov esi, dword [esi + 0x10]
mov ecx, dword [edi + 0x1c]
push esi
push esi
push 0x1015
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 8
mov eax, dword [esi]
mov ecx, dword [edi + 8]
cmp eax, ecx
jne 0x40cf84
mov cl, byte [esi + 0xc]
mov eax, dword [esi + 0x2c]
test cl, 2
je 0x40cf53
mov ecx, dword [0x4caaf4]
cmp ecx, 4
jne 0x40cf15
mov eax, dword [eax + 0x4c]
test eax, eax
jge 0x40cf50
mov dword [esi + 0x28], 0
jmp 0x40cf53
xor edx, edx
test ecx, ecx
sete dl
mov ecx, edx
mov edx, dword [0x4caa70]
test edx, edx
je 0x40cf41
test ecx, ecx
push eax
lea ecx, [edi + 0x47c]
je 0x40cf3a
call fcn.0041e740
jmp 0x40cf50
call fcn.0041e710
jmp 0x40cf50
mov ecx, dword [eax + 0x30]
test ecx, ecx
jl 0x40cf4d
lea eax, [ecx + 4]
jmp 0x40cf50
mov eax, dword [eax + 4]
mov dword [esi + 0x28], eax
test byte [esi + 0xc], 1
je case.0x40c7e4.144
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x14]
push eax
push ecx
push edx
mov ecx, edi
call fcn.00417330
push eax
mov eax, dword [esi + 0x10]
push eax
mov ecx, edi
call fcn.00417380
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 8
cmp eax, dword [edi + 0x1c]
jne case.0x40c7e4.144
mov cl, byte [esi + 0xc]
mov eax, dword [esi + 0x2c]
mov ebx, 1
test bl, cl
je case.0x40c7e4.144
cmp dword [esi + 0x14], ebx
jne case.0x40c7e4.144
mov ecx, dword [eax + 8]
xor eax, eax
mov dword [esi + 0x20], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 8
mov edx, dword [esi]
mov eax, dword [edi + 0x1c]
cmp edx, eax
jne case.0x40c7e4.144
mov esi, dword [esi + 0x28]
test esi, esi
je case.0x40c7e4.144
mov ecx, esi
call fcn.00405870
push esi
call fcn.00498600
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x30
ret 8