Function at 0x409622
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 0x409752
je 0x409692
mov eax, ecx
sub eax, 7
je 0x409727
dec eax
je 0x40971e
dec eax
dec eax
je 0x409713
sub eax, 5
je 0x409699
dec eax
je 0x409692
sub eax, 4
je 0x40968a
sub eax, 0x17
jne 0x40997d
push str.WM_DRAWITEM
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x40997d
xor eax, eax
inc eax
jmp 0x409992
push str.WM_CHAR
jmp 0x40967f
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 0x4096e3
push str.SelectClipRgn_ERROR
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, edi
mov ecx, esi
call fcn.00409abb
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 0x409992
mov eax, dword [ebp + 0xc]
mov dword [esi + 0xa0], eax
jmp 0x40978f
and dword [esi + 0xa4], 0
jmp 0x40978f
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 0x40997d
mov eax, ecx
sub eax, 0x200
je 0x409812
dec eax
je 0x4097f0
dec eax
je 0x4097e7
dec eax
dec eax
je 0x4097ad
dec eax
je 0x4097a1
sub eax, 0x9e
jne 0x40997d
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 0x40973f
and dword [esi + 0xac], 0
jmp 0x40997d
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 0x40997d
and dword [esi + 0x9c], 0
jmp 0x40978f
movzx eax, word [ebp + 0x10]
xor edi, edi
mov dword [0x4151b4], eax
mov eax, dword [ebp + 0x10]
inc edi
shr eax, 0x10
mov dword [esi + 0x9c], edi
mov dword [0x4151b8], eax
jmp 0x409730
xor edi, edi
cmp dword [esi + 0xac], edi
je 0x4098c9
cmp dword [esi + 0xc], edi
je 0x4098c9
cmp dword [esi + 0xb0], edi
je 0x4098c9
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 0x4098ff
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 0x40997d
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 0x40997d
cmp dword [esi + 0xa0], edi
je 0x40997d
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.0040ba0c
mov esp, ebp
pop ebp
ret 0xc