Function at 0x4650ab
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, 0x5709d4
call fcn.00566e38
sub esp, 0x64
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
mov ecx, dword [esi]
test ecx, ecx
je 0x4650ce
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
and dword [esi], 0
push ebx
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebx]
test ecx, ecx
je 0x4650e1
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
and dword [ebx], 0
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and eax, 0xffffff01
mov dword [ebp - 0x10], eax
mov byte [ebp + 0xc], al
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
mov ecx, edi
lea eax, [ebp - 0x20]
push eax
call fcn.0046255d
lea eax, [ebp - 0x20]
mov ecx, edi
push eax
call fcn.004574e9
mov ecx, edi
mov dword [ebp + 0x10], eax
call fcn.004577f7
test al, al
jne 0x465221
push esi
push dword [ebp + 0x10]
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0xc]
mov ecx, edi
push esi
call fcn.00465330
cmp byte [0x5b3894], 0
je 0x465224
mov ecx, dword [ebx]
test ecx, ecx
je 0x46515f
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
and dword [ebx], 0
push ebx
lea eax, [ebp - 0x20]
mov ecx, edi
push eax
call fcn.004653ee
cmp dword [ebx], 0
je 0x465224
and dword [ebp + 0xc], 0
lea esi, [ebp + 0xc]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 1
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x46531a
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebx]
xor ebx, ebx
movzx eax, al
shl eax, 8
add eax, 4
mov edx, dword [ecx]
push eax
push 0x7fff
push 0x5dc
push ebx
push dword [ebp + 0xc]
push ecx
call dword [edx + 0xc]
test eax, eax
js 0x46520b
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x10], eax
call fcn.004432cd
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x70]
mov esi, ebx
mov byte [ebp - 4], 2
mov ecx, 0x1bbf
mov dword [ebp - 0x64], 0x16
mov dword [ebp - 0x60], ebx
mov dword [ebp + 0xc], ebx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x14], esi
call fcn.00454187
lea eax, [ebp - 0x70]
push eax
push 1
push ebx
lea ecx, [ebp - 0x10]
call fcn.0040cc21
push dword [ebp - 0x70]
call fcn.00566e0e
pop ecx
mov byte [ebp - 4], bl
test esi, esi
je 0x465221
mov eax, dword [esi]
test eax, eax
je 0x465221
push eax
mov dword [esi], ebx
call dword [sym.imp.USER32.dll_DestroyMenu]
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x44]
call fcn.00464cdc
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.00465972
mov ecx, edi
mov byte [ebp - 0x43], al
call fcn.0045787e
mov ecx, edi
mov byte [ebp - 0x42], al
call fcn.00446e24
mov byte [ebp - 0x41], al
or ebx, 0xffffffff
mov al, byte [ebp + 0x14]
cmp dword [ebp + 0x10], ebx
mov byte [ebp - 0x44], al
mov eax, dword [ebp - 0x1c]
sete byte [ebp - 0x40]
mov byte [ebp - 0x3f], 0
mov edx, eax
mov dword [ebp - 0x3c], edx
cmp eax, 1
jne 0x46529f
mov eax, dword [ebp - 0x20]
mov ecx, edi
push dword [eax]
lea eax, [ebp - 0x2c]
push eax
call fcn.00461f25
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 4
call fcn.00402707
push dword [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.00566e0e
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x3c]
pop ecx
mov ecx, dword [edi + 0x100]
test ecx, ecx
je 0x4652d1
cmp eax, 1
ja 0x4652e6
jne 0x4652b5
mov eax, dword [ebp - 0x20]
mov ebx, dword [eax]
and dword [ebp + 0x14], 0
lea edx, [ebp + 0x14]
mov eax, dword [ecx]
push edx
push ebx
push ecx
call dword [eax + 0x14]
test eax, eax
jne 0x4652e6
cmp dword [ebp + 0x14], eax
setne byte [ebp - 0x3f]
jmp 0x4652e6
mov ecx, edi
test edx, edx
jne 0x4652de
call fcn.00457847
jmp 0x4652e3
call fcn.004658db
mov byte [ebp - 0x3f], al
push esi
call dword [sym.imp.USER32.dll_GetMenuItemCount]
push eax
push esi
lea ecx, [ebp - 0x44]
call fcn.0045543d
push dword [ebp - 0x38]
call fcn.00566e0e
push dword [ebp - 0x20]
call fcn.00566e0e
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
pop ebx
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 0x10
push 0x58f778
lea eax, [ebp + 0x14]
mov dword [ebp + 0x14], 0x33647
push eax
call sub.msvcrt.dll__CxxThrowException
int3