Function at 0x10008150
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
movss xmm0, dword [0x100cd5a8]
sub esp, 0xc
xorps xmm1, xmm1
ucomiss xmm0, xmm1
push ebx
push esi
push edi
mov edi, ecx
lahf
test ah, 0x44
jnp 0x10008640
cvttss2si eax, dword [0x100cd5a4]
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne 0x10008192
mov word [0x100c64f0], ax
jmp 0x10008630
cmp byte [0x100c64f0], 0
jne 0x100084a3
xor eax, eax
mov byte [0x100c64f1], 0
mov dword [ebp - 4], eax
nop dword [eax + eax]
cmp eax, 1
jne 0x10008268
mov ecx, dword [0x100c9300]
mov byte [0x100c64f1], al
mov eax, dword [edi + 4]
push 0x100c6528
mov edx, dword [ecx]
push dword [eax]
mov eax, dword [0x100cd344]
push dword [eax]
mov eax, dword [edx + 0x54]
call eax
mov esi, dword [0x100c6508]
mov eax, dword [0x100cd344]
or esi, 2
or dword [0x100c654c], 4
mov dword [0x100c6508], esi
mov ecx, dword [eax]
call fcn.100075f0
mov dword [eax], esi
mov eax, dword [0x100cd344]
movss xmm0, dword [0x100c6504]
movss dword [ebp - 8], xmm0
mov ecx, dword [eax]
call fcn.10007910
movss xmm0, dword [ebp - 8]
movss dword [eax], xmm0
mov eax, dword [0x100cd344]
mov ecx, dword [eax]
call fcn.10007c50
movss xmm0, dword [0x100c650c]
movss dword [eax], xmm0
movss xmm0, dword [0x100c6510]
movss dword [eax + 4], xmm0
movss xmm0, dword [0x100c6514]
movss dword [eax + 8], xmm0
mov eax, dword [0x100cd344]
mov esi, dword [0x100c6524]
mov ecx, dword [eax]
call fcn.10007ab0
jmp 0x1000827e
test eax, eax
jne 0x10008283
mov eax, dword [0x100cd344]
mov esi, dword [0x100c6508]
mov ecx, dword [eax]
call fcn.100075f0
mov dword [eax], esi
mov eax, dword [ebp - 4]
movss xmm0, dword [0x100cd634]
mov ebx, 1
comiss xmm0, dword [0x100b5820]
jb 0x1000847d
nop dword [eax]
cmp eax, 1
jne 0x10008304
mov eax, dword [edi + 4]
push dword [eax]
call fcn.10023750
mov ecx, dword [0x100cc0d0]
mov eax, dword [0x100cd344]
mov edx, dword [ecx]
push dword [eax]
call dword [edx + 0x10]
mov ecx, dword [0x100c92fc]
push 0
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [0x100c7a18]
movss xmm0, dword [0x100cdf9c]
movss dword [ecx + 0x10], xmm0
movss xmm0, dword [0x100cdfa0]
movss dword [ecx + 0x14], xmm0
mov eax, dword [0x100cdfa4]
mov dword [ecx + 0x1c], eax
mov ecx, dword [0x100cc0d0]
mov eax, dword [ecx]
call dword [eax + 8]
mov eax, dword [ebp - 4]
mov esi, dword [edi]
test byte [esi + 0xf0], 1
jne 0x10008619
movss xmm0, dword [esi + 0xfc]
xorps xmm1, xmm1
comiss xmm0, xmm1
ja 0x10008619
mov eax, dword [edi + 4]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov eax, dword [0x100cd344]
mov ecx, dword [eax]
call fcn.10007770
push ecx
movss xmm0, dword [eax + 8]
movss dword [esp], xmm0
call fcn.1006d460
fstp dword [ebp - 8]
cvttss2si eax, dword [ebp - 8]
add esp, 4
xorps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp 0x10008606
test byte [esi + 0xf0], 1
jne 0x10008606
movss xmm0, dword [0x100b59f4]
comiss xmm0, dword [esi + 0xfc]
jbe 0x100083d4
mov eax, dword [0x100cd344]
mov ecx, dword [eax]
call fcn.10007770
movss xmm0, dword [eax + 8]
comiss xmm0, dword [esi + 0xfc]
jbe 0x100083d4
mov eax, dword [0x100cd344]
mov ecx, dword [eax]
call fcn.10007770
movss xmm0, dword [0x100b59f4]
comiss xmm0, dword [eax + 8]
jbe 0x100083d4
mov eax, dword [0x100cd344]
mov ecx, dword [eax]
call fcn.100075f0
test byte [eax], 1
je 0x10008500
cmp byte [0x100c64f0], 0
jne 0x100085db
cmp byte [0x100c6500], 0
jne 0x1000860d
cmp byte [0x100cd4b2], 0
je 0x100083fe
mov byte [0x100c9308], 1
mov eax, dword [ebp - 4]
test eax, eax
jne 0x10008464
mov eax, dword [edi + 4]
push dword [eax]
call fcn.10023750
mov ecx, dword [0x100cc0d0]
mov eax, dword [0x100cd344]
mov edx, dword [ecx]
push dword [eax]
call dword [edx + 0x10]
mov ecx, dword [0x100c92fc]
push 0
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [0x100c7a18]
movss xmm0, dword [0x100cdf9c]
movss dword [ecx + 0x10], xmm0
movss xmm0, dword [0x100cdfa0]
movss dword [ecx + 0x14], xmm0
mov eax, dword [0x100cdfa4]
mov dword [ecx + 0x1c], eax
mov ecx, dword [0x100cc0d0]
mov eax, dword [ecx]
call dword [eax + 8]
mov eax, dword [ebp - 4]
movss xmm0, dword [0x100cd634]
inc ebx
movd xmm1, ebx
cvtdq2ps xmm1, xmm1
comiss xmm0, xmm1
jae 0x100082a0
cmp byte [0x100c64f0], 0
jne 0x100084a3
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp eax, 2
jl 0x100081b0
cmp byte [0x100c64f0], 0
je 0x10008630
mov eax, dword [0x100c7a18]
mov ecx, dword [0x100c64f4]
add ecx, dword [0x100c64f8]
cmp dword [eax + 0x1c], ecx
jge 0x10008625
mov eax, dword [edi + 4]
mov eax, dword [eax]
mov dword [eax + 0x24], 0
mov eax, dword [edi + 4]
mov eax, dword [eax]
mov dword [eax + 0x28], 0
cmp byte [0x100cd4b2], 0
je 0x100084e5
mov byte [0x100c9308], 1
cmp byte [0x100c64f1], 0
je 0x10008630
mov eax, dword [edi + 4]
mov eax, dword [eax]
or dword [eax + 0x30], 4
jmp 0x10008630
mov eax, dword [0x100cd344]
mov ecx, dword [eax]
call fcn.10007770
push dword [ebp - 0xc]
movss xmm0, dword [eax + 8]
movss dword [ebp - 8], xmm0
call fcn.10023750
mov ecx, dword [0x100cc0d0]
mov eax, dword [0x100cd344]
mov edx, dword [ecx]
push dword [eax]
call dword [edx + 0x10]
mov ecx, dword [0x100c92fc]
push 0
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [0x100c7a18]
movss xmm0, dword [0x100cdf9c]
movss dword [ecx + 0x10], xmm0
movss xmm0, dword [0x100cdfa0]
movss dword [ecx + 0x14], xmm0
mov eax, dword [0x100cdfa4]
mov dword [ecx + 0x1c], eax
mov ecx, dword [0x100cc0d0]
mov eax, dword [ecx]
call dword [eax + 8]
mov eax, dword [0x100c7a18]
movss xmm1, dword [ebp - 8]
push ecx
movss xmm0, dword [eax + 0x20]
mulss xmm0, dword [0x100b59a0]
subss xmm1, xmm0
movss dword [esp], xmm1
call fcn.1006d460
mov eax, dword [0x100cd344]
add esp, 4
fstp dword [ebp - 0xc]
mov ecx, dword [eax]
call fcn.10007770
push ecx
movss xmm0, dword [eax + 8]
movss dword [esp], xmm0
call fcn.1006d460
movss xmm0, dword [ebp - 0xc]
add esp, 4
fstp dword [ebp - 8]
ucomiss xmm0, dword [ebp - 8]
lahf
test ah, 0x44
jp 0x10008606
mov byte [0x100c64f0], 1
mov byte [0x100c6500], 0
mov eax, dword [0x100c7a18]
mov dword [0x100c64f4], ebx
mov eax, dword [eax + 0x1c]
mov dword [0x100c64f8], eax
mov eax, dword [edi + 4]
mov eax, dword [eax]
movsx eax, word [eax + 0x44]
cdq
xor eax, edx
sub eax, edx
mov dword [0x100c64fc], eax
jmp 0x1000847d
mov byte [0x100c64f0], 0
mov byte [0x100c6500], 0
jmp 0x10008486
mov byte [0x100c64f0], 0
jmp 0x10008489
mov eax, dword [edi]
mov byte [eax], 0
mov eax, dword [edi]
mov byte [eax + 1], 0
cmp byte [0x100cd4b2], 0
je 0x10008640
mov byte [0x100c9308], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8