Function at 0x4a9cc0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x12
call esi
mov ecx, 0x8000
test cx, ax
jne 0x4aa214
push ebx
push 0x10
call esi
mov ebx, eax
push 0x11
and ebx, 0x8000
call esi
mov edx, eax
mov eax, dword [ebp + 0xc]
and edx, 0x8000
lea ecx, [eax - 0xd]
cmp ecx, 0x66
ja case.default.0x4a9d0f
movzx ecx, byte [ecx + 0x4aa248]
push edi
jmp dword [ecx*4 + 0x4aa21c]
cmp eax, 0x73
je case.0x4a9d0f.23
mov edi, dword [ebp + 8]
test byte [edi + 0xfe4], 4
je 0x4a9d99
cmp eax, 0x26
jne 0x4a9d99
movzx eax, word [edi + 0xfe8]
mov ecx, edi
mov esi, dword [edi + 0xffc]
and eax, 0x80
push eax
push dword [edi + 0x1000]
mov dword [ebp + 8], eax
call fcn.004aaa50
lea ecx, [ebp + 8]
push ecx
mov ecx, eax
cwde
shr ecx, 0x10
movsx ecx, cx
sub ecx, dword [edi + 0xfdc]
push ecx
push eax
mov ecx, edi
call fcn.004a8bd0
push dword [ebp + 8]
mov ecx, dword [edi]
test ebx, ebx
push eax
cmove esi, eax
push esi
push edi
call dword [ecx + 0x190]
mov ecx, edi
call fcn.004ab480
mov ecx, edi
call fcn.004abeb0
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov ecx, edi
test edx, edx
je 0x4a9e36
mov esi, dword [edi + 0x1000]
mov eax, dword [edi + 0xffc]
push esi
mov dword [ebp - 8], eax
call fcn.004a8fe0
push esi
mov ecx, edi
mov dword [ebp + 8], eax
call fcn.004a90f0
push dword [ebp + 8]
mov ecx, edi
mov dword [ebp + 0xc], eax
call fcn.004a9050
mov ecx, esi
mov dword [ebp - 4], eax
sub ecx, eax
jne 0x4a9df9
mov eax, dword [ebp + 8]
test eax, eax
je 0x4a9e0c
dec eax
mov ecx, edi
push eax
call fcn.004a9050
mov esi, eax
mov ecx, edi
push esi
call fcn.004a90f0
add eax, esi
mov esi, eax
jmp 0x4a9e0c
push 0
push dword [ebp + 0xc]
push ecx
push eax
mov ecx, edi
call fcn.004a89e0
mov esi, eax
add esi, dword [ebp - 4]
mov eax, dword [edi]
test ebx, ebx
push 0
push esi
cmovne esi, dword [ebp - 8]
push esi
push edi
call dword [eax + 0x190]
mov ecx, edi
call fcn.004ab480
mov ecx, edi
call fcn.004abeb0
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0x10
push ebx
call fcn.004a93c0
mov ecx, edi
call fcn.004abeb0
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov edi, dword [ebp + 8]
test byte [edi + 0xfe4], 4
je 0x4a9e75
cmp eax, 0x28
jne 0x4a9e75
push ebx
mov ecx, edi
call fcn.004a9430
mov ecx, edi
call fcn.004abeb0
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov ecx, edi
test edx, edx
je 0x4a9f1e
mov esi, dword [edi + 0x1000]
mov eax, dword [edi + 0xffc]
push esi
mov dword [ebp - 4], eax
call fcn.004a8fe0
push esi
mov ecx, edi
mov dword [ebp + 8], eax
call fcn.004a90f0
push dword [ebp + 8]
mov ecx, edi
mov dword [ebp + 0xc], eax
call fcn.004a9050
mov edx, dword [ebp + 0xc]
mov ecx, eax
mov eax, esi
mov dword [ebp - 8], ecx
sub eax, ecx
cmp eax, edx
jne 0x4a9ee2
test byte [edi + 0xfe4], 4
je 0x4a9ef4
mov eax, dword [edi + 0x1030]
mov ecx, dword [ebp + 8]
dec eax
cmp ecx, eax
je 0x4a9ef4
lea eax, [ecx + 1]
mov ecx, edi
push eax
call fcn.004a9050
mov esi, eax
jmp 0x4a9ef4
push 1
push edx
inc eax
push eax
push ecx
mov ecx, edi
call fcn.004a89e0
mov esi, eax
add esi, dword [ebp - 8]
mov eax, dword [edi]
test ebx, ebx
push 0
push esi
cmovne esi, dword [ebp - 4]
push esi
push edi
call dword [eax + 0x190]
mov ecx, edi
call fcn.004ab480
mov ecx, edi
call fcn.004abeb0
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0x10
push ebx
call fcn.004a9520
mov ecx, edi
call fcn.004abeb0
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov edi, dword [ebp + 8]
test edx, edx
je 0x4a9f61
mov eax, dword [edi]
push 0
push 0
push 0
push edi
call dword [eax + 0x190]
mov ecx, edi
call fcn.004ab480
mov ecx, edi
call fcn.004abeb0
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0x10
push ebx
mov ecx, edi
call fcn.004a9590
mov ecx, edi
call fcn.004abeb0
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov edi, dword [ebp + 8]
test edx, edx
je 0x4a9fb5
mov eax, dword [edi + 0xfcc]
test eax, eax
je 0x4a9fb5
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [edi]
push 0
push eax
push eax
push edi
call dword [ecx + 0x190]
mov ecx, edi
call fcn.004ab480
mov ecx, edi
call fcn.004abeb0
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0x10
push ebx
mov ecx, edi
call fcn.004a94a0
mov ecx, edi
call fcn.004abeb0
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov edi, dword [ebp + 8]
mov ecx, edi
movzx eax, word [edi + 0xfe8]
mov esi, dword [edi + 0xffc]
and eax, 0x80
push eax
push dword [edi + 0x1000]
mov dword [ebp + 8], eax
call fcn.004aaa50
lea ecx, [ebp + 8]
push ecx
mov ecx, eax
cwde
shr ecx, 0x10
movsx ecx, cx
sub ecx, dword [edi + 0x101c]
add ecx, dword [edi + 0x1014]
push ecx
push eax
mov ecx, edi
call fcn.004a8bd0
push dword [ebp + 8]
mov edx, dword [edi]
test ebx, ebx
push eax
cmove esi, eax
push esi
push edi
call dword [edx + 0x190]
mov ecx, edi
call fcn.004ab480
mov ecx, edi
call fcn.004abeb0
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov edi, dword [ebp + 8]
mov ecx, edi
movzx eax, word [edi + 0xfe8]
mov esi, dword [edi + 0xffc]
and eax, 0x80
push eax
push dword [edi + 0x1000]
mov dword [ebp + 8], eax
call fcn.004aaa50
lea ecx, [ebp + 8]
push ecx
mov ecx, eax
cwde
shr ecx, 0x10
movsx ecx, cx
sub ecx, dword [edi + 0x1014]
add ecx, dword [edi + 0x101c]
push ecx
push eax
mov ecx, edi
call fcn.004a8bd0
push dword [ebp + 8]
mov edx, dword [edi]
test ebx, ebx
push eax
cmove esi, eax
push esi
push edi
call dword [edx + 0x190]
mov ecx, edi
call fcn.004ab480
mov ecx, edi
call fcn.004abeb0
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [ebp + 8]
test dword [esi + 0xfe4], 0x800
jne case.0x4a9d0f.23
test ebx, ebx
je 0x4aa0d0
test edx, edx
jne case.0x4a9d0f.23
mov eax, dword [esi + 0xffc]
cmp eax, dword [esi + 0x1000]
je 0x4aa11f
mov ecx, esi
test ebx, ebx
je 0x4aa18b
call fcn.004a9810
test dword [esi + 0xfe4], 0x800
jne 0x4aa190
push 1
push 1
push 0x53bb14
push 1
mov ecx, esi
call fcn.004aae40
mov ecx, esi
call fcn.004abeb0
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [esi]
push 0
push 0
push 0xffffffffffffffff
push esi
test ebx, ebx
je 0x4aa152
call dword [eax + 0x190]
push 1
mov ecx, esi
call fcn.004a93c0
mov ecx, esi
call fcn.004a97f0
mov ecx, esi
call fcn.004abeb0
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [eax + 0x190]
test edx, edx
je 0x4aa17e
call eax
push 1
mov ecx, esi
call fcn.004a94a0
mov ecx, esi
call fcn.004a97f0
mov ecx, esi
call fcn.004abeb0
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0x10
call eax
push 1
mov ecx, esi
call fcn.004a9520
mov ecx, esi
call fcn.004a97f0
mov ecx, esi
call fcn.004abeb0
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0x10
test ebx, ebx
je 0x4aa1ca
mov esi, dword [ebp + 8]
test dword [esi + 0xfe4], 0x800
jne case.0x4a9d0f.23
mov ecx, esi
call fcn.004aa580
mov ecx, esi
call fcn.004abeb0
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0x10
test edx, edx
je case.0x4a9d0f.23
mov ecx, dword [ebp + 8]
call fcn.004a9810
mov ecx, dword [ebp + 8]
call fcn.004abeb0
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 8]
test dword [eax + 0xfe4], 0x1000
jne case.0x4a9d0f.23
push dword [eax + 0xc38]
call dword [sym.imp.USER32.dll_GetParent]
push 0
push 0
push 0x400
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0x10