Function at 0x1006f1a0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd8
mov eax, dword [0x10137008]
xor eax, esp
mov dword [esp + 0xd4], eax
cmp byte [ecx + 0xd], 0
push esi
push edi
mov edi, dword [ebp + 8]
vmovss dword [esp + 0x2c], xmm2
mov dword [esp + 0x28], edi
je 0x1006faf5
push dword [ecx + 0x20]
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jne 0x1006f224
mov eax, dword [0x10141f04]
vxorps xmm0, xmm0, xmm0
mov byte [eax + 0x139], 0
mov eax, dword [0x10141f04]
vmovss dword [eax + 0x128], xmm0
vmovss dword [eax + 0x124], xmm0
vmovss dword [eax + 0x120], xmm0
pop edi
pop esi
mov ecx, dword [esp + 0xd4]
xor ecx, esp
call fcn.100eeb4d
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x10141f04]
vxorps xmm6, xmm6, xmm6
vmovss xmm0, dword [ecx + 0x120]
vucomiss xmm0, xmm6
lahf
test ah, 0x44
jnp 0x1006f7ec
vmovss xmm0, dword [ecx + 0x124]
vucomiss xmm0, xmm6
lahf
test ah, 0x44
jnp 0x1006f7ec
vmovss xmm0, dword [ecx + 0x128]
vucomiss xmm0, xmm6
lahf
test ah, 0x44
jnp 0x1006f7ec
mov eax, dword [0x10141b50]
mov edi, dword [eax]
mov eax, dword [0x10141d28]
test al, 1
jne 0x1006f2fc
or dword [0x10141d28], 1
lea ecx, [esp + 0x10]
mov esi, dword [0x10141ef0]
push 0x25
push str.CBaseCombatCharacter__m_hActiveWeapon
mov dword [esp + 0x18], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0xf
call fcn.10004660
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call fcn.10005570
mov edx, dword [esp + 0x24]
mov dword [0x10141d2c], eax
cmp edx, 0x10
jb 0x1006f2fc
mov ecx, dword [esp + 0x10]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006f2f2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006f873
push edx
push ecx
call fcn.100eeeaa
add esp, 8
mov eax, dword [0x10141d2c]
mov eax, dword [eax + 4]
mov edx, dword [edi + eax]
cmp edx, 0xffffffff
jne 0x1006f310
xor edi, edi
jmp 0x1006f320
mov ecx, dword [0x10141b58]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov edi, eax
mov eax, dword [0x10141ab8]
test al, 1
jne 0x1006f3a5
or dword [0x10141ab8], 1
lea ecx, [esp + 0x10]
mov esi, dword [0x10141ef0]
push 0x2d
push str.CBaseAttributableItem__m_iItemDefinitionIndex
mov dword [esp + 0x18], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0xf
call fcn.10004660
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call fcn.10005570
mov edx, dword [esp + 0x24]
mov dword [0x10141ad4], eax
cmp edx, 0x10
jb 0x1006f3a5
mov ecx, dword [esp + 0x10]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006f39b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006f873
push edx
push ecx
call fcn.100eeeaa
add esp, 8
mov eax, dword [0x10141ad4]
mov ecx, dword [esp + 0x28]
mov eax, dword [eax + 4]
cmp word [edi + eax], 0x40
jne 0x1006f3c9
mov eax, dword [ecx + 0x30]
test eax, 0x801
je 0x1006f3c9
mov byte [esp + 0xf], 1
jmp 0x1006f3d1
mov eax, dword [ecx + 0x30]
mov byte [esp + 0xf], 0
test al, 1
je 0x1006f5e0
mov eax, dword [0x10141b50]
mov edi, dword [eax]
mov eax, dword [0x10141d28]
test al, 1
jne 0x1006f465
or dword [0x10141d28], 1
lea ecx, [esp + 0x10]
mov esi, dword [0x10141ef0]
push 0x25
push str.CBaseCombatCharacter__m_hActiveWeapon
mov dword [esp + 0x18], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0xf
call fcn.10004660
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call fcn.10005570
mov edx, dword [esp + 0x24]
mov dword [0x10141d2c], eax
cmp edx, 0x10
jb 0x1006f465
mov ecx, dword [esp + 0x10]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006f45b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006f873
push edx
push ecx
call fcn.100eeeaa
add esp, 8
mov eax, dword [0x10141d2c]
mov eax, dword [eax + 4]
mov edx, dword [edi + eax]
cmp edx, 0xffffffff
jne 0x1006f479
xor edi, edi
jmp 0x1006f489
mov ecx, dword [0x10141b58]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov edi, eax
mov eax, dword [0x10141ab8]
test al, 1
jne 0x1006f50e
or dword [0x10141ab8], 1
lea ecx, [esp + 0x10]
mov esi, dword [0x10141ef0]
push 0x2d
push str.CBaseAttributableItem__m_iItemDefinitionIndex
mov dword [esp + 0x18], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0xf
call fcn.10004660
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call fcn.10005570
mov edx, dword [esp + 0x24]
mov dword [0x10141ad4], eax
cmp edx, 0x10
jb 0x1006f50e
mov ecx, dword [esp + 0x10]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006f504
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006f873
push edx
push ecx
call fcn.100eeeaa
add esp, 8
mov eax, dword [0x10141ad4]
mov eax, dword [eax + 4]
cmp word [edi + eax], 0x40
je 0x1006f5e0
mov eax, dword [0x10141b50]
mov edi, dword [eax]
mov eax, dword [0x10141d28]
test al, 1
jne 0x1006f5ad
or dword [0x10141d28], 1
lea ecx, [esp + 0x10]
mov esi, dword [0x10141ef0]
push 0x25
push str.CBaseCombatCharacter__m_hActiveWeapon
mov dword [esp + 0x18], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0xf
call fcn.10004660
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call fcn.10005570
mov edx, dword [esp + 0x24]
mov dword [0x10141d2c], eax
cmp edx, 0x10
jb 0x1006f5ad
mov ecx, dword [esp + 0x10]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006f5a3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006f873
push edx
push ecx
call fcn.100eeeaa
add esp, 8
mov eax, dword [0x10141d2c]
mov eax, dword [eax + 4]
mov edx, dword [edi + eax]
cmp edx, 0xffffffff
jne 0x1006f5c1
xor ecx, ecx
jmp 0x1006f5d1
mov ecx, dword [0x10141b58]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov ecx, eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x718]
call eax
cmp eax, 9
jne 0x1006f5e7
cmp byte [esp + 0xf], 0
je 0x1006f5f3
mov eax, dword [0x10141f04]
mov byte [eax + 0x139], 1
mov eax, dword [0x10141f04]
cmp byte [eax + 0x139], 0
je 0x1006faf5
mov eax, dword [0x10141b50]
mov edi, dword [eax]
mov eax, dword [0x10141d84]
test al, 1
jne 0x1006f692
mov esi, dword [0x10141ef0]
lea ecx, [esp + 0x10]
push 0xe
or eax, 1
mov dword [esp + 0x14], 0
push str.m_vecAbsOrigin
mov dword [0x10141d84], eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0xf
call fcn.10004660
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call fcn.10005570
mov edx, dword [esp + 0x24]
mov dword [0x10141d80], eax
cmp edx, 0x10
jb 0x1006f692
mov ecx, dword [esp + 0x10]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006f688
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006f873
push edx
push ecx
call fcn.100eeeaa
add esp, 8
mov eax, dword [0x10141d80]
mov eax, dword [eax + 4]
vmovq xmm0, qword [eax + edi]
mov eax, dword [0x10141f04]
vmovq qword [esp + 0x10], xmm0
vmovss xmm0, dword [esp + 0x10]
vsubss xmm2, xmm0, dword [eax + 0x120]
vmovss xmm0, dword [esp + 0x14]
vsubss xmm0, xmm0, dword [eax + 0x124]
vmulss xmm1, xmm0, xmm0
vmovss dword [esp + 0x30], xmm0
vmulss xmm0, xmm2, xmm2
vaddss xmm0, xmm1, xmm0
vcvtss2sd xmm0, xmm0, xmm0
vxorpd xmm1, xmm1, xmm1
vucomisd xmm1, xmm0
vmovss dword [esp + 0x34], xmm2
ja 0x1006f6f2
vsqrtsd xmm0, xmm0, xmm0
jmp 0x1006f6f7
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
vcvtsd2ss xmm0, xmm0, xmm0
vcomiss xmm0, dword [0x10133724]
jbe 0x1006f7a9
vmovss xmm0, dword [esp + 0x2c]
vdivss xmm0, xmm0, dword [0x101337dc]
vmulss xmm0, xmm0, dword [0x101336f8]
vcvtss2sd xmm0, xmm0, xmm0
vmovsd qword [esp + 0x10], xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
vcvtsd2ss xmm0, xmm0, xmm0
vmovss dword [esp + 0x2c], xmm0
vmovsd xmm0, qword [esp + 0x10]
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sin_precise
vmovss xmm4, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
vcvtsd2ss xmm3, xmm0, xmm0
vmulss xmm1, xmm3, dword [esp + 0x30]
vmulss xmm0, xmm4, dword [esp + 0x34]
vaddss xmm0, xmm1, xmm0
vxorps xmm0, xmm0, xmmword [0x10133b20]
vmulss xmm0, xmm0, dword [0x1013376c]
vmulss xmm1, xmm4, dword [esp + 0x30]
vmovss dword [eax + 0x24], xmm0
vmulss xmm0, xmm3, dword [esp + 0x34]
vsubss xmm0, xmm1, xmm0
vmulss xmm0, xmm0, dword [0x1013376c]
vmovss dword [eax + 0x28], xmm0
pop edi
pop esi
mov ecx, dword [esp + 0xd4]
xor ecx, esp
call fcn.100eeb4d
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x10141f04]
vxorps xmm1, xmm1, xmm1
mov byte [eax + 0x139], 0
mov eax, dword [0x10141f04]
vmovss dword [eax + 0x128], xmm1
vmovss dword [eax + 0x124], xmm1
vmovss dword [eax + 0x120], xmm1
pop edi
pop esi
mov ecx, dword [esp + 0xd4]
xor ecx, esp
call fcn.100eeb4d
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x10141b50]
mov eax, dword [eax]
mov dword [esp + 0x34], eax
mov eax, dword [0x10141d84]
test al, 1
jne 0x1006f887
mov esi, dword [0x10141ef0]
lea ecx, [esp + 0x10]
push 0xe
or eax, 1
mov dword [esp + 0x14], 0
push str.m_vecAbsOrigin
mov dword [0x10141d84], eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0xf
call fcn.10004660
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call fcn.10005570
mov edx, dword [esp + 0x24]
mov dword [0x10141d80], eax
cmp edx, 0x10
jb 0x1006f883
mov ecx, dword [esp + 0x10]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006f879
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1006f879
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100eeeaa
add esp, 8
vxorps xmm6, xmm6, xmm6
mov eax, dword [0x10141d80]
vshufps xmm6, xmm6, xmm6, 0
mov ecx, dword [eax + 4]
add ecx, dword [esp + 0x34]
mov edx, dword [ecx + 8]
vmovq xmm0, qword [ecx]
mov ecx, dword [0x10141f04]
vmovq qword [ecx + 0x120], xmm0
mov dword [ecx + 0x128], edx
mov ecx, 0x96
mov eax, dword [edi + 4]
cdq
idiv ecx
cmp edx, ecx
jae 0x1006fb0b
mov eax, dword [0x10141ef4]
imul ecx, edx, 0x858
test byte [ecx + eax + 0x1b5c], 1
jne 0x1006faf5
mov ecx, dword [0x10141f04]
vmovss xmm3, dword [ecx + 0x120]
vmovq xmm0, qword [ecx + 0x120]
vmovss xmm4, dword [ecx + 0x124]
vmovss xmm5, dword [ecx + 0x128]
vmovq qword [esp + 0x90], xmm0
mov eax, dword [ecx + 0x128]
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], 0
vmovss xmm1, dword [ecx + 0x124]
vmovss xmm2, dword [ecx + 0x128]
vsubss xmm0, xmm3, xmm6
vsubss xmm3, xmm0, dword [ecx + 0x120]
vsubss xmm0, xmm4, xmm6
vsubss xmm1, xmm0, xmm1
vsubss xmm0, xmm5, dword [0x10133838]
vsubss xmm2, xmm0, xmm2
vmovss dword [esp + 0xa4], xmm1
vmulss xmm0, xmm3, xmm3
vmulss xmm1, xmm1, xmm1
vaddss xmm1, xmm1, xmm0
vmulss xmm0, xmm2, xmm2
vaddss xmm0, xmm1, xmm0
vucomiss xmm0, xmm6
vmovss dword [esp + 0xa0], xmm3
lahf
mov dword [esp + 0xac], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], 0
mov byte [esp + 0xd4], 1
mov byte [esp + 0xd5], 1
vmovss dword [esp + 0xa8], xmm2
vmovss dword [esp + 0xb8], xmm6
vmovss dword [esp + 0xb4], xmm6
vmovss dword [esp + 0xb0], xmm6
vmovss dword [esp + 0xc8], xmm6
vmovss dword [esp + 0xc4], xmm6
vmovss dword [esp + 0xc0], xmm6
test ah, 0x44
jp 0x1006fa09
mov byte [esp + 0xd5], 0
mov ecx, dword [0x10141b38]
lea edx, [esp + 0x38]
xor eax, eax
mov dword [esp + 0x34], 0x10112bc4
push edx
mov dword [esp + 0x70], eax
lea edx, [esp + 0x38]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov eax, dword [ecx]
push edx
push 0x200400b
lea edx, [esp + 0x9c]
mov dword [esp + 0x6c], 0
vmovss dword [esp + 0x4c], xmm6
vmovss dword [esp + 0x48], xmm6
vmovss dword [esp + 0x44], xmm6
vmovss dword [esp + 0x58], xmm6
vmovss dword [esp + 0x54], xmm6
vmovss dword [esp + 0x50], xmm6
vmovups xmmword [esp + 0x5c], xmm6
vmovss dword [esp + 0x70], xmm6
mov dword [esp + 0x74], 0
vmovss dword [esp + 0x7c], xmm6
mov eax, dword [eax + 0x14]
push edx
call eax
vmovss xmm0, dword [0x10133680]
vcomiss xmm0, dword [esp + 0x64]
jbe 0x1006faf5
vmovss xmm0, dword [esp + 0x4c]
vaddss xmm0, xmm0, dword [0x101336d8]
mov ecx, dword [0x10141f04]
vxorps xmm1, xmm1, xmm1
vaddss xmm2, xmm1, dword [esp + 0x44]
vaddss xmm1, xmm1, dword [esp + 0x48]
vmovss dword [esp + 0x18], xmm0
mov eax, dword [esp + 0x18]
vunpcklps xmm0, xmm2, xmm1
vmovq qword [ecx + 0x120], xmm0
mov dword [ecx + 0x128], eax
mov ecx, dword [esp + 0xdc]
pop edi
pop esi
xor ecx, esp
call fcn.100eeb4d
mov esp, ebp
pop ebp
ret 4
call fcn.100578f0
int3