Function at 0x10020840
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 0x1002bf2f
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x78
mov eax, dword [0x1003600c]
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 [0x102321ac]
test edi, edi
je 0x10020cc0
mov edi, dword [edi + 0xd2b40]
xor edi, 0x11f1b0
je 0x10020cc0
mov eax, edi
shr eax, 0x10
test eax, eax
je 0x10020cc0
call fcn.10020580
mov esi, eax
test esi, esi
je 0x10020cc0
movss xmm0, dword [esi + 0x4ec]
comiss xmm0, dword [0x10031ba0]
jbe 0x10020cc0
lea eax, [ebp - 0x44]
mov edx, esi
push eax
push 6
lea ecx, [ebp - 0x70]
call fcn.1001ffc0
lea eax, [ebp - 0x50]
mov edx, esi
push eax
push 5
lea ecx, [ebp - 0x70]
call fcn.1001ffc0
add esp, 0x10
cmp dword [0x10232190], 0
jne 0x1002092f
push 1
call fcn.1002a9ee
mov dword [ebp - 0x64], eax
add esp, 4
movaps xmm0, xmmword [0x10032200]
movups xmmword [0x102320f8], xmm0
mov dword [0x10232130], 0
mov dword [0x102321a0], 0
mov dword [0x10232190], eax
push dword [0x10232124]
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x44]
call fcn.1001eab0
add esp, 4
cmp dword [0x10232190], 0
jne 0x10020980
push 1
call fcn.1002a9ee
mov dword [ebp - 0x64], eax
add esp, 4
movaps xmm0, xmmword [0x10032200]
movups xmmword [0x102320f8], xmm0
mov dword [0x10232130], 0
mov dword [0x102321a0], 0
mov dword [0x10232190], eax
push dword [0x10232124]
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x50]
call fcn.1001eab0
mov eax, dword [0x102321b0]
add esp, 4
test eax, eax
jne 0x100209c7
push 0x4c0
call fcn.1002a9ee
add esp, 4
mov dword [ebp - 0x64], eax
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.10026a60
mov dword [ebp - 4], 0xffffffff
mov dword [0x102321b0], eax
mov ecx, dword [eax + 0x28]
cmp ecx, 1
jne 0x10020a25
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 [0x10031c28]
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 - 0x68], xmm4
mov ecx, dword [ebp - 0x68]
jmp 0x10020a4e
cmp ecx, 2
jne 0x10020a42
lea eax, [ebp - 0x5c]
mov edx, esi
push eax
push 4
lea ecx, [ebp - 0x70]
call fcn.1001ffc0
mov eax, dword [0x102321b0]
add esp, 8
movq xmm0, qword [ebp - 0x20]
mov ecx, dword [ebp - 0x18]
movaps xmmword [ebp - 0x80], xmm0
mov dword [ebp - 0x64], ecx
test eax, eax
jne 0x10020a7f
push 0x4c0
call fcn.1002a9ee
add esp, 4
mov dword [ebp - 0x60], eax
mov ecx, eax
mov dword [ebp - 4], 2
call fcn.10026a60
mov dword [ebp - 4], 0xffffffff
mov dword [0x102321b0], eax
cmp byte [eax + 0x81], 0
mov ecx, dword [0x1023219c]
je 0x10020aa4
mov edx, dword [ecx + 0x44c]
test edx, edx
jle 0x10020aa4
cmp edx, dword [esi + 0x44c]
je 0x10020cc0
cmp byte [eax + 0x80], 0
je 0x10020ac3
mov eax, dword [ecx + 0x3fc]
test eax, eax
jle 0x10020ac3
cmp eax, dword [esi + 0x3fc]
je 0x10020cc0
cmp dword [0x10232190], 0
jne 0x10020b00
push 1
call fcn.1002a9ee
mov dword [ebp - 0x60], eax
add esp, 4
movaps xmm0, xmmword [0x10032200]
movups xmmword [0x102320f8], xmm0
mov dword [0x10232130], 0
mov dword [0x102321a0], 0
mov dword [0x10232190], eax
push dword [0x10232124]
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x5c]
call fcn.1001eab0
add esp, 4
cmp esi, edi
je 0x10020cc0
mov eax, dword [0x102321b0]
test eax, eax
jne 0x10020b4f
push 0x4c0
call fcn.1002a9ee
add esp, 4
mov dword [ebp - 0x60], eax
mov ecx, eax
mov dword [ebp - 4], 4
call fcn.10026a60
mov dword [ebp - 4], 0xffffffff
mov dword [0x102321b0], eax
cmp byte [eax + 3], 0
jne 0x10020cc0
cmp byte [eax + 0xf], 0
je 0x10020cc0
mov eax, dword [eax + 0x14]
sub eax, 0
je 0x10020b7c
sub eax, 1
jne 0x10020b77
mov eax, 1
jmp 0x10020b81
mov eax, dword [ebp - 0x60]
jmp 0x10020b81
mov eax, 2
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x10020cc0
mov eax, dword [0x102321b0]
test eax, eax
jne 0x10020bc4
push 0x4c0
call fcn.1002a9ee
add esp, 4
mov dword [ebp - 0x60], eax
mov ecx, eax
mov dword [ebp - 4], 7
call fcn.10026a60
mov dword [ebp - 4], 0xffffffff
mov dword [0x102321b0], eax
mov ecx, dword [eax + 0x28]
sub ecx, 1
je 0x10020bd6
sub ecx, 1
je 0x10020c33
jmp 0x10020cc0
cmp dword [0x10232190], 0
jne 0x10020c13
push 1
call fcn.1002a9ee
mov dword [ebp - 0x60], eax
add esp, 4
movaps xmm0, xmmword [0x10032200]
movups xmmword [0x102320f8], xmm0
mov dword [0x10232130], 0
mov dword [0x102321a0], 0
mov dword [0x10232190], 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.10020340
mov eax, dword [0x102321b0]
add esp, 0xc
test eax, eax
jne 0x10020c61
push 0x4c0
call fcn.1002a9ee
add esp, 4
mov dword [ebp - 0x60], eax
mov ecx, eax
mov dword [ebp - 4], 9
call fcn.10026a60
mov dword [ebp - 4], 0xffffffff
mov dword [0x102321b0], eax
cmp dword [eax + 0x28], 2
jne 0x10020cc0
cmp dword [0x10232190], 0
jne 0x10020ca4
push 1
call fcn.1002a9ee
mov dword [ebp - 0x60], eax
add esp, 4
movaps xmm0, xmmword [0x10032200]
movups xmmword [0x102320f8], xmm0
mov dword [0x10232130], 0
mov dword [0x102321a0], 0
mov dword [0x10232190], 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.10020340
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.1002a31b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret