Function at 0x1400082a0
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
push rbx
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov rax, qword [0x140150058]
xor r14d, r14d
movaps xmmword [rsp + 0x70], xmm7
mov rbx, rcx
test rax, rax
je 0x1400082d1
mov rcx, qword [rax + 0xa0]
jmp 0x1400082d4
mov rcx, r14
cmp qword [rcx + 0x18], r14
jne 0x1400082f5
test rax, rax
je 0x1400082f5
mov rcx, qword [rax + 0xa0]
test rcx, rcx
je 0x1400082f5
cmp qword [rcx], r14
je 0x1400082f5
call fcn.1400367c0
call fcn.1400371d0
call fcn.140011130
cmp qword [0x1401501b8], r14
je 0x140008415
cmp byte [0x1400660dd], r14b
je 0x14000837c
cmp dword [0x1400660d4], r14d
jne 0x14000834a
lea rcx, [0x1400660b8]
call fcn.1400017b0
test rax, rax
je 0x14000834a
lea rcx, [0x1400660b8]
call fcn.1400017b0
mov rdx, rax
lea rcx, [0x1400660b8]
call fcn.140002250
cmp dword [0x1400660d4], 1
jne 0x14000837c
lea rcx, [0x1400660b8]
call fcn.1400017b0
test rax, rax
je 0x14000837c
lea rcx, [0x1400660b8]
call fcn.1400017b0
lea rcx, [0x1400660b8]
call fcn.140002640
cmp byte [0x1400660b8], r14b
je 0x1400083ae
lea rcx, [0x1400660b8]
call fcn.1400017b0
test rax, rax
je 0x1400083ae
lea rcx, [0x1400660b8]
call fcn.1400017b0
lea rcx, [0x1400660b8]
call fcn.140002640
cmp byte [0x1400660b9], r14b
je 0x1400083e0
lea rcx, [0x1400660b8]
call fcn.1400017b0
test rax, rax
je 0x1400083e0
lea rcx, [0x1400660b8]
call fcn.1400017b0
lea rcx, [0x1400660b8]
call fcn.140002640
cmp byte [0x1400660de], r14b
je 0x140008415
lea rcx, [0x1400660b8]
call fcn.1400017b0
test rax, rax
je 0x140008415
lea rcx, [0x1400660b8]
call fcn.1400017b0
mov rdx, rax
lea rcx, [0x1400660b8]
call fcn.140002250
call fcn.140005740
cmp qword [0x1401501b8], r14
je 0x140008440
mov rcx, rax
call fcn.140005c20
cmp qword [0x1401501b8], r14
je 0x140008440
lea rcx, [0x1400660f8]
call fcn.140007f10
mov rax, qword gs:[0x58]
mov edx, 4
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x140150198], eax
jle 0x140008484
lea rcx, [0x140150198]
call fcn.140053528
cmp dword [0x140150198], 0xffffffff
jne 0x140008484
lea rcx, [0x140150198]
mov dword [0x140150190], r14d
call fcn.1400534bc
mov eax, dword [0x140150190]
test eax, eax
jne 0x14000849d
mov dword [0x140150194], 2
jmp 0x140008533
cmp eax, 1
jne 0x1400084ad
mov dword [0x140150194], eax
jmp 0x140008533
cmp eax, 2
jne 0x1400084be
mov dword [0x140150194], 4
jmp 0x140008533
cmp eax, 3
jne 0x1400084cf
mov dword [0x140150194], 5
jmp 0x140008533
cmp eax, 4
jne 0x1400084e0
mov dword [0x140150194], 8
jmp 0x140008533
cmp eax, 5
jne 0x1400084f1
mov dword [0x140150194], 0xd
jmp 0x140008533
cmp eax, 6
jne 0x140008502
mov dword [0x140150194], 0x10
jmp 0x140008533
cmp eax, 7
jne 0x140008513
mov dword [0x140150194], 0x11
jmp 0x140008533
cmp eax, 8
jne 0x140008524
mov dword [0x140150194], 0x12
jmp 0x140008533
cmp eax, 9
jne 0x140008533
mov dword [0x140150194], 0x13
cmp byte [0x1400660e1], r14b
xorps xmm7, xmm7
mov qword [rsp + 0xc8], rdi
je 0x14000862e
mov rax, qword [0x140150058]
lea r8, str.Foreground
mov edx, 1
mov qword [rsp + 0xc0], rsi
mov rcx, qword [rax + 0x4880]
mov rcx, qword [rcx]
call fcn.140010770
mov rdi, rax
call fcn.140005740
lea rcx, [rax + 0x38]
call fcn.14000caa0
mov ecx, dword [rbx + 0xe8]
xorps xmm0, xmm0
movd xmm2, dword [0x1400660c8]
xorps xmm1, xmm1
mov esi, eax
cvtdq2ps xmm2, xmm2
cvtsi2ss xmm0, rcx
mov ecx, dword [rbx + 0xec]
cvtsi2ss xmm1, rcx
movss dword [rbp + 0x67], xmm0
movss dword [rbp + 0x6b], xmm1
test eax, 0xff000000
je 0x140008626
movss xmm0, dword [0x14005d240]
comiss xmm0, xmm2
ja 0x140008626
subss xmm2, xmm0
mov dword [rsp + 0x28], 0x1ff
movss xmm0, dword [0x14005d2fc]
lea rdx, [rbp + 0x67]
xorps xmm3, xmm3
movss dword [rsp + 0x20], xmm0
mov rcx, rdi
call fcn.14002eec0
movss xmm0, dword [0x14005d2c0]
mov r9d, esi
mov r8d, dword [rdi + 0x78]
mov rcx, rdi
mov rdx, qword [rdi + 0x80]
movss dword [rsp + 0x28], xmm0
mov dword [rsp + 0x20], 1
call fcn.14002d490
mov dword [rdi + 0x78], r14d
mov rsi, qword [rsp + 0xc0]
cmp byte [0x1400660e2], r14b
je 0x140008842
mov rax, qword [0x140150058]
movaps xmmword [rsp + 0x80], xmm6
movaps xmmword [rsp + 0x60], xmm8
mov rcx, qword [rax + 0x3bf8]
movss xmm8, dword [rcx + 0x64]
mov rcx, qword [rbx + 0x128]
call fcn.140018e50
mov rcx, qword [0x140150058]
mov rax, qword [rcx + 0x3bf8]
mov dword [rax + 0x64], 0x3f4ccccd
mov rcx, qword [rcx + 0x3bf8]
call fcn.140018e50
mov rax, qword [0x140150058]
lea r8, str.Foreground
mov edx, 1
mov rcx, qword [rax + 0x4880]
mov rcx, qword [rcx]
call fcn.140010770
movaps xmm0, xmmword [0x14005d680]
lea rcx, [rbp + 7]
movups xmmword [rbp + 7], xmm0
mov r10, rax
mov dword [rbp + 0x67], 0x42f80000
mov dword [rbp + 0x6b], 0x40c00000
mov dword [rbp + 0x6f], 0x40a00000
mov dword [rbp + 0x73], 0x40400000
call fcn.14000caa0
movss xmm6, dword [0x14005d2a8]
lea rdx, [rbp + 0x6f]
mov r9d, eax
mov dword [rsp + 0x28], r14d
lea r8, [rbp + 0x67]
movss dword [rsp + 0x20], xmm6
mov rcx, r10
call fcn.14002fad0
mov rax, qword [0x140150058]
lea r8, str.Foreground
mov edx, 1
mov rcx, qword [rax + 0x4880]
mov rcx, qword [rcx]
call fcn.140010770
movaps xmm0, xmmword [0x14005d630]
lea rcx, [rbp + 7]
movups xmmword [rbp + 7], xmm0
mov r10, rax
mov dword [rbp + 0x67], 0x42f80000
mov dword [rbp + 0x6b], 0x41d00000
mov dword [rbp + 0x6f], 0x40a00000
mov dword [rbp + 0x73], 0x40a00000
call fcn.14000caa0
mov r9d, eax
mov dword [rsp + 0x28], r14d
lea rdx, [rbp + 0x6f]
movss dword [rsp + 0x20], xmm6
lea r8, [rbp + 0x67]
mov rcx, r10
call fcn.14002fad0
mov rax, qword [0x140150058]
lea r8, str.Foreground
mov edx, 1
mov rcx, qword [rax + 0x4880]
mov rcx, qword [rcx]
call fcn.140010770
movaps xmm0, xmmword [0x14005d750]
lea rcx, [rbp + 7]
movups xmmword [rbp + 7], xmm0
mov r8, rax
call fcn.14000caa0
movaps xmm6, xmmword [rsp + 0x80]
mov dword [rbp + 0x67], 0x41200000
mov dword [rbp + 0x6b], 0x41100000
test eax, 0xff000000
je 0x140008823
mov rdx, qword [r8 + 0x38]
lea r9, [0x140056b9d]
movups xmm0, xmmword [r8 + 0x88]
mov byte [rsp + 0x48], r14b
movss dword [rsp + 0x40], xmm7
mov rcx, qword [rdx + 8]
movss xmm2, dword [rdx + 0x10]
mov rdx, r8
mov qword [rsp + 0x38], r9
lea r9, [0x140056b9c]
mov qword [rsp + 0x30], r9
lea r9, [rbp + 7]
mov qword [rsp + 0x28], r9
lea r9, [rbp + 0x67]
movups xmmword [rbp + 7], xmm0
mov dword [rsp + 0x20], eax
call fcn.1400346a0
call fcn.140018ef0
mov rax, qword [0x140150058]
mov rcx, qword [rax + 0x3bf8]
movss dword [rcx + 0x64], xmm8
movaps xmm8, xmmword [rsp + 0x60]
mov ecx, 0x2d
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movaps xmm7, xmmword [rsp + 0x70]
test al, 1
je 0x140008866
cmp byte [rbx + 0x168], r14b
sete al
mov byte [rbx + 0x168], al
cmp byte [rbx + 0x168], r14b
je 0x14000887f
mov rcx, rbx
call fcn.14004d8d0
mov r8d, 0xa0
jmp 0x140008885
mov r8d, 0x800a0
mov rcx, qword [rbx + 0x50]
mov edx, 0xffffffec
call qword [sym.imp.USER32.dll_SetWindowLongA]
movzx eax, byte [rbx + 0x168]
mov rcx, qword [0x140150058]
mov byte [rcx + 0x78], al
movzx eax, byte [rbx + 0x168]
mov byte [rcx + 0xd9], al
call fcn.140012da0
mov rcx, qword [rbx + 8]
xor r8d, r8d
mov rax, qword [rcx]
lea edx, [r8 + 7]
call qword [rax + 0x1c8]
mov rcx, qword [rbx + 8]
xor r8d, r8d
mov rax, qword [rcx]
lea edx, [r8 + 0x1b]
call qword [rax + 0x1c8]
mov rcx, qword [rbx + 8]
xor r8d, r8d
mov edx, 0xae
mov rax, qword [rcx]
call qword [rax + 0x1c8]
mov rcx, qword [rbx + 8]
mov r9d, 1
movss xmm0, dword [0x14005d27c]
xor r8d, r8d
mov dword [rsp + 0x30], r14d
xor edx, edx
movss dword [rsp + 0x28], xmm0
mov rax, qword [rcx]
mov dword [rsp + 0x20], r14d
call qword [rax + 0x158]
mov rcx, qword [rbx + 8]
mov rax, qword [rcx]
call qword [rax + 0x148]
test eax, eax
js 0x140008968
call fcn.140013160
mov rax, qword [0x140150058]
mov rcx, qword [rax + 0x4880]
mov rcx, qword [rcx]
add rcx, 0x48
cmp byte [rcx], r14b
cmove rcx, r14
call fcn.140036200
mov rcx, qword [rbx + 8]
mov rax, qword [rcx]
call qword [rax + 0x150]
mov rcx, qword [rbx + 8]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r14
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x88]
cmp eax, 0x88760868
jne 0x140008a3d
mov rcx, qword [rbx + 8]
mov rax, qword [rcx]
call qword [rax + 0x18]
cmp eax, 0x88760869
jne 0x140008a3d
mov rdi, qword [0x140150058]
test rdi, rdi
je 0x140008a07
mov rdi, qword [rdi + 0xa0]
test rdi, rdi
je 0x140008a07
cmp qword [rdi], r14
je 0x140008a07
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1400089d2
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rdi + 8], r14
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x1400089e5
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rdi + 0x10], r14
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x140008a07
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rax, qword [0x140150058]
mov qword [rdi + 0x18], r14
mov rcx, qword [rax + 0x58]
mov qword [rcx + 8], r14
mov rcx, qword [rbx + 8]
lea rdx, [rbx + 0xa0]
mov rax, qword [rcx]
call qword [rax + 0x80]
mov rax, qword [0x140150058]
test rax, rax
je 0x140008a3d
mov rax, qword [rax + 0xa0]
test rax, rax
je 0x140008a3d
cmp qword [rax], r14
je 0x140008a3d
call fcn.1400367c0
mov rdi, qword [rsp + 0xc8]
add rsp, 0x90
pop r14
pop rbx
pop rbp
ret