Function at 0x140097840
Capabilities:
Log keystrokes via polling

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbp
push rbx
push rdi
lea rbp, [rax - 0xe8]
sub rsp, 0x1d0
cmp qword [0x140369aa8], 0
movaps xmmword [rax - 0x58], xmm9
movaps xmmword [rax - 0x68], xmm10
movaps xmmword [rax - 0x78], xmm11
movaps xmmword [rax - 0x88], xmm12
movaps xmmword [rax - 0x98], xmm13
movaps xmmword [rax - 0xa8], xmm14
je 0x140097982
cmp qword [0x14038c970], 0
je 0x140097982
mov ecx, dword [0x14038c41c]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
xor ebx, ebx
test ax, ax
je 0x140097975
cmp byte [0x14038c420], bl
je 0x140097a19
mov rdi, qword [0x140369aa8]
test rdi, rdi
je 0x140097975
mov edx, dword [0x14038bb88]
add rdx, rdi
call fcn.140028da0
cmp al, 0x24
je 0x140097975
test al, al
je 0x140097975
cmp al, 4
jne 0x1400979b4
add rdi, 0x2c
je 0x14009795e
mov eax, dword [0x14038b270]
mov rdx, qword [0x14038bb00]
mov dword [rsp + 0x78], eax
mov eax, dword [0x14038b268]
mov dword [rsp + 0x44], eax
mov eax, dword [0x14038b26c]
mov dword [rsp + 0x48], eax
lea rax, [rbp + 0xf0]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x60], 1
test rdx, rdx
je 0x140097965
lea rcx, [rsp + 0x40]
call rdx
test rax, rax
je 0x14009795e
mov rdx, qword [0x14038bb00]
movzx eax, byte [rbp + 0xf0]
jmp 0x14009796d
mov rdx, qword [0x14038bb00]
xor al, al
mov byte [rbp + 0xf0], al
test al, 1
je 0x140097a20
mov byte [0x140369ab0], bl
mov qword [0x140369aa8], rbx
xor al, al
lea r11, [rsp + 0x1d0]
movaps xmm9, xmmword [r11 - 0x40]
movaps xmm10, xmmword [r11 - 0x50]
movaps xmm11, xmmword [r11 - 0x60]
movaps xmm12, xmmword [r11 - 0x70]
movaps xmm13, xmmword [r11 - 0x80]
movaps xmm14, xmmword [r11 - 0x90]
mov rsp, r11
pop rdi
pop rbx
pop rbp
ret
cmp al, 8
jne 0x140097a19
add rdi, 0x2c
je 0x140097a0a
mov eax, dword [0x14038b270]
mov rdx, qword [0x14038bb00]
mov dword [rbp - 0x48], eax
mov eax, dword [0x14038b268]
mov dword [rbp - 0x7c], eax
mov eax, dword [0x14038b26c]
mov dword [rbp - 0x78], eax
lea rax, [rbp + 0xf8]
mov qword [rbp - 0x68], rax
mov dword [rbp - 0x80], ebx
mov qword [rbp - 0x70], rdi
mov qword [rbp - 0x60], 1
test rdx, rdx
je 0x140097a11
lea rcx, [rbp - 0x80]
call rdx
test rax, rax
jne 0x140097a19
mov rdx, qword [0x14038bb00]
mov byte [rbp + 0xf8], bl
jmp 0x140097a20
mov rdx, qword [0x14038bb00]
mov rax, qword [0x14038c980]
test rax, rax
je 0x140097a84
lea rcx, [rax + 0x3c0]
test rcx, rcx
je 0x140097a84
mov eax, dword [0x14038b270]
mov dword [rbp - 8], eax
mov eax, dword [0x14038b268]
mov dword [rbp - 0x3c], eax
mov eax, dword [0x14038b26c]
mov dword [rbp - 0x38], eax
lea rax, [rbp + 0x100]
mov qword [rbp - 0x28], rax
mov dword [rbp - 0x40], ebx
mov qword [rbp - 0x30], rcx
mov qword [rbp - 0x20], 8
test rdx, rdx
je 0x140097a84
lea rcx, [rbp - 0x40]
call rdx
mov rdx, qword [rbp + 0x100]
test rax, rax
jne 0x140097a87
mov rdx, rbx
mov r9d, 0x3f0
lea r8, [0x14038b290]
call fcn.1400ac450
movss xmm1, dword [0x14033501c]
movss xmm14, dword [0x14038b2f0]
comiss xmm14, xmm1
movss xmm12, dword [0x14038b2f4]
movss xmm13, dword [0x14038b2f8]
movss xmm0, dword [0x140334dd0]
jbe 0x140097aec
comiss xmm14, xmm0
jae 0x140097aec
comiss xmm12, xmm1
jbe 0x140097aec
comiss xmm12, xmm0
jae 0x140097aec
comiss xmm13, xmm1
jbe 0x140097aec
comiss xmm13, xmm0
jb 0x140097982
movss xmm11, dword [0x14038b2d0]
comiss xmm11, xmm1
movss xmm10, dword [0x14038b2d4]
movss xmm9, dword [0x14038b2d8]
jbe 0x140097b2f
comiss xmm11, xmm0
jae 0x140097b2f
comiss xmm10, xmm1
jbe 0x140097b2f
comiss xmm10, xmm0
jae 0x140097b2f
comiss xmm9, xmm1
jbe 0x140097b2f
comiss xmm9, xmm0
jb 0x140097982
movsxd rax, dword [0x14038c428]
mov r8d, ebx
movaps xmmword [rsp + 0x1c0], xmm6
movaps xmmword [rsp + 0x1b0], xmm7
movaps xmmword [rsp + 0x1a0], xmm8
cmp eax, 6
ja case.0x140097b68.0
lea rdx, [0x140000000]
mov ecx, dword [rdx + rax*4 + 0x97e6c]
add rcx, rdx
jmp rcx
mov r8d, 7
jmp case.0x140097b68.0
mov r8d, 8
jmp case.0x140097b68.0
mov r8d, 6
jmp case.0x140097b68.0
mov r8d, 5
jmp case.0x140097b68.0
mov r8d, 4
jmp case.0x140097b68.0
mov r8d, 3
mov rcx, qword [0x140369aa8]
lea rdx, [rsp + 0x20]
call fcn.140110c70
movss xmm8, dword [rsp + 0x24]
movaps xmm1, xmm12
movss xmm7, dword [rsp + 0x20]
subss xmm1, xmm8
movss xmm6, dword [rsp + 0x28]
subss xmm8, xmm12
movss xmm3, dword [0x140334e7c]
movaps xmm0, xmm13
subss xmm0, xmm6
movaps xmm2, xmm14
subss xmm2, xmm7
mulss xmm1, xmm1
subss xmm7, xmm14
subss xmm6, xmm13
mulss xmm0, xmm0
mulss xmm2, xmm2
addss xmm2, xmm1
movaps xmm1, xmm3
addss xmm2, xmm0
xorps xmm0, xmm0
sqrtss xmm0, xmm2
divss xmm1, xmm0
mulss xmm7, xmm1
mulss xmm8, xmm1
mulss xmm6, xmm1
movss xmm1, dword [0x14038c424]
comiss xmm1, xmm3
jbe 0x140097c4c
subss xmm7, xmm11
movaps xmm0, xmm3
divss xmm0, xmm1
subss xmm8, xmm10
mulss xmm7, xmm0
mulss xmm8, xmm0
addss xmm7, xmm11
addss xmm8, xmm10
movss xmm0, dword [0x14038c430]
comiss xmm0, xmm3
jbe 0x140097c67
subss xmm6, xmm9
divss xmm6, xmm0
addss xmm6, xmm9
subss xmm9, dword [0x14038b668]
mov rax, qword [0x14038c980]
movaps xmm0, xmm6
movss dword [rsp + 0x20], xmm7
movss dword [rsp + 0x24], xmm8
subss xmm0, xmm9
movss dword [rsp + 0x28], xmm0
test rax, rax
jne 0x140097ca0
mov rdx, qword [0x14038bb00]
jmp 0x140097d1d
lea rdx, [rax + 0x3c0]
test rdx, rdx
je 0x140097d0f
mov ecx, dword [0x14038b270]
mov dword [rbp - 8], ecx
mov ecx, dword [0x14038b268]
mov dword [rbp - 0x3c], ecx
mov ecx, dword [0x14038b26c]
mov qword [rbp - 0x30], rdx
mov rdx, qword [0x14038bb00]
mov dword [rbp - 0x38], ecx
lea rcx, [rbp + 0xf0]
mov qword [rbp - 0x28], rcx
mov dword [rbp - 0x40], ebx
mov qword [rbp - 0x20], 8
test rdx, rdx
je 0x140097d16
lea rcx, [rbp - 0x40]
call rdx
mov rdx, qword [0x14038bb00]
test rax, rax
mov rax, qword [0x14038c980]
je 0x140097d16
mov rcx, qword [rbp + 0xf0]
jmp 0x140097d20
mov rdx, qword [0x14038bb00]
mov qword [rbp + 0xf0], rbx
mov rcx, rbx
lea r8, [rcx + 0x3d0]
test r8, r8
je 0x140097d7c
mov ecx, dword [0x14038b270]
mov dword [rbp - 0x48], ecx
mov ecx, dword [0x14038b268]
mov dword [rbp - 0x7c], ecx
mov ecx, dword [0x14038b26c]
mov dword [rbp - 0x78], ecx
lea rcx, [rsp + 0x20]
mov qword [rbp - 0x68], rcx
mov dword [rbp - 0x80], 1
mov qword [rbp - 0x70], r8
mov qword [rbp - 0x60], recvfrom
test rdx, rdx
je 0x140097d7c
lea rcx, [rbp - 0x80]
call rdx
mov rax, qword [0x14038c980]
mov rdx, qword [0x14038bb00]
movss dword [rsp + 0x30], xmm7
movaps xmm7, xmmword [rsp + 0x1b0]
movss dword [rsp + 0x34], xmm8
movaps xmm8, xmmword [rsp + 0x1a0]
movss dword [rsp + 0x38], xmm6
movaps xmm6, xmmword [rsp + 0x1c0]
test rax, rax
je 0x140097e1d
lea rcx, [rax + 0x3c0]
test rcx, rcx
je 0x140097e16
mov eax, dword [0x14038b270]
mov dword [rsp + 0x78], eax
mov eax, dword [0x14038b268]
mov dword [rsp + 0x44], eax
mov eax, dword [0x14038b26c]
mov dword [rsp + 0x48], eax
lea rax, [rbp + 0xf8]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x60], 8
test rdx, rdx
je 0x140097e16
lea rcx, [rsp + 0x40]
call rdx
mov rdx, qword [0x14038bb00]
test rax, rax
je 0x140097e16
mov rbx, qword [rbp + 0xf8]
jmp 0x140097e1d
mov qword [rbp + 0xf8], rbx
add rbx, 0x40
je 0x140097e65
mov eax, dword [0x14038b270]
mov dword [rbp + 0x38], eax
mov eax, dword [0x14038b268]
mov dword [rbp + 4], eax
mov eax, dword [0x14038b26c]
mov dword [rbp + 8], eax
lea rax, [rsp + 0x30]
mov qword [rbp + 0x18], rax
mov dword [rbp], 1
mov qword [rbp + 0x10], rbx
mov qword [rbp + 0x20], recvfrom
test rdx, rdx
je 0x140097e65
lea rcx, [rbp]
call rdx
mov al, 1
jmp 0x140097984