Function at 0x4c0bf0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esi + 0x17be4], 1
call dword [sym.imp.USER32.dll_GetMessagePos]
mov edi, eax
movsx eax, di
mov ecx, edi
mov dword [esp + 0x14], eax
shr ecx, 0x10
movsx edx, cx
mov ecx, dword [esi + 4]
lea eax, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x20], edx
call dword [sym.imp.USER32.dll_ScreenToClient]
push 2
mov ecx, esi
call fcn.004d1640
mov eax, dword [esi + 0x17b9c]
mov ebp, dword [sym.imp.USER32.dll_PtInRect]
xor ebx, ebx
cmp eax, ebx
jle 0x4c0cb0
cmp dword [esi + 0x17d54], ebx
je 0x4c0c91
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push edx
lea ecx, [esi + 0x17d34]
push eax
push ecx
call ebp
test eax, eax
je 0x4c0c91
push ebx
push ebx
push 0xffffffffffffffff
push ebx
mov ecx, esi
mov dword [esi + 0x17bd0], ebx
mov dword [esi + 0x17bc8], ebx
mov dword [esi + 0x17bac], 0xffffffff
call fcn.004be910
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
cmp dword [esi + 0x17d58], ebx
je 0x4c0cb0
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push edx
lea ecx, [esi + 0x17d44]
push eax
push ecx
call ebp
test eax, eax
jne 0x4c0c67
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push edx
lea ecx, [esi + 0x14f8]
push eax
push ecx
call ebp
test eax, eax
je 0x4c0cee
push 1
mov ecx, esi
call fcn.004c3200
mov edx, dword [esi + 4]
lea ecx, [esi + 0x2c]
push edx
mov dword [esi + 0x17bd0], 1
call fcn.004d0e30
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
cmp dword [esi + 0x17b9c], ebx
jle 0x4c0ea0
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call fcn.004c00b0
mov ecx, dword [esi + 0x155c]
mov ebx, eax
mov eax, dword [ecx + 0x34]
test eax, eax
je 0x4c0da9
mov eax, dword [esi + 0x17bc4]
test eax, eax
jne 0x4c0da9
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 8
test al, al
je 0x4c0da9
cmp dword [esi + 0x17bc0], edi
je 0x4c0da9
mov eax, dword [esi + 0x17bcc]
test eax, eax
jne 0x4c0da9
cmp ebx, 0xffffffff
jne 0x4c0d68
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push edx
lea ecx, [esi + 0x17d24]
push eax
push ecx
call ebp
test eax, eax
jne 0x4c0e64
mov eax, dword [esi + 0x17bd4]
test eax, eax
je 0x4c0da9
mov edx, dword [esi + 0x17ba0]
cmp dword [esi + edx*4 + 0x17584], ebx
je 0x4c0da9
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
and eax, 0xffff
and ecx, 0xffff
shl eax, 0x10
or eax, ecx
mov ecx, esi
push eax
call fcn.004c2840
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
or edi, 0xffffffff
cmp ebx, edi
je 0x4c0e64
mov eax, dword [esi + 0x17bac]
cmp eax, ebx
je 0x4c0e08
mov dword [esi + 0x17bac], ebx
mov dword [esi + 0x17bb4], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x17bbc], eax
mov eax, dword [esi + 0x155c]
mov ecx, dword [eax + 0x78]
test ecx, ecx
je 0x4c0df8
mov edx, dword [eax + 0x74]
mov eax, dword [esi + 4]
push 0
push edx
push 0x100
push eax
call dword [sym.imp.USER32.dll_SetTimer]
push 0
push 0
push edi
push 0
mov ecx, esi
call fcn.004be910
jmp 0x4c0e79
mov ecx, dword [esi + 0x17ba0]
cmp eax, dword [esi + ecx*4 + 0x17584]
je 0x4c0e1f
cmp dword [esi + 0x17bb4], edi
je 0x4c0e79
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push edx
lea ecx, [esi + 0x14e8]
push eax
push ecx
call ebp
mov ecx, dword [esi + 0x17bc4]
test ecx, ecx
je 0x4c0e46
mov ecx, dword [esi + 0x17bc8]
test ecx, ecx
jne 0x4c0e4e
cmp dword [esi + 0x17bc8], eax
je 0x4c0e79
push 0
push 0
push edi
push 0
mov ecx, esi
mov dword [esi + 0x17bc8], eax
call fcn.004be910
jmp 0x4c0e79
push 0
mov ecx, esi
call fcn.004c3200
mov edx, dword [esi + 4]
lea ecx, [esi + 0x2c]
push edx
call fcn.004d0de0
cmp dword [esi + 0x1558], ebx
je 0x4c0ea0
mov eax, dword [esi + 4]
lea edi, [esi + 0x2c]
push eax
mov ecx, edi
mov dword [esi + 0x1558], ebx
call fcn.004d0e30
mov ecx, dword [esi + 4]
push ecx
mov ecx, edi
call fcn.004d0de0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret