Function at 0x40c1f2
Capabilities:
Check for unmoving mouse cursor
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x78
mov eax, dword [0x416020]
xor eax, esp
mov dword [esp + 0x74], eax
mov ecx, dword [ebp + 8]
mov eax, 0x102
cmp ecx, eax
push ebx
push edi
ja 0x40c322
je 0x40c262
mov eax, ecx
sub eax, 7
je 0x40c2f7
dec eax
je 0x40c2ee
dec eax
dec eax
je 0x40c2e3
sub eax, 5
je 0x40c269
dec eax
je 0x40c262
sub eax, 4
je 0x40c25a
sub eax, 0x17
jne 0x40c54d
push str.WM_DRAWITEM
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x40c54d
xor eax, eax
inc eax
jmp 0x40c562
push str.WM_CHAR
jmp 0x40c24f
lea eax, [esp + 0x38]
push eax
push dword [esi + 8]
call dword [sym.imp.USER32.dll_BeginPaint]
mov edi, eax
push edi
call dword [sym.imp.GDI32.dll_SaveDC]
mov dword [esp + 0x18], eax
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.GDI32.dll_CreateRectRgn]
mov ebx, eax
push ebx
push dword [esi + 8]
call dword [sym.imp.USER32.dll_GetWindowRgn]
push ebx
push edi
call dword [sym.imp.GDI32.dll_SelectClipRgn]
test eax, eax
jne 0x40c2b3
push str.SelectClipRgn_ERROR
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, edi
mov ecx, esi
call fcn.0040c68b
push dword [esp + 0x18]
push edi
call dword [sym.imp.GDI32.dll_RestoreDC]
lea eax, [esp + 0x38]
push eax
push dword [esi + 8]
call dword [sym.imp.USER32.dll_EndPaint]
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
xor eax, eax
jmp 0x40c562
mov eax, dword [ebp + 0xc]
mov dword [esi + 0xa0], eax
jmp 0x40c35f
and dword [esi + 0xa4], 0
jmp 0x40c35f
xor edi, edi
inc edi
mov dword [esi + 0xa4], edi
lea eax, [esp + 8]
push eax
push dword [esi + 8]
call dword [sym.imp.USER32.dll_GetClientRect]
push edi
lea eax, [esp + 0xc]
push eax
push dword [esi + 8]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x40c54d
mov eax, ecx
sub eax, 0x200
je 0x40c3e2
dec eax
je 0x40c3c0
dec eax
je 0x40c3b7
dec eax
dec eax
je 0x40c37d
dec eax
je 0x40c371
sub eax, 0x9e
jne 0x40c54d
xor eax, eax
mov dword [esi + 0x98], eax
mov dword [esi + 0xac], eax
mov dword [esi + 0xa4], eax
lea eax, [esp + 8]
push eax
push dword [esi + 8]
call dword [sym.imp.USER32.dll_GetClientRect]
push 1
jmp 0x40c30f
and dword [esi + 0xac], 0
jmp 0x40c54d
lea eax, [esi + 0x2ec]
push eax
mov dword [esi + 0xac], 1
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edi, dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esi + 0x2cc]
push eax
push dword [esi + 8]
call edi
lea eax, [esi + 0x2dc]
push eax
push dword [esi + 8]
call edi
jmp 0x40c54d
and dword [esi + 0x9c], 0
jmp 0x40c35f
movzx eax, word [ebp + 0x10]
xor edi, edi
mov dword [0x41a364], eax
mov eax, dword [ebp + 0x10]
inc edi
shr eax, 0x10
mov dword [esi + 0x9c], edi
mov dword [0x41a368], eax
jmp 0x40c300
xor edi, edi
cmp dword [esi + 0xac], edi
je 0x40c499
cmp dword [esi + 0xc], edi
je 0x40c499
cmp dword [esi + 0xb0], edi
je 0x40c499
lea edi, [esi + 0x2f4]
push edi
call dword [sym.imp.USER32.dll_GetCursorPos]
lea ebx, [esi + 0x2bc]
push ebx
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [edi]
mov eax, dword [esi + 0x2cc]
sub eax, dword [esi + 0x304]
mov edi, dword [esi + 0x2f8]
sub edi, dword [esi + 0x2fc]
sub eax, dword [esi + 0x2ec]
mov edx, dword [esi + 0x300]
sub edi, dword [esi + 0x2f0]
sub eax, edx
sub edi, dword [esi + 0x2c0]
sub eax, dword [ebx]
sub edi, edx
mov edx, dword [esi + 0x2d8]
lea eax, [eax + ecx - 1]
mov ecx, dword [esi + 0x2d0]
lea edi, [edi + ecx - 1]
push 1
sub edx, ecx
mov ecx, dword [esi + 0x2d4]
sub ecx, dword [esi + 0x2cc]
push edx
push ecx
push edi
push eax
push dword [esi + 8]
mov dword [esi + 0x2dc], eax
mov dword [esi + 0x2e0], edi
call dword [sym.imp.USER32.dll_MoveWindow]
xor edi, edi
mov eax, dword [esi + 4]
cmp eax, edi
je 0x40c4cf
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x28], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x24], ecx
mov ecx, dword [esi + 8]
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x1c]
push ecx
push edi
push 0x407
push eax
mov dword [esp + 0x30], 0x200
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [esi + 0x98]
cmp dword [eax], edi
jne 0x40c54d
xor ebx, ebx
inc ebx
mov dword [eax], ebx
lea eax, [esp + 8]
push eax
push dword [esi + 8]
call dword [sym.imp.USER32.dll_GetClientRect]
push ebx
lea eax, [esp + 0xc]
push eax
push dword [esi + 8]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [esi + 8]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x20], 0x10
mov dword [esp + 0x24], 2
call dword [sym.imp.USER32.dll_TrackMouseEvent]
cmp byte [esi + 0x308], 0
je 0x40c54d
cmp dword [esi + 0xa0], edi
je 0x40c54d
push edi
push 0xfffffffffffffff4
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SetClassLongA]
push 0x7f89
push edi
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 8]
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_CallWindowProcA]
mov ecx, dword [esp + 0x7c]
pop edi
pop ebx
xor ecx, esp
call fcn.0040e876
mov esp, ebp
pop ebp
ret 0xc