Function at 0x4d7a70
Capabilities:
Check for unmoving mouse cursor
Log keystrokes via polling

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_SetCapture]
xor ebx, ebx
mov dword [esi + 0x18bd8], ebx
call dword [sym.imp.USER32.dll_GetMessagePos]
mov dword [esi + 0x18bc0], eax
movsx ecx, ax
shr eax, 0x10
movsx edx, ax
mov dword [esp + 0xc], ecx
mov ecx, dword [esi + 4]
lea eax, [esp + 0xc]
mov dword [esp + 0x10], edx
push eax
push ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov edx, dword [esi + 0x215c]
mov edi, dword [sym.imp.USER32.dll_PtInRect]
cmp dword [edx + 0x30], ebx
je 0x4d7afe
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push eax
lea edx, [esi + 0x20e8]
push ecx
push edx
call edi
test eax, eax
je 0x4d7afe
mov ecx, esi
mov dword [esi + 0x18bc4], 1
mov dword [esi + 0x18bc0], ebx
call fcn.004d7e30
pop edi
pop esi
pop ebx
add esp, 8
ret 4
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push eax
lea edx, [esi + 0x20f8]
push ecx
push edx
call edi
test eax, eax
je 0x4d7b3b
mov ecx, esi
mov dword [esi + 0x18bdc], ebx
mov dword [esi + 0x18bcc], 1
mov dword [esi + 0x18bc0], ebx
call fcn.004d7e30
pop edi
pop esi
pop ebx
add esp, 8
ret 4
mov eax, dword [esi + 0x18ba0]
mov dword [esi + 0x18bd4], 1
push 0x11
mov ebx, dword [esi + eax*4 + 0x18584]
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 8
test al, al
je 0x4d7b83
cmp dword [esi + 0x18b9c], 1
jle 0x4d7b83
mov ecx, dword [esi + 0x215c]
mov eax, dword [ecx + 0x7c]
test eax, eax
je 0x4d7b83
mov ecx, esi
call fcn.004d8ab0
jmp 0x4d7cf3
mov eax, dword [esi + 0x18d54]
test eax, eax
je 0x4d7bcc
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push edx
lea ecx, [esi + 0x18d34]
push eax
push ecx
call edi
test eax, eax
je 0x4d7bcc
mov eax, dword [esi + 0x18ba4]
mov ecx, dword [esi + 0x18ba0]
dec eax
cmp ecx, eax
jne 0x4d7c15
push 0
push 0x1000
mov ecx, esi
call fcn.004d84a0
pop edi
pop esi
pop ebx
add esp, 8
ret 4
mov eax, dword [esi + 0x18d58]
test eax, eax
je 0x4d7c26
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push edx
lea ecx, [esi + 0x18d44]
push eax
push ecx
call edi
test eax, eax
je 0x4d7c26
mov eax, dword [esi + 0x18ba8]
mov ecx, dword [esi + 0x18ba0]
inc eax
cmp ecx, eax
jne 0x4d7c15
push 0
push 0x1001
mov ecx, esi
call fcn.004d84a0
pop edi
pop esi
pop ebx
add esp, 8
ret 4
push eax
mov ecx, esi
call fcn.004d7820
pop edi
pop esi
pop ebx
add esp, 8
ret 4
lea edx, [esi + 0x1e58]
mov ecx, esi
push edx
call fcn.004d72b0
mov edi, eax
cmp edi, 0xffffffff
je 0x4d7ccf
cmp edi, ebx
je 0x4d7c69
push 0
push edi
mov ecx, esi
mov dword [esi + 0x18bd8], 1
call fcn.004d7840
lea eax, [esi + 0x1e50]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
jmp 0x4d7cf3
mov eax, dword [esi + 0x215c]
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x4d7caa
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x4d7caa
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push eax
push ecx
push edi
mov ecx, esi
call fcn.004d9810
test eax, eax
je 0x4d7caa
push edi
mov ecx, esi
call fcn.004d82d0
lea eax, [esi + 0x1e50]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
jmp 0x4d7cf3
mov edx, dword [esi + 0x210c]
push 0
push 5
push 0xfc7
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esi + 0x1e50]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
jmp 0x4d7cf3
mov dword [esi + 0x18bd4], 0
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x18d68]
push ecx
push edx
call fcn.004ee3d0
add esp, 8
xor eax, eax
pop edi
mov dword [esi + 0x18bdc], eax
mov dword [esi + 0x18be0], eax
pop esi
pop ebx
add esp, 8
ret 4