Function at 0x10041420
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10078e19
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x1008d040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movss dword [ebp - 0x34], xmm1
mov dword [ebp - 4], 0
mov eax, dword [0x1008f7f4]
cmp byte [eax + 0x27d], 0
je 0x10041699
cmp byte [eax + 0x284], 0
mov edi, dword [eax + 0x280]
je 0x10041575
mov eax, dword [0x1008f7d4]
mov ecx, dword [0x1008e0d8]
mov esi, dword [eax + 0x74]
mov eax, dword fs:[0x2c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x1008e150]
cmp eax, dword [ecx + 4]
jle 0x100414df
push 0x1008e150
call fcn.10073caa
add esp, 4
cmp dword [0x1008e150], 0xffffffff
jne 0x100414df
push str.m_vecVelocity_0_
push str.CBasePlayer
mov byte [ebp - 4], 1
call fcn.1006f970
push 0x1008e150
mov dword [0x1008e16c], eax
mov byte [ebp - 4], 0
call fcn.10073c59
add esp, 4
mov ecx, dword [0x1008e16c]
lea ecx, [ecx + esi]
call fcn.10015f30
mov eax, dword [0x1008f7d4]
movaps xmm2, xmm0
xorps xmm1, xmm1
mov eax, dword [eax + 0x2c]
mulss xmm2, dword [eax + 0x1c]
comiss xmm1, xmm2
jb 0x1004150d
movss xmm2, dword [0x100841d4]
movss xmm0, dword [0x1008429c]
sub esp, 8
divss xmm0, xmm2
mov dword [ebp - 0x30], 0x16
mov dword [ebp - 0x28], 0
cvtps2pd xmm0, xmm0
movsd qword [ebp - 0x24], xmm0
fld qword [ebp - 0x24]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
fstp qword [ebp - 0x24]
movsd xmm0, qword [ebp - 0x24]
lea eax, [ebp - 0x2c]
cvtpd2ps xmm0, xmm0
add esp, 8
lea ecx, [ebp - 0x28]
cvttss2si edx, xmm0
test edx, edx
mov dword [ebp - 0x2c], edx
cmovns ecx, eax
cmp edx, 0x16
lea eax, [ebp - 0x30]
cmovle eax, ecx
mov eax, dword [eax]
cdq
sub eax, edx
mov edi, eax
mov eax, dword [0x1008f7f4]
sar edi, 1
movzx eax, word [eax + 0x29a]
test ax, ax
je 0x10041699
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x10041699
cmp dword [0x1008e218], 0
jne 0x100415b5
push 0x1007d988
push 0
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [0x1008e218], eax
jmp 0x10041699
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, dword [0x1008e218]
jne 0x10041699
mov eax, dword [0x1008f7d4]
cmp dword [eax + 0x170], edi
jl 0x10041699
xor esi, esi
test edi, edi
jle 0x10041692
mov bl, byte [ebp + 8]
movss xmm0, dword [ebp - 0x34]
mov ecx, dword [ebp + 0x30]
mov byte [ebp - 0x18], bl
movss dword [ebp - 0x20], xmm0
test ecx, ecx
je 0x100416d1
mov eax, dword [ecx]
lea edx, [ebp - 0x18]
push edx
lea edx, [ebp - 0x20]
push edx
call dword [eax + 8]
mov eax, dword [0x1008f7d4]
dec dword [eax + 0x170]
mov eax, dword [0x1008f7d4]
inc dword [eax + 0x178]
mov eax, dword [0x1008f7d4]
mov byte [eax + 0x16b], 1
mov eax, dword [0x1008f7f4]
cmp byte [eax + 0x270], 0
je 0x10041651
mov eax, dword [0x1008f7d4]
push str.ui_killsound_space.wav
mov ecx, dword [eax + 0x68]
mov eax, dword [ecx]
mov eax, dword [eax + 0x138]
call eax
mov ecx, dword [0x1008f7d4]
mov eax, dword [ecx + 0x2c]
movss xmm0, dword [eax + 0xc]
lea eax, [edi - 1]
addss xmm0, dword [0x100841a4]
cmp esi, eax
movss dword [ecx + 0x16c], xmm0
sete cl
mov eax, dword [0x1008f7d4]
inc esi
mov eax, dword [eax + 0x1f8]
mov byte [eax], cl
cmp esi, edi
jl 0x100415e5
mov eax, dword [0x1008f7d4]
mov byte [eax + 0x16b], 0
mov ecx, dword [ebp + 0x30]
test ecx, ecx
je 0x100416b1
mov edx, dword [ecx]
lea eax, [ebp + 0xc]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10073c20
mov esp, ebp
pop ebp
ret 0x2c
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3