Function at 0x4a9ec5
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, 0x4d6294
call fcn.004ae504
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call fcn.004c5224
test eax, eax
mov dword [ebp - 0x14], eax
jne 0x4a9ef0
and dword [ebp - 0x20], eax
jmp 0x4a9ef6
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp + 8]
test ecx, ecx
jne 0x4a9f02
and dword [ebp - 0x24], ecx
jmp 0x4a9f08
mov ecx, dword [ecx + 0x1c]
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ecx + 4]
cmp ebx, 0x100
mov dword [ebp - 0x18], ebx
jb 0x4a9f21
cmp ebx, 0x108
jbe 0x4a9f39
cmp ebx, 0x200
jb 0x4a9fde
cmp ebx, 0x209
ja 0x4a9fde
test eax, eax
mov esi, eax
je 0x4a9f8f
mov edi, dword [sym.imp.USER32.dll_GetParent]
cmp dword [esi + 0x38], 0
jne 0x4a9f6c
push dword [esi + 0x1c]
call edi
push eax
call fcn.004c5224
cmp eax, dword [ebp + 8]
je 0x4a9f6c
push dword [esi + 0x1c]
call edi
push eax
call fcn.004c5224
mov esi, eax
test esi, esi
jne 0x4a9f45
test esi, esi
je 0x4a9f8f
mov eax, dword [esi + 0x38]
test eax, eax
je 0x4a9f8f
mov eax, dword [eax + 0x54]
test eax, eax
je 0x4a9f8f
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test eax, eax
je 0x4aa063
cmp ebx, 0x101
je 0x4a9fa7
cmp ebx, 0x100
je 0x4a9fa7
cmp ebx, 0x102
jne 0x4a9fde
test esi, esi
je 0x4a9fde
mov esi, dword [esi + 0x38]
test esi, esi
je 0x4a9fde
mov eax, dword [ebp + 0xc]
mov ax, word [eax + 8]
cmp ax, 0xd
jne 0x4a9fc8
test byte [esi + 0x80], 1
jne 0x4a9fd7
cmp ax, 0x1b
jne 0x4a9fde
test byte [esi + 0x80], 2
je 0x4a9fde
xor eax, eax
jmp 0x4aa145
mov eax, dword [ebp + 0xc]
push dword [eax]
call fcn.004c5224
mov edi, eax
mov eax, dword [ebp - 0x18]
xor esi, esi
push 2
sub eax, 0x100
mov dword [ebp - 0x1c], esi
pop ebx
je 0x4aa08d
sub eax, ebx
je 0x4aa033
sub eax, 4
jne 0x4aa0c7
cmp dword [ebp - 0x14], esi
jne 0x4aa023
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x4aa0c7
mov esi, dword [ebp + 0xc]
cmp word [esi + 8], 0x20
je 0x4aa0c7
jmp 0x4aa036
mov esi, dword [ebp + 0xc]
cmp edi, dword [ebp + 8]
je 0x4aa063
push esi
push edi
call fcn.004a98e4
cmp dword [ebp - 0x18], 0x102
jne 0x4aa04f
test al, 0x84
jne 0x4aa0c7
mov cx, word [esi + 8]
cmp cx, 9
jne 0x4aa05d
test bl, al
jne 0x4aa0c7
cmp cx, 0x20
jne 0x4aa06b
push 1
pop eax
jmp 0x4aa145
push esi
push edi
push dword [ebp + 8]
call fcn.004a9b3f
test eax, eax
je 0x4aa0c7
mov eax, dword [eax + 0x38]
test eax, eax
je 0x4aa0c7
push esi
mov ecx, eax
call fcn.004a57fa
jmp 0x4aa246
push dword [ebp + 0xc]
push edi
call fcn.004a98e4
mov ecx, dword [ebp + 0xc]
movzx ecx, word [ecx + 8]
cmp ecx, 0x1b
jg 0x4aa1ab
je 0x4aa1f6
cmp ecx, 3
je 0x4aa1f6
cmp ecx, 9
je 0x4aa156
cmp ecx, 0xd
je 0x4aa1cf
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_IsDialogMessageA]
mov edi, eax
test edi, edi
je 0x4aa0fe
mov esi, dword [sym.imp.USER32.dll_GetFocus]
call esi
push eax
call fcn.004c5224
cmp eax, dword [ebp - 0x14]
je 0x4aa0fe
call esi
push eax
call fcn.004c5224
push eax
call fcn.004a9bb4
pop ecx
push dword [ebp - 0x20]
mov esi, dword [sym.imp.USER32.dll_IsWindow]
call esi
test eax, eax
je 0x4aa143
mov ebx, dword [sym.imp.USER32.dll_GetFocus]
call ebx
push eax
call fcn.004c5224
push eax
push dword [ebp - 0x14]
call fcn.004a9c11
pop ecx
pop ecx
push dword [ebp - 0x24]
call esi
test eax, eax
je 0x4aa143
call ebx
push eax
call fcn.004c5224
push eax
push dword [ebp - 0x14]
push dword [ebp + 8]
call fcn.004a9dd8
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
test al, 2
jne 0x4aa0c7
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
xor ecx, ecx
test ax, ax
setl cl
test edi, edi
mov eax, ecx
je 0x4aa177
mov edi, dword [edi + 0x1c]
push eax
mov eax, dword [ebp + 8]
push edi
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_GetNextDlgTabItem]
push eax
call fcn.004c5224
mov esi, eax
test esi, esi
je 0x4aa246
push esi
call fcn.004a9912
push esi
push dword [ebp - 0x14]
call fcn.004a9c11
pop ecx
pop ecx
jmp 0x4aa246
cmp ecx, 0x25
jl 0x4aa0c7
cmp ecx, 0x26
jle 0x4aa25c
cmp ecx, 0x28
jle 0x4aa263
cmp ecx, 0x2b
jne 0x4aa0c7
push dword [ebp - 0x14]
call fcn.004a9d28
test al, 0x10
pop ecx
je 0x4aa1e8
mov esi, dword [ebp - 0x14]
mov ecx, esi
call fcn.004c7db1
jmp 0x4aa1f0
push dword [ebp + 8]
call fcn.004a9dab
test esi, esi
mov ebx, eax
jne 0x4aa209
push ebx
push dword [ebp + 8]
call fcn.004a9c84
mov esi, eax
test esi, esi
je 0x4aa0c7
mov ecx, esi
call fcn.004c7eac
test eax, eax
jne 0x4aa220
push eax
call dword [sym.imp.USER32.dll_MessageBeep]
jmp 0x4aa0c7
cmp dword [esi + 0x38], 0
je 0x4aa0c7
xor eax, eax
push eax
push eax
push eax
push 1
push 0xfffffdd9
push esi
mov dword [ebp - 4], eax
call fcn.004c7f0f
add esp, 0x18
or dword [ebp - 4], 0xffffffff
push 1
pop edi
jmp 0x4aa0fe
mov dword [ebp - 0x1c], 1
push dword [ebp + 0xc]
push dword [ebp - 0x14]
call fcn.004a98e4
test al, 1
jne 0x4aa0c7
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4aa280
mov eax, dword [eax + 0x1c]
push dword [ebp - 0x1c]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_GetNextDlgGroupItem]
push eax
call fcn.004c5224
test eax, eax
je 0x4aa0c7
cmp dword [eax + 0x38], 0
je 0x4aa0c7
push eax
call fcn.004a9912
jmp 0x4aa246