Function at 0x10009960
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x30
mov eax, dword [0x10087400]
xor eax, esp
mov dword [esp + 0x2c], eax
mov eax, dword [0x100888a4]
push esi
mov esi, ecx
push edi
test eax, eax
jne 0x1000998b
mov dword [0x100890c4], eax
jmp 0x10009a11
cmp eax, 1
jne 0x1000999c
mov dword [0x100890c4], 0xa
jmp 0x10009a11
cmp eax, 2
jne 0x100099ad
mov dword [0x100890c4], 0x14
jmp 0x10009a11
cmp eax, 3
jne 0x100099be
mov dword [0x100890c4], 0x1e
jmp 0x10009a11
cmp eax, 4
jne 0x100099cf
mov dword [0x100890c4], 0x28
jmp 0x10009a11
cmp eax, 5
jne 0x100099e0
mov dword [0x100890c4], 0x32
jmp 0x10009a11
cmp eax, 6
jne 0x100099f1
mov dword [0x100890c4], 0x3c
jmp 0x10009a11
cmp eax, 7
jne 0x10009a02
mov dword [0x100890c4], 0x46
jmp 0x10009a11
cmp eax, 8
jne 0x10009a11
mov dword [0x100890c4], 0x50
cmp dword [0x1008946c], 0
je 0x10009a76
cmp dword [0x10088498], 0
je 0x10009a76
mov ecx, dword [0x10089230]
sub ecx, dword [0x1008a84c]
add ecx, dword [0x1008a97c]
mov eax, dword [0x1008aa10]
mov ecx, dword [ecx + eax]
call fcn.100082e0
test eax, eax
jle 0x10009a76
mov edx, dword [0x10089294]
shr edx, 1
cmp esi, 0xffffffff
je 0x10009a5a
push 0xffff0000
jmp 0x10009a5f
push 0xff00ff00
push ecx
mov ecx, dword [0x10089290]
push dword [0x100890c4]
shr ecx, 1
call fcn.1000a040
add esp, 0xc
mov eax, dword [0x10089508]
lea ecx, [esp + 8]
mov edx, esi
push dword [eax*4 + 0x1007f444]
call fcn.10008370
add esp, 4
test al, al
je 0x10009caf
push str.Head
mov edx, esi
lea ecx, [esp + 0x20]
call fcn.10008370
add esp, 4
test al, al
je 0x10009caf
movq xmm0, qword [esp + 8]
sub esp, 0xc
mov eax, dword [esp + 0x1c]
mov ecx, esp
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
lea ecx, [esp + 0x34]
call fcn.10008490
add esp, 0xc
test al, al
je 0x10009caf
movss xmm1, dword [esp + 0x20]
sub esp, 0xc
addss xmm1, dword [0x10083694]
movss xmm2, dword [esp + 0x28]
mov ecx, esp
movss xmm0, dword [esp + 0x30]
movss dword [esp + 0x1c], xmm0
mov eax, dword [esp + 0x1c]
unpcklps xmm2, xmm1
movq qword [ecx], xmm2
mov dword [ecx + 8], eax
lea ecx, [esp + 0x14]
call fcn.10008490
add esp, 0xc
test al, al
je 0x10009caf
cmp dword [0x10089358], 0
je 0x10009b5f
movss xmm0, dword [esp + 0xc]
addss xmm0, dword [0x10083714]
push str.TARGET
push 0xffffff00
cvttss2si eax, xmm0
push eax
cvttss2si eax, dword [esp + 0x14]
push eax
push dword [0x100893bc]
call fcn.100087a0
add esp, 0x14
mov eax, dword [0x10088484]
dec eax
cmp eax, 3
ja case.default.0x10009b6a
jmp dword [eax*4 + 0x10009cc0]
mov esi, 1
mov dword [0x100892f4], esi
jmp 0x10009bab
mov esi, 2
mov dword [0x100892f4], esi
jmp 0x10009bab
mov esi, 0x11
mov dword [0x100892f4], esi
jmp 0x10009bab
mov esi, 0x10
mov dword [0x100892f4], esi
jmp 0x10009bab
mov esi, dword [0x100892f4]
cvttss2si eax, dword [esp + 0x28]
xorps xmm2, xmm2
xorps xmm0, xmm0
cvtsi2ss xmm2, eax
mov eax, dword [0x10089290]
cvtsi2sd xmm0, eax
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10083790]
cvttss2si eax, dword [esp + 0x2c]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [0x100836a0]
subss xmm2, xmm0
xorps xmm0, xmm0
movss dword [esp + 0x18], xmm2
xorps xmm2, xmm2
cvtsi2ss xmm2, eax
mov eax, dword [0x10089294]
cvtsi2sd xmm0, eax
shr eax, 0x1f
cmp dword [0x1008946c], 0
addsd xmm0, qword [eax*8 + 0x10083790]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [0x100836a0]
subss xmm2, xmm0
movss dword [esp + 0x14], xmm2
je 0x10009caf
cmp dword [0x10088484], 0
je 0x10009c83
push esi
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
je 0x10009c7b
cmp byte [esi*8 + 0x1008b368], 0
lea edi, [esi*8 + 0x1008b36c]
je 0x10009c69
cmp dword [edi], 0
je 0x10009c83
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi]
inc ecx
cmp ecx, eax
ja 0x10009c83
mov byte [esi*8 + 0x1008b368], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi], eax
jmp 0x10009c95
mov byte [esi*8 + 0x1008b368], 0
cmp dword [0x1008946c], 0
je 0x10009caf
cmp dword [0x10088484], 0
jne 0x10009caf
cvttss2si eax, dword [esp + 0x14]
push 0
push 0
push eax
cvttss2si eax, dword [esp + 0x24]
push eax
push 1
call dword [sym.imp.USER32.dll_mouse_event]
mov ecx, dword [esp + 0x34]
pop edi
pop esi
xor ecx, esp
call fcn.1006b8bb
mov esp, ebp
pop ebp
ret