Function at 0x109ee23
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [0x10b21ec], 0
push ebx
push esi
push edi
mov edi, ecx
je 0x109ee94
mov al, byte [0x10b21f0]
cmp al, 4
jae 0x109ee46
test al, al
jne 0x109ee94
mov eax, dword [0x10b21d8]
mov ecx, dword [0x10b21dc]
mov edx, 0x10000
mov esi, 0x80000000
and eax, edx
and ecx, esi
or eax, ecx
je 0x109ee94
mov eax, dword [0x10b21e0]
mov ebx, dword [0x10b21e4]
mov ecx, eax
and ecx, edx
mov edx, ebx
and edx, esi
cmp ecx, eax
jne 0x109ee94
cmp edx, ebx
jne 0x109ee94
push 0x109f018
push dword [0x10b219c]
push dword [0x10b2198]
call fcn.010127a5
mov eax, dword [edi + 0x150]
or dword [ebp - 4], 0xffffffff
cmp eax, 2
jne 0x109eeac
mov ecx, edi
call fcn.0109da6a
jmp 0x109eeb8
cmp eax, 1
jne 0x109eeb8
mov ecx, edi
call fcn.0109edae
cmp dword [ebp + 0x10], 0
je 0x109ef2d
mov esi, dword [edi + 0xa8]
mov ebx, dword [edi + 0xb0]
test esi, esi
jne 0x109eef9
lea eax, [edi + 0x90]
mov ecx, dword [eax]
test ecx, ecx
je 0x109eede
mov ecx, dword [ecx]
jmp 0x109eee0
xor ecx, ecx
test ecx, ecx
jle 0x109f010
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov esi, dword [eax]
xor ebx, ebx
test esi, esi
je 0x109f010
cmp ebx, 0xfffffffe
jl 0x109ef5e
mov eax, dword [esi]
lea ecx, [ebp - 0x1c]
push ecx
push ebx
push esi
call dword [eax + 0x30]
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
jmp 0x109ef5e
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ScreenToClient]
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
mov ecx, edi
push dword [ebp - 0xc]
call fcn.0103e698
mov ebx, dword [ebp - 4]
mov esi, eax
test esi, esi
je 0x109f010
cmp ebx, 0xffffffff
je 0x109f010
mov eax, dword [esi]
and dword [ebp + 0x10], 0
push esi
call dword [eax + 0xc]
cmp eax, 1
jne 0x109ef8f
test ebx, ebx
jl 0x109ef8f
mov eax, dword [esi]
push ebx
push esi
call dword [eax + 0xac]
mov dword [ebp + 0x10], eax
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x109efe1
mov eax, dword [ebp + 0x10]
and dword [ebp + 8], 0
test eax, eax
je 0x109efb0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x4c]
mov dword [ebp + 8], eax
lea eax, [ebp - 0xc]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ClientToScreen]
lea ebx, [edi + 0x18]
mov eax, dword [ebx]
mov dword [ebp + 0x10], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x14]
push eax
push dword [ebp + 8]
mov eax, dword [ebp + 0x10]
push dword [edi + 4]
push dword [ebp - 8]
push dword [ebp - 0xc]
push ebx
call dword [eax + 0x1c]
jmp 0x109f010
cmp esi, dword [edi + 0xe0]
jne 0x109eff9
cmp esi, dword [edi + 0xb4]
jne 0x109f010
cmp dword [edi + 0xb8], ebx
je 0x109f010
mov eax, dword [esi]
push 0
push 0
push dword [ebp + 0x10]
add edi, 0x14
mov ebx, dword [edi]
push esi
call dword [eax + 0x14]
push eax
push edi
call dword [ebx + 0x78]
pop edi
pop esi
pop ebx
leave
ret 0xc