Function at 0x4a2c20
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov dword [esi + 0x179cc], 1
call dword [sym.imp.USER32.dll_GetMessagePos]
mov edi, eax
movsx eax, di
mov ecx, edi
mov dword [esp + 0x10], eax
shr ecx, 0x10
movsx edx, cx
mov ecx, dword [esi + 4]
lea eax, [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ScreenToClient]
push 2
mov ecx, esi
call fcn.004ab670
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
lea ecx, [esi + 0x12e8]
push eax
push ecx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4a2ca6
push 1
mov ecx, esi
call fcn.004a4f10
mov edx, dword [esi + 4]
lea ecx, [esi + 0x2c]
push edx
mov dword [esi + 0x179b8], 1
call fcn.004aae80
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov eax, dword [esi + 0x17984]
test eax, eax
jle 0x4a2e5d
lea eax, [esp + 0xc]
mov ecx, esi
push eax
call fcn.004a2190
mov ecx, dword [esi + 0x1348]
mov ebx, eax
mov eax, dword [ecx + 0x34]
test eax, eax
je 0x4a2d66
mov eax, dword [esi + 0x179ac]
test eax, eax
jne 0x4a2d66
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 8
test al, al
je 0x4a2d66
cmp dword [esi + 0x179a8], edi
je 0x4a2d66
mov eax, dword [esi + 0x179b4]
test eax, eax
jne 0x4a2d66
cmp ebx, 0xffffffff
jne 0x4a2d26
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
lea ecx, [esi + 0x17b0c]
push eax
push ecx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x4a2e21
mov eax, dword [esi + 0x179bc]
test eax, eax
je 0x4a2d66
mov edx, dword [esi + 0x17988]
cmp dword [esi + edx*4 + 0x1736c], ebx
je 0x4a2d66
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
and eax, 0xffff
and ecx, 0xffff
shl eax, 0x10
or eax, ecx
mov ecx, esi
push eax
call fcn.004a45d0
pop edi
pop esi
pop ebx
add esp, 0xc
ret
or edi, 0xffffffff
cmp ebx, edi
je 0x4a2e21
mov eax, dword [esi + 0x17994]
cmp eax, ebx
je 0x4a2dc3
mov dword [esi + 0x17994], ebx
mov dword [esi + 0x1799c], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x179a4], eax
mov eax, dword [esi + 0x1348]
mov ecx, dword [eax + 0x78]
test ecx, ecx
je 0x4a2db5
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 edi
push 0
mov ecx, esi
call fcn.004a0e60
jmp 0x4a2e36
mov ecx, dword [esi + 0x17988]
cmp eax, dword [esi + ecx*4 + 0x1736c]
je 0x4a2dda
cmp dword [esi + 0x1799c], edi
je 0x4a2e36
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
lea ecx, [esi + 0x12d8]
push eax
push ecx
call dword [sym.imp.USER32.dll_PtInRect]
mov ecx, dword [esi + 0x179ac]
test ecx, ecx
je 0x4a2e05
mov ecx, dword [esi + 0x179b0]
test ecx, ecx
jne 0x4a2e0d
cmp dword [esi + 0x179b0], eax
je 0x4a2e36
push 0
push edi
push 0
mov ecx, esi
mov dword [esi + 0x179b0], eax
call fcn.004a0e60
jmp 0x4a2e36
push 0
mov ecx, esi
call fcn.004a4f10
mov edx, dword [esi + 4]
lea ecx, [esi + 0x2c]
push edx
call fcn.004aae30
cmp dword [esi + 0x1344], ebx
je 0x4a2e5d
mov eax, dword [esi + 4]
lea edi, [esi + 0x2c]
push eax
mov ecx, edi
mov dword [esi + 0x1344], ebx
call fcn.004aae80
mov ecx, dword [esi + 4]
push ecx
mov ecx, edi
call fcn.004aae30
pop edi
pop esi
pop ebx
add esp, 0xc
ret