Function at 0x140051720
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0xb0
movaps xmmword [rax - 0x28], xmm6
movaps xmmword [rax - 0x38], xmm7
movaps xmmword [rax - 0x48], xmm8
mov rax, qword [0x1401430c0]
xor rax, rsp
mov qword [rsp + 0x78], rax
movss xmm8, dword [0x14012f650]
lea r14, [0x140183cb8]
movss xmm6, dword [0x14012f6d8]
lea r15, [0x140183cb4]
xorps xmm0, xmm0
lea rdi, [0x14018371c]
movups xmmword [rsp + 0x38], xmm0
xor esi, esi
lea rbp, [0x140183708]
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm0
xorps xmm7, xmm7
nop dword [rax + rax]
mov rcx, qword [0x140183748]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rcx, qword [0x140183748]
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
mov rdx, qword [0x140183748]
lea rcx, [rsp + 0x38]
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x1400517f9
lea rcx, [rsp + 0x38]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x38]
call qword [sym.imp.USER32.dll_DispatchMessageW]
mov rbx, qword [0x1401836e0]
lea rcx, [rsp + 0x30]
mov dword [rbx + 0x18], 0x3c888889
call qword [sym.imp.USER32.dll_GetCursorPos]
movd xmm0, dword [rsp + 0x30]
mov ecx, 1
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0xe40], xmm0
movd xmm0, dword [rsp + 0x34]
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0xe44], xmm0
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x140051860
mov byte [rbx + 0xe48], 1
mov eax, dword [rbx + 0xe44]
mov dword [rbx + 0x3810], eax
mov byte [rbx + 0x3860], 1
jmp 0x140051867
mov byte [rbx + 0xe48], sil
mov rax, qword [0x1401836e0]
test rax, rax
je 0x14005187c
mov rcx, qword [rax + 0x98]
jmp 0x14005187f
mov rcx, rsi
cmp qword [rcx + 0x48], rsi
jne 0x14005188a
call fcn.1400304b0
call fcn.1400316b0
call fcn.1400092a0
call fcn.14004dfe0
call fcn.140051260
call fcn.14000b3a0
movss xmm2, dword [0x140181dfc]
lea r8, [0x140183778]
movss xmm1, dword [0x140181df4]
movaps xmm0, xmm2
mulss xmm0, dword [0x140181df0]
xor r9d, r9d
mov rcx, qword [0x1401836f0]
mov edx, 1
mulss xmm1, xmm2
movss dword [rsp + 0x68], xmm0
movss xmm0, dword [0x140181df8]
mulss xmm0, xmm2
movss dword [rsp + 0x6c], xmm1
movss dword [rsp + 0x74], xmm2
movss dword [rsp + 0x70], xmm0
mov rax, qword [rcx]
call qword [rax + 0x108]
mov rcx, qword [0x1401836f0]
lea r8, [rsp + 0x68]
mov rdx, qword [0x140183778]
mov rax, qword [rcx]
call qword [rax + 0x190]
mov rax, qword [0x1401836e0]
mov rcx, qword [rax + 0x4b10]
mov rax, qword [rcx]
mov rcx, rsi
add rax, 0x48
cmp byte [rax], sil
cmovne rcx, rax
call fcn.14002fa40
mov rcx, qword [0x140183710]
xor r8d, r8d
cmp byte [0x140183761], sil
mov rax, qword [rcx]
je 0x140051962
mov edx, 1
jmp 0x140051964
xor edx, edx
call qword [rax + 0x40]
movss xmm2, dword [0x14018371c]
lea r9, [0x140183cb0]
movss xmm1, dword [0x140183708]
movss xmm0, dword [0x14016c368]
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
call fcn.140004b90
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x140183c9c]
sub eax, ecx
cmp eax, 1
jb 0x1400519d7
cmp dword [0x140183c98], ecx
je 0x1400519cb
movss xmm0, dword [0x140183cb0]
addss xmm0, xmm8
mov dword [0x140183c98], ecx
movss dword [0x140183cb0], xmm0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x140183c9c], eax
movss xmm0, dword [0x140183cb0]
comiss xmm7, xmm0
jbe 0x1400519f0
addss xmm0, xmm6
movss dword [0x140183cb0], xmm0
movss xmm2, dword [0x140183cb8]
lea r9, [0x14016c368]
movss xmm1, dword [0x140183cb4]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rbp
call fcn.140004c40
cmp dword [rsp + 0x40], 0x12
jne 0x1400517a0
mov rbx, qword [0x1401836e0]
test rbx, rbx
je 0x140051a36
mov rdi, qword [rbx + 0x98]
jmp 0x140051a39
mov rdi, rsi
call fcn.1400309f0
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x140051a4d
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi]
test rcx, rcx
je 0x140051a5b
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140051a6a
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
and dword [rbx + 0xc], 0xfffffff7
mov r8, qword [0x1401836e0]
mov qword [rbx + 0x88], rsi
mov qword [rbx + 0x98], rsi
test r8, r8
je 0x140051ae7
movsx rdx, word [r8 + 0x60f0]
lea rcx, [r8 + 0x60f4]
mov r9d, dword [r8 + 0x3f58]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x140051adc
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x60f0], cx
movsx rax, cx
lea rcx, [r8 + 0x60f4]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], esi
inc word [rcx + 6]
inc dword [r8 + 0x60ec]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r8, qword [0x1401836e0]
test r8, r8
je 0x140051b05
mov rdi, qword [r8 + 0x90]
jmp 0x140051b08
mov rdi, rsi
mov rcx, qword [rdi + 0x30]
lea rbx, [r8 + 8]
test rcx, rcx
je 0x140051b22
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov r8, qword [0x1401836e0]
and dword [rbx + 4], 0xfffffff8
mov qword [rbx + 0x78], rsi
mov qword [rbx + 0x88], rsi
test r8, r8
je 0x140051b95
movsx rdx, word [r8 + 0x60f0]
mov r9d, dword [r8 + 0x3f58]
lea rcx, [rdx*8 + 0x60f4]
add rcx, r8
cmp dword [rcx], r9d
je 0x140051b8a
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x60f0], cx
movsx rax, cx
lea rcx, [rax*8 + 0x60f4]
add rcx, r8
mov dword [rcx], r9d
mov dword [rcx + 4], esi
inc word [rcx + 6]
inc dword [r8 + 0x60ec]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [0x1401836e0]
mov qword [0x1401836e0], rbx
call fcn.140007090
mov qword [0x1401836e0], rsi
test rbx, rbx
je 0x140051c3a
mov rcx, rbx
call fcn.14001ec40
mov r8, qword [0x1401836e0]
test r8, r8
je 0x140051c31
movsx r10, word [r8 + 0x60f0]
lea rdx, [r8 + 0x60f4]
mov r9d, dword [r8 + 0x3f58]
lea rdx, [rdx + r10*8]
cmp dword [rdx], r9d
je 0x140051c26
lea ecx, [r10 + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
lea rdx, [r8 + 0x60f4]
sub ecx, eax
mov word [r8 + 0x60f0], cx
movsx rax, cx
lea rdx, [rdx + rax*8]
mov dword [rdx], r9d
mov dword [rdx + 4], esi
inc word [rdx + 6]
inc dword [r8 + 0x60ec]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [0x140183748]
call qword [sym.imp.USER32.dll_DestroyWindow]
mov al, 1
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400c1d40
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret