Function at 0x10029840
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e47dd
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x10111040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x10115084], 0
mov esi, dword [0x101168e8]
je 0x10029b3e
mov ecx, dword [0x10115000]
test ecx, ecx
je 0x10029b3e
mov eax, dword [ecx]
mov eax, dword [eax + 0x528]
call eax
cmp eax, 1
jne 0x10029b3e
mov eax, dword fs:[0x2c]
mov ecx, dword [0x10114fb4]
mov edi, dword [0x10115084]
mov ebx, dword [eax + ecx*4]
mov eax, dword [0x101150a0]
cmp eax, dword [ebx + 4]
jle 0x10029903
push 0x101150a0
call fcn.100e1f89
add esp, 4
cmp dword [0x101150a0], 0xffffffff
jne 0x10029903
push str.m_iClass
push str.CTFPlayer
mov dword [ebp - 4], 0
call fcn.100e1140
push 0x101150a0
mov dword [0x10115090], eax
mov dword [ebp - 4], 0xffffffff
call fcn.100e1f38
add esp, 4
mov eax, dword [0x10115090]
cmp dword [eax + edi], 5
jne 0x10029b3e
mov eax, dword [0x101168b0]
mov eax, dword [eax + 0xc]
cmp byte [eax], 0
je 0x10029b3e
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x100299d8
cmp dword [0x10115228], 0
jne 0x10029955
push str.Team_Fortress_2
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [0x10115228], eax
jmp 0x100299d8
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, dword [0x10115228]
jne 0x100299d8
mov ecx, dword [0x1011509c]
mov eax, dword [ecx]
mov eax, dword [eax + 0xd4]
call eax
test al, al
jne 0x100299d8
mov ecx, dword [0x10115000]
call fcn.100d9af0
test eax, eax
je 0x100299d2
mov ecx, dword [0x10115000]
call fcn.100d9af0
test eax, eax
je 0x100299a5
lea ecx, [eax + 8]
test ecx, ecx
je 0x100299a5
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
jmp 0x100299a7
xor eax, eax
cmp eax, dword [esi]
je 0x100299d8
mov ecx, dword [0x10115000]
call fcn.100d9af0
test eax, eax
je 0x100299cc
lea ecx, [eax + 8]
test ecx, ecx
je 0x100299cc
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
mov dword [esi], eax
jmp 0x100299d8
xor eax, eax
mov dword [esi], eax
jmp 0x100299d8
mov dword [esi], 0xffffffff
mov ecx, esi
call fcn.100291f0
mov edi, eax
test edi, edi
je 0x10029b3e
mov ecx, dword [0x10115000]
call fcn.100d9af0
cmp eax, edi
je 0x10029b3e
mov ecx, dword [0x10115054]
cmp ecx, dword [ebx + 4]
jle 0x10029a4f
push 0x10115054
call fcn.100e1f89
add esp, 4
cmp dword [0x10115054], 0xffffffff
jne 0x10029a4f
push str.m_lifeState
push str.CBasePlayer
mov dword [ebp - 4], 1
call fcn.100e1140
push 0x10115054
mov dword [0x10115010], eax
mov dword [ebp - 4], 0xffffffff
call fcn.100e1f38
add esp, 4
mov eax, dword [0x10115010]
cmp byte [eax + edi], 0
jne 0x10029b3e
mov ecx, edi
call fcn.1001c8b0
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.1001c770
mov ecx, edi
mov esi, eax
call fcn.1001c810
vmovss xmm0, dword [eax + 8]
vaddss xmm0, xmm0, dword [esi + 8]
vmulss xmm0, xmm0, dword [0x10100870]
vaddss xmm0, xmm0, dword [ebp - 0x10]
mov esi, dword [0x10115084]
mov ecx, esi
vmovss dword [ebp - 0x14], xmm0
call fcn.1001c8b0
mov ecx, esi
mov edi, eax
call fcn.1001cba0
vmovss xmm0, dword [edi]
vaddss xmm0, xmm0, dword [eax]
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.1001c4d0
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 0x10029b38
or ecx, 1
jmp 0x10029b3b
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