Function at 0x140009560
Capabilities:
Log keystrokes via polling

Disassembly:
mov r11, rsp
push rbp
push r14
push r15
lea rbp, [r11 - 0x5f]
sub rsp, 0xe0
mov rax, qword [0x140078040]
xor rax, rsp
mov qword [rbp - 9], rax
mov rax, qword [0x1400ec050]
xor r15d, r15d
mov qword [r11 - 0x28], r12
mov r14, rcx
movaps xmmword [r11 - 0x38], xmm6
test rax, rax
je 0x1400095a5
mov rcx, qword [rax + 0xa0]
jmp 0x1400095a8
mov rcx, r15
cmp qword [rcx + 0x18], r15
jne 0x1400095c9
test rax, rax
je 0x1400095c9
mov rcx, qword [rax + 0xa0]
test rcx, rcx
je 0x1400095c9
cmp qword [rcx], r15
je 0x1400095c9
call fcn.140038080
mov qword [rsp + 0x108], rbx
mov qword [rsp + 0xd8], rdi
call fcn.140038a90
call fcn.140013210
cmp qword [0x1400ec3f8], r15
mov r12d, 4
je 0x14000979b
cmp byte [0x1400780cd], r15b
je 0x14000979b
cmp dword [0x1400780c4], r15d
jne 0x14000979b
lea rcx, [0x1400780b8]
call fcn.140001b70
test rax, rax
je 0x14000979b
mov qword [rsp + 0x110], rsi
xor ecx, ecx
movaps xmmword [rsp + 0xb0], xmm7
movaps xmmword [rsp + 0xa0], xmm8
call qword [sym.imp.USER32.dll_GetSystemMetrics]
cdq
mov ecx, 1
sub eax, edx
sar eax, 1
mov esi, eax
call qword [sym.imp.USER32.dll_GetSystemMetrics]
cdq
lea rcx, [0x1400780b8]
sub eax, edx
sar eax, 1
mov edi, eax
call fcn.140001b70
mov rbx, rax
call fcn.140060d20
xor r9d, r9d
lea rdx, [rbp - 0x59]
mov r8, rbx
call fcn.140060db0
call fcn.140060d20
movsd xmm8, qword [rbp - 0x59]
lea r8, [rbp - 0x29]
mov ebx, dword [rbp - 0x51]
lea rdx, [rbp - 0x39]
movsd qword [rbp - 0x29], xmm8
mov dword [rbp - 0x21], ebx
call fcn.140060ef0
movss xmm0, dword [rbp - 0x35]
movd xmm1, edi
cvtdq2pd xmm1, xmm1
cvtps2pd xmm0, xmm0
subsd xmm0, xmm1
movsd xmm1, qword [0x14006de08]
call sub.api_ms_win_crt_math_l1_1_0.dll_pow
movsd xmm1, qword [0x14006de08]
movaps xmm7, xmm0
movss xmm0, dword [rbp - 0x39]
movd xmm2, esi
cvtps2pd xmm0, xmm0
cvtdq2pd xmm2, xmm2
subsd xmm0, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll_pow
mov rsi, qword [rsp + 0x110]
addsd xmm7, xmm0
xorps xmm0, xmm0
xorps xmm1, xmm1
cvtsd2ss xmm0, xmm7
movaps xmm7, xmmword [rsp + 0xb0]
ucomiss xmm1, xmm0
ja 0x140009717
xorps xmm6, xmm6
sqrtss xmm6, xmm0
jmp 0x14000971f
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrtf
movaps xmm6, xmm0
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [r12 + rcx]
cmp dword [0x1400ec3d0], eax
jle 0x14000975f
lea rcx, [0x1400ec3d0]
call fcn.1400612e0
cmp dword [0x1400ec3d0], 0xffffffff
jne 0x14000975f
lea rcx, [0x1400ec3d0]
mov dword [0x1400ec3c8], r15d
call fcn.140061274
mov ecx, dword [0x1400ec3cc]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x140009792
movd xmm0, dword [0x1400780b8]
cvtdq2ps xmm0, xmm0
comiss xmm0, xmm6
jbe 0x140009792
lea rdx, [rbp - 0x59]
movsd qword [rbp - 0x59], xmm8
mov dword [rbp - 0x51], ebx
call fcn.140002190
movaps xmm8, xmmword [rsp + 0xa0]
call fcn.140004700
cmp qword [0x1400ec3f8], r15
je 0x1400098cc
mov rcx, rax
call fcn.140004ba0
mov rdx, qword [0x1400ec3e8]
test rdx, rdx
je 0x1400098b7
mov rcx, qword [0x1400ec470]
lea r8, [rbp - 0x31]
add rdx, 0x10
mov qword [rsp + 0x20], r15
mov r9d, 8
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rbx, qword [rbp - 0x31]
lea r8, [rbp - 0x29]
mov rcx, qword [0x1400ec470]
mov r9d, 8
mov qword [rsp + 0x20], r15
lea rdx, [rbx + 0x180]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rcx, qword [0x1400ec470]
lea rdx, [rbx + 0x188]
mov r9d, 4
mov qword [rsp + 0x20], r15
lea r8, [rbp - 0x39]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov eax, dword [rbp - 0x39]
test eax, eax
jle 0x1400098b7
mov rbx, qword [rbp - 0x29]
mov edi, eax
mov rcx, qword [0x1400ec470]
lea r8, [rbp - 0x31]
mov r9d, 8
mov qword [rsp + 0x20], r15
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rdx, qword [rbp - 0x31]
test rdx, rdx
je 0x1400098ad
mov rcx, qword [0x1400ec470]
lea r8, [rbp - 0x19]
add rdx, 0x90
mov qword [rsp + 0x20], r15
mov r9d, 0xc
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
call fcn.140060d20
movsd xmm0, qword [rbp - 0x19]
lea r8, [rbp - 0x49]
mov eax, dword [rbp - 0x11]
lea rdx, [rbp - 0x59]
movsd qword [rbp - 0x49], xmm0
mov dword [rbp - 0x41], eax
call fcn.140060ef0
add rbx, 0x10
sub rdi, 1
jne 0x140009840
cmp qword [0x1400ec3f8], r15
je 0x1400098cc
lea rcx, [0x140078b00]
call fcn.1400088e0
mov rax, qword gs:[0x58]
mov rdi, qword [rsp + 0xd8]
mov rdx, qword [rax]
mov eax, dword [r12 + rdx]
cmp dword [0x1400ec3d0], eax
mov r12, qword [rsp + 0xd0]
jle 0x14000991c
lea rcx, [0x1400ec3d0]
call fcn.1400612e0
cmp dword [0x1400ec3d0], 0xffffffff
jne 0x14000991c
lea rcx, [0x1400ec3d0]
mov dword [0x1400ec3c8], r15d
call fcn.140061274
mov eax, dword [0x1400ec3c8]
test eax, eax
jne 0x140009930
mov dword [0x1400ec3cc], 2
cmp eax, 1
jne 0x14000993f
mov dword [0x1400ec3cc], 0x12
cmp eax, 2
jne 0x14000994e
mov dword [0x1400ec3cc], 0x11
cmp eax, 3
jne 0x14000995d
mov dword [0x1400ec3cc], 4
cmp eax, 4
jne 0x14000996c
mov dword [0x1400ec3cc], 5
cmp eax, 5
jne 0x14000997b
mov dword [0x1400ec3cc], 6
cmp byte [0x1400780d0], r15b
movss xmm6, dword [0x14006ddc4]
je 0x140009a49
mov rax, qword [0x1400ec050]
lea r8, str.Foreground
mov edx, 1
mov rcx, qword [rax + 0x4878]
mov rcx, qword [rcx]
call fcn.140012720
mov ecx, dword [r14 + 0xe8]
xorps xmm0, xmm0
movd xmm2, dword [0x1400780b8]
xorps xmm1, xmm1
cvtdq2ps xmm2, xmm2
mov rbx, rax
cvtsi2ss xmm0, rcx
mov ecx, dword [r14 + 0xec]
cvtsi2ss xmm1, rcx
movss dword [rbp - 0x39], xmm0
movss xmm0, dword [0x14006dd7c]
comiss xmm0, xmm2
movss dword [rbp - 0x35], xmm1
ja 0x140009a49
subss xmm2, xmm0
mov dword [rsp + 0x28], 0x1ff
movss xmm0, dword [0x14006de48]
lea rdx, [rbp - 0x39]
xorps xmm3, xmm3
movss dword [rsp + 0x20], xmm0
mov rcx, rax
call fcn.140030e50
mov r8d, dword [rbx + 0x78]
mov r9d, 0xffffffff
mov rdx, qword [rbx + 0x80]
mov rcx, rbx
movss dword [rsp + 0x28], xmm6
mov dword [rsp + 0x20], 1
call fcn.14002f3f0
mov dword [rbx + 0x78], r15d
mov ecx, 0x2d
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x140009a69
cmp byte [r14 + 0x160], r15b
sete al
mov byte [r14 + 0x160], al
cmp byte [r14 + 0x160], r15b
je 0x140009a82
mov rcx, r14
call fcn.140054ab0
mov r8d, 0xa0
jmp 0x140009a88
mov r8d, 0x800a0
mov rcx, qword [r14 + 0x50]
mov edx, 0xffffffec
call qword [sym.imp.USER32.dll_SetWindowLongA]
movzx eax, byte [r14 + 0x160]
mov rcx, qword [0x1400ec050]
mov byte [rcx + 0x78], al
movzx eax, byte [r14 + 0x160]
mov byte [rcx + 0xd9], al
call fcn.140014eb0
mov rcx, qword [r14 + 8]
xor r8d, r8d
mov edx, 7
mov rax, qword [rcx]
call qword [rax + 0x1c8]
mov rcx, qword [r14 + 8]
xor r8d, r8d
mov edx, 0x1b
mov rax, qword [rcx]
call qword [rax + 0x1c8]
mov rcx, qword [r14 + 8]
xor r8d, r8d
mov edx, 0xae
mov rax, qword [rcx]
call qword [rax + 0x1c8]
mov rcx, qword [r14 + 8]
mov r9d, 1
mov dword [rsp + 0x30], r15d
xor r8d, r8d
movss dword [rsp + 0x28], xmm6
xor edx, edx
mov dword [rsp + 0x20], r15d
mov rax, qword [rcx]
call qword [rax + 0x158]
mov rcx, qword [r14 + 8]
mov rax, qword [rcx]
call qword [rax + 0x148]
movaps xmm6, xmmword [rsp + 0xc0]
test eax, eax
js 0x140009b6f
call fcn.140015270
mov rax, qword [0x1400ec050]
mov rcx, qword [rax + 0x4878]
mov rcx, qword [rcx]
add rcx, 0x48
cmp byte [rcx], r15b
cmove rcx, r15
call fcn.140037ac0
mov rcx, qword [r14 + 8]
mov rax, qword [rcx]
call qword [rax + 0x150]
mov rcx, qword [r14 + 8]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r15
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x88]
cmp eax, 0x88760868
jne 0x140009c44
mov rcx, qword [r14 + 8]
mov rax, qword [rcx]
call qword [rax + 0x18]
cmp eax, 0x88760869
jne 0x140009c44
mov rbx, qword [0x1400ec050]
test rbx, rbx
je 0x140009c0e
mov rbx, qword [rbx + 0xa0]
test rbx, rbx
je 0x140009c0e
cmp qword [rbx], r15
je 0x140009c0e
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140009bd9
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rbx + 8], r15
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140009bec
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rbx + 0x10], r15
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140009c0e
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rax, qword [0x1400ec050]
mov qword [rbx + 0x18], r15
mov rcx, qword [rax + 0x58]
mov qword [rcx + 8], r15
mov rcx, qword [r14 + 8]
lea rdx, [r14 + 0xa0]
mov rax, qword [rcx]
call qword [rax + 0x80]
mov rax, qword [0x1400ec050]
test rax, rax
je 0x140009c44
mov rax, qword [rax + 0xa0]
test rax, rax
je 0x140009c44
cmp qword [rax], r15
je 0x140009c44
call fcn.140038080
mov rbx, qword [rsp + 0x108]
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.1400611a0
add rsp, 0xe0
pop r15
pop r14
pop rbp
ret