Function at 0x10008250
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
mov eax, dword [0x1008f400]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [0x100908dc]
push esi
mov esi, ecx
push edi
test eax, eax
jne 0x1000827b
mov dword [0x1009131c], eax
jmp 0x10008301
cmp eax, 1
jne 0x1000828c
mov dword [0x1009131c], 0xa
jmp 0x10008301
cmp eax, 2
jne 0x1000829d
mov dword [0x1009131c], 0x14
jmp 0x10008301
cmp eax, 3
jne 0x100082ae
mov dword [0x1009131c], 0x1e
jmp 0x10008301
cmp eax, 4
jne 0x100082bf
mov dword [0x1009131c], 0x28
jmp 0x10008301
cmp eax, 5
jne 0x100082d0
mov dword [0x1009131c], 0x32
jmp 0x10008301
cmp eax, 6
jne 0x100082e1
mov dword [0x1009131c], 0x3c
jmp 0x10008301
cmp eax, 7
jne 0x100082f2
mov dword [0x1009131c], 0x46
jmp 0x10008301
cmp eax, 8
jne 0x10008301
mov dword [0x1009131c], 0x50
mov eax, dword [0x10091758]
cmp dword [eax], 0
je 0x1000834f
mov ecx, dword [0x10091494]
sub ecx, dword [0x100934b0]
add ecx, dword [0x100935f8]
mov eax, dword [0x100936a4]
mov ecx, dword [ecx + eax]
call fcn.10006ac0
test eax, eax
jle 0x1000834f
mov eax, dword [0x10091758]
mov ecx, dword [eax]
add ecx, dword [0x10093498]
call fcn.100166e0
mov ecx, dword [0x100934bc]
add ecx, eax
call fcn.10016720
jmp 0x10008353
mov eax, dword [esp + 0xc]
cmp eax, 2
jge 0x100085fa
cmp dword [0x100916c4], 0
je 0x100083fc
cmp dword [0x100904c8], 0
je 0x100083fc
mov ecx, dword [0x10091494]
sub ecx, dword [0x100934b0]
add ecx, dword [0x100935f8]
mov eax, dword [0x100936a4]
mov ecx, dword [ecx + eax]
call fcn.10006ac0
test eax, eax
jle 0x100083fc
mov eax, dword [0x10091500]
mov edx, 0xffff0000
shr eax, 1
movd xmm2, dword [0x1009131c]
push dword [ebp + 8]
cvtdq2ps xmm2, xmm2
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1008a650]
mov eax, dword [0x100914fc]
shr eax, 1
cvtpd2ps xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1008a650]
cvtpd2ps xmm0, xmm0
cmp esi, 0xffffffff
jne 0x100083f4
mov edx, 0xff00ff00
call fcn.10008990
add esp, 4
mov eax, dword [0x10091764]
lea ecx, [esp + 0x20]
mov edx, esi
push dword [eax*4 + 0x10086764]
call fcn.10006b50
add esp, 4
test al, al
je 0x100085fa
push str.Head
mov edx, esi
lea ecx, [esp + 0x14]
call fcn.10006b50
add esp, 4
test al, al
je 0x100085fa
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.10006c30
add esp, 0xc
test al, al
je 0x100085fa
movss xmm1, dword [esp + 0x14]
sub esp, 0xc
addss xmm1, dword [0x1008a598]
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.10006c30
add esp, 0xc
test al, al
je 0x100085fa
mov eax, dword [0x100904b4]
dec eax
cmp eax, 3
ja case.default.0x100084b5
jmp dword [eax*4 + 0x1000860c]
mov esi, 1
mov dword [0x10091558], esi
jmp 0x100084f6
mov esi, 2
mov dword [0x10091558], esi
jmp 0x100084f6
mov esi, 0x11
mov dword [0x10091558], esi
jmp 0x100084f6
mov esi, 0x10
mov dword [0x10091558], esi
jmp 0x100084f6
mov esi, dword [0x10091558]
cvttss2si eax, dword [esp + 0x20]
xorps xmm2, xmm2
xorps xmm0, xmm0
cvtsi2ss xmm2, eax
mov eax, dword [0x100914fc]
cvtsi2sd xmm0, eax
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1008a650]
cvttss2si eax, dword [esp + 0x24]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [0x1008a5a4]
subss xmm2, xmm0
xorps xmm0, xmm0
movss dword [esp + 0xc], xmm2
xorps xmm2, xmm2
cvtsi2ss xmm2, eax
mov eax, dword [0x10091500]
cvtsi2sd xmm0, eax
shr eax, 0x1f
cmp dword [0x100916c4], 0
addsd xmm0, qword [eax*8 + 0x1008a650]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [0x1008a5a4]
subss xmm2, xmm0
movss dword [esp + 0x1c], xmm2
je 0x100085fa
cmp dword [0x100904b4], 0
je 0x100085ce
push esi
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
je 0x100085c6
cmp byte [esi*8 + 0x10094040], 0
lea edi, [esi*8 + 0x10094044]
je 0x100085b4
cmp dword [edi], 0
je 0x100085ce
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi]
inc ecx
cmp ecx, eax
ja 0x100085ce
mov byte [esi*8 + 0x10094040], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi], eax
jmp 0x100085e0
mov byte [esi*8 + 0x10094040], 0
cmp dword [0x100916c4], 0
je 0x100085fa
cmp dword [0x100904b4], 0
jne 0x100085fa
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.10071a6b
mov esp, ebp
pop ebp
ret