Function at 0x140035030
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x60
cmp dword [rcx + 0x1c], 0
mov rbx, rcx
je 0x140035363
mov edx, dword [0x14018e2c0]
add rdx, qword [rcx + 0x68]
mov rcx, qword [0x14018e108]
test rcx, rcx
je 0x140035363
cmp dword [0x14018e110], 0
je 0x140035363
mov qword [rsp + 0x78], rdi
lea r8, [0x14018dec5]
xor edi, edi
mov r9d, 1
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x14003535e
mov edx, dword [0x14018e2a8]
add rdx, qword [rbx + 0x68]
mov rcx, qword [0x14018e108]
test rcx, rcx
je 0x14003535e
cmp dword [0x14018e110], edi
je 0x14003535e
mov r9d, 4
mov qword [rsp + 0x20], rdi
lea r8, [0x14018deec]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x14003535e
mov eax, dword [0x14018deec]
cmp eax, 0xffffffff
je 0x14003535e
shr eax, 9
xorps xmm0, xmm0
mov ecx, 8
mov dword [rsp + 0x74], edi
movdqu xmmword [rsp + 0x30], xmm0
lea eax, [rax*8 + 0x10]
mov dword [rsp + 0x70], eax
call fcn.1400a3020
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x30]
lea rcx, [rax + 8]
mov qword [rsp + 0x40], rcx
mov rcx, qword [rsp + 0x70]
mov qword [rax], rcx
add rax, 8
mov rdx, qword [0x14018e160]
mov qword [rsp + 0x38], rax
call fcn.140034df0
mov qword [0x14018def0], rax
test rax, rax
je 0x14003535e
mov ecx, dword [0x14018deec]
and ecx, 0x1ff
imul edx, ecx, 0x78
mov rcx, qword [0x14018e108]
add rdx, rax
test rcx, rcx
je 0x14003535e
cmp dword [0x14018e110], edi
je 0x14003535e
mov r9d, 8
mov qword [rsp + 0x20], rdi
lea r8, [0x14018def8]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x14003535e
lea rdx, [0x14018def8]
lea rcx, [0x1401031e0]
call fcn.140035df0
test al, al
je 0x14003535e
mov rcx, rbx
call fcn.140035690
test al, al
je 0x14003535e
cmp byte [0x14018dc60], dil
jne 0x1400351e1
movss xmm1, dword [rbx + 0x124]
xorps xmm0, xmm0
comiss xmm1, xmm0
ja 0x14003535e
cmp byte [0x1400ca0b8], dil
je 0x140035235
mov rcx, qword [0x14018e108]
test rcx, rcx
je 0x14003521e
cmp dword [0x14018e110], edi
je 0x14003521e
mov edx, dword [0x14018e26c]
lea r8, [rsp + 0x70]
add rdx, qword [rbx + 0x68]
mov r9d, 1
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
cmp byte [rsp + 0x70], dil
jne 0x140035235
mov rcx, rbx
call fcn.140035370
test al, al
jne 0x14003535e
cmp byte [0x1400ca0d8], dil
je 0x14003525c
mov eax, dword [0x1401032f0]
cmp dword [rbx + 0x110], eax
je 0x140035258
cmp dword [0x1401032e0], edi
jle 0x140035258
mov al, 1
jmp 0x140035265
xor al, al
jmp 0x140035265
cmp dword [0x1401032e0], edi
setg al
mov byte [0x14018dec6], al
test al, al
je 0x14003535e
movaps xmmword [rsp + 0x50], xmm6
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
xorps xmm6, xmm6
mov rcx, rax
sub rcx, qword [0x14018e338]
mov rbx, rax
cmp byte [0x14018e098], dil
cvtsi2sd xmm6, rcx
divsd xmm6, qword [0x1400b6350]
jne 0x1400352ca
movd xmm0, dword [0x1400ca0c0]
cvtdq2pd xmm0, xmm0
comisd xmm6, xmm0
jb 0x1400352ca
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
mov qword [0x14018e340], rax
mov byte [0x14018e098], 1
sub rbx, qword [0x14018e340]
xorps xmm1, xmm1
movd xmm0, dword [0x1400ca0c0]
cvtdq2pd xmm0, xmm0
cvtsi2sd xmm1, rbx
comisd xmm6, xmm0
movaps xmm6, xmmword [rsp + 0x50]
jb 0x14003535e
divsd xmm1, qword [0x1400b6350]
movd xmm0, dword [0x1400ca0b4]
cvtdq2pd xmm0, xmm0
comisd xmm1, xmm0
jb 0x14003535e
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x14003535e
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor edx, edx
mov ecx, 2
call qword [sym.imp.USER32.dll_mouse_event]
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor edx, edx
mov ecx, 4
call qword [sym.imp.USER32.dll_mouse_event]
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
mov qword [0x14018e338], rax
mov byte [0x14018e098], dil
mov rdi, qword [rsp + 0x78]
add rsp, 0x60
pop rbx
ret