Function at 0x10042770
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov edi, dword [sym.imp.OPENGL32.dll_glColor3f]
sub esp, 0xc
mov dword [esp + 8], 0x3f800000
mov dword [esp + 4], 0x3f800000
mov dword [esp], 0x3f800000
call edi
movss xmm2, dword [0x11b3794]
xor eax, eax
movss xmm0, dword [0x100bc6ac]
xorps xmm1, xmm1
comiss xmm0, xmm2
setae al
movd xmm3, eax
cvtdq2ps xmm3, xmm3
ucomiss xmm3, xmm1
lahf
test ah, 0x44
jnp 0x100427ca
movaps xmm0, xmm2
jmp 0x100427d2
movss xmm0, dword [0x11b3798]
mulss xmm0, dword [0x100bcac0]
ucomiss xmm3, xmm1
divss xmm0, xmm2
lahf
test ah, 0x44
jnp 0x100427ec
movaps xmm1, xmm2
jmp 0x100427f4
movss xmm1, dword [0x11b3798]
mulss xmm1, dword [0x100bca94]
push 0xf
cvttss2si eax, xmm0
addss xmm1, dword [0x106a51f0]
movss xmm0, dword [0x106a51f4]
addss xmm0, dword [0x100bcba8]
push eax
divss xmm1, xmm2
cvttss2si eax, xmm0
push eax
cvttss2si eax, xmm1
push eax
mov eax, 0x799756
call eax
add esp, 0x10
cmp al, 1
jne 0x100428bb
sub esp, 0xc
mov dword [esp + 8], 0x3d00346e
mov dword [esp + 4], 0x3f1c985f
mov dword [esp], 0x3f72f1aa
call edi
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x1004290f
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x106a5210]
cmp eax, 0x7d0
jb 0x1004289f
call esi
mov edx, 8
mov dword [0x106a5210], eax
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0xfbf308c1
mov dword [ebp - 8], 0
call fcn.10084a30
sub esp, 0xc
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0x3f800000
jmp 0x1004290d
mov eax, dword [0x106a5220]
cmp eax, dword [0x106a521c]
jl 0x1004290f
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x106a5234]
cmp eax, 0x1f4
jbe 0x1004290f
call esi
sub eax, dword [0x106a5234]
cmp eax, 0x3e8
jbe 0x100428f3
call esi
mov dword [0x106a5234], eax
sub esp, 0xc
mov dword [esp + 8], 0x3d00346e
mov dword [esp + 4], 0x3f1c985f
mov dword [esp], 0x3f72f1aa
call edi
movss xmm0, dword [0x100bc6ac]
xor eax, eax
movss xmm2, dword [0x11b3794]
comiss xmm0, xmm2
xorps xmm0, xmm0
setae al
movd xmm3, eax
cvtdq2ps xmm3, xmm3
ucomiss xmm3, xmm0
lahf
test ah, 0x44
jnp 0x1004293f
movaps xmm1, xmm2
jmp 0x10042947
movss xmm1, dword [0x11b3798]
mulss xmm1, dword [0x100bcac0]
ucomiss xmm3, xmm0
lahf
test ah, 0x44
jnp 0x1004295d
movaps xmm3, xmm2
jmp 0x10042965
movss xmm3, dword [0x11b3798]
mulss xmm3, dword [0x100bca94]
mov eax, 0x631289
push ecx
movss xmm0, dword [0x106a51f4]
divss xmm1, xmm2
mov dword [esp], 0
push 1
push 1
sub esp, 0x20
mov dword [esp + 0x1c], 0x3f4ccccd
mov dword [esp + 0x18], 0x3f266666
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x41700000
addss xmm3, dword [0x106a51f0]
cvtps2pd xmm0, xmm0
divss xmm3, xmm2
addsd xmm0, qword [0x100bc8a8]
movss dword [esp + 8], xmm1
cvtpd2ps xmm0, xmm0
movss dword [esp + 4], xmm0
movss dword [esp], xmm3
push 0x8328
call eax
add esp, 0x24
mov dword [esp + 8], 0x3f800000
mov dword [esp + 4], 0x3f800000
mov dword [esp], 0x3f800000
call edi
movss xmm2, dword [0x11b3794]
xor eax, eax
movss xmm0, dword [0x100bc6ac]
xorps xmm1, xmm1
comiss xmm0, xmm2
setae al
movd xmm3, eax
cvtdq2ps xmm3, xmm3
ucomiss xmm3, xmm1
lahf
test ah, 0x44
jnp 0x10042a34
movaps xmm0, xmm2
jmp 0x10042a3c
movss xmm0, dword [0x11b3798]
mulss xmm0, dword [0x100bcacc]
ucomiss xmm3, xmm1
divss xmm0, xmm2
lahf
movss dword [ebp - 4], xmm0
test ah, 0x44
jnp 0x10042a5b
movaps xmm0, xmm2
jmp 0x10042a63
movss xmm0, dword [0x11b3798]
mulss xmm0, dword [0x100bca94]
mov ecx, 0x10173658
push 0x57
addss xmm0, dword [0x106a51f0]
divss xmm0, xmm2
movss dword [ebp - 8], xmm0
call fcn.10036b80
movss xmm0, dword [0x106a51f4]
push eax
cvttss2si eax, dword [ebp - 4]
push 0
push 3
cvtps2pd xmm0, xmm0
push eax
addsd xmm0, qword [0x100bc8b8]
cvttsd2si eax, xmm0
push eax
cvttss2si eax, dword [ebp - 8]
push eax
push 0xffffffffffffffff
push 0x1023cd58
call fcn.100607a0
add esp, 0x20
pop edi
pop esi
mov esp, ebp
pop ebp
ret