Function at 0x109e98b
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [0x10b11ec], 0
push ebx
push esi
push edi
mov edi, ecx
je 0x109e9fc
mov al, byte [0x10b11f0]
cmp al, 4
jae 0x109e9ae
test al, al
jne 0x109e9fc
mov eax, dword [0x10b11d8]
mov ecx, dword [0x10b11dc]
mov edx, 0x10000
mov esi, 0x80000000
and eax, edx
and ecx, esi
or eax, ecx
je 0x109e9fc
mov eax, dword [0x10b11e0]
mov ebx, dword [0x10b11e4]
mov ecx, eax
and ecx, edx
mov edx, ebx
and edx, esi
cmp ecx, eax
jne 0x109e9fc
cmp edx, ebx
jne 0x109e9fc
push 0x109eb80
push dword [0x10b119c]
push dword [0x10b1198]
call fcn.010127a5
mov eax, dword [edi + 0x150]
or dword [ebp - 4], 0xffffffff
cmp eax, 2
jne 0x109ea14
mov ecx, edi
call fcn.0109d5ba
jmp 0x109ea20
cmp eax, 1
jne 0x109ea20
mov ecx, edi
call fcn.0109e916
cmp dword [ebp + 0x10], 0
je 0x109ea95
mov esi, dword [edi + 0xa8]
mov ebx, dword [edi + 0xb0]
test esi, esi
jne 0x109ea61
lea eax, [edi + 0x90]
mov ecx, dword [eax]
test ecx, ecx
je 0x109ea46
mov ecx, dword [ecx]
jmp 0x109ea48
xor ecx, ecx
test ecx, ecx
jle 0x109eb78
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov esi, dword [eax]
xor ebx, ebx
test esi, esi
je 0x109eb78
cmp ebx, 0xfffffffe
jl 0x109eac6
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 0x109eac6
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.0103e700
mov ebx, dword [ebp - 4]
mov esi, eax
test esi, esi
je 0x109eb78
cmp ebx, 0xffffffff
je 0x109eb78
mov eax, dword [esi]
and dword [ebp + 0x10], 0
push esi
call dword [eax + 0xc]
cmp eax, 1
jne 0x109eaf7
test ebx, ebx
jl 0x109eaf7
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 0x109eb49
mov eax, dword [ebp + 0x10]
and dword [ebp + 8], 0
test eax, eax
je 0x109eb18
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 0x109eb78
cmp esi, dword [edi + 0xe0]
jne 0x109eb61
cmp esi, dword [edi + 0xb4]
jne 0x109eb78
cmp dword [edi + 0xb8], ebx
je 0x109eb78
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