Function at 0x100311da
Capabilities:
Log keystrokes via polling

Disassembly:
push 0xc
mov eax, 0x100df527
call fcn.100bf38d
mov esi, ecx
mov ecx, dword [ebp + 0x14]
xor eax, eax
cmp byte [esi + 0x112], al
sete al
cmp dword [ebp + 0xc], 9
mov dword [ecx], eax
jne 0x1003125f
mov eax, dword [esi + 0x190]
test eax, eax
je 0x10031215
mov ecx, dword [eax]
lea edx, [esi + 0xf8]
push edx
push eax
call dword [ecx + 0x50]
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setge al
movzx eax, al
push eax
lea eax, [esi + 0xf8]
push eax
mov ecx, esi
call fcn.10081ad5
cmp dword [esi + 0x190], 0
je 0x100313e3
mov eax, dword [ebp + 0x14]
xor ebx, ebx
inc ebx
mov dword [eax], ebx
mov esi, dword [esi + 0x190]
mov eax, dword [esi]
push ebx
push esi
call dword [eax + 0x9c]
jmp 0x100313e3
lea edi, [esi + 0x190]
mov eax, dword [edi]
mov dword [ebp - 0x18], 0x50000001
test eax, eax
je 0x10031288
mov edx, dword [eax]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [edx + 0x84]
mov dword [ebp - 0x18], eax
xor ebx, ebx
inc ebx
cmp dword [ebp + 0xc], 0xd
jne 0x1003132e
cmp dword [ebp - 0x18], 0x50000001
jne 0x100313e3
push ebx
push ebx
mov ecx, esi
call fcn.1002573d
push eax
lea ecx, [ebp - 0x10]
call fcn.10007eee
and dword [ebp - 4], 0
cmp dword [ebp - 0x10], 0
jne 0x100312d4
mov ecx, esi
call fcn.100304f4
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push ebx
push ebx
push eax
call dword [ecx + 0x108]
push dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
call fcn.10010613
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], bl
test eax, eax
je 0x1003130b
push dword [ebp + 0x14]
mov ecx, dword [eax]
push dword [ebp + 0x10]
push 0xd
push dword [ebp + 8]
push eax
call dword [ecx + 0x84]
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
call fcn.1001f583
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0
test eax, eax
je 0x10031319
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
test eax, eax
je 0x100313e3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp + 0xc], 0x1b
jne 0x100313e3
cmp dword [ebp - 0x18], 0x50000001
jne 0x100313e3
push ebx
push 2
pop edi
push edi
mov ecx, esi
call fcn.1002573d
push eax
lea ecx, [ebp + 0xc]
call fcn.10007eee
cmp dword [ebp + 0xc], 0
mov dword [ebp - 4], edi
jne 0x10031379
mov ecx, esi
call fcn.100304f4
mov ecx, dword [eax]
lea edx, [ebp + 0xc]
push edx
push ebx
push edi
push eax
call dword [ecx + 0x108]
push dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
call fcn.10010613
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 3
test eax, eax
je 0x100313c4
push dword [ebp + 0x14]
mov ecx, dword [eax]
push dword [ebp + 0x10]
push 0x1b
push dword [ebp + 8]
push eax
call dword [ecx + 0x84]
lea eax, [ebp - 0x18]
push eax
lea ecx, [esi + 0x190]
call fcn.1001f583
push 0
push 0
push 0x10
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 2
test eax, eax
je 0x100313d2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 0xc]
or dword [ebp - 4], 0xffffffff
test eax, eax
je 0x100313e3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
call fcn.100bf465
ret 0x10