Function at 0x491491
Capabilities:
Log keystrokes via polling

Disassembly:
push 0x28
mov eax, 0x5e0f96
call fcn.005aa10e
mov ebx, dword [ebp + 8]
xor edi, edi
test ebx, ebx
jne 0x4914ab
mov dword [ebp - 0x2c], edi
jmp 0x4914b1
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
call dword [sym.imp.USER32.dll_GetFocus]
push eax
mov dword [ebp - 0x30], eax
call fcn.0046b22f
mov esi, eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x28], esi
cmp eax, 0x100
jb 0x4914e8
cmp eax, 0x109
ja 0x4914e8
mov dword [ebp - 0x1c], 9
jmp 0x4914fb
push 9
pop ecx
add eax, 0xfffffe00
mov dword [ebp - 0x1c], ecx
cmp eax, ecx
ja 0x4915c8
test esi, esi
je 0x4915c8
cmp dword [esi + 0x74], edi
jne 0x491530
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.0046b22f
cmp eax, ebx
je 0x491530
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.0046b22f
mov esi, eax
test esi, esi
jne 0x491503
mov dword [ebp - 0x14], esi
test esi, esi
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
je 0x49156d
mov ecx, dword [eax + 0x74]
test ecx, ecx
je 0x49156d
mov ecx, dword [ecx + 0x58]
test ecx, ecx
je 0x49156d
mov eax, dword [ecx]
push dword [ebp + 0xc]
push ecx
mov esi, dword [eax + 0x14]
mov ecx, esi
call fcn.005aa066
call esi
test eax, eax
jne 0x491567
inc eax
jmp 0x491861
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x101
je 0x491588
cmp ecx, 0x100
je 0x491588
cmp ecx, 0x102
jne 0x4915c8
test eax, eax
je 0x4915c8
mov edx, dword [eax + 0x74]
test edx, edx
je 0x4915c8
mov eax, dword [ebp + 0xc]
push 0xd
movzx ecx, word [eax + 8]
mov dword [ebp - 0x24], ecx
pop ecx
cmp word [ebp - 0x24], cx
jne 0x4915af
test byte [edx + 0x84], 1
jne 0x4915c1
push 0x1b
pop ecx
cmp word [ebp - 0x24], cx
jne 0x4915cb
test byte [edx + 0x84], 2
je 0x4915cb
xor eax, eax
jmp 0x491861
mov eax, dword [ebp + 0xc]
push dword [eax]
call fcn.0046b22f
mov ecx, dword [ebp - 0x18]
mov edx, eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x24], edi
sub ecx, 0x100
je 0x49168f
dec ecx
sub ecx, 1
je 0x491625
sub ecx, 4
jne 0x4917da
test esi, esi
jne 0x491613
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4917da
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp + 0xc]
push 0x20
pop ecx
cmp word [eax + 8], cx
je 0x4917dd
jmp 0x491628
mov eax, dword [ebp + 0xc]
push eax
push edx
call fcn.00491f10
cmp dword [ebp - 0x18], 0x102
mov ecx, eax
jne 0x491643
test cl, 0x84
jne 0x4917da
mov eax, dword [ebp + 0xc]
movzx edx, word [eax + 8]
cmp dx, word [ebp - 0x1c]
jne 0x491659
test cl, 2
jne 0x4917dd
push 0x20
pop ecx
cmp dx, cx
je 0x4915c1
push eax
push dword [ebp - 0x20]
push ebx
call fcn.00491f40
test eax, eax
je 0x4917da
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4917da
push dword [ebp + 0xc]
call fcn.0048fe96
jmp 0x49198f
push dword [ebp + 0xc]
push edx
call fcn.00491f10
mov edx, eax
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + 8]
cmp ecx, 0x1b
ja 0x49176a
je 0x4917b3
cmp ecx, 3
je 0x4917b3
cmp ecx, dword [ebp - 0x1c]
je 0x4916cc
cmp ecx, 0xd
je 0x491786
jmp 0x4917dd
test dl, 2
jne 0x4917dd
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
xor ecx, ecx
test ax, ax
sets cl
push ecx
mov dword [ebp - 0x1c], ecx
mov ecx, ebx
push edi
call fcn.0047041b
mov ecx, eax
test ecx, ecx
je 0x4917da
mov eax, dword [ecx + 4]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x491721
mov eax, dword [eax]
push dword [ebp + 0xc]
mov esi, dword [eax + 0xac]
mov ecx, esi
call fcn.005aa066
mov ecx, dword [ebp - 0x24]
call esi
jmp 0x49198f
cmp dword [ecx], 0
je 0x491734
push dword [ecx]
call fcn.0046b22f
mov ecx, eax
mov dword [ebp - 0x24], ecx
jmp 0x491746
push dword [ebp - 0x1c]
mov ecx, ebx
push dword [ebp - 0x20]
call fcn.00467859
mov ecx, eax
mov dword [ebp - 0x24], eax
test ecx, ecx
je 0x49198f
mov eax, dword [ebx + 0x70]
push ecx
mov dword [eax + 0x70], edi
call fcn.00491c4e
push dword [ebp - 0x24]
push esi
call fcn.00491ae2
pop ecx
pop ecx
jmp 0x49198f
cmp ecx, 0x25
jb 0x4917dd
cmp ecx, 0x26
jbe 0x4918a7
cmp ecx, 0x28
jbe 0x4918ae
cmp ecx, 0x2b
jne 0x4917dd
test dl, 4
jne 0x4917dd
push esi
call fcn.00491447
pop ecx
test al, 0x10
je 0x4917a2
mov ecx, esi
mov dword [ebp - 0x14], esi
call fcn.004701e1
jmp 0x4917a8
push ebx
call fcn.00492126
mov ecx, eax
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x4917c4
jmp 0x4917b6
push 2
pop ecx
push ecx
push ebx
call fcn.00491c7f
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4917da
mov ecx, eax
call fcn.0047082e
test eax, eax
jne 0x491869
push edi
call dword [sym.imp.USER32.dll_MessageBeep]
mov eax, dword [ebp + 0xc]
test dword [ebx + 0x60], 0x1000
jne 0x491819
push eax
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_IsDialogMessageW]
mov edi, eax
test edi, edi
je 0x491819
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call fcn.0046b22f
cmp eax, esi
je 0x491819
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call fcn.0046b22f
push eax
call fcn.00491a68
pop ecx
push dword [ebp - 0x30]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x49185f
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call fcn.0046b22f
mov esi, dword [ebp - 0x28]
push eax
push esi
call fcn.00491ae2
pop ecx
pop ecx
push dword [ebp - 0x2c]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x49185f
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call fcn.0046b22f
push eax
push esi
push ebx
call fcn.00491b6e
mov eax, edi
call fcn.005aa06c
ret 8
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x74], edi
je 0x4917da
push edi
push edi
push edi
push 1
push 0xfffffdd9
push eax
mov dword [ebp - 4], edi
call fcn.00470778
add esp, 0x18
jmp 0x49189e
or dword [ebp - 4], 0xffffffff
jmp 0x49198f
mov dword [ebp - 0x24], 1
push eax
push esi
call fcn.00491f10
test al, 1
jne 0x4917da
cmp dword [ebp - 0x24], 0
mov ecx, ebx
push edi
je 0x4918cd
call fcn.004705c4
jmp 0x4918d2
call fcn.004703c9
mov dword [ebp - 0x20], eax
test eax, eax
je 0x4917da
cmp dword [eax + 8], edi
je 0x4918ed
push eax
mov ecx, ebx
call fcn.00470a76
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x1c], ecx
test ecx, ecx
je 0x491911
mov eax, dword [ecx]
push dword [ebp + 0xc]
mov esi, dword [eax + 0xac]
mov ecx, esi
call fcn.005aa066
mov ecx, dword [ebp - 0x1c]
jmp 0x49171a
cmp dword [eax], 0
je 0x491924
push dword [eax]
call fcn.0046b22f
mov ecx, eax
mov dword [ebp - 0x24], ecx
jmp 0x491934
push dword [ebp - 0x24]
mov ecx, ebx
push esi
call fcn.0049146d
mov ecx, eax
mov dword [ebp - 0x24], eax
test ecx, ecx
je 0x4917da
mov eax, dword [ebx + 0x70]
push ecx
mov dword [eax + 0x70], edi
call fcn.00491c4e
mov eax, dword [ebp - 0x20]
cmp dword [eax + 8], edi
je 0x49198f
mov eax, dword [ebp - 0x24]
push 0xfffffffffffffff4
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push edi
mov edi, dword [ebp - 0x24]
mov esi, eax
push 1
push 0xf1
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [edi + 0x20]
movzx eax, si
push eax
push 0x111
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
call fcn.00491c4e
xor edi, edi
inc edi
jmp 0x491819