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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x78
mov eax, dword [0x411020]
xor eax, esp
mov dword [esp + 0x74], eax
mov ecx, dword [ebp + 8]
mov eax, 0x102
cmp ecx, eax
push ebx
push edi
ja 0x408bb2
je 0x408af2
mov eax, ecx
sub eax, 7
je 0x408b87
dec eax
je 0x408b7e
dec eax
dec eax
je 0x408b73
sub eax, 5
je 0x408af9
dec eax
je 0x408af2
sub eax, 4
je 0x408aea
sub eax, 0x17
jne 0x408ddd
push str.WM_DRAWITEM
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x408ddd
xor eax, eax
inc eax
jmp 0x408df2
push str.WM_CHAR
jmp 0x408adf
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 0x408b43
push str.SelectClipRgn_ERROR
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, edi
mov ecx, esi
call fcn.00408f1b
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 0x408df2
mov eax, dword [ebp + 0xc]
mov dword [esi + 0xa0], eax
jmp 0x408bef
and dword [esi + 0xa4], 0
jmp 0x408bef
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 0x408ddd
mov eax, ecx
sub eax, 0x200
je 0x408c72
dec eax
je 0x408c50
dec eax
je 0x408c47
dec eax
dec eax
je 0x408c0d
dec eax
je 0x408c01
sub eax, 0x9e
jne 0x408ddd
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 0x408b9f
and dword [esi + 0xac], 0
jmp 0x408ddd
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 0x408ddd
and dword [esi + 0x9c], 0
jmp 0x408bef
movzx eax, word [ebp + 0x10]
xor edi, edi
mov dword [0x4151e4], eax
mov eax, dword [ebp + 0x10]
inc edi
shr eax, 0x10
mov dword [esi + 0x9c], edi
mov dword [0x4151e8], eax
jmp 0x408b90
xor edi, edi
cmp dword [esi + 0xac], edi
je 0x408d29
cmp dword [esi + 0xc], edi
je 0x408d29
cmp dword [esi + 0xb0], edi
je 0x408d29
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 0x408d5f
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 0x408ddd
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 0x408ddd
cmp dword [esi + 0xa0], edi
je 0x408ddd
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.0040aad0
mov esp, ebp
pop ebp
ret 0xc