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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x78
mov eax, dword [0x412020]
xor eax, esp
mov dword [esp + 0x74], eax
mov ecx, dword [ebp + 8]
mov eax, 0x102
cmp ecx, eax
push ebx
push edi
ja 0x409a62
je 0x4099a2
mov eax, ecx
sub eax, 7
je 0x409a37
dec eax
je 0x409a2e
dec eax
dec eax
je 0x409a23
sub eax, 5
je 0x4099a9
dec eax
je 0x4099a2
sub eax, 4
je 0x40999a
sub eax, 0x17
jne 0x409c8d
push str.WM_DRAWITEM
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x409c8d
xor eax, eax
inc eax
jmp 0x409ca2
push str.WM_CHAR
jmp 0x40998f
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 0x4099f3
push str.SelectClipRgn_ERROR
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, edi
mov ecx, esi
call fcn.00409dcb
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 0x409ca2
mov eax, dword [ebp + 0xc]
mov dword [esi + 0xa0], eax
jmp 0x409a9f
and dword [esi + 0xa4], 0
jmp 0x409a9f
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 0x409c8d
mov eax, ecx
sub eax, 0x200
je 0x409b22
dec eax
je 0x409b00
dec eax
je 0x409af7
dec eax
dec eax
je 0x409abd
dec eax
je 0x409ab1
sub eax, 0x9e
jne 0x409c8d
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 0x409a4f
and dword [esi + 0xac], 0
jmp 0x409c8d
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 0x409c8d
and dword [esi + 0x9c], 0
jmp 0x409a9f
movzx eax, word [ebp + 0x10]
xor edi, edi
mov dword [0x4161dc], eax
mov eax, dword [ebp + 0x10]
inc edi
shr eax, 0x10
mov dword [esi + 0x9c], edi
mov dword [0x4161e0], eax
jmp 0x409a40
xor edi, edi
cmp dword [esi + 0xac], edi
je 0x409bd9
cmp dword [esi + 0xc], edi
je 0x409bd9
cmp dword [esi + 0xb0], edi
je 0x409bd9
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 0x409c0f
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 0x409c8d
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 0x409c8d
cmp dword [esi + 0xa0], edi
je 0x409c8d
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.0040bfb6
mov esp, ebp
pop ebp
ret 0xc