Function at 0x10021b47
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e404d
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x1b40
call fcn.100e2d70
mov eax, dword [0x10111040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebx + 8]
mov edi, dword [0x10115084]
mov dword [ebp - 0x1ad4], eax
mov eax, dword [0x101168b8]
mov dword [ebp - 0x1ae4], eax
mov eax, dword [0x10116880]
mov byte [eax + 0x40], 0
test edi, edi
je 0x100221d9
mov eax, dword fs:[0x2c]
mov ecx, dword [0x10114fb4]
mov esi, dword [eax + ecx*4]
mov eax, dword [0x10115054]
mov dword [ebp - 0x1ae8], esi
cmp eax, dword [esi + 4]
jle 0x10020cc7
push 0x10115054
call fcn.100e1f89
add esp, 4
cmp dword [0x10115054], 0xffffffff
jne 0x10020cc7
push str.m_lifeState
push str.CBasePlayer
mov dword [ebp - 4], 0
call fcn.100e1140
push 0x10115054
mov dword [0x10115010], eax
mov dword [ebp - 4], 0xffffffff
call fcn.100e1f38
add esp, 4
mov eax, dword [0x10115010]
cmp byte [edi + eax], 0
jne 0x100221d9
mov edx, dword [0x10115000]
test edx, edx
je 0x100221d9
mov eax, dword [0x101168b0]
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
cmp byte [eax], 0
je 0x100221d9
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + 0x2c]
cmp byte [eax], 0
jne 0x100221d9
mov eax, dword [0x10116880]
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov byte [eax + 0x1c], 0
mov eax, dword [0x10116880]
mov byte [eax + 0x64], 0
mov eax, dword [0x101168b0]
mov eax, dword [eax + 4]
mov eax, dword [eax]
cmp byte [eax + 0xc], 0
je 0x10020ecf
mov ecx, edx
call fcn.1001d300
cmp dword [eax], 1
jge 0x10020ecf
mov ecx, dword [0x10115000]
test ecx, ecx
je 0x10020ecf
mov eax, dword [ecx]
mov eax, dword [eax + 0x528]
call eax
test eax, eax
jne 0x10020ecf
mov eax, dword [0x10116880]
mov eax, dword [eax + 0x74]
cmp eax, 0x11
je 0x10020ecf
cmp eax, 0x4d
je 0x10020ecf
cmp eax, 0x63
je 0x10020ecf
mov ecx, dword [0x10115014]
mov edi, dword [0x10115000]
cmp ecx, dword [esi + 4]
jle 0x10020de6
push 0x10115014
call fcn.100e1f89
mov ecx, dword [0x10115014]
add esp, 4
cmp ecx, 0xffffffff
jne 0x10020de6
push str.m_iItemDefinitionIndex
push str.CEconEntity
mov dword [ebp - 4], 1
call fcn.100e1140
push 0x10115014
mov dword [0x10115030], eax
mov dword [ebp - 4], 0xffffffff
call fcn.100e1f38
mov ecx, dword [0x10115014]
add esp, 4
mov eax, dword [0x10115030]
cmp dword [edi + eax], 0x20f
je 0x10020ec9
mov edi, dword [0x10115000]
cmp ecx, dword [esi + 4]
jle 0x10020e4b
push 0x10115014
call fcn.100e1f89
add esp, 4
cmp dword [0x10115014], 0xffffffff
jne 0x10020e4b
push str.m_iItemDefinitionIndex
push str.CEconEntity
mov dword [ebp - 4], 2
call fcn.100e1140
push 0x10115014
mov dword [0x10115030], eax
mov dword [ebp - 4], 0xffffffff
call fcn.100e1f38
add esp, 4
mov eax, dword [0x10115030]
cmp dword [eax + edi], 0x20e
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
je 0x10020ecf
mov eax, dword [0x101168b0]
mov eax, dword [eax + 4]
mov eax, dword [eax]
push dword [eax + 4]
call edi
test ax, ax
jns 0x10020ecf
cmp dword [0x10115228], 0
jne 0x10020e90
push str.Team_Fortress_2
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [0x10115228], eax
jmp 0x10020ecf
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, dword [0x10115228]
jne 0x10020ecf
mov ecx, dword [0x1011509c]
mov eax, dword [ecx]
mov eax, dword [eax + 0xd4]
call eax
test al, al
jne 0x10020ecf
mov ecx, dword [0x10114ffc]
push str.slot2
mov eax, dword [ecx]
mov eax, dword [eax + 0x1a8]
call eax
jmp 0x10020ecf
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov esi, dword [0x10115000]
test esi, esi
je 0x100221d9
lea ecx, [esi + 8]
test ecx, ecx
je 0x10020ef3
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
call eax
test al, al
jne 0x100221d9
push esi
call fcn.100d3bd0
test al, al
jne 0x100221d9
push esi
call fcn.100d3d20
test al, al
jne 0x100221d9
mov ecx, dword [0x10115000]
test ecx, ecx
je 0x10020f2c
mov eax, dword [ecx]
mov eax, dword [eax + 0x528]
call eax
cmp eax, 2
je 0x100221d9
mov esi, dword [ebp - 0x1ae4]
mov ecx, esi
call fcn.1001db90
mov eax, dword [esi]
cmp eax, dword [esi + 4]
je 0x100221d9
mov eax, dword [eax + 0xc]
test eax, eax
je 0x10020f8c
lea esi, [eax + 8]
test esi, esi
je 0x10020f86
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x10020f86
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 8]
call eax
mov esi, dword [ebp - 0x1ae4]
cmp dword [eax + 0x14], 0xf7
jne 0x10020f8c
mov eax, dword [esi]
mov ecx, dword [eax + 0xc]
mov eax, dword [0x10116880]
mov dword [eax + 0x44], ecx
jmp 0x10020f8c
mov esi, dword [ebp - 0x1ae4]
mov eax, dword [0x101168b0]
mov eax, dword [eax + 4]
mov eax, dword [eax]
push dword [eax + 4]
call edi
test ax, ax
jns 0x100221d9
mov ecx, dword [0x1011509c]
mov eax, dword [ecx]
mov eax, dword [eax + 0xd4]
call eax
test al, al
jne 0x100221d9
vmovss xmm0, dword [0x10100b38]
vxorps xmm1, xmm1, xmm1
push 0x70
vmovss dword [ebp - 0x24], xmm0
vxorps xmm0, xmm0, xmm0
mov byte [ebp - 0x1ac9], al
mov byte [ebp - 0x27c], al
mov byte [ebp - 0x274], al
lea eax, [ebp - 0x26c]
push 0
vmovss dword [ebp - 0x1ae0], xmm0
vmovss dword [ebp - 0x20], xmm0
vmovss dword [ebp - 0x1c], xmm1
vmovss dword [ebp - 0x18], xmm1
vmovups ymmword [ebp - 0x1ac8], ymm0
vmovups ymmword [ebp - 0x1aa8], ymm0
vmovss dword [ebp - 0x1a88], xmm1
vmovss dword [ebp - 0x1a84], xmm1
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x278], 0
mov dword [ebp - 0x270], 0
push eax
vzeroupper
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x1f0], 0
lea eax, [ebp - 0x1e4]
push 0x11c
push 0
push eax
call sub.VCRUNTIME140.dll_memset
vmovss xmm1, dword [0x10100898]
add esp, 0xc
lea eax, [ebp - 0x1fc]
mov ecx, 7
lea eax, [eax + 0x2c]
vpxor xmm0, xmm0, xmm0
vmovdqu xmmword [eax - 0x14], xmm0
mov dword [eax - 4], 0
mov dword [eax - 0x2c], 0
vmovss dword [eax - 0x28], xmm0
vmovss dword [eax - 0x24], xmm0
mov dword [eax - 0x20], 0
vmovss dword [eax - 0x1c], xmm1
vmovss dword [eax - 0x18], xmm0
sub ecx, 1
jne 0x10021081
mov eax, dword [ebp - 0x1ae4]
xor edi, edi
mov dword [ebp - 0xc8], ecx
vmovups xmmword [ebp - 0xc4], xmm0
mov esi, dword [esi]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1adc], edi
mov dword [ebp - 0x1aec], esi
mov dword [ebp - 0x1ad0], eax
cmp esi, eax
je 0x10021707
mov edi, dword [esi + 0xc]
test edi, edi
je 0x1002122c
add edi, 8
je 0x1002122c
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x1002122c
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 8]
call eax
cmp dword [eax + 0x14], 0xf7
jne 0x1002122c
mov eax, dword [0x101168b0]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0xc]
cmp dword [eax + 4], 2
jne 0x100211a2
call fcn.10022d70
test al, al
lea eax, [ebp - 0x1b20]
push eax
je 0x10021168
vmovdqu ymm0, ymmword [0x10100c60]
lea ecx, [ebp - 0x1b40]
vmovdqu ymmword [ebp - 0x1b40], ymm0
push ecx
vzeroupper
jmp 0x1002119d
vmovdqa xmm0, xmmword [0x10100bc0]
lea ecx, [ebp - 0x1b3c]
mov dword [ebp - 0x1b2c], 5
vmovdqu xmmword [ebp - 0x1b3c], xmm0
mov dword [ebp - 0x1b28], 6
mov dword [ebp - 0x1b24], 9
push ecx
call fcn.10023400
mov ecx, dword [ebp - 0x1ae4]
lea eax, [ebp - 0x1ac8]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [esi + 0xc]
lea eax, [ebp - 0x1b4c]
push eax
call fcn.1001f670
vmovss xmm2, dword [0x10100b2c]
vmovss xmm0, dword [eax]
vcomiss xmm0, xmm2
jbe 0x1002164b
vmovss xmm1, dword [0x101007d8]
vcomiss xmm1, xmm0
jbe 0x1002164b
vmovss xmm0, dword [eax + 4]
vcomiss xmm0, xmm2
jbe 0x1002164b
vcomiss xmm1, xmm0
jbe 0x1002164b
vmovss xmm0, dword [eax + 8]
vcomiss xmm0, xmm2
jbe 0x1002164b
vcomiss xmm1, xmm0
jbe 0x1002164b
mov byte [ebp - 0x1ac9], 0
jmp 0x1002160c
mov eax, dword [0x10116880]
cmp dword [eax + 0x74], 0x11
jne 0x10021526
mov edi, dword [ebp - 0x1ae8]
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x1af0], eax
mov eax, dword [0x10114fe8]
cmp eax, dword [edi + 4]
jle 0x1002129c
push 0x10114fe8
call fcn.100e1f89
add esp, 4
cmp dword [0x10114fe8], 0xffffffff
jne 0x1002129c
push str.m_iHealth
push str.CBasePlayer
mov dword [ebp - 4], 3
call fcn.100e1140
push 0x10114fe8
mov dword [0x10114fd0], eax
mov dword [ebp - 4], 0xffffffff
call fcn.100e1f38
add esp, 4
mov eax, dword [0x10114fd0]
mov dword [ebp - 0x1ae0], eax
mov eax, dword [0x10115000]
mov dword [ebp - 0x1ad8], eax
mov eax, dword [0x10114fe0]
cmp eax, dword [edi + 4]
jle 0x10021304
push 0x10114fe0
call fcn.100e1f89
add esp, 4
cmp dword [0x10114fe0], 0xffffffff
jne 0x10021304
push str.m_flChargedDamage
push str.CTFSniperRifle
mov dword [ebp - 4], 4
call fcn.100e1140
push 0x10114fe0
mov dword [0x10114ff0], eax
mov dword [ebp - 4], 0xffffffff
call fcn.100e1f38
add esp, 4
mov eax, dword [ebp - 0x1ae0]
mov ecx, dword [ebp - 0x1af0]
vxorps xmm1, xmm1, xmm1
vcvtsi2ss xmm1, xmm1, dword [ecx + eax]
mov eax, dword [0x10114ff0]
mov ecx, dword [ebp - 0x1ad8]
vmovss xmm0, dword [eax + ecx]
vcomiss xmm0, xmm1
jae 0x100213aa
mov eax, dword [0x10115000]
mov dword [ebp - 0x1ad8], eax
mov eax, dword [0x10114fe0]
cmp eax, dword [edi + 4]
jle 0x1002138c
push 0x10114fe0
call fcn.100e1f89
add esp, 4
cmp dword [0x10114fe0], 0xffffffff
jne 0x1002138c
push str.m_flChargedDamage
push str.CTFSniperRifle
mov dword [ebp - 4], 5
call fcn.100e1140
push 0x10114fe0
mov dword [0x10114ff0], eax
mov dword [ebp - 4], 0xffffffff
call fcn.100e1f38
add esp, 4
mov eax, dword [0x10114ff0]
mov ecx, dword [ebp - 0x1ad8]
vmovss xmm0, dword [ecx + eax]
vcomiss xmm0, dword [0x10100a28]
jb 0x10021526
mov edi, dword [esi + 0xc]
mov ecx, edi
call fcn.1001c8b0
mov ecx, edi
vmovss xmm0, dword [eax]
vmovss dword [ebp - 0x1afc], xmm0
vmovss xmm0, dword [eax + 4]
vmovss dword [ebp - 0x1af8], xmm0
vmovss xmm0, dword [eax + 8]
vmovss dword [ebp - 0x1ad8], xmm0
call fcn.1001c810
mov ecx, edi
mov esi, eax
call fcn.1001c770
vmovss xmm0, dword [eax + 8]
vaddss xmm0, xmm0, dword [esi + 8]
vmulss xmm0, xmm0, dword [0x10100870]
vaddss xmm0, xmm0, dword [ebp - 0x1ad8]
mov esi, dword [0x10115084]
mov ecx, esi
vmovss dword [ebp - 0x1af4], xmm0
call fcn.1001c8b0
mov ecx, esi
mov edi, eax
call fcn.1001cba0
mov esi, dword [ebp - 0x1aec]
push 0x4600400b
vmovss xmm0, dword [eax]
vaddss xmm2, xmm0, dword [edi]
vmovss xmm0, dword [eax + 4]
vaddss xmm1, xmm0, dword [edi + 4]
vmovss xmm0, dword [eax + 8]
vaddss xmm0, xmm0, dword [edi + 8]
lea eax, [ebp - 0x1afc]
push eax
lea eax, [ebp - 0x1b08]
push eax
push dword [esi + 0xc]
vmovss dword [ebp - 0x1b08], xmm2
push dword [0x10115084]
vmovss dword [ebp - 0x1b04], xmm1
vmovss dword [ebp - 0x1b00], xmm0
call fcn.100d3690
test al, al
je 0x1002160c
vmovss xmm0, dword [0x10100b38]
vmovss dword [ebp - 0x24], xmm0
mov edi, dword [esi + 0xc]
mov ecx, edi
mov byte [ebp - 0x1ac9], 1
call fcn.1001c8b0
mov ecx, edi
vmovss xmm0, dword [eax]
vmovss dword [ebp - 0x1ae0], xmm0
vmovss xmm0, dword [eax + 4]
vmovss dword [ebp - 0x1ad8], xmm0
vmovss xmm0, dword [eax + 8]
vmovss dword [ebp - 0x1ad0], xmm0
call fcn.1001c810
mov ecx, edi
mov esi, eax
call fcn.1001c770
vmovss xmm0, dword [esi + 8]
vmovss xmm3, dword [ebp - 0x1ae0]
vmovss xmm1, dword [ebp - 0x1ad8]
vaddss xmm0, xmm0, dword [eax + 8]
vmulss xmm0, xmm0, dword [0x10100870]
mov eax, dword [ebp - 0x1aec]
vaddss xmm0, xmm0, dword [ebp - 0x1ad0]
vmovss dword [ebp - 0x20], xmm3
vmovss dword [ebp - 0x1c], xmm1
vmovss dword [ebp - 0x18], xmm0
mov edi, dword [eax + 0xc]
mov dword [ebp - 0x1adc], edi
jmp 0x1002170f
mov eax, dword [0x10116880]
cmp dword [eax + 0x74], 0x11
je 0x1002160c
mov edi, dword [esi + 0xc]
mov ecx, edi
call fcn.1001c8b0
mov ecx, edi
vmovss xmm0, dword [eax]
vmovss dword [ebp - 0x1b14], xmm0
vmovss xmm0, dword [eax + 4]
vmovss dword [ebp - 0x1b10], xmm0
vmovss xmm0, dword [eax + 8]
vmovss dword [ebp - 0x1ad8], xmm0
call fcn.1001c810
mov ecx, edi
mov esi, eax
call fcn.1001c770
vmovss xmm0, dword [esi + 8]
mov esi, dword [0x10115084]
mov ecx, esi
vaddss xmm0, xmm0, dword [eax + 8]
vmulss xmm0, xmm0, dword [0x10100870]
vaddss xmm0, xmm0, dword [ebp - 0x1ad8]
vmovss dword [ebp - 0x1b0c], xmm0
call fcn.1001c8b0
mov ecx, esi
mov edi, eax
call fcn.1001cba0
mov esi, dword [ebp - 0x1aec]
push 0x4600400b
vmovss xmm0, dword [eax]
vaddss xmm2, xmm0, dword [edi]
vmovss xmm0, dword [edi + 4]
vaddss xmm1, xmm0, dword [eax + 4]
vmovss xmm0, dword [edi + 8]
vaddss xmm0, xmm0, dword [eax + 8]
lea eax, [ebp - 0x1b14]
push eax
lea eax, [ebp - 0x1b20]
push eax
push dword [esi + 0xc]
vmovss dword [ebp - 0x1b20], xmm2
push dword [0x10115084]
vmovss dword [ebp - 0x1b1c], xmm1
vmovss dword [ebp - 0x1b18], xmm0
call fcn.100d3690
test al, al
jne 0x10021665
add esi, 0x14
mov dword [ebp - 0x1aec], esi
cmp esi, dword [ebp - 0x1ad0]
jne 0x100210f0
mov eax, dword [0x10116880]
xor edi, edi
vmovss xmm0, dword [ebp - 0x20]
vmovss dword [eax + 0x58], xmm0
vmovss xmm0, dword [ebp - 0x1c]
vmovss dword [eax + 0x5c], xmm0
vmovss xmm0, dword [ebp - 0x18]
vmovss dword [eax + 0x60], xmm0
jmp 0x10021745
mov edi, dword [esi + 0xc]
vmovss xmm3, dword [ebp - 0x20]
mov byte [ebp - 0x1ac9], 1
mov dword [ebp - 0x1adc], edi
jmp 0x1002170f
vmovss xmm0, dword [0x10100b38]
vmovss dword [ebp - 0x24], xmm0
mov edi, dword [esi + 0xc]
mov ecx, edi
mov byte [ebp - 0x1ac9], 1
call fcn.1001c8b0
mov ecx, edi
vmovss xmm0, dword [eax]
vmovss dword [ebp - 0x1ae0], xmm0
vmovss xmm0, dword [eax + 4]
vmovss dword [ebp - 0x1ad0], xmm0
vmovss xmm0, dword [eax + 8]
vmovss dword [ebp - 0x1ad8], xmm0
call fcn.1001c810
mov ecx, edi
mov esi, eax
call fcn.1001c770
vmovss xmm1, dword [esi + 8]
vmovss xmm3, dword [ebp - 0x1ae0]
vmovss xmm2, dword [ebp - 0x1ad0]
vmovss xmm0, dword [eax + 8]
mov eax, dword [ebp - 0x1aec]
vaddss xmm0, xmm0, xmm1
vmulss xmm0, xmm0, dword [0x10100870]
vaddss xmm0, xmm0, dword [ebp - 0x1ad8]
vmovss dword [ebp - 0x20], xmm3
vmovss dword [ebp - 0x1c], xmm2
vmovss dword [ebp - 0x18], xmm0
mov edi, dword [eax + 0xc]
mov dword [ebp - 0x1adc], edi
jmp 0x1002170f
vmovss xmm3, dword [ebp - 0x1ae0]
mov eax, dword [0x10116880]
vmovss dword [eax + 0x58], xmm3
vmovss xmm0, dword [ebp - 0x1c]
vmovss dword [eax + 0x5c], xmm0
vmovss xmm0, dword [ebp - 0x18]
vmovss dword [eax + 0x60], xmm0
test edi, edi
je 0x10021745
push edi
push dword [ebp - 0x1ad4]
call fcn.10020520
test al, al
je 0x100221d9
vmovss xmm2, dword [ebp - 0x20]
vmovss xmm1, dword [0x10100b2c]
vcomiss xmm2, xmm1
jbe 0x1002178c
vmovss xmm0, dword [0x101007d8]
vcomiss xmm0, xmm2
jbe 0x1002178c
vmovss xmm3, dword [ebp - 0x1c]
vcomiss xmm3, xmm1
jbe 0x1002178c
vcomiss xmm0, xmm3
jbe 0x1002178c
vmovss xmm3, dword [ebp - 0x18]
vcomiss xmm3, xmm1
jbe 0x1002178c
vcomiss xmm0, xmm3
ja 0x100221d9
cmp dword [0x10115064], edi
je 0x100217a1
mov dword [0x10115064], edi
mov byte [0x10114fc8], 0
sub esp, 0xc
mov eax, esp
push ecx
vmovss dword [eax], xmm2
vmovss xmm0, dword [ebp - 0x1c]
vmovss dword [eax + 4], xmm0
vmovss xmm0, dword [ebp - 0x18]
push edi
vmovss dword [eax + 8], xmm0
call fcn.10022250
test al, al
je 0x100221d9
test edi, edi
je 0x100218a6
lea esi, [edi + 8]
test esi, esi
je 0x10021896
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x1002181c
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 8]
call eax
cmp dword [eax + 0x14], 0xf7
jne 0x1002181c
push edi
call fcn.100d5980
mov ecx, dword [0x10116880]
mov byte [ecx + 0x64], al
mov eax, dword [0x10116880]
mov byte [eax + 0x1c], 0
jmp 0x100218a0
test esi, esi
je 0x10021896
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 8]
call eax
mov ecx, esi
test eax, eax
je 0x10021853
mov eax, dword [esi]
mov eax, dword [eax + 8]
call eax
mov eax, dword [eax + 0x14]
add eax, 0xffffff27
cmp eax, 0x30
ja case.0x1002184a.218
movzx eax, byte [eax + 0x10022204]
jmp dword [eax*4 + 0x100221fc]
mov ecx, esi
mov eax, dword [esi]
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x10021896
test esi, esi
je 0x1002186d
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 8]
call eax
jmp 0x1002186f
xor eax, eax
cmp dword [eax + 0x14], 0xd5
je case.0x1002184a.217
test esi, esi
je 0x10021887
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 8]
call eax
jmp 0x10021889
xor eax, eax
cmp dword [eax + 0x14], 0x11a
jne 0x10021896
mov dl, 1
jmp 0x10021898
xor dl, dl
mov eax, dword [0x10116880]
mov byte [eax + 0x1c], dl
mov dword [ebp - 0x1adc], edi
mov cl, byte [ebp - 0x1ac9]
test cl, cl
je 0x100221ca
test edi, edi
je 0x100221ca
lea esi, [edi + 8]
mov dword [ebp - 0x1af0], esi
test esi, esi
je 0x100218ec
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x100218ec
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 8]
call eax
cmp dword [eax + 0x14], 0xf7
jne 0x100218ec
mov al, 1
jmp 0x100218ee
xor al, al
test al, al
je case.default.0x10021b1e
mov esi, dword [ebp - 0x1ae8]
mov eax, dword [0x10115028]
cmp eax, dword [esi + 4]
jle 0x1002194e
push 0x10115028
call fcn.100e1f89
add esp, 4
cmp dword [0x10115028], 0xffffffff
jne 0x1002194e
push str.m_flSimulationTime
push str.CBaseEntity
mov dword [ebp - 4], 6
call fcn.100e1140
push 0x10115028
mov dword [0x10115024], eax
mov dword [ebp - 4], 0xffffffff
call fcn.100e1f38
add esp, 4
mov eax, dword [0x10115024]
mov dword [ebp - 0x1ad0], eax
mov eax, dword [0x101150a4]
cmp eax, dword [esi + 4]
jle 0x100219ab
push 0x101150a4
call fcn.100e1f89
add esp, 4
cmp dword [0x101150a4], 0xffffffff
jne 0x100219ab
push str.m_flSimulationTime
push str.CBaseEntity
mov dword [ebp - 4], 7
call fcn.100e1140
push 0x101150a4
mov dword [0x10115044], eax
mov dword [ebp - 4], 0xffffffff
call fcn.100e1f38
add esp, 4
mov eax, dword [ebp - 0x1ad0]
vmovss xmm0, dword [edi + eax]
mov eax, dword [0x10115044]
vsubss xmm1, xmm0, dword [edi + eax + 4]
mov eax, dword [0x101150ac]
vmovss dword [ebp - 0x1ad8], xmm1
vmovss xmm0, dword [eax + 0x1c]
vaddss xmm0, xmm0, xmm0
vcomiss xmm0, xmm1
ja 0x10021ab0
mov eax, dword [0x10115028]
cmp eax, dword [esi + 4]
jle 0x10021a33
push 0x10115028
call fcn.100e1f89
add esp, 4
cmp dword [0x10115028], 0xffffffff
jne 0x10021a33
push str.m_flSimulationTime
push str.CBaseEntity
mov dword [ebp - 4], 8
call fcn.100e1140
push 0x10115028
mov dword [0x10115024], eax
mov dword [ebp - 4], 0xffffffff
call fcn.100e1f38
add esp, 4
mov eax, dword [0x10115024]
mov dword [ebp - 0x1ad0], eax
mov eax, dword [0x101150a4]
cmp eax, dword [esi + 4]
jle 0x10021a90
push 0x101150a4
call fcn.100e1f89
add esp, 4
cmp dword [0x101150a4], 0xffffffff
jne 0x10021a90
push str.m_flSimulationTime
push str.CBaseEntity
mov dword [ebp - 4], 9
call fcn.100e1140
push 0x101150a4
mov dword [0x10115044], eax
mov dword [ebp - 4], 0xffffffff
call fcn.100e1f38
add esp, 4
mov eax, dword [0x10115044]
vmovss xmm0, dword [edi + eax + 4]
mov eax, dword [ebp - 0x1ad0]
vcomiss xmm0, dword [edi + eax]
jbe 0x10021ad6
vmovss xmm1, dword [ebp - 0x1ad8]
mov eax, dword [0x101150ac]
vmovss xmm0, dword [eax + 0x1c]
vcomiss xmm0, xmm1
ja 0x100221d9
vmulss xmm0, xmm0, dword [0x101008ac]
vcomiss xmm1, xmm0
ja 0x100221d9
lea esi, [edi + 8]
test esi, esi
je 0x10021aea
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x24]
call eax
mov edx, eax
jmp 0x10021aec
xor edx, edx
mov ecx, dword [0x10114ffc]
lea esi, [ebp - 0xb0]
push esi
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
call eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x1ad0], eax
lea eax, [ebp - 0x1ad0]
push eax
call fcn.10023310
mov eax, dword [eax]
dec eax
cmp eax, 3
ja case.default.0x10021b1e
jmp dword [eax*4 + 0x10022238]
mov eax, dword [0x101168b0]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 0x34]
cmp byte [eax + 0x14], 0
jmp 0x10021b67
mov eax, dword [0x101168b0]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 0x34]
cmp byte [eax + 0x11], 0
jmp 0x10021b67
mov eax, dword [0x101168b0]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 0x34]
cmp byte [eax + 0x12], 0
jmp 0x10021b67
mov eax, dword [0x101168b0]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 0x34]
cmp byte [eax + 0x13], 0
je case.default.0x10021b1e
mov eax, dword [0x10116880]
mov eax, dword [eax + 0x8c]
mov byte [eax], 1
cmp dword [0x10115228], 0
jne 0x10021cfa
push str.Team_Fortress_2
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [0x10115228], eax
mov eax, dword [ebp - 0x1ad4]
or dword [eax + 0x24], 1
mov ecx, dword [0x101168b0]
mov eax, dword [ecx + 4]
mov eax, dword [eax + 0xc]
cmp byte [eax], 0
je 0x10021e99
mov eax, dword [0x10116880]
cmp dword [eax + 0x74], 0x12
jne 0x10021e99
mov eax, dword [ecx + 0x14]
mov eax, dword [eax + 0x38]
cmp byte [eax], 0
je 0x10021daf
mov eax, dword [0x101168c4]
vmovss xmm0, dword [0x10100954]
vcomiss xmm0, dword [eax + 0x40]
ja 0x10021bf0
cmp dword [eax], 2
je 0x10021e99
mov ecx, dword [0x10115084]
call fcn.1001c8b0
mov ecx, edi
mov esi, eax
call fcn.1001c8b0
vmovss xmm0, dword [esi]
vsubss xmm3, xmm0, dword [eax]
vmovss xmm0, dword [esi + 4]
vsubss xmm1, xmm0, dword [eax + 4]
vmovss xmm0, dword [esi + 8]
vsubss xmm2, xmm0, dword [eax + 8]
vmulss xmm0, xmm3, xmm3
vmulss xmm1, xmm1, xmm1
vaddss xmm1, xmm1, xmm0
vmulss xmm0, xmm2, xmm2
vaddss xmm0, xmm1, xmm0
call fcn.1001c320
vcomiss xmm0, dword [0x10100ac8]
jbe 0x10021e99
mov ecx, dword [ebp - 0x1ae8]
mov eax, dword [0x10115074]
mov esi, dword [0x10115084]
cmp eax, dword [ecx + 4]
jle 0x10021ca5
push 0x10115074
call fcn.100e1f89
add esp, 4
cmp dword [0x10115074], 0xffffffff
jne 0x10021ca5
push str.m_nTickBase
push str.CBasePlayer
mov dword [ebp - 4], 0xa
call fcn.100e1140
push 0x10115074
mov dword [0x10114fe4], eax
mov dword [ebp - 4], 0xffffffff
call fcn.100e1f38
add esp, 4
mov eax, dword [0x101150ac]
mov ecx, dword [0x10114fe4]
vmovss xmm0, dword [eax + 0x1c]
mov esi, dword [esi + ecx]
vmovss dword [ebp - 0x1ad0], xmm0
call fcn.1001d3a0
vxorps xmm0, xmm0, xmm0
vcvtsi2ss xmm0, xmm0, esi
vmulss xmm0, xmm0, dword [ebp - 0x1ad0]
vsubss xmm1, xmm0, dword [eax]
vmovss xmm0, dword [0x10100840]
vcomiss xmm0, xmm1
mov ecx, dword [ebp - 0x1ad4]
jb 0x10021e9f
and dword [ecx + 0x24], 0xfffffffe
jmp 0x10021e9f
mov esi, dword [sym.imp.USER32.dll_GetForegroundWindow]
call esi
cmp eax, dword [0x10115228]
jne 0x10021b96
mov eax, dword [0x101168b0]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 0x28]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x10021b96
cmp dword [0x10115228], 0
je 0x10021b84
call esi
cmp eax, dword [0x10115228]
jne 0x10021b96
mov ecx, dword [0x1011509c]
mov eax, dword [ecx]
mov eax, dword [eax + 0xd4]
call eax
test al, al
jne 0x10021b96
mov ecx, dword [0x10115084]
call fcn.1001cd80
vxorps xmm1, xmm1, xmm1
vmovss xmm0, dword [eax]
vucomiss xmm0, xmm1
lahf
test ah, 0x44
jp 0x10021ba0
mov ecx, dword [0x10115084]
call fcn.1001cc40
cmp byte [eax], 0
jne 0x10021ba0
call fcn.1001d0a0
test al, al
jne 0x10021ba0
mov ecx, dword [ebp - 0x1ad4]
or dword [ecx + 0x24], 1
jmp 0x10021ba0
mov ecx, dword [0x10115084]
call fcn.1001c8b0
mov ecx, edi
mov esi, eax
call fcn.1001c8b0
vmovss xmm0, dword [esi]
vsubss xmm3, xmm0, dword [eax]
vmovss xmm0, dword [esi + 4]
vsubss xmm1, xmm0, dword [eax + 4]
vmovss xmm0, dword [esi + 8]
vsubss xmm2, xmm0, dword [eax + 8]
vmulss xmm0, xmm3, xmm3
vmulss xmm1, xmm1, xmm1
vaddss xmm1, xmm1, xmm0
vmulss xmm0, xmm2, xmm2
vaddss xmm0, xmm1, xmm0
call fcn.1001c320
vcomiss xmm0, dword [0x10100ac8]
jbe 0x10021e99
mov ecx, dword [ebp - 0x1ae8]
mov eax, dword [0x10115074]
mov esi, dword [0x10115084]
cmp eax, dword [ecx + 4]
jle 0x10021e64
push 0x10115074
call fcn.100e1f89
add esp, 4
cmp dword [0x10115074], 0xffffffff
jne 0x10021e64
push str.m_nTickBase
push str.CBasePlayer
mov dword [ebp - 4], 0xb
call fcn.100e1140
push 0x10115074
mov dword [0x10114fe4], eax
mov dword [ebp - 4], 0xffffffff
call fcn.100e1f38
add esp, 4
mov eax, dword [0x101150ac]
mov ecx, dword [0x10114fe4]
vmovss xmm0, dword [eax + 0x1c]
mov esi, dword [esi + ecx]
vmovss dword [ebp - 0x1ad0], xmm0
call fcn.1001d3a0
vxorps xmm0, xmm0, xmm0
vcvtsi2ss xmm0, xmm0, esi
vmulss xmm0, xmm0, dword [ebp - 0x1ad0]
jmp 0x10021cd5
mov ecx, dword [ebp - 0x1ad4]
push ecx
call fcn.100d49b0
test al, al
je 0x100221c1
mov esi, dword [0x10115084]
mov ecx, esi
call fcn.1001c8b0
mov ecx, esi
mov edi, eax
call fcn.1001cba0
vmovss xmm0, dword [eax]
vaddss xmm1, xmm0, dword [edi]
vmovss xmm0, dword [eax + 4]
vaddss xmm2, xmm0, dword [edi + 4]
vmovss xmm0, dword [eax + 8]
vaddss xmm0, xmm0, dword [edi + 8]
vsubss xmm3, xmm1, dword [ebp - 0x20]
vsubss xmm0, xmm0, dword [ebp - 0x18]
vsubss xmm1, xmm2, dword [ebp - 0x1c]
vmovss dword [ebp - 0x1ad0], xmm0
vmovss dword [ebp - 0x1ad8], xmm1
vmulss xmm1, xmm1, xmm1
vmulss xmm0, xmm3, xmm3
vaddss xmm0, xmm1, xmm0
vcvtss2sd xmm0, xmm0, xmm0
vxorpd xmm1, xmm1, xmm1
vucomisd xmm1, xmm0
vmovss dword [ebp - 0x1ae0], xmm3
ja 0x10021f26
vsqrtsd xmm0, xmm0, xmm0
jmp 0x10021f2b
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
vmovss xmm1, dword [ebp - 0x1ad0]
vcvtsd2ss xmm0, xmm0, xmm0
vdivss xmm0, xmm1, xmm0
vcvtss2sd xmm0, xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_atan_precise
vcvtsd2ss xmm0, xmm0, xmm0
vcvtss2sd xmm0, xmm0, xmm0
vmulsd xmm0, xmm0, qword [0x10100918]
vcvtsd2ss xmm0, xmm0, xmm0
vmovss dword [ebp - 0x1ad0], xmm0
vmovss xmm0, dword [ebp - 0x1ad8]
vdivss xmm0, xmm0, dword [ebp - 0x1ae0]
vcvtss2sd xmm0, xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_atan_precise
vcvtsd2ss xmm0, xmm0, xmm0
vcvtss2sd xmm0, xmm0, xmm0
vmulsd xmm0, xmm0, qword [0x10100918]
vcvtsd2ss xmm2, xmm0, xmm0
vmovss xmm0, dword [ebp - 0x1ae0]
vxorps xmm1, xmm1, xmm1
vcomiss xmm0, xmm1
jb 0x10021fa7
vaddss xmm2, xmm2, dword [0x10100a34]
mov ecx, dword [ebp - 0x1ad4]
vmovss xmm0, dword [ebp - 0x1ad0]
vmovss dword [ecx + 0xc], xmm0
vmovss dword [ecx + 0x10], xmm2
vmovss dword [ecx + 0x14], xmm1
mov eax, dword [0x10116880]
vsubss xmm3, xmm0, dword [eax + 0x34]
vmovss dword [ecx + 0xc], xmm3
vsubss xmm0, xmm2, dword [eax + 0x38]
vmovss dword [ecx + 0x10], xmm0
vsubss xmm0, xmm1, dword [eax + 0x3c]
vmovss dword [ecx + 0x14], xmm0
mov edx, dword [0x10116880]
cmp dword [edx], 0x15
jl 0x10022003
vmovss dword [edx + 0x68], xmm3
mov eax, dword [ecx + 0x10]
mov dword [edx + 0x6c], eax
mov eax, dword [ecx + 0x14]
mov dword [edx + 0x70], eax
mov esi, dword [ebp - 0x1af0]
test esi, esi
je 0x100220f1
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x100220f1
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 8]
call eax
cmp dword [eax + 0x14], 0xf7
jne 0x100220f1
vxorps xmm1, xmm1, xmm1
vcomiss xmm1, dword [ebp - 0x24]
jb 0x100220d6
mov ecx, dword [ebp - 0x1ae8]
mov eax, dword [0x10115028]
cmp eax, dword [ecx + 4]
jle 0x1002209f
push 0x10115028
call fcn.100e1f89
add esp, 4
cmp dword [0x10115028], 0xffffffff
jne 0x1002209f
push str.m_flSimulationTime
push str.CBaseEntity
mov dword [ebp - 4], 0xc
call fcn.100e1140
push 0x10115028
mov dword [0x10115024], eax
mov dword [ebp - 4], 0xffffffff
call fcn.100e1f38
add esp, 4
mov esi, dword [0x10115024]
call fcn.100d39a0
mov edi, dword [ebp - 0x1adc]
mov eax, dword [0x101150ac]
mov ecx, dword [ebp - 0x1ad4]
vaddss xmm0, xmm0, dword [edi + esi]
vdivss xmm0, xmm0, dword [eax + 0x1c]
vaddss xmm0, xmm0, dword [0x10100870]
vcvttss2si eax, xmm0
mov dword [ecx + 8], eax
jmp 0x100220f7
mov edi, dword [ebp - 0x1adc]
lea eax, [ebp - 0x1ac8]
push edi
push eax
push dword [ebp - 0x1ad4]
call fcn.100416d0
jmp 0x100220f7
mov edi, dword [ebp - 0x1adc]
mov ecx, dword [ebp - 0x1ae8]
mov eax, dword [0x101150a0]
mov esi, dword [0x10115084]
cmp eax, dword [ecx + 4]
jle 0x10022155
push 0x101150a0
call fcn.100e1f89
add esp, 4
cmp dword [0x101150a0], 0xffffffff
jne 0x10022155
push str.m_iClass
push str.CTFPlayer
mov dword [ebp - 4], 0xd
call fcn.100e1140
push 0x101150a0
mov dword [0x10115090], eax
mov dword [ebp - 4], 0xffffffff
call fcn.100e1f38
add esp, 4
mov eax, dword [0x10115090]
cmp dword [esi + eax], 2
jne 0x100221c1
mov ecx, dword [0x10115000]
test ecx, ecx
je 0x100221c1
mov eax, dword [ecx]
mov eax, dword [eax + 0x528]
call eax
test eax, eax
jne 0x100221c1
mov ecx, dword [0x10114ffc]
mov eax, dword [ecx]
mov eax, dword [eax + 0x38]
mov dword [ebp - 0x1ad0], eax
call dword [ebp - 0x1ad0]
mov eax, dword [0x10116880]
fstp dword [ebp - 0x1ad0]
vmovss xmm0, dword [ebp - 0x1ad0]
vmovss dword [eax + 0x50], xmm0
mov eax, dword [0x10116880]
mov byte [eax + 0x54], 0
mov eax, dword [0x10116880]
mov byte [eax + 0x55], 0
mov eax, dword [0x10116880]
mov dword [eax + 0x48], edi
mov eax, dword [0x10116880]
mov byte [eax + 0x40], 1
mov eax, dword [ebp - 0x1ad4]
add eax, 0xc
push eax
call fcn.1001c3b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100e1a3b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4