Function at 0x10042060
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10079ea9
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x1008f040]
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 [0x100917fc]
cmp byte [eax + 0x28d], 0
je 0x1004230b
cmp byte [eax + 0x272], 0
je 0x1004230b
cmp byte [eax + 0x294], 0
mov edi, dword [eax + 0x290]
je 0x100421c2
mov eax, dword [0x100917dc]
mov ecx, dword [0x100900d8]
mov esi, dword [eax + 0x74]
mov eax, dword fs:[0x2c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10090150]
cmp eax, dword [ecx + 4]
jle 0x1004212c
push 0x10090150
call fcn.10074b0a
add esp, 4
cmp dword [0x10090150], 0xffffffff
jne 0x1004212c
push str.m_vecVelocity_0_
push str.CBasePlayer
mov byte [ebp - 4], 1
call fcn.10070660
push 0x10090150
mov dword [0x1009016c], eax
mov byte [ebp - 4], 0
call fcn.10074ab9
add esp, 4
mov ecx, dword [0x1009016c]
lea ecx, [ecx + esi]
call fcn.10015fb0
mov eax, dword [0x100917dc]
movaps xmm2, xmm0
xorps xmm1, xmm1
mov eax, dword [eax + 0x2c]
mulss xmm2, dword [eax + 0x1c]
comiss xmm1, xmm2
jb 0x1004215a
movss xmm2, dword [0x10085654]
movss xmm0, dword [0x1008571c]
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 [0x100917fc]
sar edi, 1
movzx ecx, word [eax + 0x2a8]
mov edx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov esi, dword [sym.imp.USER32.dll_FindWindowW]
mov ebx, dword [sym.imp.USER32.dll_GetForegroundWindow]
test cx, cx
je 0x1004221a
push ecx
call edx
test ax, ax
je 0x1004220f
cmp dword [0x10090218], 0
jne 0x10042201
push 0x1007e9a4
push 0
call esi
mov dword [0x10090218], eax
jmp 0x1004220f
call ebx
cmp eax, dword [0x10090218]
je 0x1004230b
mov edx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov eax, dword [0x100917fc]
movzx eax, word [eax + 0x2aa]
test ax, ax
je 0x1004230b
push eax
call edx
test ax, ax
je 0x1004230b
cmp dword [0x10090218], 0
jne 0x10042252
push 0x1007e9a4
push 0
call esi
mov dword [0x10090218], eax
jmp 0x1004230b
call ebx
cmp eax, dword [0x10090218]
jne 0x1004230b
mov eax, dword [0x100917dc]
cmp dword [eax + 0x198], edi
jl 0x1004230b
xor esi, esi
test edi, edi
jle 0x10042304
mov bl, byte [ebp + 8]
nop
movss xmm0, dword [ebp - 0x34]
mov ecx, dword [ebp + 0x30]
mov byte [ebp - 0x18], bl
movss dword [ebp - 0x20], xmm0
test ecx, ecx
je 0x10042343
mov eax, dword [ecx]
lea edx, [ebp - 0x18]
push edx
lea edx, [ebp - 0x20]
push edx
call dword [eax + 8]
mov eax, dword [0x100917dc]
dec dword [eax + 0x198]
mov eax, dword [0x100917dc]
inc dword [eax + 0x1a0]
mov eax, dword [0x100917dc]
mov byte [eax + 0x193], 1
mov ecx, dword [0x100917dc]
mov eax, dword [ecx + 0x2c]
movss xmm0, dword [eax + 0xc]
lea eax, [edi - 1]
addss xmm0, dword [0x10085624]
cmp esi, eax
movss dword [ecx + 0x194], xmm0
sete cl
mov eax, dword [0x100917dc]
inc esi
mov eax, dword [eax + 0x220]
mov byte [eax], cl
cmp esi, edi
jl 0x10042280
mov eax, dword [0x100917dc]
mov byte [eax + 0x193], 0
mov ecx, dword [ebp + 0x30]
test ecx, ecx
je 0x10042323
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.10074a80
mov esp, ebp
pop ebp
ret 0x2c
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3