Function at 0x40ea20
Capabilities:
Check for time delay via queryperformancecounter
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xc4
mov eax, dword [0x415020]
mov dword [esp + 0x3c], eax
mov eax, dword [0x415024]
push ebx
mov dword [esp + 0x44], eax
mov ebx, ecx
mov eax, dword [0x4156a0]
or eax, dword [0x4156a4]
push esi
push edi
jne 0x40ea5b
push 0x4156a0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [0x4156a0]
mov edx, dword [0x4156a4]
cmp ecx, 0x989680
jne 0x40ea90
test edx, edx
jne 0x40ea90
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x20], edi
jmp 0x40eacb
call fcn.00410b80
movsd xmm1, qword [0x412c80]
divsd xmm1, xmm0
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
movsd qword [esp + 0x20], xmm1
call fcn.00410b80
mulsd xmm0, qword [esp + 0x20]
call fcn.004109c0
mov esi, eax
mov dword [esp + 0x2c], eax
mov edi, edx
mov dword [esp + 0x20], edx
mov ecx, esi
mov edx, edi
sub ecx, dword [0x50a3a8]
sbb edx, dword [0x50a3ac]
call fcn.00410b20
movaps xmm1, xmm0
movsd xmm0, qword [0x412c78]
comisd xmm0, xmm1
jbe 0x40eb10
add dword [0x509cc8], 1
mov esi, dword [0x41584c]
adc dword [0x509ccc], 0
mov edi, dword [0x415848]
jmp 0x40ebe3
mov edx, dword [0x509ccc]
mov ecx, dword [0x509cc8]
call fcn.00410b20
movaps xmm1, xmm0
mov dword [0x50a3a8], esi
addsd xmm1, xmm1
mov dword [0x50a3ac], edi
xorps xmm0, xmm0
movlpd qword [0x509cc8], xmm0
movaps xmm0, xmm1
movsd qword [0x4156f8], xmm1
call fcn.00410a70
mov ecx, dword [esp + 0x48]
mov esi, dword [esp + 0x4c]
sub ecx, eax
mov dword [esp + 0x18], ecx
sbb esi, edx
mov edx, esi
call fcn.00410b80
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
movsd qword [esp + 0x30], xmm0
call fcn.00410b20
movsd xmm1, qword [esp + 0x30]
divsd xmm1, xmm0
mulsd xmm1, qword [0x412c68]
maxsd xmm1, qword [0x412c60]
test esi, esi
jg 0x40eba9
jl 0x40eba0
cmp dword [esp + 0x18], 0
jae 0x40eba9
mov esi, 1
xor edi, edi
jmp 0x40ebae
or esi, 0xffffffff
or edi, esi
mulsd xmm1, qword [0x412c70]
movaps xmm0, xmm1
call fcn.00410a70
push edi
push esi
push edx
push eax
call fcn.004108b0
mov edi, dword [0x415848]
mov esi, dword [0x41584c]
add edi, eax
mov dword [0x415848], edi
adc esi, edx
mov dword [0x41584c], esi
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
test ecx, ecx
jne 0x40ebfa
test eax, eax
jne 0x40ebfa
lea eax, [ecx + 1]
xor edx, edx
jmp 0x40ec0c
push ecx
push eax
push 0
push 0x989680
call fcn.00410950
add eax, edi
adc edx, esi
push edx
push eax
call fcn.0040f720
mov eax, dword [esp + 0x2c]
mov esi, dword [0x509cc4]
mov dword [0x50a3a0], eax
mov eax, dword [esp + 0x20]
mov dword [0x50a3a4], eax
mov byte [esp + 0x2b], 0
test esi, esi
jne 0x40ec9f
mov esi, dword [ebx + 0x114]
lea edx, [esp + 0x18]
mov ecx, str.B9_________E8_________84_C0_75_0E_68_________FF_15_________83_C4_04_83_05___________75_04
call fcn.00402bb0
mov edi, eax
test edi, edi
je 0x40ec71
mov eax, dword [esp + 0x18]
cmp eax, 2
jbe 0x40ec71
push 0
push eax
push edi
push esi
mov ecx, ebx
call fcn.00403520
push edi
mov esi, eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp 0x40ec73
xor esi, esi
push ecx
mov ecx, dword [ebx]
lea eax, [esi + 1]
push 4
push 0
push eax
lea edx, [esp + 0x30]
mov dword [0x509cc4], esi
mov dword [esp + 0x30], 0
call fcn.0040ca50
mov esi, dword [esp + 0x20]
mov dword [0x509cc4], esi
push 0x40
lea eax, [esp + 0x94]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [ebx]
lea edx, [esp + 0x9c]
add esp, 8
push 0x40
push 0
push esi
call fcn.0040ca50
mov edi, dword [0x41181c]
lea edx, [edi + 4]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40ecd4
sub ecx, esi
lea eax, [esp + 0x90]
push ecx
push eax
push edx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x40ed9f
movaps xmm0, xmmword [esp + 0x90]
sub esp, 0xc
mov edi, dword [edi]
mov esi, esp
movaps xmmword [esp + 0x5c], xmm0
movaps xmm0, xmmword [esp + 0xac]
movaps xmmword [esp + 0x6c], xmm0
movaps xmm0, xmmword [esp + 0xbc]
movaps xmmword [esp + 0x7c], xmm0
movaps xmm0, xmmword [esp + 0xcc]
movaps xmmword [esp + 0x8c], xmm0
push 0x40
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
call fcn.0040fdc7
mov dword [esi], eax
add esp, 4
lea ecx, [eax + 0x40]
mov dword [esi + 8], ecx
movups xmm0, xmmword [esp + 0x5c]
movups xmmword [eax], xmm0
movups xmm0, xmmword [esp + 0x6c]
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [esp + 0x7c]
movups xmmword [eax + 0x20], xmm0
movups xmm0, xmmword [esp + 0x8c]
movups xmmword [eax + 0x30], xmm0
add eax, 0x40
mov dword [esi + 4], eax
call edi
mov ecx, dword [ebx]
lea edx, [esp + 0x53]
add esp, 8
mov byte [esp + 0x2f], al
mov byte [esp + 0x4b], 0
push 1
push 0
push dword [0x509cc4]
call fcn.0040c900
mov ecx, ebx
call fcn.00407db0
cmp byte [0x415838], 0
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
je 0x40ef01
push 0x20
call edi
mov ecx, 0x8000
test cx, ax
je 0x40ef01
cmp dword [0x4156dc], 0
jne 0x40ede8
push 0x31
push str.hack_run_bhop
push str.ASSERTION_FAILED:__s____line:__d_
call fcn.00401870
add esp, 0xc
cmp dword [0x4156f4], 0
jne 0x40ee05
push 0x32
push str.hack_run_bhop
push str.ASSERTION_FAILED:__s____line:__d_
call fcn.00401870
add esp, 0xc
push ecx
mov ecx, dword [ebx]
lea edx, [esp + 0x24]
push 4
push 0
push dword [0x4156dc]
mov dword [esp + 0x30], 0
call fcn.0040ca50
mov esi, dword [esp + 0x20]
mov dword [esp + 0x18], esi
test esi, esi
je 0x40ef01
lea ecx, [esp + 0x18]
call fcn.004043d0
not al
test al, 1
je 0x40eee3
mov ecx, dword fs:[0x2c]
mov eax, dword [0x415874]
mov ecx, dword [ecx]
cmp eax, dword [ecx + 4]
jle 0x40eeae
push 0x415874
call fcn.0040fcde
add esp, 4
cmp dword [0x415874], 0xffffffff
jne 0x40eeae
mov edi, dword [0x4156d4]
mov edx, str.DT_CSPlayer
mov ecx, edi
call fcn.00403f70
test eax, eax
je 0x40ee95
push eax
mov edx, str.m_nRenderMode
mov ecx, edi
call fcn.004041d0
inc eax
push 0x415874
mov dword [0x41585c], eax
call fcn.0040fc94
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
add esp, 4
mov eax, dword [0x41585c]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [0x4156d4]
add eax, esi
push 4
push 0
push eax
mov ecx, dword [ecx]
mov dword [esp + 0x30], 0
call fcn.0040ca50
cmp dword [esp + 0x20], 9
mov dword [esp + 0x18], 4
jne 0x40eeeb
mov dword [esp + 0x18], 6
push ecx
mov ecx, dword [ebx]
lea edx, [esp + 0x1c]
push 4
push 0
push dword [0x4156f4]
call fcn.0040c900
push dword [0x4157ac]
call edi
mov ecx, 0x8000
test cx, ax
je 0x40f05a
cmp dword [0x4156dc], 0
jne 0x40ef34
push 0x45
push str.hack_run_trigger
push str.ASSERTION_FAILED:__s____line:__d_
call fcn.00401870
add esp, 0xc
cmp dword [0x4156d8], 0
jne 0x40ef51
push 0x46
push str.hack_run_trigger
push str.ASSERTION_FAILED:__s____line:__d_
call fcn.00401870
add esp, 0xc
push ecx
mov ecx, dword [ebx]
lea edx, [esp + 0x24]
push 4
push 0
push dword [0x4156dc]
mov dword [esp + 0x30], 0
call fcn.0040ca50
mov eax, dword fs:[0x2c]
mov edi, dword [esp + 0x20]
mov dword [esp + 0x48], edi
mov ecx, dword [eax]
mov eax, dword [0x415878]
cmp eax, dword [ecx + 4]
jle 0x40efda
push 0x415878
call fcn.0040fcde
add esp, 4
cmp dword [0x415878], 0xffffffff
jne 0x40efda
mov esi, dword [0x4156d4]
mov edx, str.DT_CSPlayer
mov ecx, esi
call fcn.00403f70
test eax, eax
je 0x40efc5
push eax
mov edx, str.m_bHasDefuser
mov ecx, esi
call fcn.004041d0
add eax, 0x5c
push 0x415878
mov dword [0x41589c], eax
call fcn.0040fc94
add esp, 4
mov eax, dword [0x41589c]
lea edx, [esp + 0x2c]
push ecx
mov ecx, dword [0x4156d4]
add eax, edi
push 4
push 0
push eax
mov ecx, dword [ecx]
mov dword [esp + 0x3c], 0
call fcn.0040ca50
mov edi, dword [esp + 0x2c]
lea ecx, [esp + 0x18]
dec edi
mov edx, edi
call fcn.00404470
lea ecx, [esp + 0x18]
mov eax, dword [eax]
mov dword [esp + 0x18], eax
call fcn.004046b0
lea ecx, [esp + 0x48]
mov esi, eax
call fcn.004046b0
cmp esi, eax
jne 0x40f037
cmp byte [0x415798], 0
je 0x40f05a
cmp edi, 0x3f
ja 0x40f05a
push ecx
mov ecx, dword [ebx]
lea edx, [esp + 0x1c]
push 4
push 0
push dword [0x4156d8]
mov dword [esp + 0x28], 6
call fcn.0040c900
mov ecx, ebx
call fcn.00404fb0
cmp byte [0x4157c0], 0
lea edx, [esp + 0x30]
push ecx
mov ecx, dword [ebx]
xorps xmm0, xmm0
push 0x10
movaps xmmword [esp + 0x38], xmm0
push 0
je 0x40f0b1
cmp byte [0x415748], 0
mov eax, 0x437a0000
mov edi, 0x42480000
cmovne edi, eax
mov eax, dword [0x4156e0]
xor edi, eax
lea esi, [eax + 0x24]
push esi
call fcn.0040ca50
push ecx
push 0x10
push 0
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], edi
push esi
jmp 0x40f0ce
mov esi, dword [0x4156e0]
lea edi, [esi + 0x24]
push edi
call fcn.0040ca50
push ecx
push 0x10
push 0
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], esi
push edi
mov ecx, dword [ebx]
lea edx, [esp + 0x40]
call fcn.0040c900
mov ecx, ebx
call fcn.004049b0
mov al, byte [0x415748]
cmp al, byte [0x415870]
je 0x40f198
mov eax, dword [0x4156a0]
or eax, dword [0x4156a4]
jne 0x40f109
push 0x4156a0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov esi, dword [0x4156a0]
mov edi, dword [0x4156a4]
cmp esi, 0x989680
jne 0x40f136
test edi, edi
jne 0x40f136
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
jmp 0x40f169
mov edx, edi
mov ecx, esi
call fcn.00410b80
movsd xmm1, qword [0x412c80]
divsd xmm1, xmm0
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
movsd qword [esp + 0x30], xmm1
call fcn.00410b80
mulsd xmm0, qword [esp + 0x30]
call fcn.004109c0
mov ecx, eax
call fcn.00410b20
mulsd xmm0, qword [0x412c20]
mov al, byte [0x415748]
mov byte [0x415870], al
cvtsd2ss xmm0, xmm0
addss xmm0, dword [0x412c54]
movss dword [0x41586c], xmm0
jmp 0x40f1a4
mov edi, dword [0x4156a4]
mov esi, dword [0x4156a0]
or esi, edi
jne 0x40f1b3
push 0x4156a0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [0x4156a0]
mov edx, dword [0x4156a4]
cmp ecx, 0x989680
jne 0x40f1e0
test edx, edx
jne 0x40f1e0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
jmp 0x40f20f
call fcn.00410b80
movsd xmm1, qword [0x412c80]
divsd xmm1, xmm0
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
movsd qword [esp + 0x30], xmm1
call fcn.00410b80
mulsd xmm0, qword [esp + 0x30]
call fcn.004109c0
mov ecx, eax
call fcn.00410b20
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movss xmm0, dword [0x41586c]
mulss xmm1, dword [0x412c04]
comiss xmm0, xmm1
jbe 0x40f2ad
cmp byte [0x415748], 0
subss xmm0, xmm1
movss xmm1, dword [0x412c54]
minss xmm0, xmm1
mulss xmm0, dword [0x412c50]
je 0x40f263
addss xmm0, dword [0x412c18]
movss dword [esp + 0x20], xmm0
jmp 0x40f26d
subss xmm1, xmm0
movss dword [esp + 0x20], xmm1
mov eax, dword [0x415708]
lea edx, [esp + 0x30]
mov esi, dword [esp + 0x20]
xorps xmm0, xmm0
push ecx
mov ecx, dword [ebx]
xor esi, eax
push 0x10
lea edi, [eax + 0x24]
movaps xmmword [esp + 0x38], xmm0
push 0
push edi
call fcn.0040ca50
push ecx
mov ecx, dword [ebx]
lea edx, [esp + 0x34]
push 0x10
push 0
push edi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], esi
call fcn.0040c900
cmp byte [0x415784], 0
je 0x40f41b
mov eax, dword [0x4156dc]
test eax, eax
jne 0x40f2df
push 0xb2
push str.hack_run_noflash
push str.ASSERTION_FAILED:__s____line:__d_
call fcn.00401870
mov eax, dword [0x4156dc]
add esp, 0xc
push ecx
mov ecx, dword [ebx]
lea edx, [esp + 0x24]
push 4
push 0
push eax
mov dword [esp + 0x30], 0
call fcn.0040ca50
mov esi, dword [esp + 0x20]
test esi, esi
je 0x40f41b
mov eax, dword fs:[0x2c]
mov edi, dword [eax]
mov eax, dword [0x415888]
cmp eax, dword [edi + 4]
jle 0x40f369
push 0x415888
call fcn.0040fcde
add esp, 4
cmp dword [0x415888], 0xffffffff
jne 0x40f369
mov eax, dword [0x4156d4]
mov edx, str.DT_CSPlayer
mov ecx, eax
mov dword [esp + 0x18], eax
call fcn.00403f70
test eax, eax
je 0x40f357
mov ecx, dword [esp + 0x18]
mov edx, str.m_flFlashMaxAlpha
push eax
call fcn.004041d0
push 0x415888
mov dword [0x4158c8], eax
call fcn.0040fc94
add esp, 4
mov eax, dword [0x4158c8]
lea edx, [esp + 0x2c]
push ecx
mov ecx, dword [0x4156d4]
add eax, esi
push 4
push 0
push eax
mov ecx, dword [ecx]
mov dword [esp + 0x3c], 0
call fcn.0040ca50
movss xmm0, dword [esp + 0x2c]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x40f41b
mov eax, dword [0x4158f0]
cmp eax, dword [edi + 4]
jle 0x40f3f5
push 0x4158f0
call fcn.0040fcde
add esp, 4
cmp dword [0x4158f0], 0xffffffff
jne 0x40f3f5
mov edi, dword [0x4156d4]
mov edx, str.DT_CSPlayer
mov ecx, edi
call fcn.00403f70
test eax, eax
je 0x40f3e3
push eax
mov edx, str.m_flFlashMaxAlpha
mov ecx, edi
call fcn.004041d0
push 0x4158f0
mov dword [0x4158a0], eax
call fcn.0040fc94
add esp, 4
mov eax, dword [0x4158a0]
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [0x4156d4]
add eax, esi
push 4
push 0
push eax
mov ecx, dword [ecx]
mov dword [esp + 0x28], 0
call fcn.0040c900
cmp byte [0x415734], 0
lea edx, [esp + 0x30]
mov ecx, dword [ebx]
xorps xmm0, xmm0
push ecx
push 0x10
movaps xmmword [esp + 0x38], xmm0
push 0
je 0x40f449
mov eax, dword [0x415704]
mov esi, eax
xor esi, 0x3f800000
lea edi, [eax + 0x24]
jmp 0x40f452
mov esi, dword [0x415704]
lea edi, [esi + 0x24]
push edi
call fcn.0040ca50
push ecx
mov ecx, dword [ebx]
lea edx, [esp + 0x34]
push 0x10
push 0
push edi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], esi
call fcn.0040c900
mov ecx, ebx
call fcn.00404c50
cmp byte [esp + 0x2b], 0
je 0x40f4b1
sub esp, 0x10
push 0
push 0x40f960
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
push ecx
lea ecx, [esp + 0x38]
call fcn.0040c6b0
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetThreadId]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call fcn.0040c850
push ecx
mov ecx, dword [ebx]
lea edx, [esp + 0x24]
push 4
push 0
push dword [0x4156dc]
mov dword [esp + 0x30], 0
call fcn.0040ca50
movsd xmm0, qword [0x4156f8]
lea ecx, [esp + 0x18]
mov esi, dword [esp + 0x20]
cvtpd2ps xmm0, xmm0
mov dword [esp + 0x18], esi
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x30], xmm0
call fcn.004043d0
movsd xmm0, qword [esp + 0x30]
sub esp, 8
movsd qword [esp], xmm0
push eax
push esi
push str.local:_0x_08x__flags:_0x_03x__tps:__.0f
call fcn.00401800
mov ecx, dword [ebx]
lea eax, [esp + 0x64]
add esp, 0x14
xor edx, edx
push 0
push 0x30
push eax
call fcn.0040cb50
or eax, edx
je 0x40f531
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x50], 0
pop edi
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret