Function at 0x10040aa0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [sym.imp.OPENGL32.dll_glColor3f]
push edi
sub esp, 0xc
mov dword [esp + 8], 0x3f800000
mov dword [esp + 4], 0x3f800000
mov dword [esp], 0x3f800000
call esi
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 0x10040afa
movaps xmm0, xmm2
jmp 0x10040b02
movss xmm0, dword [0x11b3798]
mulss xmm0, dword [0x100bcac0]
ucomiss xmm3, xmm1
divss xmm0, xmm2
lahf
test ah, 0x44
jnp 0x10040b1c
movaps xmm1, xmm2
jmp 0x10040b24
movss xmm1, dword [0x11b3798]
mulss xmm1, dword [0x100bca94]
mov edi, 0x799756
push 0xf
cvttss2si eax, xmm0
addss xmm1, dword [0x106a51f0]
movss xmm0, dword [0x106a51f4]
addss xmm0, dword [0x100bcb00]
push eax
divss xmm1, xmm2
cvttss2si eax, xmm0
push eax
cvttss2si eax, xmm1
push eax
call edi
add esp, 0x10
cmp al, 1
jne 0x10040b83
sub esp, 0xc
mov dword [esp + 8], 0x3d00346e
mov dword [esp + 4], 0x3f1c985f
mov dword [esp], 0x3f72f1aa
call esi
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x10040c52
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 0x10040bc4
movaps xmm0, xmm2
jmp 0x10040bcc
movss xmm0, dword [0x11b3798]
mulss xmm0, dword [0x100bcac0]
ucomiss xmm3, xmm1
divss xmm0, xmm2
lahf
test ah, 0x44
jnp 0x10040be6
movaps xmm1, xmm2
jmp 0x10040bee
movss xmm1, dword [0x11b3798]
mulss xmm1, dword [0x100bca94]
push 0xf
cvttss2si eax, xmm0
addss xmm1, dword [0x106a51f0]
movss xmm0, dword [0x106a51f4]
addss xmm0, dword [0x100bcb00]
push eax
divss xmm1, xmm2
cvttss2si eax, xmm0
push eax
cvttss2si eax, xmm1
push eax
call edi
add esp, 0x10
cmp al, 1
jne 0x10040c52
sub esp, 0xc
mov dword [0x106a5218], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0x3f800000
call esi
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 0x10040c82
movaps xmm1, xmm2
jmp 0x10040c8a
movss xmm1, dword [0x11b3798]
mulss xmm1, dword [0x100bcac0]
ucomiss xmm3, xmm0
lahf
test ah, 0x44
jnp 0x10040ca0
movaps xmm3, xmm2
jmp 0x10040ca8
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 [0x100bc880]
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 esi
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 0x10040d77
movaps xmm0, xmm2
jmp 0x10040d7f
movss xmm0, dword [0x11b3798]
mulss xmm0, dword [0x100bcacc]
ucomiss xmm3, xmm1
divss xmm0, xmm2
lahf
movss dword [ebp - 4], xmm0
test ah, 0x44
jnp 0x10040d9e
movaps xmm0, xmm2
jmp 0x10040da6
movss xmm0, dword [0x11b3798]
mulss xmm0, dword [0x100bca94]
mov ecx, 0x10173658
push 0x5a
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 [0x100bc888]
cvttsd2si eax, xmm0
push eax
cvttss2si eax, dword [ebp - 8]
push eax
push 0xffffffffffffffff
push 0x1023cd58
call fcn.100607a0
movss xmm0, dword [0x106a51f0]
add esp, 0x20
divss xmm0, dword [0x11b3794]
mov ecx, 0x10173658
push 0x59
movss dword [ebp - 8], xmm0
call fcn.10036b80
push eax
cvttss2si eax, dword [0x106a575c]
push 0
push 3
push eax
cvttss2si eax, dword [0x106a51f4]
add eax, 0x46
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