Function at 0x1400406a8
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov rsi, qword [0x14016a570]
mov rbx, r8
xor r8d, r8d
mov r12, r9
mov r13, rcx
test rsi, rsi
je 0x140040be5
mov r14, qword [rsi + 0x90]
lea edi, [r8 + 1]
mov ecx, 0x205
lea eax, [rcx - 1]
lea r9d, [rcx + 7]
cmp edx, eax
ja 0x140040a84
je 0x14004090b
mov eax, 0x104
cmp edx, eax
ja 0x1400408d4
je 0x1400408cc
mov eax, edx
sub eax, 7
je 0x1400408b0
sub eax, edi
je 0x1400408b0
sub eax, 0x18
je 0x140040891
sub eax, 0xe0
je 0x1400407e4
sub eax, edi
je 0x1400407e4
cmp eax, edi
jne 0x140040be5
lea rax, [rbx - 1]
cmp rax, 0xfffe
ja 0x140040be5
test bx, bx
jne 0x140040775
cmp word [rsi + 0x37c4], r8w
je 0x140040be5
mov ecx, 0xfc00
movzx eax, bx
and ax, cx
mov edx, 0xd800
movzx ecx, word [rsi + 0x37c4]
cmp ax, dx
jne 0x1400407ac
test cx, cx
je 0x1400407a0
mov edx, 0xfffd
call fcn.14001eab4
mov word [rsi + 0x37c4], bx
jmp 0x140040be5
test cx, cx
je 0x1400407d7
mov ecx, 0xdc00
cmp ax, cx
je 0x1400407ca
mov edx, 0xfffd
call fcn.14001eab4
xor r8d, r8d
jmp 0x1400407cf
mov ebx, 0xfffd
mov word [rsi + 0x37c4], r8w
movzx edx, bx
call fcn.14001eab4
jmp 0x140040be5
lea eax, [rdx - 0x100]
test eax, 0xfffffffb
je 0x1400408cc
mov sil, r8b
mov r14d, 0x100
cmp rbx, r14
jae 0x140040be5
call fcn.14003f880
cmp rbx, 0xd
jne 0x140040821
shr r12, 0x10
lea eax, [r14 + 0xd]
test r14w, r12w
cmovne ebx, eax
movsxd rcx, ebx
call fcn.140040114
test eax, eax
je 0x14004083a
mov r8d, ebx
mov dl, sil
mov ecx, eax
call fcn.14003f818
cmp ebx, 0x10
jne 0x1400409d2
mov ebx, 0xa0
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, dil
cmp al, sil
jne 0x14004086b
mov r8d, ebx
mov dl, sil
mov ecx, 0x210
call fcn.14003f818
mov ebx, 0xa1
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, dil
cmp al, sil
jne 0x140040be5
mov ecx, 0x214
jmp 0x140040a74
cmp r12w, di
jne 0x140040be5
call fcn.14003f760
test al, al
je 0x140040be5
mov rax, rdi
jmp 0x140040be7
xor eax, eax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
cmp edx, 7
mov dword [rbp - 0x20], 6
sete byte [rbp - 0x18]
jmp 0x140040bd1
mov sil, dil
jmp 0x1400407f8
mov eax, edx
sub eax, 0x105
je 0x1400407f5
sub eax, 0xfb
je 0x140040982
sub eax, edi
je 0x140040900
sub eax, edi
je 0x140040b5b
cmp eax, edi
jne 0x140040be5
mov r12d, r8d
cmp edx, 0x206
jne 0x14004090e
mov r12d, edi
lea eax, [rdx - 0x207]
mov ecx, 0xfffffffd
test ecx, eax
mov r15d, 2
lea eax, [rdx - 0x20b]
cmove r12d, r15d
test ecx, eax
jne 0x140040941
shr rbx, 0x10
mov r12d, r8d
cmp bx, di
setne r12b
add r12d, 3
cmp dword [r14 + 0x14], r8d
jne 0x140040962
call qword [sym.imp.USER32.dll_GetCapture]
test rax, rax
jne 0x14004095b
mov rcx, r13
call qword [sym.imp.USER32.dll_SetCapture]
mov rsi, qword [0x14016a570]
mov eax, dword [r14 + 0x14]
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
bts eax, r12d
mov dword [rbp - 0x18], r12d
mov dword [r14 + 0x14], eax
mov byte [rbp - 0x14], dil
jmp 0x140040bc5
mov qword [r14 + 8], r13
cmp byte [r14 + 0x10], r8b
jne 0x1400409b3
mov r15d, 2
mov dword [rbp - 0x20], Ordinal_26
lea rcx, [rbp - 0x20]
mov dword [rbp - 0x1c], r15d
mov qword [rbp - 0x18], r13
mov dword [rbp - 0x10], r8d
call qword [sym.imp.USER32.dll_TrackMouseEvent]
mov byte [r14 + 0x10], dil
mov rax, r12
shr rax, 0x10
cwde
movd xmm2, eax
movsx eax, r12w
cvtdq2ps xmm2, xmm2
movd xmm1, eax
cvtdq2ps xmm1, xmm1
jmp 0x140040b24
cmp ebx, 0x11
jne 0x140040a22
mov ebx, 0xa2
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, dil
cmp al, sil
jne 0x1400409ff
mov r8d, ebx
mov dl, sil
mov ecx, 0x20f
call fcn.14003f818
mov ebx, 0xa3
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, dil
cmp al, sil
jne 0x140040be5
mov ecx, 0x213
jmp 0x140040a74
cmp ebx, 0x12
jne 0x140040be5
mov ebx, 0xa4
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, dil
cmp al, sil
jne 0x140040a53
mov r8d, ebx
mov dl, sil
mov ecx, 0x211
call fcn.14003f818
mov ebx, 0xa5
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, dil
cmp al, sil
jne 0x140040be5
mov ecx, 0x215
mov r8d, ebx
mov dl, sil
call fcn.14003f818
jmp 0x140040be5
mov eax, 0x20b
cmp edx, eax
ja 0x140040ae8
je 0x140040900
mov eax, edx
sub eax, ecx
je 0x140040b5b
sub eax, edi
je 0x140040900
sub eax, edi
je 0x140040900
sub eax, edi
je 0x140040b5b
sub eax, edi
je 0x140040900
cmp eax, edi
jne 0x140040be5
shr rbx, 0x10
xorps xmm1, xmm1
movsx eax, bx
movd xmm2, eax
cvtdq2ps xmm2, xmm2
divss xmm2, dword [0x14015b31c]
call fcn.14001ec30
jmp 0x140040be5
mov eax, edx
sub eax, r9d
je 0x140040b5b
sub eax, edi
je 0x140040900
sub eax, edi
je 0x140040b40
sub eax, 0xb
je 0x140040b2e
cmp eax, 0x8a
jne 0x140040be5
cmp qword [r14 + 8], r13
jne 0x140040b15
mov qword [r14 + 8], r8
movss xmm1, dword [0x14015b45c]
movaps xmm2, xmm1
mov byte [r14 + 0x10], r8b
call fcn.14001ebf0
jmp 0x140040be5
cmp ebx, 7
jne 0x140040be5
mov byte [r14 + 0x2d], dil
jmp 0x140040be5
shr rbx, 0x10
xorps xmm2, xmm2
movsx eax, bx
movd xmm1, eax
cvtdq2ps xmm1, xmm1
divss xmm1, dword [0x14015b31c]
jmp 0x140040ade
cmp edx, ecx
mov r15d, r8d
sete r15b
cmp edx, 0x208
jne 0x140040b74
mov r15d, 2
jmp 0x140040b8b
cmp edx, r9d
jne 0x140040b8b
shr rbx, 0x10
mov r15d, r8d
cmp bx, di
setne r15b
add r15d, 3
mov eax, dword [r14 + 0x14]
btr eax, r15d
mov dword [r14 + 0x14], eax
test eax, eax
jne 0x140040bb6
call qword [sym.imp.USER32.dll_GetCapture]
cmp rax, r13
jne 0x140040bac
call qword [sym.imp.USER32.dll_ReleaseCapture]
mov rsi, qword [0x14016a570]
xor r8d, r8d
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
mov dword [rbp - 0x18], r15d
mov byte [rbp - 0x14], r8b
mov dword [rbp - 0x1c], edi
xor eax, eax
mov dword [rbp - 0x20], 3
lea rdx, [rbp - 0x20]
mov qword [rbp - 0x10], rax
lea rcx, [rsi + 0x37d8]
call fcn.140031020
xor eax, eax
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret