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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x5f0524]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [edi], 0
cmp esi, 0x113
ja 0x48dbd2
je 0x48da8e
lea eax, [esi - 2]
cmp eax, 0x82
ja case.0x48d9d8.3
movzx eax, byte [eax + 0x48dd2c]
jmp dword [eax*4 + 0x48dd14]
mov dword [ebx + 0x98], 0
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0051a19b
mov esp, ebp
pop ebp
ret 0x10
call fcn.0048c1f0
mov dword [edi], 0
jmp 0x48dcfc
cmp byte [ebx + 0x109], 0
je 0x48da32
push 2
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x48da32
push 4
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns case.0x48d9d8.3
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push dword [ebx + 0x98]
call dword [sym.imp.USER32.dll_DefWindowProcW]
or ecx, 0xffffffff
cmp eax, 1
cmove eax, ecx
mov dword [edi], eax
jmp 0x48dcfc
cmp byte [ebx + 0x109], 0
je 0x48da6a
call fcn.004fd921
push 0x7f89
jmp 0x48da74
call fcn.004fd921
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov dword [edi], 1
jmp 0x48dcfc
cmp dword [ebp + 0x10], 1
jne case.0x48d9d8.3
cmp byte [ebx + 0x150], 0
mov byte [ebx + 0x168], 1
jne 0x48dbc6
call fcn.00437520
mov edi, eax
mov ecx, edx
mov eax, dword [ebx + 0x158]
mov esi, edi
cdq
mov dword [esp + 0x10], edx
mov edx, dword [ebx + 0x160]
sub esi, edx
mov dword [esp + 0x14], ecx
sbb ecx, dword [ebx + 0x164]
cmp ecx, dword [esp + 0x10]
jl 0x48dbc6
jg 0x48dae8
cmp esi, eax
jb 0x48dbc6
mov ecx, edi
sub ecx, eax
mov eax, dword [esp + 0x14]
sbb eax, dword [esp + 0x10]
sub ecx, edx
mov dword [esp + 0x10], ecx
sbb eax, dword [ebx + 0x164]
mov dword [esp + 0x18], eax
lea eax, [ebx + 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebx + 0xe8]
push dword [ebx + 0x154]
mov eax, dword [ecx]
call dword [eax + 0x48]
mov ecx, dword [ebx + 0xe8]
inc dword [ebx + 0x154]
mov dword [ebx + 0x15c], eax
mov eax, dword [ecx]
call dword [eax + 0x2c]
cmp dword [ebx + 0x154], eax
jl 0x48db4b
mov dword [ebx + 0x154], 0
mov ecx, dword [ebx + 0xe8]
mov esi, dword [ecx]
call dword [esi + 0x2c]
mov ecx, eax
xor edx, edx
mov eax, dword [ebx + 0x154]
inc eax
div ecx
mov ecx, dword [ebx + 0xe8]
push eax
call dword [esi + 0x44]
mov dword [ebx + 0x158], eax
cdq
sub eax, dword [esp + 0x10]
sbb edx, dword [esp + 0x18]
test edx, edx
jg 0x48db95
jl 0x48db86
test eax, eax
jae 0x48db95
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
mov eax, dword [esp + 0x18]
jmp 0x48db99
mov dword [esp + 0x1c], edx
mov dword [ebx + 0x158], eax
mov eax, dword [esp + 0x14]
mov dword [ebx + 0x164], eax
lea eax, [ebx + 0x138]
push eax
mov dword [ebx + 0x160], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xdc]
mov byte [ebx + 0x168], 0
jmp 0x48dcfc
cmp esi, 0x202
ja 0x48dce7
je 0x48dcb7
sub esi, 0x200
je 0x48dc5d
sub esi, 1
jne case.0x48d9d8.3
push dword [ebx + 0x30]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.004f4693
lea eax, [esp + 0x18]
mov byte [ebx + 0x10a], 1
push eax
mov dword [ebx + 0x10c], esi
mov dword [ebx + 0x110], esi
mov dword [ebx + 0x114], esi
mov dword [ebx + 0x118], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0x10c], ecx
mov dword [ebx + 0x110], eax
mov dword [ebx + 0x114], ecx
mov dword [ebx + 0x118], eax
mov dword [edi], esi
jmp 0x48dcfc
cmp byte [ebx + 0x10a], 0
je 0x48dcfc
mov eax, dword [ebp + 0x14]
xorps xmm0, xmm0
movsx edi, ax
shr eax, 0x10
movsx esi, ax
lea eax, [esp + 0x18]
push eax
push dword [ebx + 0x30]
movups xmmword [esp + 0x20], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
add esi, dword [esp + 0x1c]
mov ecx, ebx
add edi, dword [esp + 0x18]
sub esi, dword [ebx + 0x118]
sub edi, dword [ebx + 0x114]
mov eax, dword [ebx]
push esi
push edi
call dword [eax + 0x54]
add dword [ebx + 0x114], edi
add dword [ebx + 0x118], esi
jmp 0x48dcfc
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
mov dword [esp + 0x20], 0
call dword [sym.imp.USER32.dll_GetCursorPos]
mov byte [ebx + 0x10a], 0
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov dword [edi], 0
jmp 0x48dcfc
cmp esi, 0x40f
jne case.0x48d9d8.3
mov eax, dword [ebx + 0x10]
lea ecx, [ebx + 0x10]
call dword [eax + 0x60]
mov ecx, dword [esp + 0x2c]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0051a19b
mov esp, ebp
pop ebp
ret 0x10