Function at 0x1002e640
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e677d
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x10114008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x10118020], 0
mov esi, dword [0x10119884]
je 0x1002e940
mov ecx, dword [0x10117fa0]
test ecx, ecx
je 0x1002e940
mov eax, dword [ecx]
mov eax, dword [eax + 0x528]
call eax
cmp eax, 1
jne 0x1002e940
mov eax, dword fs:[0x2c]
mov ecx, dword [0x10117f54]
mov edi, dword [0x10118020]
mov ebx, dword [eax + ecx*4]
mov eax, dword [0x1011803c]
cmp eax, dword [ebx + 4]
jle 0x1002e703
push 0x1011803c
call fcn.100e3eef
add esp, 4
cmp dword [0x1011803c], 0xffffffff
jne 0x1002e703
push str.m_iClass
push str.CTFPlayer
mov dword [ebp - 4], 0
call fcn.100e2fc0
push 0x1011803c
mov dword [0x1011802c], eax
mov dword [ebp - 4], 0xffffffff
call fcn.100e3ea5
add esp, 4
mov eax, dword [0x1011802c]
cmp dword [eax + edi], 5
jne 0x1002e940
mov eax, dword [0x1011984c]
mov eax, dword [eax + 0xc]
cmp byte [eax], 0
je 0x1002e940
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x1002e7da
cmp dword [0x101181c8], 0
jne 0x1002e757
push str.Team_Fortress_2
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [0x101181c8], eax
jmp 0x1002e7da
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, dword [0x101181c8]
jne 0x1002e7da
mov ecx, dword [0x10118038]
mov eax, dword [ecx]
mov eax, dword [eax + 0xd4]
call eax
test al, al
jne 0x1002e7da
mov ecx, dword [0x10117fa0]
call fcn.100db9a0
test eax, eax
je 0x1002e7d4
mov ecx, dword [0x10117fa0]
call fcn.100db9a0
test eax, eax
je 0x1002e7a7
lea ecx, [eax + 8]
test ecx, ecx
je 0x1002e7a7
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
jmp 0x1002e7a9
xor eax, eax
cmp eax, dword [esi]
je 0x1002e7da
mov ecx, dword [0x10117fa0]
call fcn.100db9a0
test eax, eax
je 0x1002e7ce
lea ecx, [eax + 8]
test ecx, ecx
je 0x1002e7ce
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
mov dword [esi], eax
jmp 0x1002e7da
xor eax, eax
mov dword [esi], eax
jmp 0x1002e7da
mov dword [esi], 0xffffffff
mov ecx, esi
call fcn.1002dfe0
mov edi, eax
test edi, edi
je 0x1002e940
mov ecx, dword [0x10117fa0]
call fcn.100db9a0
cmp eax, edi
je 0x1002e940
mov ecx, dword [0x10117ff0]
cmp ecx, dword [ebx + 4]
jle 0x1002e851
push 0x10117ff0
call fcn.100e3eef
add esp, 4
cmp dword [0x10117ff0], 0xffffffff
jne 0x1002e851
push str.m_lifeState
push str.CBasePlayer
mov dword [ebp - 4], 1
call fcn.100e2fc0
push 0x10117ff0
mov dword [0x10117fb0], eax
mov dword [ebp - 4], 0xffffffff
call fcn.100e3ea5
add esp, 4
mov eax, dword [0x10117fb0]
cmp byte [eax + edi], 0
jne 0x1002e940
mov ecx, edi
call fcn.10021800
mov ecx, edi
vmovss xmm0, dword [eax]
vmovss dword [ebp - 0x1c], xmm0
vmovss xmm0, dword [eax + 4]
vmovss dword [ebp - 0x18], xmm0
vmovss xmm0, dword [eax + 8]
vmovss dword [ebp - 0x10], xmm0
call fcn.100216c0
mov ecx, edi
mov esi, eax
call fcn.10021760
vmovss xmm0, dword [eax + 8]
vaddss xmm0, xmm0, dword [esi + 8]
vmulss xmm0, xmm0, dword [0x10102c68]
vaddss xmm0, xmm0, dword [ebp - 0x10]
mov esi, dword [0x10118020]
mov ecx, esi
vmovss dword [ebp - 0x14], xmm0
call fcn.10021800
mov ecx, esi
mov edi, eax
call fcn.10021af0
vmovss xmm0, dword [eax]
vaddss xmm0, xmm0, dword [edi]
vmovss dword [ebp - 0x28], xmm0
vmovss xmm0, dword [edi + 4]
vaddss xmm0, xmm0, dword [eax + 4]
vmovss dword [ebp - 0x24], xmm0
vmovss xmm0, dword [edi + 8]
vaddss xmm0, xmm0, dword [eax + 8]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x34]
push eax
vmovss dword [ebp - 0x20], xmm0
call fcn.10021420
mov esi, dword [ebp + 8]
mov edi, 6
vmovss xmm0, dword [ebp - 0x34]
mov eax, dword [esi + 4]
cdq
idiv edi
vmovss dword [esi + 0xc], xmm0
vmovss xmm0, dword [ebp - 0x30]
vmovss dword [esi + 0x10], xmm0
vmovss xmm0, dword [ebp - 0x2c]
vmovss dword [esi + 0x14], xmm0
mov ecx, dword [esi + 0x24]
test edx, edx
jne 0x1002e93a
or ecx, 1
jmp 0x1002e93d
and ecx, 0xfffffffe
mov dword [esi + 0x24], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4