Function at 0x14003c540
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x60
cmp dword [rcx + 0x1c], 0
mov rbx, rcx
je 0x14003c873
mov edx, dword [0x140136c20]
add rdx, qword [rcx + 0x68]
mov rcx, qword [0x140136a58]
test rcx, rcx
je 0x14003c873
cmp dword [0x140136a60], 0
je 0x14003c873
mov qword [rsp + 0x78], rdi
lea r8, [0x140136644]
xor edi, edi
mov r9d, 1
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x14003c86e
mov edx, dword [0x140136c08]
add rdx, qword [rbx + 0x68]
mov rcx, qword [0x140136a58]
test rcx, rcx
je 0x14003c86e
cmp dword [0x140136a60], edi
je 0x14003c86e
mov r9d, 4
mov qword [rsp + 0x20], rdi
lea r8, [0x140136678]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x14003c86e
mov eax, dword [0x140136678]
cmp eax, 0xffffffff
je 0x14003c86e
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.1400a4640
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 [0x140136ab0]
mov qword [rsp + 0x38], rax
call fcn.14003c300
mov qword [0x140136670], rax
test rax, rax
je 0x14003c86e
mov ecx, dword [0x140136678]
and ecx, 0x1ff
imul edx, ecx, 0x78
mov rcx, qword [0x140136a58]
add rdx, rax
test rcx, rcx
je 0x14003c86e
cmp dword [0x140136a60], edi
je 0x14003c86e
mov r9d, 8
mov qword [rsp + 0x20], rdi
lea r8, [0x140136680]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x14003c86e
lea rdx, [0x140136680]
lea rcx, [0x1400ffef0]
call fcn.14003d300
test al, al
je 0x14003c86e
mov rcx, rbx
call fcn.14003cba0
test al, al
je 0x14003c86e
cmp byte [0x140136361], dil
jne 0x14003c6f1
movss xmm1, dword [rbx + 0x124]
xorps xmm0, xmm0
comiss xmm1, xmm0
ja 0x14003c86e
cmp byte [0x140136360], dil
je 0x14003c745
mov rcx, qword [0x140136a58]
test rcx, rcx
je 0x14003c72e
cmp dword [0x140136a60], edi
je 0x14003c72e
mov edx, dword [0x140136bcc]
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 0x14003c745
mov rcx, rbx
call fcn.14003c880
test al, al
jne 0x14003c86e
cmp byte [0x1400ca0f9], dil
je 0x14003c76c
mov eax, dword [0x140100000]
cmp dword [rbx + 0x110], eax
je 0x14003c768
cmp dword [0x1400ffff0], edi
jle 0x14003c768
mov al, 1
jmp 0x14003c775
xor al, al
jmp 0x14003c775
cmp dword [0x1400ffff0], edi
setg al
mov byte [0x140136645], al
test al, al
je 0x14003c86e
movaps xmmword [rsp + 0x50], xmm6
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
xorps xmm6, xmm6
mov rcx, rax
sub rcx, qword [0x140136c98]
mov rbx, rax
cmp byte [0x1401369f9], dil
cvtsi2sd xmm6, rcx
divsd xmm6, qword [0x1400b7b50]
jne 0x14003c7da
movd xmm0, dword [0x1400ca0bc]
cvtdq2pd xmm0, xmm0
comisd xmm6, xmm0
jb 0x14003c7da
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
mov qword [0x140136ca0], rax
mov byte [0x1401369f9], 1
sub rbx, qword [0x140136ca0]
xorps xmm1, xmm1
movd xmm0, dword [0x1400ca0bc]
cvtdq2pd xmm0, xmm0
cvtsi2sd xmm1, rbx
comisd xmm6, xmm0
movaps xmm6, xmmword [rsp + 0x50]
jb 0x14003c86e
divsd xmm1, qword [0x1400b7b50]
movd xmm0, dword [0x1400ca0b4]
cvtdq2pd xmm0, xmm0
comisd xmm1, xmm0
jb 0x14003c86e
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x14003c86e
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 [0x140136c98], rax
mov byte [0x1401369f9], dil
mov rdi, qword [rsp + 0x78]
add rsp, 0x60
pop rbx
ret