Function at 0x10004cfc
Capabilities:
Log keystrokes via polling
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x120
mov eax, dword [0x1004b00c]
xor eax, esp
mov dword [esp + 0x11c], eax
mov edx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push dword [edx + 0xb38]
mov edi, ecx
mov dword [esp + 0x14], esi
mov ecx, dword [0x100d1564]
mov dword [esp + 0x18], edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov ecx, eax
test ecx, ecx
je case.0x10004cf5.0
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
mov dword [esp + 0x18], eax
test eax, eax
je case.0x10004cf5.0
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0x4a4]
call edx
test eax, eax
js case.0x10004cf5.0
cmp eax, 0x1d
jg case.0x10004cf5.0
cmp eax, 0x1c
ja case.0x10004cf5.1
movzx eax, byte [eax + 0x100057e8]
jmp dword [eax*4 + 0x100057e0]
push dword [esp + 0x18]
lea eax, [esp + 0x8c]
push eax
call fcn.1002a7c0
mov dword [edi + 0x1a0], 0x7fffffff
mov dword [edi + 0x19c], 0xffffffff
mov dword [edi + 0x1a4], 0x4f000000
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
mov ecx, dword [esp + 0x18]
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0
mov dword [edi + 0x68], 0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x70], 0
mov dword [edi + 0x74], 0
mov dword [edi + 0x78], 0
mov dword [edi + 0x7c], 0
mov dword [edi + 0x80], 0
mov dword [edi + 0x84], 0
mov dword [edi + 0x88], 0
mov dword [edi + 0x8c], 0
mov byte [edi + 0x1a8], 0
mov dword [edi + 0x1ac], 0
mov dword [edi + 0x1b0], 0
mov dword [edi + 0x1b4], 0
mov eax, dword [ecx]
mov eax, dword [eax + 0x4a4]
call eax
cmp byte [0x10103b91], 0
je 0x10004e8d
push 0x54
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x10004e61
cmp byte [0x10103b92], 0
sete al
mov byte [0x10103b92], al
jmp 0x10004e66
mov al, byte [0x10103b92]
test al, al
je 0x10004e8d
mov eax, dword [0x10103cb4]
sub eax, 0
je 0x10004e86
sub eax, 1
jne 0x10004e7e
lea edx, [eax + 0xa]
jmp 0x10004e93
mov edx, dword [0x102f7364]
jmp 0x10004e99
mov edx, 9
jmp 0x10004e93
mov edx, dword [0x10103b98]
mov dword [0x102f7364], edx
mov dword [0x1004b0d8], edx
mov ecx, 0x1004b120
cmp dword [ecx], edx
jne 0x10004eaf
mov eax, dword [0x10103b98]
mov dword [ecx], eax
sub ecx, 4
cmp ecx, 0x1004b0dc
jge 0x10004ea4
mov eax, dword [0x10103bb0]
test eax, eax
jle 0x10004ed3
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je case.0x10004cf5.0
mov eax, dword [0x100d1560]
mov eax, dword [eax + 0x14]
mov dword [esp + 0xc], eax
cmp eax, 1
jl 0x10005744
nop dword [eax + eax]
mov ecx, dword [0x100d1558]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
call eax
cmp dword [esp + 0xc], eax
je 0x10005732
mov ecx, dword [0x100d1564]
push dword [esp + 0xc]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov esi, eax
mov dword [esp + 0x20], esi
test esi, esi
je 0x1000572e
mov edx, dword [esi + 8]
lea ecx, [esi + 8]
mov edx, dword [edx + 0x20]
call edx
test al, al
jne 0x1000572e
mov ecx, esi
call fcn.10003050
cmp dword [eax], 0
jne 0x1000572e
cmp byte [0x10103b8b], 0
jne 0x10004f72
mov ecx, dword [esp + 0x14]
call fcn.10002b40
mov ecx, dword [esp + 0x20]
mov esi, dword [eax]
call fcn.10002b40
cmp dword [eax], esi
je 0x1000572e
mov esi, dword [esp + 0x20]
mov ecx, esi
call fcn.10003140
cmp dword [eax], 0x1f4
jg 0x1000572e
mov eax, dword [esi + 0x58]
shr eax, 0x18
cmp al, 0xff
mov eax, dword [esp + 0xc]
jb 0x100055b2
cmp byte [eax + 0x101040b8], 0
jne 0x100055b2
movss xmm1, dword [esi + 0x29c]
movss xmm2, dword [esi + 0x2a0]
subss xmm2, dword [0x100f51ec]
subss xmm1, dword [0x100f51e8]
movss xmm0, dword [esi + 0x2a4]
subss xmm0, dword [0x100f51f0]
mulss xmm2, xmm2
mulss xmm1, xmm1
mulss xmm0, xmm0
addss xmm2, xmm1
addss xmm2, xmm0
xorps xmm0, xmm0
sqrtss xmm0, xmm2
comiss xmm0, dword [esp + 0x9c]
ja 0x100055b2
push eax
call fcn.10037b00
mov ecx, dword [0x102f7364]
test al, al
mov eax, 0xc
cmovne ecx, eax
mov dword [0x102f7364], ecx
xor ecx, ecx
mov dword [esp + 0x1c], ecx
cmp dword [0x10103b94], ecx
jne 0x10005082
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x24]
call eax
mov esi, eax
mov eax, dword [esp + 0x14]
mov ecx, eax
mov edx, dword [eax]
mov edx, dword [edx + 0x24]
call edx
movss xmm1, dword [eax]
movss xmm2, dword [eax + 4]
subss xmm2, dword [esi + 4]
subss xmm1, dword [esi]
movss xmm0, dword [eax + 8]
subss xmm0, dword [esi + 8]
mov esi, dword [esp + 0x20]
mulss xmm2, xmm2
mulss xmm1, xmm1
mulss xmm0, xmm0
addss xmm2, xmm1
addss xmm2, xmm0
xorps xmm0, xmm0
sqrtss xmm0, xmm2
cvttss2si ecx, xmm0
mov dword [esp + 0x1c], ecx
cmp dword [0x10103b94], 1
jne 0x10005098
mov ecx, esi
call fcn.10003140
mov ecx, dword [eax]
mov dword [esp + 0x1c], ecx
mov eax, dword [0x10103b94]
cmp eax, 2
je 0x100050a7
cmp eax, 3
jne 0x100050c1
mov eax, dword [esi + 8]
lea ecx, [esi + 8]
mov eax, dword [eax + 0x24]
call eax
xor ecx, ecx
cmp eax, dword [0x100d1420]
setle cl
mov dword [esp + 0x1c], ecx
cmp ecx, dword [edi + 0x1a0]
jg 0x1000572e
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov eax, dword [eax + 0x4a4]
call eax
test eax, eax
js 0x100053d9
cmp eax, 0x1d
jg 0x100053d9
cmp eax, 0x11
jne 0x100053d9
push esi
push dword [0x102f7364]
mov ecx, edi
call fcn.10003570
mov ecx, dword [0x100d1564]
mov edx, dword [esp + 0x14]
mov eax, dword [ecx]
push dword [edx + 0xb38]
mov eax, dword [eax + 0x10]
call eax
mov ecx, eax
test ecx, ecx
je 0x1000572e
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
test eax, eax
je 0x1000572e
movss xmm2, dword [edi + 0x24]
movss xmm3, dword [0x100f51e8]
movss xmm1, dword [edi + 0x28]
subss xmm2, xmm3
movss xmm4, dword [0x100f51ec]
movss xmm0, dword [edi + 0x2c]
subss xmm1, xmm4
movss xmm5, dword [0x100f51f0]
subss xmm0, xmm5
mov dword [esp + 0x48], vtable.Valve::TraceFilterSkipTwoEntities.0
movss dword [esp + 0x60], xmm2
mulss xmm2, xmm2
mov dword [esp + 0x4c], esi
movss dword [esp + 0x64], xmm1
mulss xmm1, xmm1
mov dword [esp + 0x50], 0
movss dword [esp + 0x68], xmm0
mulss xmm0, xmm0
mov byte [esp + 0x85], 1
addss xmm1, xmm2
addss xmm1, xmm0
xorps xmm0, xmm0
ucomiss xmm1, xmm0
lahf
test ah, 0x44
jp 0x100051bc
mov byte [esp + 0x85], 0
mov ecx, dword [0x100d155c]
lea edx, [esp + 0xc8]
push edx
mov dword [esp + 0x84], 0
lea edx, [esp + 0x4c]
mov dword [esp + 0x80], 0
mov dword [esp + 0x7c], 0
mov byte [esp + 0x88], 1
mov dword [esp + 0x78], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x70], 0
movss dword [esp + 0x58], xmm3
movss dword [esp + 0x5c], xmm4
movss dword [esp + 0x60], xmm5
mov eax, dword [ecx]
push edx
push 0x46004003
lea edx, [esp + 0x60]
mov eax, dword [eax + 0x10]
push edx
call eax
movss xmm0, dword [esp + 0xf4]
ucomiss xmm0, dword [0x10046778]
lahf
test ah, 0x44
jp 0x1000572e
movss xmm4, dword [edi + 0x24]
subss xmm4, dword [0x100f51e8]
push dword [esp + 0x18]
push dword [esp + 0x18]
movss dword [edi], xmm4
movaps xmm1, xmm4
movss xmm3, dword [edi + 0x28]
subss xmm3, dword [0x100f51ec]
mulss xmm1, xmm4
movss dword [edi + 4], xmm3
movaps xmm0, xmm3
movss xmm2, dword [edi + 0x2c]
subss xmm2, dword [0x100f51f0]
mulss xmm0, xmm3
addss xmm1, xmm0
movaps xmm0, xmm2
mulss xmm0, xmm2
addss xmm0, dword [0x10046668]
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd xmm1, qword [0x100467d8]
sqrtsd xmm0, xmm0
divsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
mulss xmm4, xmm0
mulss xmm3, xmm0
mulss xmm2, xmm0
movss dword [edi], xmm4
movss dword [edi + 4], xmm3
movss dword [edi + 8], xmm2
call fcn.10036b30
test al, al
je 0x100053bc
movss xmm0, dword [edi + 8]
movss xmm1, dword [edi + 4]
movss xmm2, dword [edi]
cvtps2pd xmm0, xmm0
cvtps2pd xmm1, xmm1
movsd qword [esp + 0x28], xmm0
xorps xmm0, xmm0
ucomisd xmm1, xmm0
cvtps2pd xmm2, xmm2
lahf
movsd qword [esp + 0x38], xmm2
movsd qword [esp + 0x30], xmm1
test ah, 0x44
jp 0x1000532a
ucomisd xmm2, xmm0
lahf
test ah, 0x44
jp 0x1000532a
xorps xmm1, xmm1
jmp 0x10005396
movaps xmm0, xmm1
movaps xmm1, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x10046820]
xorps xmm1, xmm1
comisd xmm1, xmm0
movsd qword [esp + 0x20], xmm0
jbe 0x1000535a
addsd xmm0, qword [0x10046840]
movsd qword [esp + 0x20], xmm0
movsd xmm1, qword [esp + 0x30]
movsd xmm2, qword [esp + 0x38]
mulsd xmm1, xmm1
mulsd xmm2, xmm2
movsd xmm0, qword [esp + 0x28]
xorps xmm0, xmmword [0x10046a50]
addsd xmm1, xmm2
sqrtsd xmm1, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
movsd xmm1, qword [esp + 0x20]
mulsd xmm0, qword [0x10046820]
mov esi, dword [esp + 0x10]
cvtsd2ss xmm0, xmm0
movss dword [esi + 0xc], xmm0
cvtpd2ps xmm0, xmm1
movss dword [esi + 0x10], xmm0
mov dword [esi + 0x14], 0
mov byte [edi + 0x1a8], 1
jmp 0x100053c0
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x1c]
mov dword [edi + 0x19c], eax
mov dword [edi + 0x1a0], ecx
jmp 0x10005736
cmp byte [0x10103b8a], 0
je 0x100055bb
mov esi, 0x1004b120
nop dword [eax + eax]
push dword [esp + 0x20]
mov ecx, edi
push dword [esi]
call fcn.10003570
movss xmm4, dword [edi + 0x24]
lea eax, [edi + 0x24]
subss xmm4, dword [0x100f51e8]
push dword [esp + 0x14]
push dword [esp + 0x24]
movss dword [edi], xmm4
movaps xmm1, xmm4
movss xmm3, dword [eax + 4]
subss xmm3, dword [0x100f51ec]
mulss xmm1, xmm4
push eax
push ecx
mov ecx, edi
movss dword [edi + 4], xmm3
movaps xmm0, xmm3
movss xmm2, dword [eax + 8]
subss xmm2, dword [0x100f51f0]
mulss xmm0, xmm3
addss xmm1, xmm0
movaps xmm0, xmm2
mulss xmm0, xmm2
addss xmm0, dword [0x10046668]
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd xmm1, qword [0x100467d8]
sqrtsd xmm0, xmm0
divsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
mulss xmm4, xmm0
mulss xmm3, xmm0
mulss xmm2, xmm0
movss dword [edi], xmm4
movss dword [edi + 4], xmm3
movss dword [edi + 8], xmm2
call fcn.10003260
test al, al
je 0x1000559f
push dword [esp + 0x18]
push dword [esp + 0x18]
call fcn.10036b30
test al, al
je 0x10005589
movss xmm2, dword [edi + 8]
movss xmm0, dword [edi + 4]
movss xmm1, dword [edi]
cvtps2pd xmm2, xmm2
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x38], xmm2
xorps xmm2, xmm2
ucomisd xmm0, xmm2
cvtps2pd xmm1, xmm1
lahf
movsd qword [esp + 0x40], xmm1
movsd qword [esp + 0x30], xmm0
test ah, 0x44
jp 0x100054f9
ucomisd xmm1, xmm2
lahf
test ah, 0x44
jp 0x100054f9
xorps xmm1, xmm1
jmp 0x10005562
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x10046820]
xorps xmm1, xmm1
comisd xmm1, xmm0
movsd qword [esp + 0x28], xmm0
jbe 0x10005523
addsd xmm0, qword [0x10046840]
movsd qword [esp + 0x28], xmm0
movsd xmm1, qword [esp + 0x30]
movsd xmm2, qword [esp + 0x40]
mulsd xmm1, xmm1
mulsd xmm2, xmm2
movsd xmm0, qword [esp + 0x38]
xorps xmm0, xmmword [0x10046a50]
addsd xmm1, xmm2
sqrtsd xmm1, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
movsd xmm1, qword [esp + 0x28]
movaps xmm2, xmm0
mulsd xmm2, qword [0x10046820]
mov eax, dword [esp + 0x10]
xorps xmm0, xmm0
cvtsd2ss xmm0, xmm2
mov dword [eax + 0x14], 0
movss dword [eax + 0xc], xmm0
cvtpd2ps xmm0, xmm1
movss dword [eax + 0x10], xmm0
mov byte [edi + 0x1a8], 1
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x1c]
mov dword [edi + 0x19c], eax
mov dword [edi + 0x1a0], ecx
jmp 0x100055a3
mov eax, dword [esp + 0xc]
sub esi, 4
cmp esi, 0x1004b0d8
jge 0x100053f0
mov esi, dword [esp + 0x10]
jmp 0x10005736
push esi
push dword [0x1004b0d8]
mov ecx, edi
call fcn.10003570
movss xmm4, dword [edi + 0x24]
lea eax, [edi + 0x24]
subss xmm4, dword [0x100f51e8]
push dword [esp + 0x14]
push esi
push eax
movss dword [edi], xmm4
movaps xmm1, xmm4
movss xmm3, dword [eax + 4]
subss xmm3, dword [0x100f51ec]
mulss xmm1, xmm4
push ecx
mov ecx, edi
movss dword [edi + 4], xmm3
movaps xmm0, xmm3
movss xmm2, dword [eax + 8]
subss xmm2, dword [0x100f51f0]
mulss xmm0, xmm3
addss xmm1, xmm0
movaps xmm0, xmm2
mulss xmm0, xmm2
addss xmm0, dword [0x10046668]
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd xmm1, qword [0x100467d8]
sqrtsd xmm0, xmm0
divsd xmm1, xmm0
cvtpd2ps xmm0, xmm1
mulss xmm4, xmm0
mulss xmm3, xmm0
mulss xmm2, xmm0
movss dword [edi], xmm4
movss dword [edi + 4], xmm3
movss dword [edi + 8], xmm2
call fcn.10003260
test al, al
je 0x1000572e
push dword [esp + 0x18]
push dword [esp + 0x18]
call fcn.10036b30
test al, al
je 0x100053bc
movss xmm0, dword [edi + 8]
movss xmm1, dword [edi + 4]
movss xmm2, dword [edi]
cvtps2pd xmm0, xmm0
cvtps2pd xmm1, xmm1
movsd qword [esp + 0x40], xmm0
xorps xmm0, xmm0
ucomisd xmm1, xmm0
cvtps2pd xmm2, xmm2
lahf
movsd qword [esp + 0x30], xmm2
movsd qword [esp + 0x38], xmm1
test ah, 0x44
jp 0x100056c5
ucomisd xmm2, xmm0
lahf
test ah, 0x44
jp 0x100056c5
xorps xmm1, xmm1
jmp 0x10005396
movaps xmm0, xmm1
movaps xmm1, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
mulsd xmm0, qword [0x10046820]
xorps xmm1, xmm1
comisd xmm1, xmm0
movsd qword [esp + 0x28], xmm0
jbe 0x100056f5
addsd xmm0, qword [0x10046840]
movsd qword [esp + 0x28], xmm0
movsd xmm1, qword [esp + 0x38]
movsd xmm2, qword [esp + 0x30]
mulsd xmm1, xmm1
mulsd xmm2, xmm2
movsd xmm0, qword [esp + 0x40]
xorps xmm0, xmmword [0x10046a50]
addsd xmm1, xmm2
sqrtsd xmm1, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll___libm_sse2_atan2
movsd xmm1, qword [esp + 0x28]
jmp 0x1000538e
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
dec eax
mov dword [esp + 0xc], eax
cmp eax, 1
jge 0x10004ef0
mov al, byte [edi + 0x1a8]
mov cl, al
test al, al
je 0x1000576c
cmp dword [edi + 0x19c], 0xffffffff
je 0x1000576c
cmp byte [0x10103b85], 0
je 0x1000576c
or dword [esi + 0x24], 1
mov cl, byte [edi + 0x1a8]
cmp dword [0x10103b94], 3
jne 0x10005780
mov eax, dword [edi + 0x19c]
mov dword [0x100d1420], eax
test cl, cl
je 0x1000579a
cmp dword [0x10103b94], 3
je 0x100057af
mov eax, dword [edi + 0x19c]
mov dword [0x100d1420], eax
jmp 0x100057af
mov ecx, dword [esp + 0x18]
call fcn.10002c90
cmp dword [eax], 0
jg 0x100057af
or dword [esi + 0x24], 0x2000
cmp byte [0x10103b8c], 0
jne case.0x10004cf5.0
mov ecx, dword [0x100d1558]
lea eax, [esi + 0xc]
push eax
mov edx, dword [ecx]
mov eax, dword [edx + 0x50]
call eax
mov ecx, dword [esp + 0x124]
pop edi
pop esi
xor ecx, esp
call fcn.10037c8d
mov esp, ebp
pop ebp
ret 8