Function at 0x140018c20
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
push rbx
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x68
mov rax, qword [0x140195088]
xor rax, rsp
mov qword [rbp - 0x28], rax
movzx eax, r8w
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
shr r8, 0x10
mov dword [rbp - 0x38], eax
movzx eax, r8w
mov dword [rbp - 0x34], eax
call qword [sym.imp.USER32.dll_SetFocus]
mov rbx, qword [rbp - 0x38]
mov rcx, qword [rdi + 0xf0]
mov rdx, rbx
call fcn.140054f40
mov rsi, rax
test rax, rax
je 0x140018f81
mov qword [rsp + 0x98], r12
mov ecx, 0x11
mov qword [rsp + 0x58], r14
call qword [sym.imp.USER32.dll_GetKeyState]
movzx r12d, ax
mov ecx, 0x10
and r12d, 0x8000
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
mov rdx, rbx
mov rcx, rsi
movzx r14d, ax
and r14d, 0x8000
call fcn.140052680
test eax, eax
je 0x140018d19
test r14d, r14d
je 0x140018ce9
mov rcx, qword [rdi + 0xf0]
xor edx, edx
cmp dword [rsi + 0xb4], edx
sete dl
call fcn.140055780
jmp 0x140018cf1
mov rcx, rsi
call fcn.140053cd0
mov edx, dword [rdi + 0x30]
sub edx, dword [rdi + 0x28]
mov rcx, qword [rdi + 0xf0]
call fcn.1400545a0
mov rcx, qword [rdi + 0x18]
call fcn.14004c430
mov rcx, rdi
call fcn.140017110
jmp 0x140018f6a
mov rcx, qword [rdi + 0xf0]
lea rdx, [rbp - 0x38]
xor eax, eax
mov qword [rsp + 0x60], r13
mov r8, rbx
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], rax
mov qword [rsp + 0x50], r15
call fcn.1400547c0
cmp dword [rdi + 0xb0], 0
mov r15d, 1
je 0x140018d68
lea rdx, [rdi + 0x90]
lea rcx, [rbp - 0x38]
call fcn.140013d40
test eax, eax
je 0x140018d68
mov r8d, r15d
jmp 0x140018d6b
xor r8d, r8d
movaps xmm0, xmmword [rbp - 0x38]
lea rdx, [rbp - 0x48]
mov rcx, rdi
movdqa xmmword [rbp - 0x48], xmm0
call fcn.140019910
movaps xmm0, xmmword [rbp - 0x38]
lea rdx, [rbp - 0x48]
mov rcx, qword [rdi + 0xf0]
movdqa xmmword [rbp - 0x48], xmm0
call fcn.140054e90
movaps xmm0, xmmword [rbp - 0x38]
lea rdx, [rbp - 0x48]
mov rcx, qword [rdi + 0xf0]
mov r14d, eax
movdqa xmmword [rbp - 0x48], xmm0
call fcn.140054f00
movaps xmm0, xmmword [rbp - 0x38]
lea rdx, [rbp - 0x48]
mov rcx, qword [rdi + 0xf0]
mov r13d, eax
movdqa xmmword [rbp - 0x48], xmm0
call fcn.140055530
test r12d, r12d
je 0x140018e76
cmp dword [0x1401a1588], 0
je 0x140018e76
mov rsi, qword [0x1401a1610]
test eax, eax
je 0x140018e45
movaps xmm0, xmmword [rbp - 0x38]
lea rdx, [rbp - 0x48]
mov rcx, qword [rdi + 0xf0]
movdqa xmmword [rbp - 0x48], xmm0
call fcn.1400550b0
mov rdx, rax
mov rcx, rsi
mov r14, rax
call fcn.140038e20
mov rdx, r14
mov rcx, rsi
test eax, eax
je 0x140018e34
call fcn.140039470
lea rsi, [rdi + 0x90]
jmp 0x140018ed9
call fcn.140037ff0
lea rsi, [rdi + 0x90]
jmp 0x140018ed9
mov edx, r14d
mov rcx, rsi
call fcn.140038e30
mov edx, r14d
mov rcx, rsi
test eax, eax
je 0x140018e68
call fcn.1400394a0
lea rsi, [rdi + 0x90]
jmp 0x140018ed9
call fcn.140038020
lea rsi, [rdi + 0x90]
jmp 0x140018ed9
mov rcx, qword [rdi + 0xf0]
lea rsi, [rdi + 0x90]
movups xmm0, xmmword [rsi]
lea rdx, [rbp - 0x48]
movaps xmmword [rbp - 0x48], xmm0
call fcn.1400550b0
movups xmm0, xmmword [rsi]
mov rcx, qword [rdi + 0xf0]
lea rdx, [rbp - 0x48]
mov r14, rax
movaps xmmword [rbp - 0x48], xmm0
call fcn.140054e90
test r14, r14
je 0x140018ec5
mov r8, qword [rdi + 0x38]
mov rdx, r14
mov rcx, qword [rdi + 0x18]
call fcn.14004c1a0
jmp 0x140018ed9
cmp eax, 0xffffffff
je 0x140018ed9
mov r8, qword [rdi + 0x38]
mov edx, eax
mov rcx, qword [rdi + 0x18]
call fcn.14004a1e0
mov rcx, qword [rdi + 0xf0]
mov rdx, rbx
call fcn.140054f40
mov rcx, qword [rdi + 0xf0]
lea rdx, [rbp - 0x48]
mov r8, rbx
call fcn.1400547c0
mov rcx, qword [rdi + 0xf0]
lea rdx, [rbp - 0x48]
movups xmm0, xmmword [rax]
movaps xmmword [rbp - 0x38], xmm0
movups xmm1, xmmword [rax]
movaps xmmword [rbp - 0x48], xmm1
call fcn.140054e90
cmp dword [rdi + 0xb0], 0
mov ebx, eax
je 0x140018f34
mov rdx, rsi
lea rcx, [rbp - 0x38]
call fcn.140013d40
test eax, eax
jne 0x140018f37
xor r15d, r15d
movaps xmm0, xmmword [rbp - 0x38]
lea rdx, [rbp - 0x48]
mov r8d, r15d
movdqa xmmword [rbp - 0x48], xmm0
mov rcx, rdi
call fcn.140019910
mov rcx, qword [rdi + 0x18]
xor r9d, r9d
mov r8d, r13d
mov edx, ebx
call fcn.14004e6f0
mov r15, qword [rsp + 0x50]
mov r13, qword [rsp + 0x60]
mov r14, qword [rsp + 0x58]
mov r12, qword [rsp + 0x98]
mov dword [rdi + 0xb0], 0
mov rcx, qword [rbp - 0x28]
xor rcx, rsp
call fcn.14005d680
add rsp, 0x68
pop rdi
pop rsi
pop rbx
pop rbp
ret