Function at 0x10029740
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e401d
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 [0x10115080], 0
mov esi, dword [0x10116904]
je 0x10029a3e
mov ecx, dword [0x10115000]
test ecx, ecx
je 0x10029a3e
mov eax, dword [ecx]
mov eax, dword [eax + 0x528]
call eax
cmp eax, 1
jne 0x10029a3e
mov eax, dword fs:[0x2c]
mov ecx, dword [0x10114fb4]
mov edi, dword [0x10115080]
mov ebx, dword [eax + ecx*4]
mov eax, dword [0x1011509c]
cmp eax, dword [ebx + 4]
jle 0x10029803
push 0x1011509c
call fcn.100e1839
add esp, 4
cmp dword [0x1011509c], 0xffffffff
jne 0x10029803
push str.m_iClass
push str.CTFPlayer
mov dword [ebp - 4], 0
call fcn.100e09f0
push 0x1011509c
mov dword [0x1011508c], eax
mov dword [ebp - 4], 0xffffffff
call fcn.100e17e8
add esp, 4
mov eax, dword [0x1011508c]
cmp dword [eax + edi], 5
jne 0x10029a3e
mov eax, dword [0x101168cc]
mov eax, dword [eax + 0xc]
cmp byte [eax], 0
je 0x10029a3e
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x100298d8
cmp dword [0x10115228], 0
jne 0x10029855
push str.Team_Fortress_2
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [0x10115228], eax
jmp 0x100298d8
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, dword [0x10115228]
jne 0x100298d8
mov ecx, dword [0x10115098]
mov eax, dword [ecx]
mov eax, dword [eax + 0xd4]
call eax
test al, al
jne 0x100298d8
mov ecx, dword [0x10115000]
call fcn.100d93b0
test eax, eax
je 0x100298d2
mov ecx, dword [0x10115000]
call fcn.100d93b0
test eax, eax
je 0x100298a5
lea ecx, [eax + 8]
test ecx, ecx
je 0x100298a5
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
jmp 0x100298a7
xor eax, eax
cmp eax, dword [esi]
je 0x100298d8
mov ecx, dword [0x10115000]
call fcn.100d93b0
test eax, eax
je 0x100298cc
lea ecx, [eax + 8]
test ecx, ecx
je 0x100298cc
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
mov dword [esi], eax
jmp 0x100298d8
xor eax, eax
mov dword [esi], eax
jmp 0x100298d8
mov dword [esi], 0xffffffff
mov ecx, esi
call fcn.100290f0
mov edi, eax
test edi, edi
je 0x10029a3e
mov ecx, dword [0x10115000]
call fcn.100d93b0
cmp eax, edi
je 0x10029a3e
mov ecx, dword [0x10115050]
cmp ecx, dword [ebx + 4]
jle 0x1002994f
push 0x10115050
call fcn.100e1839
add esp, 4
cmp dword [0x10115050], 0xffffffff
jne 0x1002994f
push str.m_lifeState
push str.CBasePlayer
mov dword [ebp - 4], 1
call fcn.100e09f0
push 0x10115050
mov dword [0x10115010], eax
mov dword [ebp - 4], 0xffffffff
call fcn.100e17e8
add esp, 4
mov eax, dword [0x10115010]
cmp byte [eax + edi], 0
jne 0x10029a3e
mov ecx, edi
call fcn.1001c910
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.1001c7d0
mov ecx, edi
mov esi, eax
call fcn.1001c870
vmovss xmm0, dword [eax + 8]
vaddss xmm0, xmm0, dword [esi + 8]
vmulss xmm0, xmm0, dword [0x101003c0]
vaddss xmm0, xmm0, dword [ebp - 0x10]
mov esi, dword [0x10115080]
mov ecx, esi
vmovss dword [ebp - 0x14], xmm0
call fcn.1001c910
mov ecx, esi
mov edi, eax
call fcn.1001cc00
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.1001c530
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 0x10029a38
or ecx, 1
jmp 0x10029a3b
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