Function at 0x10020820
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002f7ff
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x88
mov eax, dword [0x1003b040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [0x10237210]
test edi, edi
je 0x10020caa
mov edi, dword [edi + 0xd105c]
xor edi, 0x581781b0
je 0x10020caa
mov eax, edi
shr eax, 0x10
test eax, eax
je 0x10020caa
call fcn.10020540
mov esi, eax
test esi, esi
je 0x10020caa
movss xmm0, dword [esi + 0x4c4]
comiss xmm0, dword [0x100365f8]
jbe 0x10020caa
lea eax, [ebp - 0x44]
mov edx, 6
push eax
mov ecx, esi
call fcn.1001ffa0
add esp, 4
lea eax, [ebp - 0x50]
mov edx, 5
mov ecx, esi
push eax
call fcn.1001ffa0
add esp, 4
cmp dword [0x102371f0], 0
jne 0x10020915
push 1
call fcn.1002e0c3
mov dword [ebp - 0x64], eax
add esp, 4
movaps xmm0, xmmword [0x10036cb0]
movups xmmword [0x10237160], xmm0
mov dword [0x10237190], 0
mov dword [0x10237200], 0
mov dword [0x102371f0], eax
push dword [0x10237184]
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x44]
call fcn.1001e890
add esp, 4
cmp dword [0x102371f0], 0
jne 0x10020966
push 1
call fcn.1002e0c3
mov dword [ebp - 0x64], eax
add esp, 4
movaps xmm0, xmmword [0x10036cb0]
movups xmmword [0x10237160], xmm0
mov dword [0x10237190], 0
mov dword [0x10237200], 0
mov dword [0x102371f0], eax
push dword [0x10237184]
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x50]
call fcn.1001e890
mov eax, dword [0x10237214]
add esp, 4
test eax, eax
jne 0x100209ad
push 0x4c4
call fcn.1002e0c3
add esp, 4
mov dword [ebp - 0x64], eax
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.1002a570
mov dword [ebp - 4], 0xffffffff
mov dword [0x10237214], eax
mov ecx, dword [eax + 0x28]
cmp ecx, 1
jne 0x10020a11
movss xmm5, dword [ebp - 0x28]
movss xmm4, dword [ebp - 0x24]
movaps xmm2, xmm5
movss xmm6, dword [ebp - 0x2c]
movaps xmm1, xmm4
subss xmm6, dword [ebp - 0x20]
subss xmm2, dword [ebp - 0x1c]
subss xmm1, dword [ebp - 0x18]
movss xmm0, dword [0x10036658]
mulss xmm6, xmm0
mulss xmm2, xmm0
addss xmm6, dword [ebp - 0x2c]
mulss xmm1, xmm0
addss xmm5, xmm2
addss xmm4, xmm1
unpcklps xmm6, xmm5
movaps xmmword [ebp - 0x80], xmm6
movss dword [ebp - 0x84], xmm4
mov ecx, dword [ebp - 0x84]
jmp 0x10020a38
cmp ecx, 2
jne 0x10020a2c
lea eax, [ebp - 0x5c]
lea edx, [ecx + 2]
mov ecx, esi
push eax
call fcn.1001ffa0
mov eax, dword [0x10237214]
add esp, 4
movq xmm0, qword [ebp - 0x20]
mov ecx, dword [ebp - 0x18]
movaps xmmword [ebp - 0x80], xmm0
mov dword [ebp - 0x64], ecx
test eax, eax
jne 0x10020a69
push 0x4c4
call fcn.1002e0c3
add esp, 4
mov dword [ebp - 0x60], eax
mov ecx, eax
mov dword [ebp - 4], 2
call fcn.1002a570
mov dword [ebp - 4], 0xffffffff
mov dword [0x10237214], eax
cmp byte [eax + 0x85], 0
mov ecx, dword [0x102371fc]
je 0x10020a8e
mov edx, dword [ecx + 0x3dc]
test edx, edx
jle 0x10020a8e
cmp edx, dword [esi + 0x3dc]
je 0x10020caa
cmp byte [eax + 0x84], 0
je 0x10020aad
mov eax, dword [ecx + 0x424]
test eax, eax
jle 0x10020aad
cmp eax, dword [esi + 0x424]
je 0x10020caa
cmp dword [0x102371f0], 0
jne 0x10020aea
push 1
call fcn.1002e0c3
mov dword [ebp - 0x60], eax
add esp, 4
movaps xmm0, xmmword [0x10036cb0]
movups xmmword [0x10237160], xmm0
mov dword [0x10237190], 0
mov dword [0x10237200], 0
mov dword [0x102371f0], eax
push dword [0x10237184]
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x5c]
call fcn.1001e890
add esp, 4
cmp esi, edi
je 0x10020caa
mov eax, dword [0x10237214]
test eax, eax
jne 0x10020b39
push 0x4c4
call fcn.1002e0c3
add esp, 4
mov dword [ebp - 0x60], eax
mov ecx, eax
mov dword [ebp - 4], 4
call fcn.1002a570
mov dword [ebp - 4], 0xffffffff
mov dword [0x10237214], eax
cmp byte [eax + 3], 0
jne 0x10020caa
cmp byte [eax + 0x10], 0
je 0x10020caa
mov eax, dword [eax + 0x14]
sub eax, 0
je 0x10020b66
sub eax, 1
jne 0x10020b61
mov eax, 1
jmp 0x10020b6b
mov eax, dword [ebp - 0x60]
jmp 0x10020b6b
mov eax, 2
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x10020caa
mov eax, dword [0x10237214]
test eax, eax
jne 0x10020bae
push 0x4c4
call fcn.1002e0c3
add esp, 4
mov dword [ebp - 0x60], eax
mov ecx, eax
mov dword [ebp - 4], 7
call fcn.1002a570
mov dword [ebp - 4], 0xffffffff
mov dword [0x10237214], eax
mov ecx, dword [eax + 0x28]
sub ecx, 1
je 0x10020bc0
sub ecx, 1
je 0x10020c1d
jmp 0x10020caa
cmp dword [0x102371f0], 0
jne 0x10020bfd
push 1
call fcn.1002e0c3
mov dword [ebp - 0x60], eax
add esp, 4
movaps xmm0, xmmword [0x10036cb0]
movups xmmword [0x10237160], xmm0
mov dword [0x10237190], 0
mov dword [0x10237200], 0
mov dword [0x102371f0], eax
movaps xmm0, xmmword [ebp - 0x80]
sub esp, 0xc
mov ecx, dword [ebp - 0x64]
mov eax, esp
movq qword [eax], xmm0
mov dword [eax + 8], ecx
call fcn.100202e0
mov eax, dword [0x10237214]
add esp, 0xc
test eax, eax
jne 0x10020c4b
push 0x4c4
call fcn.1002e0c3
add esp, 4
mov dword [ebp - 0x60], eax
mov ecx, eax
mov dword [ebp - 4], 9
call fcn.1002a570
mov dword [ebp - 4], 0xffffffff
mov dword [0x10237214], eax
cmp dword [eax + 0x28], 2
jne 0x10020caa
cmp dword [0x102371f0], 0
jne 0x10020c8e
push 1
call fcn.1002e0c3
mov dword [ebp - 0x60], eax
add esp, 4
movaps xmm0, xmmword [0x10036cb0]
movups xmmword [0x10237160], xmm0
mov dword [0x10237190], 0
mov dword [0x10237200], 0
mov dword [0x102371f0], eax
movq xmm0, qword [ebp - 0x38]
sub esp, 0xc
mov eax, dword [ebp - 0x30]
mov ecx, esp
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
call fcn.100202e0
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1002db20
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret