Function at 0x10037730
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e71f9
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x10114008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x10117f54]
mov ebx, dword [ebp + 8]
mov edi, dword [0x101198c0]
mov dword [ebp - 0x20], ebx
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x101198a8]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], ecx
cmp eax, dword [ecx + 4]
jle 0x100377ce
push 0x101198a8
call fcn.100e3eef
add esp, 4
cmp dword [0x101198a8], 0xffffffff
jne 0x100377ce
mov dword [ebp - 4], 0
mov ecx, dword [0x10118138]
push str.tf_weapon_criticals
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
push 0x101198a8
mov dword [0x101198a0], eax
mov dword [ebp - 4], 0xffffffff
call fcn.100e3ea5
add esp, 4
mov eax, dword [0x101198a0]
test eax, eax
je 0x100377e4
mov eax, dword [eax + 0x1c]
cmp dword [eax + 0x30], 0
je 0x10037e2a
mov esi, dword [0x10118104]
test esi, esi
je 0x10037e2a
mov eax, dword [0x10118020]
test eax, eax
je 0x10037e2a
lea ecx, [eax + 8]
test ecx, ecx
je 0x10037818
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
mov esi, dword [0x10118104]
mov dword [ebp - 0x18], eax
jmp 0x1003781f
mov dword [ebp - 0x18], 0
test esi, esi
jne 0x10037827
xor ecx, ecx
jmp 0x1003788a
mov ecx, dword [ebp - 0x28]
mov eax, dword [0x10118118]
cmp eax, dword [ecx + 4]
jle 0x1003787c
push 0x10118118
call fcn.100e3eef
add esp, 4
cmp dword [0x10118118], 0xffffffff
jne 0x1003787c
push str.m_iDamage
push str.CTFPlayerResource
mov dword [ebp - 4], 1
call fcn.100e2fc0
push 0x10118118
mov dword [0x10118114], eax
mov dword [ebp - 4], 0xffffffff
call fcn.100e3ea5
add esp, 4
mov ecx, dword [ebp - 0x18]
mov eax, dword [0x10118114]
lea eax, [eax + ecx*4]
mov ecx, dword [eax + esi]
cmp dword [0x10118020], 0
mov eax, dword [0x101198c0]
vxorps xmm0, xmm0, xmm0
vcvtsi2ss xmm0, xmm0, ecx
mov eax, dword [eax]
mov eax, dword [eax]
vsubss xmm0, xmm0, dword [eax + 4]
vsubss xmm0, xmm0, dword [eax + 8]
vsubss xmm0, xmm0, dword [eax + 0x10]
vmovss dword [eax], xmm0
je 0x10037e2a
cmp dword [0x10117fa0], 0
je 0x10037e2a
mov eax, dword [0x1011984c]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 0x34]
cmp byte [eax], 0
je 0x10037e2a
push ebx
mov ecx, edi
call fcn.10038300
mov eax, dword [0x1011981c]
cmp dword [eax + 0x74], 0x12
jne 0x100378fe
mov eax, dword [ebx + 0x24]
test al, 1
je 0x100378fe
and eax, 0xfffff7ff
mov dword [ebx + 0x24], eax
call fcn.10038d30
test al, al
je 0x10037e1c
mov ecx, dword [0x10118020]
call fcn.100338c0
test al, al
jne 0x10037e2a
mov ecx, dword [0x10117fa0]
mov esi, dword [edi]
test ecx, ecx
je 0x10037938
add ecx, 8
je 0x10037938
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
jmp 0x1003793a
xor eax, eax
mov dword [ebp - 0x30], eax
lea ecx, [esi + 0x14]
lea eax, [ebp - 0x30]
push eax
call fcn.100392f0
mov ecx, dword [0x10117fa0]
mov esi, dword [edi]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x10037966
add ecx, 8
je 0x10037966
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
jmp 0x10037968
xor eax, eax
mov dword [ebp - 0x34], eax
lea ecx, [esi + 0x34]
lea eax, [ebp - 0x34]
push eax
call fcn.100392f0
mov ecx, dword [0x10117fa0]
mov esi, eax
push ecx
mov dword [ebp - 0x24], esi
vmovss xmm0, dword [ecx + 0xa54]
mov ecx, edi
vmovss dword [ebp - 0x14], xmm0
call fcn.10038b00
vcomiss xmm0, dword [ebp - 0x14]
jbe 0x100379a7
mov byte [ebp - 0xd], 0
jmp 0x10037a76
call fcn.10037470
mov ecx, dword [0x10117fa0]
test al, al
je 0x100379d3
mov eax, dword [ecx + 0xa5c]
inc eax
lea eax, [eax + eax*4]
add eax, eax
cmp dword [ecx + 0xa58], eax
jge 0x100379d3
mov byte [ebp - 0xd], 0
jmp 0x10037a76
mov eax, dword [0x1011981c]
mov eax, dword [eax + 0x8c]
cmp byte [eax], 0
jne 0x10037a4f
mov eax, dword [0x1011984c]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 0x34]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x1003799e
cmp dword [0x101181c8], 0
jne 0x10037a1f
push str.Team_Fortress_2
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [0x101181c8], eax
mov byte [ebp - 0xd], 0
jmp 0x10037a76
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, dword [0x101181c8]
jne 0x1003799e
mov ecx, dword [0x10118038]
mov eax, dword [ecx]
mov eax, dword [eax + 0xd4]
call eax
test al, al
jne 0x1003799e
mov ecx, dword [0x10117fa0]
mov eax, dword [edi]
cmp byte [eax + 0xd], 0
je 0x10037a72
test ecx, ecx
je 0x1003799e
mov eax, dword [ecx]
mov eax, dword [eax + 0x528]
call eax
mov byte [ebp - 0xd], 0
cmp eax, 2
jne 0x10037a76
mov byte [ebp - 0xd], 1
call fcn.10037470
test al, al
je 0x10037b20
mov eax, dword [0x10117fa0]
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x14], eax
mov eax, dword [0x10118020]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x10118010]
cmp eax, dword [ecx + 4]
jle 0x10037ae8
push 0x10118010
call fcn.100e3eef
add esp, 4
cmp dword [0x10118010], 0xffffffff
jne 0x10037ae8
push str.m_nTickBase
push str.CBasePlayer
mov dword [ebp - 4], 2
call fcn.100e2fc0
push 0x10118010
mov dword [0x10117f84], eax
mov dword [ebp - 4], 0xffffffff
call fcn.100e3ea5
add esp, 4
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
vmovss xmm0, dword [eax + 0xb60]
vaddss xmm1, xmm0, dword [0x10102c90]
mov eax, dword [0x10117f84]
vxorps xmm0, xmm0, xmm0
vcvtsi2ss xmm0, xmm0, dword [ecx + eax]
mov eax, dword [0x10118044]
vmulss xmm0, xmm0, dword [eax + 0x1c]
vcomiss xmm1, xmm0
ja 0x10037e2a
mov ecx, dword [esi + 4]
sub ecx, dword [esi]
sar ecx, 3
cmp ecx, 2
jbe 0x10037c89
cmp byte [ebp - 0xd], 0
jne 0x10037c89
mov eax, dword [0x1011811c]
xor edx, edx
div ecx
mov eax, dword [esi]
mov dword [0x1011811c], edx
mov eax, dword [eax + edx*8 + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi]
mov byte [eax + 0xe], 0
mov eax, dword [0x10117fa0]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10037c82
mov ecx, dword [ebp - 0x28]
mov eax, dword [0x101198bc]
cmp eax, dword [ecx + 4]
jle 0x10037baf
push 0x101198bc
call fcn.100e3eef
add esp, 4
cmp dword [0x101198bc], 0xffffffff
jne 0x10037baf
push 0x110
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [0x101198b0], eax
push 0x101198bc
call fcn.100e3ea5
add esp, 4
mov edx, dword [ebp - 0x14]
mov ecx, 0x44
mov eax, dword [0x10118140]
mov edi, dword [0x101198b0]
vxorps xmm0, xmm0, xmm0
lea esi, [edx + 0xa54]
mov ebx, dword [eax]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x1c]
inc dword [edx + 0xb5c]
vmovss dword [edx + 0xb60], xmm0
call fcn.100d3600
mov ecx, dword [0x10118140]
and eax, 0x7fffffff
mov edi, dword [ebp - 0x2c]
mov dword [ecx], eax
mov eax, dword [edi]
mov byte [eax + 0xc], 1
mov eax, dword [ebp - 0x14]
mov ecx, eax
mov esi, dword [eax + 0xb24]
mov dword [eax + 0xb24], 0
call dword [sym.ateris.dll_void____fastcall___void___void___CalcIsAttackCritical::OriginalFunction]
mov ecx, dword [ebp - 0x14]
call fcn.100373d0
mov ecx, dword [ebp - 0x14]
vmovss xmm0, dword [eax]
mov dword [ecx + 0xb24], esi
mov eax, dword [edi]
mov esi, dword [0x101198b0]
vmovss dword [ebp - 0x1c], xmm0
mov byte [eax + 0xc], 0
mov edx, dword [edi]
mov al, byte [ecx + 0xb36]
mov ecx, 0x44
mov edi, dword [ebp - 0x14]
add edi, 0xa54
mov byte [edx + 0xe], al
mov eax, dword [0x10118140]
mov dword [eax], ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x10117fa0]
call fcn.100373d0
vmovss xmm0, dword [ebp - 0x1c]
mov edx, dword [0x1011811c]
mov ebx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x24]
vmovss dword [eax], xmm0
inc edx
mov dword [0x1011811c], edx
push ebx
call fcn.100d6820
test al, al
jne 0x10037cb4
mov ecx, dword [0x10117fa0]
test ecx, ecx
je 0x10037e1c
mov eax, dword [ecx]
mov eax, dword [eax + 0x528]
call eax
cmp eax, 2
jne 0x10037e1c
cmp byte [ebp - 0xd], 0
jne 0x10037d63
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
sub ecx, edx
mov dword [ebp - 0x20], edx
sar ecx, 3
cmp ecx, 2
jbe 0x10037e2a
mov eax, dword [0x10118134]
xor edx, edx
div ecx
mov eax, dword [ebp - 0x20]
mov ecx, dword [0x10117fa0]
mov esi, edx
mov dword [0x10118134], esi
mov eax, dword [eax + esi*8 + 4]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov eax, dword [eax + esi*8]
mov dword [edi + 4], eax
test ecx, ecx
je 0x10037d57
mov eax, dword [ecx]
mov eax, dword [eax + 0x528]
call eax
cmp eax, 2
jne 0x10037d51
push ebx
call fcn.100d6820
test al, al
je 0x10037d51
mov ebx, dword [ebp - 0x18]
mov esi, dword [0x10118134]
mov eax, dword [ebx]
lea edx, [eax + esi*8]
mov eax, dword [ebx + 4]
lea ecx, [edx + 8]
sub eax, ecx
push eax
push ecx
push edx
call sub.VCRUNTIME140.dll_memmove
add dword [ebx + 4], 0xfffffff8
add esp, 0xc
inc esi
mov dword [0x10118134], esi
jmp 0x10037e1c
mov esi, dword [0x10118134]
inc esi
mov dword [0x10118134], esi
jmp 0x10037e1c
mov eax, dword [esi]
mov ecx, dword [esi + 4]
sub ecx, eax
mov dword [ebp - 0x20], eax
sar ecx, 3
cmp ecx, 2
jbe 0x10037e2a
mov eax, dword [0x1011811c]
xor edx, edx
div ecx
mov eax, dword [ebp - 0x20]
mov ecx, dword [0x10117fa0]
mov esi, edx
mov dword [0x1011811c], esi
mov eax, dword [eax + esi*8 + 4]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
mov eax, dword [eax + esi*8]
mov dword [edi + 4], eax
test ecx, ecx
je 0x10037df2
mov eax, dword [ecx]
mov eax, dword [eax + 0x528]
call eax
cmp eax, 2
jne 0x10037dec
push ebx
call fcn.100d6820
test al, al
je 0x10037dec
mov ecx, dword [ebp - 0x24]
mov esi, dword [0x1011811c]
mov eax, dword [ecx]
lea edx, [eax + esi*8]
mov eax, dword [ecx + 4]
lea ecx, [edx + 8]
sub eax, ecx
push eax
push ecx
push edx
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x24]
add esp, 0xc
add dword [eax + 4], 0xfffffff8
jmp 0x10037df2
mov esi, dword [0x1011811c]
inc esi
test byte [ebx + 0x24], 1
mov dword [0x1011811c], esi
je 0x10037e1c
mov ecx, dword [0x10117fa0]
test ecx, ecx
je 0x10037e1c
mov eax, dword [ecx]
mov eax, dword [eax + 0x528]
call eax
cmp eax, 2
jne 0x10037e1c
mov byte [edi + 9], 1
mov eax, dword [0x1011981c]
mov eax, dword [eax + 0x8c]
mov byte [eax], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4