Function at 0x47b390
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x310
push ebx
push esi
push edi
xor ebx, ebx
mov eax, dword [0xcf38e0]
cmp eax, ebx
je 0x47b4a3
cmp dword [0xcf38f0], ebx
je 0x47b4a3
cmp dword [0xcf336c], ebx
jne 0x47b4a3
mov ecx, dword [0xcf38e4]
mov edx, dword [esp + 0x320]
xor eax, eax
cmp ecx, 1
mov ecx, dword [esp + 0x324]
setne al
push eax
push ecx
push edx
call fcn.00409b00
mov esi, eax
mov al, byte [0x55fef6]
add esp, 0xc
cmp al, bl
je 0x47b47e
cmp esi, ebx
je 0x47b47e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x24]
test eax, eax
je 0x47b47e
mov al, byte [0xcf38ec]
cmp al, bl
je 0x47b47e
cmp al, 1
jne 0x47b429
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xb8]
test al, al
je 0x47b43b
mov al, byte [0xcf38ec]
cmp al, 2
jne 0x47b47e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xbc]
test al, al
jne 0x47b47e
mov dword [0xcf38e0], ebx
push ebx
mov byte [0xcf38ec], bl
call fcn.004e77c0
mov ecx, dword [0xc32ff8]
add esp, 4
mov dword [ecx + 0xe0], ebx
mov ecx, esi
call fcn.004048b0
mov edx, dword [esi + 0x80]
push edx
call fcn.0047b310
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x310
ret 8
push esi
call dword [0xcf38f0]
add esp, 4
cmp esi, ebx
je 0x47b665
mov ecx, esi
call fcn.004048b0
pop edi
pop esi
pop ebx
add esp, 0x310
ret 8
mov eax, dword [esp + 0x324]
mov ecx, dword [esp + 0x320]
push eax
push ecx
call fcn.004c9910
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x47b665
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push ebp
push 0x12
call edi
push 0x11
mov ebp, eax
call edi
test ebp, 0x8000
pop ebp
je 0x47b5ba
test ah, 0x80
jne 0x47b5ba
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x24]
test eax, eax
je 0x47b5ba
mov ecx, dword [0xcf3ea4]
cmp esi, ecx
jne 0x47b554
mov eax, dword [ecx + 0x210]
push ebx
push ebx
cmp eax, ebx
push 3
push ebx
je 0x47b51b
push str.Stopped_following.
jmp 0x47b520
push str.Not_following.
call fcn.004c7030
mov eax, dword [0xcf3ea4]
mov dword [eax + 0x210], ebx
mov eax, dword [0xcf7ea0]
cmp eax, ebx
je 0x47b665
call fcn.004cefc0
pop edi
mov dword [0xcf7ea0], ebx
pop esi
pop ebx
add esp, 0x310
ret 8
push ebx
push ebx
push 3
push ebx
push str.Now_following.
call fcn.004c7030
mov ecx, dword [0xcf3ea4]
pop edi
mov dword [ecx + 0x210], 1
mov eax, dword [0xcf3ea4]
mov edx, dword [esi + 0x80]
mov dword [eax + 0x218], edx
mov eax, dword [0xcf3ea4]
movsx edx, word [esi + 0x24]
movsx ecx, word [eax + 0x24]
sub ecx, edx
mov dword [eax + 0x220], ecx
mov eax, dword [0xcf3ea4]
movsx edx, word [esi + 0x26]
movsx ecx, word [eax + 0x26]
sub ecx, edx
pop esi
mov dword [eax + 0x224], ecx
pop ebx
add esp, 0x310
ret 8
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
mov eax, dword [esi]
mov ecx, esi
jge 0x47b61d
call dword [eax + 0x24]
test eax, eax
je 0x47b665
mov ecx, dword [esi + 0x80]
lea edx, [esp + 0x14]
push ecx
push str.vislist__u
push 0x3f
push edx
call fcn.004ee435
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x24]
push ecx
push eax
lea ecx, [esp + 0x12c]
push 0x6b
push ecx
call fcn.00425960
add esp, 0x20
lea edx, [esp + 0x114]
jmp 0x47b659
call dword [eax + 0x2c]
test eax, eax
je 0x47b62d
call fcn.004d59e0
test eax, eax
je 0x47b636
push esi
call fcn.004cb8b0
add esp, 4
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x2c]
test eax, eax
je 0x47b665
mov eax, dword [esi + 0x80]
lea ecx, [esp + 0xc]
push eax
push ecx
call fcn.00425bb0
add esp, 8
lea edx, [esp + 0xc]
mov ecx, dword [0xcf38a8]
push edx
call fcn.0042ee70
pop edi
pop esi
pop ebx
add esp, 0x310
ret 8