Function at 0x109fb13
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [0x10b24cc], 0
push ebx
push esi
push edi
mov edi, ecx
je 0x109fb84
mov al, byte [0x10b24d0]
cmp al, 4
jae 0x109fb36
test al, al
jne 0x109fb84
mov eax, dword [0x10b24b8]
mov ecx, dword [0x10b24bc]
mov edx, 0x10000
mov esi, 0x80000000
and eax, edx
and ecx, esi
or eax, ecx
je 0x109fb84
mov eax, dword [0x10b24c0]
mov ebx, dword [0x10b24c4]
mov ecx, eax
and ecx, edx
mov edx, ebx
and edx, esi
cmp ecx, eax
jne 0x109fb84
cmp edx, ebx
jne 0x109fb84
push 0x109fd08
push dword [0x10b247c]
push dword [0x10b2478]
call fcn.0100e7c9
mov eax, dword [edi + 0x150]
or dword [ebp - 4], 0xffffffff
cmp eax, 2
jne 0x109fb9c
mov ecx, edi
call fcn.0109e742
jmp 0x109fba8
cmp eax, 1
jne 0x109fba8
mov ecx, edi
call fcn.0109fa9e
cmp dword [ebp + 0x10], 0
je 0x109fc1d
mov esi, dword [edi + 0xa8]
mov ebx, dword [edi + 0xb0]
test esi, esi
jne 0x109fbe9
lea eax, [edi + 0x90]
mov ecx, dword [eax]
test ecx, ecx
je 0x109fbce
mov ecx, dword [ecx]
jmp 0x109fbd0
xor ecx, ecx
test ecx, ecx
jle 0x109fd00
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov esi, dword [eax]
xor ebx, ebx
test esi, esi
je 0x109fd00
cmp ebx, 0xfffffffe
jl 0x109fc4e
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 0x109fc4e
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.01045203
mov ebx, dword [ebp - 4]
mov esi, eax
test esi, esi
je 0x109fd00
cmp ebx, 0xffffffff
je 0x109fd00
mov eax, dword [esi]
and dword [ebp + 0x10], 0
push esi
call dword [eax + 0xc]
cmp eax, 1
jne 0x109fc7f
test ebx, ebx
jl 0x109fc7f
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 0x109fcd1
mov eax, dword [ebp + 0x10]
and dword [ebp + 8], 0
test eax, eax
je 0x109fca0
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 0x109fd00
cmp esi, dword [edi + 0xe0]
jne 0x109fce9
cmp esi, dword [edi + 0xb4]
jne 0x109fd00
cmp dword [edi + 0xb8], ebx
je 0x109fd00
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