Function at 0x4651c7
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, 0x56ffe0
call fcn.00566548
sub esp, 0x64
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
mov ecx, dword [esi]
test ecx, ecx
je 0x4651ea
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 0x4651fd
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.0046266d
lea eax, [ebp - 0x20]
mov ecx, edi
push eax
call fcn.004575e5
mov ecx, edi
mov dword [ebp + 0x10], eax
call fcn.004578f3
test al, al
jne 0x46533d
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.0046544c
cmp byte [0x5b2894], 0
je 0x465340
mov ecx, dword [ebx]
test ecx, ecx
je 0x46527b
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.0046550a
cmp dword [ebx], 0
je 0x465340
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 0x465436
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 0x465327
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x10], eax
call fcn.004433cd
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.0045428a
lea eax, [ebp - 0x70]
push eax
push 1
push ebx
lea ecx, [ebp - 0x10]
call fcn.0040cc7d
push dword [ebp - 0x70]
call fcn.0056651e
pop ecx
mov byte [ebp - 4], bl
test esi, esi
je 0x46533d
mov eax, dword [esi]
test eax, eax
je 0x46533d
push eax
mov dword [esi], ebx
call dword [sym.imp.USER32.dll_DestroyMenu]
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x44]
call fcn.00464df8
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.00465a8e
mov ecx, edi
mov byte [ebp - 0x43], al
call fcn.0045797a
mov ecx, edi
mov byte [ebp - 0x42], al
call fcn.00446f27
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 0x4653bb
mov eax, dword [ebp - 0x20]
mov ecx, edi
push dword [eax]
lea eax, [ebp - 0x2c]
push eax
call fcn.00462035
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 4
call fcn.0040272f
push dword [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.0056651e
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x3c]
pop ecx
mov ecx, dword [edi + 0x100]
test ecx, ecx
je 0x4653ed
cmp eax, 1
ja 0x465402
jne 0x4653d1
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 0x465402
cmp dword [ebp + 0x14], eax
setne byte [ebp - 0x3f]
jmp 0x465402
mov ecx, edi
test edx, edx
jne 0x4653fa
call fcn.00457943
jmp 0x4653ff
call fcn.004659f7
mov byte [ebp - 0x3f], al
push esi
call dword [sym.imp.USER32.dll_GetMenuItemCount]
push eax
push esi
lea ecx, [ebp - 0x44]
call fcn.0045554c
push dword [ebp - 0x38]
call fcn.0056651e
push dword [ebp - 0x20]
call fcn.0056651e
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
pop ebx
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 0x10
push 0x58e6f8
lea eax, [ebp + 0x14]
mov dword [ebp + 0x14], 0x33647
push eax
call sub.msvcrt.dll__CxxThrowException
int3