Function at 0x47ef32
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0x10
mov edi, ecx
call esi
cwde
shr eax, 0x1f
and eax, 0xffffff01
push 0x11
mov dword [esp + 0x14], eax
call esi
movsx ebx, ax
shr ebx, 0x1f
push 0x12
and bl, 1
call esi
mov ecx, dword [edi + 0x7c4]
movsx esi, ax
shr esi, 0x1f
and esi, 1
movzx eax, bl
shl esi, 2
neg eax
sbb eax, eax
and eax, 2
or esi, eax
xor eax, eax
cmp byte [esp + 0x10], al
setne al
or esi, eax
mov dword [esp + 0x18], esi
test ecx, ecx
je 0x47efae
mov edx, dword [ecx]
push esi
push dword [ebp + 8]
call dword [edx + 0x5c]
test al, al
je 0x47efae
xor eax, eax
inc eax
jmp 0x47f148
mov eax, dword [edi + 0x634]
xor ebx, ebx
sub eax, dword [edi + 0x630]
push 0x48
pop ecx
cdq
idiv ecx
mov dword [esp + 0x14], ecx
test eax, eax
je 0x47f023
xor ecx, ecx
mov dword [esp + 0x10], ecx
mov eax, dword [edi + 0x630]
add eax, 0x18
add ecx, eax
cmp dword [ecx + 0x14], 0x10
jb 0x47efe3
mov ecx, dword [ecx]
push esi
push ecx
call fcn.0047b007
mov edx, dword [ebp + 8]
pop ecx
mov ecx, eax
call fcn.0047b3e1
add esp, 4
test al, al
jne 0x47f097
mov ecx, dword [esp + 0x10]
inc ebx
push 0x48
pop eax
add ecx, eax
mov eax, dword [edi + 0x634]
sub eax, dword [edi + 0x630]
cdq
idiv dword [esp + 0x14]
mov dword [esp + 0x10], ecx
cmp ebx, eax
jb 0x47efd0
push dword [edi + 0x73c]
call dword [sym.imp.USER32.dll_GetMenu]
push 4
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
mov ebx, dword [esp + 0x18]
mov ecx, eax
push 0x30
pop eax
mov dword [esp + 0x14], ecx
xor esi, esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
push 0
lea eax, [esi + 0x44c]
mov dword [esp + 0x2c], 0x20
push eax
push ecx
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
test eax, eax
je 0x47f088
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x47f088
mov edx, dword [ebp + 8]
push ebx
call fcn.0047b3e1
add esp, 4
test al, al
jne 0x47f0ac
inc esi
push 0x30
cmp esi, 0x32
jge 0x47f0b4
mov ecx, dword [esp + 0x18]
pop eax
jmp 0x47f04b
lea eax, [ebx + 0x578]
push 0
push eax
mov ecx, edi
call fcn.00465514
jmp 0x47efa6
lea eax, [esi + 0x44c]
jmp 0x47f09d
mov eax, dword [edi + 0x640]
sub eax, dword [edi + 0x63c]
cdq
pop ecx
idiv ecx
and dword [esp + 0x10], 0
test eax, eax
je 0x47f146
xor esi, esi
mov ecx, dword [edi + 0x63c]
add ecx, esi
cmp dword [ecx + 0x14], 0x10
jb 0x47f0df
mov ecx, dword [ecx]
push ebx
push ecx
call fcn.0047b007
mov edx, dword [ebp + 8]
pop ecx
mov ecx, eax
call fcn.0047b3e1
add esp, 4
test al, al
je 0x47f123
mov eax, dword [edi + 0x63c]
add eax, 0x18
add eax, esi
cmp dword [eax + 0x14], 0x10
jb 0x47f10b
mov eax, dword [eax]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.004016ae
call fcn.0047a618
add esp, 0x18
cmp eax, 0xffffffff
jne 0x47f151
push 0x30
pop eax
add esi, eax
mov ecx, dword [esp + 0x10]
mov eax, dword [edi + 0x640]
inc ecx
sub eax, dword [edi + 0x63c]
cdq
idiv dword [esp + 0x1c]
mov dword [esp + 0x10], ecx
cmp ecx, eax
jb 0x47f0cf
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp eax, 0x7d0
jl 0x47f09d
push ecx
push 0
push eax
mov ecx, edi
call fcn.0045da71
jmp 0x47efa6