Function at 0x477afc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
mov eax, dword [esi]
call dword [eax + 0x38]
test al, al
jne 0x477b1f
push dword [ebp + 0xc]
mov eax, dword [esi]
push dword [ebp + 8]
mov ecx, esi
call dword [eax + 0xc]
jmp 0x477d17
push edi
mov edi, dword [ebp + 8]
test edi, edi
jns 0x477b35
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x40]
mov al, 1
jmp 0x477d16
cmp dword [esi + 0xc], 0xffffffff
jne 0x477b4b
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x477b48
mov dword [esi + 0xc], eax
jmp 0x477b4b
mov dword [esi + 0xc], edi
push ebx
lea ecx, [esi - 0x170]
mov eax, dword [ecx]
push edi
call dword [eax]
mov ebx, eax
mov dword [ebp - 8], ebx
test ebx, ebx
je 0x477cc8
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x10c]
test al, al
je 0x477cc8
mov eax, dword [ebx]
push str.ListItem
mov ecx, ebx
call dword [eax + 0x10]
mov dword [ebp + 8], eax
test eax, eax
je 0x477cc8
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call ebx
mov ecx, 0x8000
test cx, ax
je 0x477c01
push edi
lea ecx, [esi + 0x10]
call fcn.0043138b
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
mov eax, dword [ecx]
je 0x477cbf
push 0
call dword [eax + 0x18]
test al, al
je 0x477cc8
cmp dword [esi + 8], edi
jne 0x477bd1
or dword [esi + 8], 0xffffffff
push dword [ebp - 4]
lea ecx, [esi + 0x10]
call fcn.00431350
mov ecx, dword [esi - 0x67c]
test ecx, ecx
je 0x477d13
push 0
push 0
push 0xffffffffffffffff
push str.itemselect
add esi, 0xfffff940
push esi
jmp 0x477d0e
push 0x10
call ebx
mov ecx, 0x8000
test cx, ax
je 0x477cba
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x40]
mov eax, dword [esi + 0xc]
mov ecx, eax
mov dword [ebp - 4], edi
cmp ecx, edi
jle 0x477c2b
mov ecx, edi
mov dword [ebp - 4], eax
mov dword [ebp + 8], ecx
cmp ecx, dword [ebp - 4]
jg 0x477c87
push dword [ebp + 8]
lea ecx, [esi - 0x170]
mov eax, dword [ecx]
call dword [eax]
mov ebx, eax
test ebx, ebx
je 0x477c7c
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x10c]
test al, al
je 0x477c7c
mov eax, dword [ebx]
push str.ListItem
mov ecx, ebx
call dword [eax + 0x10]
test eax, eax
je 0x477c7c
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx + 0x18]
test al, al
je 0x477c7c
push dword [ebp + 8]
lea ecx, [esi + 0x10]
call fcn.00431254
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 4]
jle 0x477c33
lea ebx, [esi - 0x6c0]
push edi
mov ecx, ebx
mov dword [esi + 8], edi
call fcn.00476979
cmp byte [ebp + 0xc], 0
je 0x477ca9
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
call dword [eax + 0x128]
mov ecx, dword [esi - 0x67c]
test ecx, ecx
je 0x477d13
push 0
push dword [esi + 0xc]
jmp 0x477d07
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
push 1
call dword [eax + 0x18]
test al, al
jne 0x477ccc
xor al, al
jmp 0x477d15
push edi
lea ecx, [esi + 0x10]
mov dword [esi + 8], edi
call fcn.00431254
lea ebx, [esi - 0x6c0]
push edi
mov ecx, ebx
call fcn.00476979
cmp byte [ebp + 0xc], 0
je 0x477cf7
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
call dword [eax + 0x128]
mov esi, dword [esi - 0x67c]
test esi, esi
je 0x477d13
push 0
push 0
mov ecx, esi
push edi
push str.itemselect
push ebx
call fcn.004383ea
mov al, 1
pop ebx
pop edi
pop esi
leave
ret 8