Function at 0x14003b810
Capabilities:
Log keystrokes via polling

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
cmp byte [0x1400cf0dd], 0
mov rbx, rcx
jne 0x14003bc2e
cmp dword [rcx + 0x1c], 0
je 0x14003bc2e
mov rcx, qword [0x1401c0c28]
test rcx, rcx
je 0x14003bc2e
mov eax, dword [0x1401c0c20]
test eax, eax
je 0x14003bc2e
mov dword [rbp - 0x30], eax
lea r8, [rbp - 0x30]
mov eax, dword [0x1401c0e80]
mov r9d, 0x20
add rax, qword [rbx + 0x68]
mov edx, 0x800111cb
mov qword [rbp - 0x28], rax
lea rax, [0x1401c0aa4]
mov qword [r11 + 0x18], rdi
xor edi, edi
mov qword [r11 - 0x40], rdi
mov qword [r11 - 0x48], rdi
mov qword [rbp - 0x18], rax
lea rax, [rbp - 0x30]
mov dword [rsp + 0x28], 0x20
mov qword [r11 - 0x58], rax
mov qword [rbp - 0x20], 1
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, 1
jne 0x14003bc26
mov rcx, qword [0x1401c0c28]
test rcx, rcx
je 0x14003bc26
mov eax, dword [0x1401c0c20]
test eax, eax
je 0x14003bc26
mov dword [rbp - 0x30], eax
lea r8, [rbp - 0x30]
mov eax, dword [0x1401c0e68]
mov r9d, 0x20
add rax, qword [rbx + 0x68]
mov edx, 0x800111cb
mov qword [rbp - 0x28], rax
lea rax, [0x1401c0ad8]
mov qword [rsp + 0x38], rdi
mov qword [rbp - 0x18], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x20
mov qword [rsp + 0x20], rax
mov qword [rbp - 0x20], 4
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, 1
jne 0x14003bc26
mov eax, dword [0x1401c0ad8]
cmp eax, 0xffffffff
je 0x14003bc26
shr eax, 9
xorps xmm0, xmm0
mov ecx, 8
mov dword [rbp + 0x1c], edi
movdqu xmmword [rbp - 0x30], xmm0
lea eax, [rax*8 + 0x10]
mov dword [rbp + 0x18], eax
call fcn.1400a86f0
mov qword [rbp - 0x30], rax
lea r8, [rbp - 0x30]
lea rcx, [rax + 8]
mov qword [rbp - 0x20], rcx
mov rcx, qword [rbp + 0x18]
mov qword [rax], rcx
add rax, 8
mov rdx, qword [0x1401c0c70]
mov qword [rbp - 0x28], rax
call fcn.1400a7410
mov qword [0x1401c0ad0], rax
mov r8, rax
test rax, rax
je 0x14003bc26
mov rcx, qword [0x1401c0c28]
test rcx, rcx
je 0x14003bc26
mov edx, dword [0x1401c0c20]
test edx, edx
je 0x14003bc26
mov eax, dword [0x1401c0ad8]
mov r9d, 0x20
mov dword [rbp - 0x30], edx
and eax, 0x1ff
imul edx, eax, 0x78
lea rax, [rbp - 0x30]
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x80], rsi
lea rsi, [0x1401c0ae0]
mov dword [rsp + 0x28], 0x20
add rdx, r8
mov qword [rbp - 0x18], rsi
mov qword [rbp - 0x28], rdx
lea r8, [rbp - 0x30]
mov edx, 0x800111cb
mov qword [rbp - 0x20], 8
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, 1
jne 0x14003bc1e
mov rdx, rsi
lea rcx, [0x140189650]
call fcn.14003c990
test al, al
je 0x14003bc1e
mov rcx, rbx
call fcn.14003bf70
test al, al
je 0x14003bc1e
cmp byte [0x1401c0800], dil
jne 0x14003ba6f
movss xmm1, dword [rbx + 0x124]
xorps xmm0, xmm0
comiss xmm1, xmm0
ja 0x14003bc1e
cmp byte [0x1400cf0b8], dil
je 0x14003baf5
mov rcx, qword [0x1401c0c28]
test rcx, rcx
je 0x14003badf
mov eax, dword [0x1401c0c20]
test eax, eax
je 0x14003badf
mov dword [rbp - 0x30], eax
lea r8, [rbp - 0x30]
mov eax, dword [0x1401c0e2c]
mov r9d, 0x20
add rax, qword [rbx + 0x68]
mov edx, 0x800111cb
mov qword [rbp - 0x28], rax
lea rax, [rbp + 0x18]
mov qword [rsp + 0x38], rdi
mov qword [rbp - 0x18], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x20
mov qword [rsp + 0x20], rax
mov qword [rbp - 0x20], 1
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp byte [rbp + 0x18], dil
jne 0x14003baf5
mov rcx, rbx
call fcn.14003bc40
test al, al
jne 0x14003bc1e
cmp byte [0x1400cf0de], dil
je 0x14003bb1c
mov eax, dword [0x140189760]
cmp dword [rbx + 0x110], eax
je 0x14003bb18
cmp dword [0x140189750], edi
jle 0x14003bb18
mov al, 1
jmp 0x14003bb25
xor al, al
jmp 0x14003bb25
cmp dword [0x140189750], edi
setg al
mov byte [0x1401c0aa5], al
test al, al
je 0x14003bc1e
movaps xmmword [rsp + 0x60], xmm6
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
xorps xmm6, xmm6
mov rcx, rax
sub rcx, qword [0x1401c0f18]
mov rbx, rax
cmp byte [0x1401c0bdc], dil
cvtsi2sd xmm6, rcx
divsd xmm6, qword [0x1400bc548]
jne 0x14003bb8a
movd xmm0, dword [0x1400cf0c0]
cvtdq2pd xmm0, xmm0
comisd xmm6, xmm0
jb 0x14003bb8a
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
mov qword [0x1401c0f20], rax
mov byte [0x1401c0bdc], 1
sub rbx, qword [0x1401c0f20]
xorps xmm1, xmm1
movd xmm0, dword [0x1400cf0c0]
cvtdq2pd xmm0, xmm0
cvtsi2sd xmm1, rbx
comisd xmm6, xmm0
movaps xmm6, xmmword [rsp + 0x60]
jb 0x14003bc1e
divsd xmm1, qword [0x1400bc548]
movd xmm0, dword [0x1400cf0b4]
cvtdq2pd xmm0, xmm0
comisd xmm1, xmm0
jb 0x14003bc1e
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x14003bc1e
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 [0x1401c0f18], rax
mov byte [0x1401c0bdc], dil
mov rsi, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x90]
mov rbx, qword [rsp + 0x98]
add rsp, 0x70
pop rbp
ret