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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [0x1028aee4], 0
push ebx
push esi
push edi
je 0x1004e30b
mov eax, 0x936aac
call eax
mov edx, 0x927c78
mov ecx, dword [eax + 0xdc]
call edx
test al, al
jne 0x1004d8b3
cmp byte [0x1024037d], 1
jne 0x1004e30b
mov byte [0x1024037d], 0
mov dword [0x11c4454], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov cl, byte [0x1024037d]
test cl, cl
je 0x1004e30b
mov eax, dword [0x10832118]
test eax, eax
jle 0x1004d8d9
add eax, 0xffffffff
mov dword [0x10832118], eax
jne 0x1004d8d9
cmp cl, 1
jmp 0x1004d895
cmp dword [0x105e4e24], 0
je 0x1004e30b
cmp dword [0x105e4e28], 0
je 0x1004e30b
movss xmm1, dword [0x11b3794]
xor eax, eax
movss xmm0, dword [0x100bc6ac]
xorps xmm2, xmm2
comiss xmm0, xmm1
setae al
movd xmm5, eax
cvtdq2ps xmm5, xmm5
ucomiss xmm5, xmm2
lahf
test ah, 0x44
jnp 0x1004d923
movaps xmm4, xmm1
jmp 0x1004d92b
movss xmm4, dword [0x11b3798]
mulss xmm4, dword [0x100bcc7c]
movaps xmm3, xmm1
mulss xmm3, dword [0x100bcc7c]
ucomiss xmm5, xmm2
subss xmm3, xmm4
lahf
test ah, 0x44
jp 0x1004d953
movss xmm1, dword [0x11b3798]
mulss xmm1, dword [0x100bcb80]
sub esp, 0x10
mov esi, dword [sym.imp.OPENGL32.dll_glColor4f]
addss xmm1, xmm3
mov dword [esp + 0xc], 0x3f733333
mov dword [esp + 8], 0x3f800000
mov dword [esp + 4], 0x3f800000
mov dword [esp], 0x3f800000
movss dword [ebp - 0xc], xmm1
call esi
movss xmm0, dword [0x100bc6ac]
xor eax, eax
movss xmm2, dword [0x11b3794]
comiss xmm0, xmm2
xorps xmm0, xmm0
setae al
movd xmm1, eax
cvtdq2ps xmm1, xmm1
ucomiss xmm1, xmm0
lahf
test ah, 0x44
jnp 0x1004d9be
movaps xmm3, xmm2
jmp 0x1004d9c6
movss xmm3, dword [0x11b3798]
mulss xmm3, dword [0x100bcbfc]
ucomiss xmm1, xmm0
lahf
test ah, 0x44
jnp 0x1004d9e0
movaps xmm1, xmm2
addss xmm1, xmm2
jmp 0x1004d9ec
movss xmm1, dword [0x11b3798]
addss xmm1, xmm1
movss xmm0, dword [ebp - 0xc]
mov eax, 0x631289
subss xmm0, xmm1
divss xmm3, xmm2
push ecx
mov dword [esp], 0
push 1
push 1
sub esp, 0x20
mov dword [esp + 0x1c], 0x3f800000
mov dword [esp + 0x18], 0x3f800000
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x43340000
divss xmm0, xmm2
movss dword [esp + 8], xmm3
mov dword [esp + 4], 0x42c80000
movss dword [esp], xmm0
push 0xf070
call eax
add esp, 0x20
mov dword [esp + 0xc], 0x3f800000
mov dword [esp + 8], 0x3f800000
mov dword [esp + 4], 0x3f800000
mov dword [esp], 0x3f800000
call esi
push 0xe2
mov eax, 0x436d31
mov ecx, 0x8499de0
call eax
movss xmm0, dword [0x100bc6ac]
xor ecx, ecx
movss xmm2, dword [0x11b3794]
xorps xmm1, xmm1
comiss xmm0, xmm2
mov edx, eax
setae cl
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp 0x1004daba
movaps xmm0, xmm2
jmp 0x1004dac2
movss xmm0, dword [0x11b3798]
mulss xmm0, dword [0x100bcbfc]
push edx
push 0
push 3
divss xmm0, xmm2
cvttss2si eax, xmm0
movss xmm0, dword [ebp - 0xc]
divss xmm0, xmm2
push eax
push 0x71
cvttss2si eax, xmm0
push eax
push 0xff19bdff
push 0x1023cd58
call fcn.100607a0
movss xmm2, dword [0x11b3794]
xor eax, eax
movss xmm0, dword [0x100bc6ac]
add esp, 0x20
comiss xmm0, xmm2
xorps xmm3, xmm3
setae al
movd xmm4, eax
cvtdq2ps xmm4, xmm4
ucomiss xmm4, xmm3
lahf
test ah, 0x44
jnp 0x1004db2a
movaps xmm1, xmm2
jmp 0x1004db32
movss xmm1, dword [0x11b3798]
mulss xmm1, dword [0x100bca7c]
movss xmm0, dword [ebp - 0xc]
ucomiss xmm4, xmm3
addss xmm1, xmm0
lahf
divss xmm1, xmm2
movss dword [ebp - 4], xmm1
test ah, 0x44
jnp 0x1004db5a
movaps xmm1, xmm2
jmp 0x1004db62
movss xmm1, dword [0x11b3798]
mulss xmm1, dword [0x100bc9ec]
ucomiss xmm4, xmm3
addss xmm1, xmm0
lahf
divss xmm1, xmm2
movss dword [ebp - 0x10], xmm1
test ah, 0x44
jnp 0x1004db85
movaps xmm0, xmm2
jmp 0x1004db8d
movss xmm0, dword [0x11b3798]
mulss xmm0, dword [0x100bcb84]
push 1
divss xmm0, xmm2
movss dword [ebp - 8], xmm0
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x799756
test ax, ax
jns 0x1004dbfe
cvttss2si edi, dword [ebp - 8]
push 0x17
cvttss2si ebx, dword [ebp - 4]
push edi
push 0x87
push ebx
call ecx
add esp, 0x10
test al, al
je 0x1004e033
push 0x100b82db
mov byte [0x1024055e], 1
mov byte [0x102405be], 0
mov byte [0x1024061e], 0
mov byte [0x1024067e], 0
push 0x1024055f
call fcn.10019ad0
add esp, 8
cmp byte [0x1024055e], 1
jne 0x1004dc2b
sub esp, 0x10
mov dword [esp + 0xc], 0x3f800000
mov dword [esp + 8], 0
mov dword [esp + 4], 0x3f47ae14
mov dword [esp], 0x3f800000
call esi
movss xmm0, dword [ebp - 8]
mov eax, 0x631289
push ecx
mov dword [esp], 0
push 1
push 1
sub esp, 0x20
mov dword [esp + 0x1c], 0x3f35c28f
mov dword [esp + 0x18], 0x3f1c28f6
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x41b80000
movss dword [esp + 8], xmm0
movss xmm0, dword [ebp - 4]
mov dword [esp + 4], 0x43070000
movss dword [esp], xmm0
push 0x11762
call eax
cvttss2si edi, dword [ebp - 0x10]
add esp, 0x30
mov ecx, 0x10173658
push 0xf1
call fcn.10036b80
push eax
push 0
push 1
push 0x32
push 0x8e
push edi
push 0xffffffffffffffff
push 0x1023cd58
call fcn.100607a0
cvttss2si ebx, dword [ebp - 8]
push 0x1024055f
push 0
push 3
cvttss2si eax, dword [ebp - 4]
push ebx
push 0x8e
push eax
push 0xffffffffffffffff
push 0x1023cd58
call fcn.100607a0
add esp, 0x30
mov dword [esp + 0xc], 0x3f800000
mov dword [esp + 8], 0x3f800000
mov dword [esp + 4], 0x3f800000
mov dword [esp], 0x3f800000
call esi
cmp byte [0x102405be], 1
jne 0x1004dd32
sub esp, 0x10
mov dword [esp + 0xc], 0x3f800000
mov dword [esp + 8], 0
mov dword [esp + 4], 0x3f47ae14
mov dword [esp], 0x3f800000
call esi
movss xmm0, dword [ebp - 8]
mov eax, 0x631289
push ecx
mov dword [esp], 0
push 1
push 1
sub esp, 0x20
mov dword [esp + 0x1c], 0x3f35c28f
mov dword [esp + 0x18], 0x3f1c28f6
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x41b80000
movss dword [esp + 8], xmm0
movss xmm0, dword [ebp - 4]
mov dword [esp + 4], 0x43200000
movss dword [esp], xmm0
push 0x11762
call eax
add esp, 0x30
mov ecx, 0x10173658
push 0xf5
call fcn.10036b80
push eax
push 0
push 1
push 0x32
push 0xa7
push edi
push 0xffffffffffffffff
push 0x1023cd58
call fcn.100607a0
cvttss2si eax, dword [ebp - 4]
push 0x102405bf
push 0
push 3
push ebx
push 0xa7
push eax
push 0xffffffffffffffff
push 0x1023cd58
call fcn.100607a0
add esp, 0x30
mov dword [esp + 0xc], 0x3f800000
mov dword [esp + 8], 0x3f800000
mov dword [esp + 4], 0x3f800000
mov dword [esp], 0x3f800000
call esi
cmp byte [0x1024061e], 1
jne 0x1004de2f
sub esp, 0x10
mov dword [esp + 0xc], 0x3f800000
mov dword [esp + 8], 0
mov dword [esp + 4], 0x3f47ae14
mov dword [esp], 0x3f800000
call esi
movss xmm0, dword [ebp - 8]
mov eax, 0x631289
push ecx
mov dword [esp], 0
push 1
push 1
sub esp, 0x20
mov dword [esp + 0x1c], 0x3f35c28f
mov dword [esp + 0x18], 0x3f1c28f6
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x41b80000
movss dword [esp + 8], xmm0
movss xmm0, dword [ebp - 4]
mov dword [esp + 4], 0x43390000
movss dword [esp], xmm0
push 0x11762
call eax
add esp, 0x30
mov ecx, 0x10173658
push 0xf6
call fcn.10036b80
push eax
push 0
push 1
push 0x32
push 0xc0
push edi
push 0xffffffffffffffff
push 0x1023cd58
call fcn.100607a0
cvttss2si eax, dword [ebp - 4]
push 0x1024061f
push 0
push 3
push ebx
push 0xc0
push eax
push 0xffffffffffffffff
push 0x1023cd58
call fcn.100607a0
add esp, 0x30
mov dword [esp + 0xc], 0x3f800000
mov dword [esp + 8], 0x3f800000
mov dword [esp + 4], 0x3f800000
mov dword [esp], 0x3f800000
call esi
cmp byte [0x1024067e], 1
jne 0x1004df2c
sub esp, 0x10
mov dword [esp + 0xc], 0x3f800000
mov dword [esp + 8], 0
mov dword [esp + 4], 0x3f47ae14
mov dword [esp], 0x3f800000
call esi
movss xmm0, dword [ebp - 8]
mov eax, 0x631289
push ecx
mov dword [esp], 0
push 1
push 1
sub esp, 0x20
mov dword [esp + 0x1c], 0x3f35c28f
mov dword [esp + 0x18], 0x3f1c28f6
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x41b80000
movss dword [esp + 8], xmm0
movss xmm0, dword [ebp - 4]
mov dword [esp + 4], 0x43520000
movss dword [esp], xmm0
push 0x11762
call eax
add esp, 0x30
mov ecx, 0x10173658
push 0xf7
call fcn.10036b80
push eax
push 0
push 1
push 0x32
push 0xd9
push edi
push 0xffffffffffffffff
push 0x1023cd58
call fcn.100607a0
cvttss2si eax, dword [ebp - 4]
push 0x1024067f
push 0
push 3
push ebx
push 0xd9
push eax
push 0xffffffffffffffff
push 0x1023cd58
call fcn.100607a0
add esp, 0x30
mov dword [esp + 0xc], 0x3f800000
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 0x1004e105
movaps xmm0, xmm2
jmp 0x1004e10d
push 0x17
push edi
push 0xa0
push ebx
mov eax, 0x799756
call eax
add esp, 0x10
test al, al
je 0x1004e075
push 0x100b82db
mov byte [0x1024055e], 0
mov byte [0x102405be], 1
mov byte [0x1024061e], 0
mov byte [0x1024067e], 0
push 0x102405bf
jmp 0x1004dbf6
push 0x17
push edi
push 0xb9
push ebx
mov eax, 0x799756
call eax
add esp, 0x10
test al, al
je 0x1004e0b7
push 0x100b82db
mov byte [0x1024055e], 0
mov byte [0x102405be], 0
mov byte [0x1024061e], 1
mov byte [0x1024067e], 0
push 0x1024061f
jmp 0x1004dbf6
push 0x17
push edi
push 0xd2
push ebx
mov eax, 0x799756
call eax
add esp, 0x10
mov byte [0x1024055e], 0
mov byte [0x102405be], 0
mov byte [0x1024061e], 0
test al, al
je 0x1004e0f9
push 0x100b82db
mov byte [0x1024067e], 1
push 0x1024067f
jmp 0x1004dbf6
mov byte [0x1024067e], 0
jmp 0x1004dc2b
movss xmm0, dword [0x11b3798]
mulss xmm0, dword [0x100bcacc]
ucomiss xmm3, xmm1
addss xmm0, dword [ebp - 0xc]
lahf
divss xmm0, xmm2
movss dword [ebp - 8], xmm0
test ah, 0x44
jnp 0x1004e131
movaps xmm1, xmm2
jmp 0x1004e139
movss xmm1, dword [0x11b3798]
mulss xmm1, dword [0x100bcaac]
mov eax, 0x799756
push 0x14
cvttss2si ebx, xmm0
divss xmm1, xmm2
cvttss2si edi, xmm1
movss dword [ebp - 0xc], xmm1
push edi
push 0xf0
push ebx
call eax
add esp, 0x10
test al, al
je 0x1004e237
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x1004e237
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x1083211c]
cmp eax, 0x1f4
jbe 0x1004e237
movss xmm0, dword [ebp - 0xc]
mov eax, 0x631289
push ecx
mov dword [esp], 0
push 1
push 1
sub esp, 0x20
mov dword [esp + 0x1c], 0x3e69d18c
mov dword [esp + 0x18], 0x3f341b1a
mov dword [esp + 0x14], 0x3f07ae14
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x41a00000
movss dword [esp + 8], xmm0
movss xmm0, dword [ebp - 8]
mov dword [esp + 4], 0x43700000
movss dword [esp], xmm0
push 0xf06e
call eax
add esp, 0x30
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1083211c], eax
call fcn.1004e320
sub esp, 0xc
mov dword [0x10832118], 5
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0x3f800000
call dword [sym.imp.OPENGL32.dll_glColor3f]
jmp 0x1004e2bb
push 0x14
push edi
push 0xf0
push ebx
mov eax, 0x799756
call eax
movss xmm0, dword [ebp - 0xc]
add esp, 0x10
push ecx
mov dword [esp], 0
push 1
push 1
sub esp, 0x20
test al, al
mov eax, 0x631289
mov dword [esp + 0x1c], 0x3e69d18c
mov dword [esp + 0x18], 0x3f341b1a
je 0x1004e281
mov dword [esp + 0x14], 0x3ca3d70a
jmp 0x1004e289
mov dword [esp + 0x14], 0x3e8963a7
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x41a00000
movss dword [esp + 8], xmm0
movss xmm0, dword [ebp - 8]
mov dword [esp + 4], 0x43700000
movss dword [esp], xmm0
push 0xf06e
call eax
add esp, 0x30
sub esp, 0x10
mov dword [esp + 0xc], 0x3f800000
mov dword [esp + 8], 0x3f800000
mov dword [esp + 4], 0x3f800000
mov dword [esp], 0x3f800000
call esi
push 0xe4
mov ecx, 0x8499de0
mov eax, 0x436d31
call eax
push eax
push 0
push 3
push edi
push 0xf6
push ebx
push 0xffffffffffffffff
push 0x1023cd58
call fcn.100607a0
add esp, 0x20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret