Function at 0x5209a5
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x14]
mov edx, dword [esi]
push edi
push dword [eax + 8]
push dword [eax + 4]
lea eax, [esp + 0x20]
push eax
call dword [edx + 0xb4]
push dword [esi + 0xf0]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x520abe
push dword [esi + 0xf0]
call dword [sym.imp.USER32.dll_IsWindowVisible]
xor edi, edi
test eax, eax
jne 0x520a35
push dword [esi + 0x1c]
lea ebx, [esi + 0x13c]
push dword [esi + 0xf0]
mov dword [ebx], 1
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
push 0x40
push eax
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x20]
mov dword [ebx], edi
push eax
push dword [esp + 0x28]
push dword [esp + 0x28]
push edi
push dword [esi + 0xf0]
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp dword [ebp + 8], edi
je 0x520a5b
mov ebx, dword [esi + 0xf0]
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, ebx
je 0x520a51
push ebx
call dword [sym.imp.USER32.dll_SetFocus]
push 0xffffffffffffffff
push edi
push 0xb1
jmp 0x520aad
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x520a71
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jmp 0x520a7c
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [esp + 0x10]
push eax
push dword [esi + 0xf0]
call dword [sym.imp.USER32.dll_ScreenToClient]
movzx eax, word [esp + 0x14]
movzx ecx, word [esp + 0x10]
shl eax, 0x10
or eax, ecx
push eax
push edi
mov dword [esi + 0x12c], 1
push 0x201
push dword [esi + 0xf0]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x520caf
mov eax, dword [esi + 0x14]
mov eax, dword [eax + 0x14]
mov ebx, dword [esp + 0x24]
sub ebx, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
xor edi, edi
push edi
push edi
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, dword [esi + 0x140]
push eax
push dword [esi + 0x84]
mov eax, dword [esi + 0x144]
push dword [esp + 0x1c]
neg eax
sbb eax, eax
push ebx
push dword [esp + 0x20]
and eax, 0x800
push dword [esp + 0x34]
neg ecx
push dword [esp + 0x34]
sbb ecx, ecx
and ecx, 0x20
or eax, ecx
or eax, 0x40010080
push eax
push 0x5d0be4
push str.edit
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esi + 0xf0], eax
cmp dword [esi + 0x140], edi
je 0x520b58
push edi
push edi
push 0xd2
push eax
call ebx
mov word [esi + 0x1c4], ax
push 0xfffffffffffffffc
push dword [esi + 0xf0]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push esi
push str.dhEditProc
push dword [esi + 0xf0]
mov dword [esi + 0x11c], eax
call dword [sym.imp.USER32.dll_SetPropW]
push 0x5210e3
push 0xfffffffffffffffc
push dword [esi + 0xf0]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x521128
push edi
push 0xd0
push dword [esi + 0xf0]
call ebx
mov eax, dword [esi + 0xc4]
cmp eax, edi
jne 0x520bb4
mov eax, dword [esi + 0x14]
mov eax, dword [eax + 0x18]
push edi
push eax
push 0x30
push dword [esi + 0xf0]
call ebx
mov ecx, dword [esi + 0x1c8]
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x10], eax
cmp dword [ecx - 0xc], edi
je 0x520c0c
cmp dword [eax - 0xc], edi
jne 0x520c0c
mov eax, dword [esi + 0xf0]
mov dword [esp + 0xc], eax
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, dword [esp + 0xc]
je 0x520c0c
cmp dword [esi + 0x140], edi
je 0x520c02
push edi
push edi
push 0xcc
push dword [esp + 0x18]
call ebx
mov eax, dword [esi + 0x1c8]
mov dword [esp + 0x10], eax
push dword [esp + 0x10]
mov dword [esi + 0x13c], 1
push dword [esi + 0xf0]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 5
push dword [esi + 0xf0]
mov dword [esi + 0x13c], edi
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp + 8], edi
je 0x520c55
push dword [esi + 0xf0]
call dword [sym.imp.USER32.dll_SetFocus]
push 0xffffffffffffffff
push edi
push 0xb1
jmp 0x520ca7
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x520c6b
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jmp 0x520c76
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [esp + 0x10]
push eax
push dword [esi + 0xf0]
call dword [sym.imp.USER32.dll_ScreenToClient]
movzx eax, word [esp + 0x14]
movzx ecx, word [esp + 0x10]
shl eax, 0x10
or eax, ecx
push eax
push edi
mov dword [esi + 0x12c], 1
push 0x201
push dword [esi + 0xf0]
call ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8