Function at 0x140005720
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
sub rsp, 0x80
mov rax, qword [0x1400a9180]
xor ebp, ebp
movaps xmmword [rsp + 0x40], xmm9
mov rbx, rcx
test rax, rax
je 0x14000574d
mov rcx, qword [rax + 0xa0]
jmp 0x140005750
mov rcx, rbp
cmp qword [rcx + 0x18], rbp
jne 0x140005771
test rax, rax
je 0x140005771
mov rcx, qword [rax + 0xa0]
test rcx, rcx
je 0x140005771
cmp qword [rcx], rbp
je 0x140005771
call fcn.1400322b0
call fcn.140032cb0
call fcn.14000e6c0
cmp qword [0x1400a92b8], rbp
je 0x1400057e7
cmp byte [0x14005e0cd], bpl
je 0x1400057e7
cmp dword [0x14005e0c4], ebp
jne 0x1400057c1
lea rcx, [0x14005e0b8]
call fcn.1400011c0
test rax, rax
je 0x1400057c1
lea rcx, [0x14005e0b8]
call fcn.1400011c0
mov rdx, rax
lea rcx, [0x14005e0b8]
call fcn.1400017e0
cmp dword [0x14005e0c4], 1
jne 0x1400057e7
lea rcx, [0x14005e0b8]
call fcn.1400011c0
test rax, rax
je 0x1400057e7
lea rcx, [0x14005e0b8]
call fcn.140001f00
call fcn.140002430
cmp qword [0x1400a92b8], rbp
je 0x140005812
mov rcx, rax
call fcn.1400028d0
cmp qword [0x1400a92b8], rbp
je 0x140005812
lea rcx, [0x14005e0e0]
call fcn.140004d80
mov rax, qword gs:[0x58]
mov edx, 4
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1400a9298], eax
jle 0x140005855
lea rcx, [0x1400a9298]
call fcn.14004c880
cmp dword [0x1400a9298], 0xffffffff
jne 0x140005855
lea rcx, [0x1400a9298]
mov dword [0x1400a9290], ebp
call fcn.14004c814
lea rcx, [0x1400a9290]
mov qword [rsp + 0xa0], rdi
call fcn.1400054b0
cmp byte [0x14005e0d0], bpl
movss xmm9, dword [0x140055cf4]
je 0x1400059db
mov qword [rsp + 0x98], rsi
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm7
movaps xmmword [rsp + 0x50], xmm8
call fcn.140002430
movss xmm6, dword [rax + 0xc]
call fcn.140002430
movss xmm7, dword [rax + 8]
call fcn.140002430
movss xmm8, dword [rax + 4]
call fcn.140002430
movss xmm1, dword [0x140055e2c]
lea r8, str.Foreground
mov rdx, rax
mulss xmm6, xmm1
mulss xmm7, xmm1
movss xmm0, dword [rdx]
mov edx, 1
cvttss2si esi, xmm6
cvttss2si ecx, xmm7
shl esi, 8
mulss xmm8, xmm1
or esi, ecx
mulss xmm0, xmm1
shl esi, 8
cvttss2si eax, xmm8
or esi, eax
cvttss2si eax, xmm0
shl esi, 8
or esi, eax
mov rax, qword [0x1400a9180]
mov rcx, qword [rax + 0x4090]
mov rcx, qword [rcx]
call fcn.14000ce70
mov ecx, dword [rbx + 0xe8]
xorps xmm0, xmm0
movd xmm2, dword [0x14005e0b8]
xorps xmm1, xmm1
movaps xmm8, xmmword [rsp + 0x50]
mov rdi, rax
movaps xmm7, xmmword [rsp + 0x60]
movaps xmm6, xmmword [rsp + 0x70]
cvtsi2ss xmm0, rcx
mov ecx, dword [rbx + 0xec]
cvtsi2ss xmm1, rcx
movss dword [rsp + 0x90], xmm0
cvtdq2ps xmm2, xmm2
movss dword [rsp + 0x94], xmm1
test esi, 0xff000000
je 0x1400059d3
movss xmm0, dword [0x140055cb8]
comiss xmm0, xmm2
ja 0x1400059d3
subss xmm2, xmm0
mov dword [rsp + 0x28], 0x1ff
movss xmm0, dword [0x140055d80]
lea rdx, [rsp + 0x90]
xorps xmm3, xmm3
movss dword [rsp + 0x20], xmm0
mov rcx, rax
call fcn.14002a980
mov r8d, dword [rdi + 0x78]
mov r9d, esi
mov rdx, qword [rdi + 0x80]
mov rcx, rdi
movss dword [rsp + 0x28], xmm9
mov dword [rsp + 0x20], 1
call fcn.140028f70
mov dword [rdi + 0x78], ebp
mov rsi, qword [rsp + 0x98]
mov ecx, 0x2d
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x1400059fa
cmp byte [rbx + 0x158], bpl
sete al
mov byte [rbx + 0x158], al
cmp byte [rbx + 0x158], bpl
je 0x140005a13
mov rcx, rbx
call fcn.140049b60
mov r8d, 0xa0
jmp 0x140005a19
mov r8d, 0x800a0
mov rcx, qword [rbx + 0x50]
mov edx, 0xffffffec
call qword [sym.imp.USER32.dll_SetWindowLongA]
movzx eax, byte [rbx + 0x158]
mov rcx, qword [0x1400a9180]
mov byte [rcx + 0x78], al
movzx eax, byte [rbx + 0x158]
mov byte [rcx + 0xd9], al
call fcn.140010f30
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
mov dword [rsp + 0x30], ebp
xor r8d, r8d
movss dword [rsp + 0x28], xmm9
xor edx, edx
mov dword [rsp + 0x20], ebp
mov rax, qword [rcx]
call qword [rax + 0x158]
mov rcx, qword [rbx + 8]
mov rax, qword [rcx]
call qword [rax + 0x148]
movaps xmm9, xmmword [rsp + 0x40]
test eax, eax
js 0x140005af9
call fcn.1400112b0
mov rax, qword [0x1400a9180]
mov rcx, qword [rax + 0x4090]
mov rcx, qword [rcx]
add rcx, 0x48
cmp byte [rcx], bpl
cmove rcx, rbp
call fcn.140031cf0
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], rbp
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x88]
cmp eax, 0x88760868
jne 0x140005bce
mov rcx, qword [rbx + 8]
mov rax, qword [rcx]
call qword [rax + 0x18]
cmp eax, 0x88760869
jne 0x140005bce
mov rdi, qword [0x1400a9180]
test rdi, rdi
je 0x140005b98
mov rdi, qword [rdi + 0xa0]
test rdi, rdi
je 0x140005b98
cmp qword [rdi], rbp
je 0x140005b98
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140005b63
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rdi + 8], rbp
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x140005b76
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rdi + 0x10], rbp
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x140005b98
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rax, qword [0x1400a9180]
mov qword [rdi + 0x18], rbp
mov rcx, qword [rax + 0x58]
mov qword [rcx + 8], rbp
mov rcx, qword [rbx + 8]
lea rdx, [rbx + 0xa0]
mov rax, qword [rcx]
call qword [rax + 0x80]
mov rax, qword [0x1400a9180]
test rax, rax
je 0x140005bce
mov rax, qword [rax + 0xa0]
test rax, rax
je 0x140005bce
cmp qword [rax], rbp
je 0x140005bce
call fcn.1400322b0
mov rdi, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rbp
ret