Function at 0x1400220e0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x1c8
mov rax, qword [0x140d8e080]
xor rax, rsp
mov qword [rsp + 0x1b8], rax
movss xmm0, dword [0x140d78e64]
movss dword [rsp + 0x24], xmm0
mov dword [rsp + 0x20], 0
jmp 0x140022122
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
mov qword [rsp + 0x38], rax
lea rcx, [0x14119b838]
call fcn.140022ea0
mov rcx, qword [rsp + 0x38]
cmp rcx, rax
jae 0x1400224cc
movzx eax, byte [0x14119a2cc]
cmp eax, 1
jne 0x140022187
movsxd rax, dword [rsp + 0x20]
mov rdx, rax
lea rcx, [0x14119b838]
call fcn.140022e70
xorps xmm0, xmm0
comiss xmm0, dword [rax + 0x24]
jb 0x140022187
mov ecx, dword [reloc.WS2_32.dll_accept]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x140022187
jmp 0x140022118
movzx eax, byte [0x14119a2cd]
cmp eax, 1
jne 0x1400221b5
movsxd rax, dword [rsp + 0x20]
mov rdx, rax
lea rcx, [0x14119b838]
call fcn.140022e70
movzx eax, byte [rax + 4]
cmp eax, 1
jne 0x1400221b5
jmp 0x140022118
movsxd rax, dword [rsp + 0x20]
mov rdx, rax
lea rcx, [0x14119b838]
call fcn.140022e70
lea rcx, [rsp + 0x50]
mov rdi, rcx
lea rsi, [rax + 0x1a0]
mov ecx, ntohs
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0xa0]
lea rcx, [0x14119a200]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x40
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x60]
lea rcx, [rsp + 0x50]
mov rdi, rax
mov rsi, rcx
mov ecx, ntohs
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0xe0]
lea rcx, [rsp + 0xa0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x40
rep movsb byte [rdi], byte [rsi]
lea r9, [rsp + 0x1b0]
lea r8, [rsp + 0x1a0]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0xe0]
call fcn.140024700
test eax, eax
je 0x1400224c7
movzx eax, byte [0x14119a2cf]
test eax, eax
je 0x14002236d
lea rax, [rsp + 0x70]
lea rcx, [rsp + 0x1a0]
mov rdi, rax
mov rsi, rcx
mov ecx, ntohs
rep movsb byte [rdi], byte [rsi]
cvtsi2ss xmm0, dword [0x14119a1c4]
cvtsi2ss xmm1, dword [0x14119a1c8]
movss dword [rsp + 0x30], xmm1
movss xmm3, dword [0x1411938a8]
lea r8, [rsp + 0x70]
movaps xmm1, xmm0
movss xmm0, dword [rsp + 0x30]
call fcn.140021f10
movzx eax, al
test eax, eax
je 0x140022368
mov eax, dword [0x14119a1c8]
cdq
sub eax, edx
sar eax, 1
cvtsi2ss xmm0, eax
movss xmm1, dword [rsp + 0x1a0]
subss xmm1, xmm0
movaps xmm0, xmm1
mov edx, 2
call fcn.140023090
movsd qword [rsp + 0x40], xmm0
mov eax, dword [0x14119a1c4]
cdq
sub eax, edx
sar eax, 1
cvtsi2ss xmm1, eax
movss xmm2, dword [rsp + 0x1a4]
subss xmm2, xmm1
movaps xmm1, xmm2
mov edx, 2
movaps xmm0, xmm1
call fcn.140023090
movsd xmm1, qword [rsp + 0x40]
addsd xmm1, xmm0
movaps xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrt
cvtsd2ss xmm0, xmm0
movss dword [rsp + 0x28], xmm0
movss xmm0, dword [rsp + 0x24]
comiss xmm0, dword [rsp + 0x28]
jbe 0x140022368
lea rax, [rsp + 0x1a0]
mov rdi, qword [rsp + 0x1e0]
mov rsi, rax
mov ecx, ntohs
rep movsb byte [rdi], byte [rsi]
movss xmm0, dword [rsp + 0x28]
movss dword [rsp + 0x24], xmm0
jmp 0x1400224c7
movsxd rax, dword [rsp + 0x20]
mov rdx, rax
lea rcx, [0x14119b838]
call fcn.140022e70
lea rcx, [rsp + 0x80]
mov rdi, rcx
lea rsi, [rax + 0x1a0]
mov ecx, ntohs
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x120]
lea rcx, [0x14119a200]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x40
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x90]
lea rcx, [rsp + 0x80]
mov rdi, rax
mov rsi, rcx
mov ecx, ntohs
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x160]
lea rcx, [rsp + 0x120]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x40
rep movsb byte [rdi], byte [rsi]
lea r9, [rsp + 0x1b0]
lea r8, [rsp + 0x1a0]
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x160]
call fcn.140024700
test eax, eax
je 0x1400224c7
mov eax, dword [0x14119a1c8]
cdq
sub eax, edx
sar eax, 1
cvtsi2ss xmm0, eax
movss xmm1, dword [rsp + 0x1a0]
subss xmm1, xmm0
movaps xmm0, xmm1
mov edx, 2
call fcn.140023090
movsd qword [rsp + 0x48], xmm0
mov eax, dword [0x14119a1c4]
cdq
sub eax, edx
sar eax, 1
cvtsi2ss xmm1, eax
movss xmm2, dword [rsp + 0x1a4]
subss xmm2, xmm1
movaps xmm1, xmm2
mov edx, 2
movaps xmm0, xmm1
call fcn.140023090
movsd xmm1, qword [rsp + 0x48]
addsd xmm1, xmm0
movaps xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrt
cvtsd2ss xmm0, xmm0
movss dword [rsp + 0x2c], xmm0
movss xmm0, dword [rsp + 0x24]
comiss xmm0, dword [rsp + 0x2c]
jbe 0x1400224c7
lea rax, [rsp + 0x1a0]
mov rdi, qword [rsp + 0x1e0]
mov rsi, rax
mov ecx, ntohs
rep movsb byte [rdi], byte [rsi]
movss xmm0, dword [rsp + 0x2c]
movss dword [rsp + 0x24], xmm0
jmp 0x140022118
mov rax, qword [rsp + 0x1e0]
mov rcx, qword [rsp + 0x1b8]
xor rcx, rsp
call fcn.1402024e0
add rsp, 0x1c8
pop rdi
pop rsi
ret