Function at 0x10009880
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
mov eax, dword [0x10086400]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [0x10086e7c]
push esi
mov esi, ecx
push edi
test eax, eax
jne 0x100098ab
mov dword [0x10087694], eax
jmp 0x10009931
cmp eax, 1
jne 0x100098bc
mov dword [0x10087694], 0xa
jmp 0x10009931
cmp eax, 2
jne 0x100098cd
mov dword [0x10087694], 0x14
jmp 0x10009931
cmp eax, 3
jne 0x100098de
mov dword [0x10087694], 0x1e
jmp 0x10009931
cmp eax, 4
jne 0x100098ef
mov dword [0x10087694], 0x28
jmp 0x10009931
cmp eax, 5
jne 0x10009900
mov dword [0x10087694], 0x32
jmp 0x10009931
cmp eax, 6
jne 0x10009911
mov dword [0x10087694], 0x3c
jmp 0x10009931
cmp eax, 7
jne 0x10009922
mov dword [0x10087694], 0x46
jmp 0x10009931
cmp eax, 8
jne 0x10009931
mov dword [0x10087694], 0x50
mov eax, dword [0x10087ac8]
cmp dword [eax], 0
je 0x1000997f
mov ecx, dword [0x10087800]
sub ecx, dword [0x10088e1c]
add ecx, dword [0x10088f4c]
mov eax, dword [0x10088fdc]
mov ecx, dword [ecx + eax]
call fcn.10008130
test eax, eax
jle 0x1000997f
mov eax, dword [0x10087ac8]
mov ecx, dword [eax]
add ecx, dword [0x10088e08]
call fcn.10010c10
mov ecx, dword [0x10088e28]
add ecx, eax
call fcn.10010c30
jmp 0x10009983
mov eax, dword [esp + 0xc]
cmp eax, 2
jge 0x10009bef
cmp dword [0x10087a38], 0
je 0x100099f1
cmp dword [0x10086a70], 0
je 0x100099f1
mov ecx, dword [0x10087800]
sub ecx, dword [0x10088e1c]
add ecx, dword [0x10088f4c]
mov eax, dword [0x10088fdc]
mov ecx, dword [ecx + eax]
call fcn.10008130
test eax, eax
jle 0x100099f1
mov edx, dword [0x10087868]
shr edx, 1
cmp esi, 0xffffffff
je 0x100099d5
push 0xffff0000
jmp 0x100099da
push 0xff00ff00
push ecx
mov ecx, dword [0x10087864]
push dword [0x10087694]
shr ecx, 1
call fcn.10009f80
add esp, 0xc
mov eax, dword [0x10087ad0]
lea ecx, [esp + 0x20]
mov edx, esi
push dword [eax*4 + 0x1007e504]
call fcn.100081c0
add esp, 4
test al, al
je 0x10009bef
push str.Head
mov edx, esi
lea ecx, [esp + 0x14]
call fcn.100081c0
add esp, 4
test al, al
je 0x10009bef
movq xmm0, qword [esp + 0x20]
sub esp, 0xc
mov eax, dword [esp + 0x34]
mov ecx, esp
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
lea ecx, [esp + 0x2c]
call fcn.10008290
add esp, 0xc
test al, al
je 0x10009bef
movss xmm1, dword [esp + 0x14]
sub esp, 0xc
addss xmm1, dword [0x1008275c]
movss xmm2, dword [esp + 0x1c]
mov ecx, esp
movss xmm0, dword [esp + 0x24]
movss dword [esp + 0x24], xmm0
mov eax, dword [esp + 0x24]
unpcklps xmm2, xmm1
movq qword [ecx], xmm2
mov dword [ecx + 8], eax
lea ecx, [esp + 0x1c]
call fcn.10008290
add esp, 0xc
test al, al
je 0x10009bef
mov eax, dword [0x1008693c]
dec eax
cmp eax, 3
ja case.default.0x10009aaa
jmp dword [eax*4 + 0x10009c00]
mov esi, 1
mov dword [0x100878c4], esi
jmp 0x10009aeb
mov esi, 2
mov dword [0x100878c4], esi
jmp 0x10009aeb
mov esi, 0x11
mov dword [0x100878c4], esi
jmp 0x10009aeb
mov esi, 0x10
mov dword [0x100878c4], esi
jmp 0x10009aeb
mov esi, dword [0x100878c4]
cvttss2si eax, dword [esp + 0x20]
xorps xmm2, xmm2
xorps xmm0, xmm0
cvtsi2ss xmm2, eax
mov eax, dword [0x10087864]
cvtsi2sd xmm0, eax
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10082860]
cvttss2si eax, dword [esp + 0x24]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [0x1008276c]
subss xmm2, xmm0
xorps xmm0, xmm0
movss dword [esp + 0xc], xmm2
xorps xmm2, xmm2
cvtsi2ss xmm2, eax
mov eax, dword [0x10087868]
cvtsi2sd xmm0, eax
shr eax, 0x1f
cmp dword [0x10087a38], 0
addsd xmm0, qword [eax*8 + 0x10082860]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [0x1008276c]
subss xmm2, xmm0
movss dword [esp + 0x1c], xmm2
je 0x10009bef
cmp dword [0x1008693c], 0
je 0x10009bc3
push esi
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
je 0x10009bbb
cmp byte [esi*8 + 0x10089948], 0
lea edi, [esi*8 + 0x1008994c]
je 0x10009ba9
cmp dword [edi], 0
je 0x10009bc3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi]
inc ecx
cmp ecx, eax
ja 0x10009bc3
mov byte [esi*8 + 0x10089948], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi], eax
jmp 0x10009bd5
mov byte [esi*8 + 0x10089948], 0
cmp dword [0x10087a38], 0
je 0x10009bef
cmp dword [0x1008693c], 0
jne 0x10009bef
cvttss2si eax, dword [esp + 0x1c]
push 0
push 0
push eax
cvttss2si eax, dword [esp + 0x18]
push eax
push 1
call dword [sym.imp.USER32.dll_mouse_event]
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
xor ecx, esp
call fcn.1006b10b
mov esp, ebp
pop ebp
ret