Function at 0x4a81c0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 0
mov eax, dword [esi + 0x118]
push 0
push 0x37eb
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x4a842a
mov ecx, esi
call fcn.004aa710
cmp eax, 0x32
jge 0x4a8207
mov dword [esi + 0x100], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
mov eax, dword [esp + 0x20]
mov ebx, dword [sym.imp.USER32.dll_PtInRect]
movsx edi, ax
shr eax, 0x10
movsx ebp, ax
push ebp
lea ecx, [esi + 0x354]
push edi
mov dword [esi + 0xb0], edi
push ecx
mov dword [esi + 0xb4], ebp
mov dword [esi + 0xe0], 1
call ebx
test eax, eax
je 0x4a827a
push 0xffffffffffffffff
mov ecx, esi
mov byte [esi + 0x1e0], 2
call fcn.004a88f0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi]
push eax
push ecx
mov ecx, esi
call dword [edx + 0x38]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, esi
mov dword [esi + 0x40], eax
call fcn.004a8640
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esi + 4]
call fcn.004ab970
cmp dword [esi + 0xf8], 0xffffffff
jne 0x4a82d2
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
push edx
push edi
mov ecx, esi
call fcn.004a7d20
cmp edi, 4
jne 0x4a842a
mov eax, dword [esi + 8]
push eax
push eax
call dword [sym.imp.USER32.dll_GetMenu]
push eax
mov eax, dword [esi + 0x118]
push 0x37e9
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.USER32.dll_SetCapture]
lea ecx, [esi + 0x28]
call fcn.004ab1b0
mov eax, dword [esi + 0xf8]
push ebp
mov edx, eax
push edi
shl edx, 7
add edx, eax
mov eax, dword [esi + 0xe8]
lea ecx, [eax + edx*4 + 0x1b8]
push ecx
call ebx
test eax, eax
je 0x4a842a
mov ebx, 4
push 0xffffffffffffffff
mov ecx, esi
mov byte [esi + 0x1e0], bl
call fcn.004a88f0
mov eax, dword [esi + 0xf8]
mov ecx, dword [esi + 0xe8]
mov edx, eax
shl edx, 7
add edx, eax
cmp byte [ecx + edx*4 + 0x44], 0
jne 0x4a836b
cmp dword [esp + 0x1c], ebx
jne 0x4a842a
mov eax, dword [esi + 8]
push eax
push eax
call dword [sym.imp.USER32.dll_GetMenu]
mov edx, dword [esi + 0x118]
push eax
push 0x37e9
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
cmp dword [esi + 0xfc], 0xffffffff
jne 0x4a837a
mov dword [esi + 0xfc], eax
mov ebx, 1
push eax
mov ecx, esi
mov dword [esi + 0x100], ebx
call fcn.004a88f0
mov eax, dword [esi + 0x6c]
test eax, eax
je 0x4a840a
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [esi + 8]
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esi + 0xb0]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
sub eax, ecx
mov ecx, dword [esi + 0xb4]
sub ecx, edx
test eax, eax
jge 0x4a83d4
neg eax
test ecx, ecx
jge 0x4a83da
neg ecx
mov edx, dword [esi + 0xfc]
cmp edx, dword [esi + 0xf8]
jne 0x4a840a
cmp eax, ecx
jle 0x4a840a
push ebx
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 8
test al, al
je 0x4a840a
mov dword [esi + 0xac], ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
mov ebx, dword [esp + 0x1c]
cmp ebx, 5
je 0x4a8420
mov ecx, dword [esp + 0x20]
mov eax, dword [esi]
push ecx
push ebx
mov ecx, esi
call dword [eax + 0x38]
push ebx
push ebp
push edi
mov ecx, esi
call fcn.004aa730
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8