Function at 0x46bc68
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, dword [ebp + 0x1c]
mov ebx, 0x510450
mov edi, 0x51044c
push 3
call sub.USER32.dll_GetAsyncKeyState
test ax, ax
jge 0x46bcc5
push 0
push 0xaf3
call fcn.0041f178
mov edi, eax
mov esi, 0x50cbd8
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0
call sub.USER32.dll_MessageBeep
xor eax, eax
jmp 0x46be9d
mov edx, dword [ebp + 8]
cmp dword [edx + 4], 0
jne 0x46bce4
push 0
push 0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
push eax
push 0
call fcn.0045bf34
jmp 0x46be9d
mov edx, dword [ebp + 0x18]
mov dword [edi], edx
jmp 0x46bd72
mov edx, dword [eax]
cmp byte [edx], 0x25
jne 0x46bd0d
mov eax, dword [ebp + 0x20]
push eax
push esi
push edx
call fcn.004e78d4
test eax, eax
jne 0x46bd34
mov ecx, dword [edi]
mov eax, dword [ecx + 0x30]
mov dword [edi], eax
jmp 0x46bd72
mov edx, dword [edi]
mov ecx, dword [edx]
push esi
push edi
mov edi, ecx
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
push 0x20
push esi
call fcn.00401278
add esp, 8
mov dword [ebx], eax
cmp dword [ebx], 0
je 0x46bd4b
mov eax, dword [ebx]
mov byte [eax], 0
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 4]
push ecx
push esi
call fcn.004014a8
add esp, 8
test eax, eax
jne 0x46bd6b
mov eax, dword [edi]
mov edx, dword [eax + 0x28]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], edx
jmp 0x46bd7c
mov eax, dword [edi]
mov edx, dword [eax + 0x30]
mov dword [edi], edx
mov eax, dword [edi]
test eax, eax
jne 0x46bcee
cmp dword [edi], 0
je 0x46be98
mov edx, dword [ebp + 0x14]
xor ecx, ecx
mov dword [edx], ecx
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
test eax, eax
je 0x46bd9b
push eax
call fcn.00499164
mov edx, dword [edi]
mov ecx, dword [edx + 0x28]
mov eax, dword [ecx + 0x20]
push eax
push 0x510458
push esi
mov edx, dword [edi]
mov ecx, dword [edx + 0x28]
mov eax, dword [ecx]
push eax
call fcn.004b7478
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
cmp dword [0x510458], 0
jne 0x46bdcc
xor eax, eax
jmp 0x46be9d
mov edx, dword [ebp + 0x10]
cmp dword [edx], 0
jne 0x46bdde
mov eax, 1
jmp 0x46be9d
mov edx, dword [ebp + 0x10]
mov ecx, dword [edx]
mov dword [0x510448], ecx
jmp 0x46be66
mov eax, dword [eax]
mov dword [ebx], eax
jmp 0x46bdf3
inc dword [ebx]
mov edx, dword [ebx]
cmp byte [edx], 0x20
je 0x46bdf1
mov ecx, dword [ebx]
cmp byte [ecx], 0x3a
jne 0x46be57
inc dword [ebx]
jmp 0x46be07
inc dword [ebx]
mov eax, dword [ebx]
cmp byte [eax], 0x20
je 0x46be05
mov edx, dword [ebx]
cmp byte [edx], 0
je 0x46be57
push 0x20
mov ecx, dword [ebx]
push ecx
call fcn.00401278
add esp, 8
mov esi, eax
mov dword [0x510454], esi
test esi, esi
je 0x46be31
mov byte [esi], 0
mov eax, dword [ebx]
push eax
mov edx, dword [edi]
mov ecx, dword [edx]
push ecx
call fcn.004014a8
add esp, 8
test eax, eax
jne 0x46be57
mov eax, dword [ebp + 0x14]
mov edx, dword [0x510448]
mov dword [eax], edx
mov eax, 1
jmp 0x46be9d
mov edx, dword [0x510448]
mov ecx, dword [edx + 0x30]
mov dword [0x510448], ecx
mov eax, dword [0x510448]
test eax, eax
jne 0x46bdeb
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 4]
push ecx
push 0
push 0xaf4
call fcn.0041f178
push eax
push 0x50cbd8
call sub.USER32.dll_wsprintfA
add esp, 0xc
xor eax, eax
jmp 0x46be9d
mov eax, 4
pop edi
pop esi
pop ebx
pop ebp
ret 0x1c