Function at 0x10017090
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x100d4710]
xor eax, ebp
mov dword [ebp - 4], eax
mov dl, byte [0x100d236d]
movss xmm2, dword [0x100d2360]
movss xmm1, dword [0x100d2364]
movss dword [ebp - 8], xmm2
movss dword [ebp - 0xc], xmm1
push ebx
mov ebx, ecx
mov cl, byte [0x100d256d]
push esi
push edi
test dl, dl
je 0x10017111
test cl, cl
jne 0x10017111
movups xmm3, xmmword [ebx + 0x3c]
comiss xmm2, xmm3
movups xmmword [ebp - 0x1c], xmm3
jbe 0x10017111
movss xmm4, dword [ebp - 0x18]
comiss xmm1, xmm4
jbe 0x10017111
movss xmm0, dword [ebp - 0x14]
addss xmm0, xmm3
comiss xmm0, xmm2
jbe 0x10017111
movss xmm0, dword [ebp - 0x10]
mov eax, dword [0x100d2350]
addss xmm0, xmm4
comiss xmm0, xmm1
cmova eax, ebx
mov dword [0x100d2350], eax
movss xmm4, dword [ebx + 0x3c]
lea edi, [ebx + 0x3c]
comiss xmm2, xmm4
lea esi, [ebx + 0x40]
movss xmm0, dword [esi]
movss xmm3, dword [ebx + 0x44]
jbe 0x10017151
comiss xmm1, xmm0
jbe 0x10017151
addss xmm3, xmm4
comiss xmm3, xmm2
jbe 0x10017151
addss xmm0, dword [0x10055f9c]
comiss xmm0, xmm1
jbe 0x10017151
test dl, dl
je 0x10017151
test cl, cl
jne 0x10017151
mov byte [ebx + 0x31], 1
push 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne 0x10017161
mov byte [ebx + 0x31], al
cmp byte [ebx + 0x30], 0
je 0x10017171
cmp byte [ebx + 0x31], 0
jne 0x100171e9
mov byte [ebx + 0x30], 0
movss xmm4, dword [ebp - 0xc]
movss xmm5, dword [ebp - 8]
movss xmm2, dword [edi]
movss xmm0, dword [0x100d2360]
comiss xmm0, xmm2
movss xmm3, dword [esi]
movss xmm7, dword [ebx + 0x44]
jbe 0x100172a7
movss xmm6, dword [0x100d2364]
comiss xmm6, xmm3
jbe 0x100172a7
movaps xmm1, xmm7
addss xmm1, xmm2
comiss xmm1, xmm0
jbe 0x100172a7
movaps xmm0, xmm3
addss xmm0, dword [0x10055f9c]
comiss xmm0, xmm6
jbe 0x100172a7
subss xmm5, xmm2
mov byte [ebx + 0x30], 1
subss xmm4, xmm3
movss dword [ebx + 0x34], xmm5
movss dword [ebx + 0x38], xmm4
jmp 0x100172ae
movss xmm5, dword [ebp - 8]
lea ecx, [ebp - 8]
movss xmm4, dword [ebp - 0xc]
movaps xmm2, xmm5
subss xmm2, dword [ebx + 0x34]
movaps xmm3, xmm4
mov dword [ebp - 8], 0
subss xmm3, dword [ebx + 0x38]
xorps xmm1, xmm1
movss dword [edi], xmm2
movss dword [esi], xmm3
mov eax, dword [0x100d5458]
mov eax, dword [eax + 0x80]
movd xmm0, eax
shr eax, 0x1f
cvtdq2pd xmm0, xmm0
comiss xmm1, xmm2
addsd xmm0, qword [eax*8 + 0x100555f0]
lea eax, [ebp - 0xc]
cmovbe ecx, edi
cvtpd2ps xmm0, xmm0
subss xmm0, dword [ebx + 0x44]
comiss xmm2, xmm0
movss dword [ebp - 0xc], xmm0
cmovbe eax, ecx
lea ecx, [ebp - 8]
mov eax, dword [eax]
mov dword [edi], eax
mov eax, dword [0x100d5458]
mov dword [ebp - 8], 0
mov eax, dword [eax + 0x84]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
comiss xmm1, xmm3
addsd xmm0, qword [eax*8 + 0x100555f0]
lea eax, [ebp - 0xc]
cmovbe ecx, esi
cvtpd2ps xmm0, xmm0
subss xmm0, dword [ebx + 0x48]
comiss xmm3, xmm0
movss dword [ebp - 0xc], xmm0
cmovbe eax, ecx
mov eax, dword [eax]
mov dword [esi], eax
jmp 0x1001717b
addss xmm2, xmm7
movaps xmm1, xmm2
mov ecx, dword [ebx + 0x4c]
mov edi, dword [ebx + 0x50]
cmp ecx, edi
je 0x10017403
subss xmm1, dword [0x10055f90]
sub edi, ecx
sar edi, 3
sub edi, 1
cvttss2si eax, xmm1
mov dword [ebp - 8], eax
js 0x100173f7
nop dword [eax]
mov eax, dword [ebx + 0x4c]
mov ecx, dword [eax + edi*8]
mov eax, dword [0x100d5458]
add eax, 0x20
mov dword [ebp - 0xc], ecx
push eax
push dword [ecx + 4]
call fcn.10048310
mov ecx, dword [0x100d5458]
mov esi, eax
mov eax, dword [ebp - 0xc]
add ecx, 0x20
push ecx
push dword [eax + 4]
call fcn.100482a0
mov edx, dword [ebp - 8]
add esp, 0x10
movd xmm4, esi
cvtdq2ps xmm4, xmm4
movss xmm5, dword [0x100d2360]
movss xmm2, dword [ebx + 0x40]
movaps xmm0, xmm4
addss xmm0, dword [0x10055f94]
addss xmm2, dword [0x10055f88]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
cvttss2si ecx, xmm0
sub edx, ecx
mov dword [ebp - 8], edx
movd xmm0, edx
cvtdq2ps xmm0, xmm0
comiss xmm5, xmm0
jbe 0x1001738b
movss xmm3, dword [0x100d2364]
comiss xmm3, xmm2
jbe 0x1001738b
addss xmm0, xmm4
comiss xmm0, xmm5
jbe 0x1001738b
addss xmm1, xmm2
comiss xmm1, xmm3
jbe 0x1001738b
cmp byte [0x100d236d], 0
je 0x1001738b
cmp byte [0x100d256d], 0
je 0x10017396
sub edi, 1
jns 0x100172e0
jmp 0x100173f7
mov eax, dword [ebp - 0xc]
mov byte [0x100d236d], 0
mov dword [ebx + 0x58], eax
mov eax, dword [ebx + 0x50]
mov edi, dword [ebx + 0x4c]
mov dword [ebp - 8], eax
cmp edi, eax
je 0x100173f7
mov eax, dword [edi + 4]
test eax, eax
je 0x100173bb
lock inc dword [eax + 4]
mov ecx, dword [edi]
mov esi, dword [edi + 4]
cmp ecx, dword [ebx + 0x58]
je 0x100173ca
mov eax, dword [ecx]
call dword [eax + 0xc]
test esi, esi
je 0x100173ef
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x100173ef
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x100173ef
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
add edi, 8
cmp edi, dword [ebp - 8]
jne 0x100173b0
mov ecx, dword [ebx + 0x58]
test ecx, ecx
je 0x10017403
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100525c5
mov esp, ebp
pop ebp
ret