Function at 0x14001a560
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
cmp byte [0x1400d4437], 0
jne 0x14001a597
xorps xmm0, xmm0
mov byte [0x1400d4437], 1
movups xmmword [0x1400dd000], xmm0
movups xmmword [0x1400dd010], xmm0
movups xmmword [0x1400dd020], xmm0
mov rdx, qword [0x1400dd030]
lea rcx, [0x1400dd000]
mov esi, 1
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], esi
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x14001a5d8
lea rcx, [0x1400dd000]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [0x1400dd000]
call qword [sym.imp.USER32.dll_DispatchMessageA]
mov rbx, qword [0x1400dd0c8]
lea rcx, [0x1400d4668]
mov dword [rbx + 0x18], 0x3c888889
call qword [sym.imp.USER32.dll_GetCursorPos]
movd xmm0, dword [0x1400d4668]
mov ecx, esi
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0xdfc], xmm0
movd xmm0, dword [0x1400d466c]
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0xe00], xmm0
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x14001a642
mov byte [rbx + 0xe04], sil
mov eax, dword [rbx + 0xe00]
mov dword [rbx + 0x36e8], eax
mov byte [rbx + 0x3738], sil
jmp 0x14001a649
mov byte [rbx + 0xe04], 0
mov rax, qword [0x1400dd0c8]
xor edi, edi
test rax, rax
je 0x14001a660
mov rcx, qword [rax + 0xa0]
jmp 0x14001a663
mov rcx, rdi
cmp qword [rcx + 0x18], rdi
jne 0x14001a684
test rax, rax
je 0x14001a684
mov rcx, qword [rax + 0xa0]
test rcx, rcx
je 0x14001a684
cmp qword [rcx], rdi
je 0x14001a684
call fcn.140050880
call fcn.140051280
call fcn.1400289c0
cmp byte [0x1400750e0], dil
je 0x14001a702
mov rax, qword [0x1400dd0c8]
lea r8, str.Background
xor edx, edx
mov rcx, qword [rax + 0x48a8]
mov rcx, qword [rcx]
call fcn.140028000
movd xmm0, dword [0x1400dd0e4]
lea r8, [rsp + 0x50]
movd xmm1, dword [0x1400dd0e0]
lea rdx, [rsp + 0x58]
cvtdq2ps xmm0, xmm0
mov dword [rsp + 0x28], edi
mov r9d, 0xff000000
mov rcx, rax
mov qword [rsp + 0x58], rdi
cvtdq2ps xmm1, xmm1
movss dword [rsp + 0x50], xmm0
xorps xmm0, xmm0
movss dword [rsp + 0x20], xmm0
movss dword [rsp + 0x54], xmm1
call fcn.1400468f0
call fcn.14000e940
call fcn.140012920
call fcn.14002a630
mov rcx, qword [0x1400dd080]
xor r8d, r8d
mov rax, qword [rcx]
lea edx, [r8 + 7]
call qword [rax + 0x1c8]
mov rcx, qword [0x1400dd080]
xor r8d, r8d
mov rax, qword [rcx]
lea edx, [r8 + 0x1b]
call qword [rax + 0x1c8]
mov rcx, qword [0x1400dd080]
xor r8d, r8d
mov edx, 0xae
mov rax, qword [rcx]
call qword [rax + 0x1c8]
mov rcx, qword [0x1400dd080]
mov r9d, esi
movss xmm0, dword [0x14006a5d4]
xor r8d, r8d
mov dword [rsp + 0x30], edi
xor edx, edx
movss dword [rsp + 0x28], xmm0
mov rax, qword [rcx]
mov dword [rsp + 0x20], edi
call qword [rax + 0x158]
mov rcx, qword [0x1400dd080]
mov rax, qword [rcx]
call qword [rax + 0x148]
test eax, eax
js 0x14001a7cf
call fcn.14002a9f0
mov rax, qword [0x1400dd0c8]
mov rcx, qword [rax + 0x48a8]
mov rcx, qword [rcx]
add rcx, 0x48
cmp byte [rcx], dil
cmove rcx, rdi
call fcn.1400502c0
mov rcx, qword [0x1400dd080]
mov rax, qword [rcx]
call qword [rax + 0x150]
mov rcx, qword [0x1400dd080]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x88]
cmp eax, 0x88760868
jne 0x14001a8ad
mov rcx, qword [0x1400dd080]
mov rax, qword [rcx]
call qword [rax + 0x18]
cmp eax, 0x88760869
jne 0x14001a8ad
mov rbx, qword [0x1400dd0c8]
test rbx, rbx
je 0x14001a874
mov rbx, qword [rbx + 0xa0]
test rbx, rbx
je 0x14001a874
cmp qword [rbx], rdi
je 0x14001a874
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14001a83f
mov rax, qword [rcx]
call qword [rax + recvfrom]
mov qword [rbx + 8], rdi
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14001a852
mov rax, qword [rcx]
call qword [rax + recvfrom]
mov qword [rbx + 0x10], rdi
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14001a874
mov rax, qword [rcx]
call qword [rax + recvfrom]
mov rax, qword [0x1400dd0c8]
mov qword [rbx + 0x18], rdi
mov rcx, qword [rax + 0x58]
mov qword [rcx + 8], rdi
mov rcx, qword [0x1400dd080]
lea rdx, [0x1400dd040]
mov rax, qword [rcx]
call qword [rax + 0x80]
mov rbx, qword [0x1400dd0c8]
test rbx, rbx
je 0x14001a8b4
mov rax, qword [rbx + 0xa0]
test rax, rax
je 0x14001a8b4
cmp qword [rax], rdi
je 0x14001a8b4
call fcn.140050880
mov rbx, qword [0x1400dd0c8]
movzx ecx, byte [0x1400d4426]
cmp cl, byte [0x1400d4425]
je 0x14001a97b
test cl, cl
mov eax, 0x80000000
cmovne eax, esi
mov dword [0x1400dd07c], eax
test rbx, rbx
je 0x14001a935
mov rbx, qword [rbx + 0xa0]
test rbx, rbx
je 0x14001a935
cmp qword [rbx], rdi
je 0x14001a935
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14001a900
mov rax, qword [rcx]
call qword [rax + recvfrom]
mov qword [rbx + 8], rdi
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14001a913
mov rax, qword [rcx]
call qword [rax + recvfrom]
mov qword [rbx + 0x10], rdi
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14001a935
mov rax, qword [rcx]
call qword [rax + recvfrom]
mov rax, qword [0x1400dd0c8]
mov qword [rbx + 0x18], rdi
mov rcx, qword [rax + 0x58]
mov qword [rcx + 8], rdi
mov rcx, qword [0x1400dd080]
lea rdx, [0x1400dd040]
mov rax, qword [rcx]
call qword [rax + 0x80]
mov rax, qword [0x1400dd0c8]
test rax, rax
je 0x14001a96e
mov rax, qword [rax + 0xa0]
test rax, rax
je 0x14001a96e
cmp qword [rax], rdi
je 0x14001a96e
call fcn.140050880
movzx eax, byte [0x1400d4426]
mov byte [0x1400d4425], al
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret