Function at 0x10047310
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 [0x100d183c]
xorps xmm1, xmm1
comiss xmm0, xmm2
setae al
movd xmm3, eax
cvtdq2ps xmm3, xmm3
ucomiss xmm3, xmm1
lahf
test ah, 0x44
jnp 0x1004736a
movaps xmm0, xmm2
jmp 0x10047372
movss xmm0, dword [0x11b3798]
mulss xmm0, dword [0x100d1c9c]
ucomiss xmm3, xmm1
divss xmm0, xmm2
lahf
test ah, 0x44
jnp 0x1004738c
movaps xmm1, xmm2
jmp 0x10047394
movss xmm1, dword [0x11b3798]
mulss xmm1, dword [0x100d1c70]
mov edi, 0x799756
push 0xf
cvttss2si eax, xmm0
addss xmm1, dword [0x1023c538]
movss xmm0, dword [0x1023c53c]
addss xmm0, dword [0x100d1ce4]
push eax
divss xmm1, xmm2
cvttss2si eax, xmm0
push eax
cvttss2si eax, xmm1
push eax
call edi
add esp, 0x10
cmp al, 1
jne 0x100473f3
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 0x100474c2
movss xmm2, dword [0x11b3794]
xor eax, eax
movss xmm0, dword [0x100d183c]
xorps xmm1, xmm1
comiss xmm0, xmm2
setae al
movd xmm3, eax
cvtdq2ps xmm3, xmm3
ucomiss xmm3, xmm1
lahf
test ah, 0x44
jnp 0x10047434
movaps xmm0, xmm2
jmp 0x1004743c
movss xmm0, dword [0x11b3798]
mulss xmm0, dword [0x100d1c9c]
ucomiss xmm3, xmm1
divss xmm0, xmm2
lahf
test ah, 0x44
jnp 0x10047456
movaps xmm1, xmm2
jmp 0x1004745e
movss xmm1, dword [0x11b3798]
mulss xmm1, dword [0x100d1c70]
push 0xf
cvttss2si eax, xmm0
addss xmm1, dword [0x1023c538]
movss xmm0, dword [0x1023c53c]
addss xmm0, dword [0x100d1ce4]
push eax
divss xmm1, xmm2
cvttss2si eax, xmm0
push eax
cvttss2si eax, xmm1
push eax
call edi
add esp, 0x10
cmp al, 1
jne 0x100474c2
sub esp, 0xc
mov dword [0x1023c560], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0x3f800000
call esi
movss xmm0, dword [0x100d183c]
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 0x100474f2
movaps xmm1, xmm2
jmp 0x100474fa
movss xmm1, dword [0x11b3798]
mulss xmm1, dword [0x100d1c9c]
ucomiss xmm3, xmm0
divss xmm1, xmm2
lahf
test ah, 0x44
jnp 0x10047514
movaps xmm3, xmm2
jmp 0x1004751c
movss xmm3, dword [0x11b3798]
mulss xmm3, dword [0x100d1c70]
mov eax, 0x631289
push ecx
movss xmm0, dword [0x1023c53c]
mov dword [esp], 0
addss xmm3, dword [0x1023c538]
cvtps2pd xmm0, xmm0
push 1
push 1
sub esp, 0x20
divss xmm3, xmm2
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
addsd xmm0, qword [0x100d1a10]
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 [0x100d183c]
xorps xmm1, xmm1
comiss xmm0, xmm2
setae al
movd xmm3, eax
cvtdq2ps xmm3, xmm3
ucomiss xmm3, xmm1
lahf
test ah, 0x44
jnp 0x100475e7
movaps xmm0, xmm2
jmp 0x100475ef
movss xmm0, dword [0x11b3798]
mulss xmm0, dword [0x100d1cac]
ucomiss xmm3, xmm1
divss xmm0, xmm2
lahf
movss dword [ebp - 4], xmm0
test ah, 0x44
jnp 0x1004760e
movaps xmm0, xmm2
jmp 0x10047616
movss xmm0, dword [0x11b3798]
mulss xmm0, dword [0x100d1c70]
mov ecx, 0x101888b0
push 0x5a
addss xmm0, dword [0x1023c538]
divss xmm0, xmm2
movss dword [ebp - 8], xmm0
call fcn.1003ad30
movss xmm0, dword [0x1023c53c]
push eax
cvttss2si eax, dword [ebp - 4]
push 0
push 3
cvtps2pd xmm0, xmm0
push eax
addsd xmm0, qword [0x100d1a18]
cvttsd2si eax, xmm0
push eax
cvttss2si eax, dword [ebp - 8]
push eax
push 0xffffffffffffffff
push 0x10276e38
call fcn.100712f0
movss xmm0, dword [0x1023c538]
add esp, 0x20
divss xmm0, dword [0x11b3794]
mov ecx, 0x101888b0
push 0x59
movss dword [ebp - 8], xmm0
call fcn.1003ad30
push eax
cvttss2si eax, dword [0x1023caac]
push 0
push 3
push eax
cvttss2si eax, dword [0x1023c53c]
add eax, 0x46
push eax
cvttss2si eax, dword [ebp - 8]
push eax
push 0xffffffffffffffff
push 0x10276e38
call fcn.100712f0
add esp, 0x20
pop edi
pop esi
mov esp, ebp
pop ebp
ret