Function at 0x10004160
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10043dcd
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x10054040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [0x10056730]
mov edi, dword [ebp + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 8]
test eax, eax
je 0x100041b0
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x100043ee
mov ecx, dword [0x10056730]
mov eax, dword [ecx + 4]
cmp byte [eax], 0
je 0x100043ee
mov esi, dword [ebp + 0xc]
mov eax, dword [0x10056734]
mov ecx, dword [esi]
mov dword [eax], ecx
mov ecx, dword [0x10056734]
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0xc]
mov dword [ecx + 0xc], eax
mov eax, dword [0x10056730]
mov eax, dword [eax]
cmp byte [eax + 1], 0
je 0x100041f1
or dword [edi + 0x24], 1
test byte [edi + 0x24], 1
je 0x100043ee
mov eax, dword [0x100552e8]
vmovss xmm0, dword [eax + 0x10]
vcomiss xmm0, dword [eax + 0x1c]
ja 0x10004219
cmp byte [0x100552ac], 0
je 0x100043ee
mov eax, dword [esi + 0x10]
sub esp, 0xc
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [esi + 0x14]
mov dword [ecx + 4], eax
mov eax, dword [esi + 0x18]
mov dword [ecx + 8], eax
mov ecx, edi
call fcn.10033bb0
mov eax, dword [esi + 0x10]
add esp, 0xc
mov ecx, dword [esi]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x18]
mov dword [edi + 0x14], eax
test ecx, ecx
je 0x100043ee
mov eax, dword [ecx + 8]
add ecx, 8
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x100043ee
cmp dword [eax + 0x14], 0xf7
jne 0x100043ee
mov ecx, dword [0x100552a8]
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x10056730]
mov eax, dword [ecx + 4]
cmp byte [eax + 1], 0
je 0x100043d1
mov eax, dword [0x100552a8]
mov ecx, dword [0x10055238]
mov ebx, dword [0x10055288]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov dword [ebp + 0xc], eax
mov eax, dword fs:[0x2c]
mov edi, dword [eax + ecx*4]
mov eax, dword [0x100552a0]
cmp eax, dword [edi + 4]
jle 0x10004307
push 0x100552a0
call fcn.10042603
add esp, 4
cmp dword [0x100552a0], 0xffffffff
jne 0x10004307
push str.m_vecOrigin
push str.CBaseEntity
mov dword [ebp - 4], 0
call fcn.10033440
push 0x100552a0
mov dword [0x100552a4], eax
mov dword [ebp - 4], 0xffffffff
call fcn.100425b2
add esp, 4
mov eax, dword [0x1005526c]
mov ecx, dword [0x100552a4]
mov dword [ebp + 8], ecx
cmp eax, dword [edi + 4]
jle 0x10004365
push 0x1005526c
call fcn.10042603
add esp, 4
cmp dword [0x1005526c], 0xffffffff
jne 0x10004362
push str.m_vecViewOffset_0_
push str.CBasePlayer
mov dword [ebp - 4], 1
call fcn.10033440
push 0x1005526c
mov dword [0x10055280], eax
mov dword [ebp - 4], 0xffffffff
call fcn.100425b2
add esp, 4
mov ecx, dword [ebp + 8]
mov eax, dword [0x10055280]
push ecx
vmovss xmm0, dword [ebx + eax + 4]
vaddss xmm2, xmm0, dword [ebx + ecx + 4]
vmovss xmm0, dword [ebx + eax + 8]
vaddss xmm1, xmm0, dword [ebx + ecx + 8]
vmovss xmm0, dword [ebx + eax]
vaddss xmm0, xmm0, dword [ebx + ecx]
mov ecx, dword [0x100552a8]
lea eax, [esi + 4]
vmovss dword [ebp - 0x18], xmm0
vmovss xmm0, dword [0x1004c938]
vmovss dword [esp], xmm0
push 1
push 0xaf
push 0xaf
push 0xaf
push eax
lea eax, [ebp - 0x18]
push eax
vmovss dword [ebp - 0x14], xmm2
vmovss dword [ebp - 0x10], xmm1
call dword [ebp + 0xc]
mov ecx, dword [0x10056730]
mov eax, dword [ecx + 4]
cmp byte [eax + 2], 0
je 0x100043ee
vmovss xmm3, dword [0x1004c938]
push 0xff
push dword [esi]
call fcn.10041350
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8