Function at 0x180023808
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x1801ee5c0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbp, qword [0x180217b90]
xor r12d, r12d
mov r14, r9
mov rbx, r8
mov r15, rcx
test rbp, rbp
je 0x180023d7f
mov rsi, qword [rbp + 0x90]
mov ecx, 0x20c
lea eax, [rcx - 8]
lea r8d, [rcx - 7]
cmp edx, eax
ja 0x180023bc7
je 0x180023ca5
mov eax, 0x104
lea edi, [r12 + 1]
lea r13d, [rax - 4]
cmp edx, eax
ja 0x180023a91
je 0x180023a89
mov eax, edx
sub eax, 7
je 0x180023a09
sub eax, edi
je 0x180023a09
sub eax, 0x18
je 0x1800239ea
sub eax, 0xe0
je 0x18002394a
sub eax, edi
je 0x18002394a
cmp eax, edi
jne 0x180023d7f
lea rax, [rbx - 1]
cmp rax, 0xfffe
ja 0x180023d7f
test bx, bx
jne 0x1800238de
cmp word [rbp + 0x3744], r12w
je 0x180023d7f
mov ecx, 0xfc00
movzx eax, bx
and ax, cx
mov edx, 0xd800
movzx ecx, word [rbp + 0x3744]
cmp ax, dx
jne 0x180023915
test cx, cx
je 0x180023909
mov edx, 0xfffd
call fcn.180001800
mov word [rbp + 0x3744], bx
jmp 0x180023d7f
test cx, cx
je 0x18002393d
mov ecx, 0xdc00
cmp ax, cx
je 0x180023930
mov edx, 0xfffd
call fcn.180001800
jmp 0x180023935
mov ebx, 0xfffd
mov word [rbp + 0x3744], r12w
movzx edx, bx
call fcn.180001800
jmp 0x180023d7f
cmp edx, r13d
je 0x180023a89
mov sil, r12b
cmp rbx, r13
jae 0x180023d7f
call fcn.1800229e4
cmp rbx, 0xd
jne 0x18002397a
shr r14, 0x10
mov eax, 0x10d
test r13w, r14w
cmovne ebx, eax
movsxd rcx, ebx
call fcn.180023274
test eax, eax
je 0x180023993
mov r8d, ebx
mov dl, sil
mov ecx, eax
call fcn.180022984
cmp ebx, 0x10
jne 0x180023b15
mov ebx, 0xa0
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, dil
cmp al, sil
jne 0x1800239c4
mov r8d, ebx
mov dl, sil
mov ecx, 0x210
call fcn.180022984
mov ebx, 0xa1
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, dil
cmp al, sil
jne 0x180023d7f
mov ecx, 0x214
jmp 0x180023bb7
cmp r14w, di
jne 0x180023d7f
call fcn.1800228d8
test al, al
je 0x180023d7f
mov rax, rdi
jmp 0x180023d81
xor eax, eax
lea rbx, [rbp + 0x3758]
mov ecx, dword [rbx]
cmp edx, 7
mov r8d, dword [rbx + 4]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rax
sete byte [rsp + 0x28]
mov dword [rsp + 0x20], 6
cmp ecx, r8d
jne 0x180023a62
inc ecx
test r8d, r8d
je 0x180023a4e
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
add eax, r8d
jmp 0x180023a53
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
mov edx, ecx
mov rcx, rbx
call fcn.180013020
movsxd rax, dword [rbx]
movups xmm0, xmmword [rsp + 0x20]
movsd xmm1, qword [rsp + 0x30]
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 8]
movups xmmword [rax + rcx*8], xmm0
movsd qword [rax + rcx*8 + 0x10], xmm1
add dword [rbx], edi
jmp 0x180023d7f
mov sil, dil
jmp 0x180023956
mov eax, edx
sub eax, 0x105
je 0x180023953
sub eax, 0xfb
je 0x180023ac2
sub eax, edi
je 0x180023caa
sub eax, edi
je 0x180023d29
cmp eax, edi
je 0x180023caa
jmp 0x180023d7f
mov qword [rsi + 8], r15
cmp byte [rsi + 0x10], r12b
jne 0x180023af6
mov ebp, 2
mov dword [rsp + 0x20], 0x18
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x24], ebp
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x30], r12d
call qword [sym.imp.USER32.dll_TrackMouseEvent]
mov byte [rsi + 0x10], dil
mov rax, r14
shr rax, 0x10
cwde
movd xmm2, eax
movsx eax, r14w
cvtdq2ps xmm2, xmm2
movd xmm1, eax
cvtdq2ps xmm1, xmm1
jmp 0x180023c6e
cmp ebx, 0x11
jne 0x180023b65
mov ebx, 0xa2
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, dil
cmp al, sil
jne 0x180023b42
mov r8d, ebx
mov dl, sil
mov ecx, 0x20f
call fcn.180022984
mov ebx, 0xa3
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, dil
cmp al, sil
jne 0x180023d7f
mov ecx, 0x213
jmp 0x180023bb7
cmp ebx, 0x12
jne 0x180023d7f
mov ebx, 0xa4
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, dil
cmp al, sil
jne 0x180023b96
mov r8d, ebx
mov dl, sil
mov ecx, 0x211
call fcn.180022984
mov ebx, 0xa5
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, dil
cmp al, sil
jne 0x180023d7f
mov ecx, 0x215
mov r8d, ebx
mov dl, sil
call fcn.180022984
jmp 0x180023d7f
mov eax, 0x20b
cmp edx, eax
ja 0x180023c31
je 0x180023ca5
mov eax, edx
sub eax, r8d
je 0x180023d24
sub eax, 1
je 0x180023ca5
sub eax, 1
je 0x180023ca5
sub eax, 1
je 0x180023d24
sub eax, 1
je 0x180023ca5
cmp eax, 1
jne 0x180023d7f
shr rbx, 0x10
xorps xmm1, xmm1
movsx eax, bx
movd xmm2, eax
cvtdq2ps xmm2, xmm2
divss xmm2, dword [0x1801d46d4]
call fcn.180001b08
jmp 0x180023d7f
mov eax, edx
sub eax, ecx
je 0x180023d24
sub eax, 1
je 0x180023ca5
sub eax, 1
je 0x180023c8a
sub eax, 0xb
je 0x180023c78
cmp eax, 0x8a
jne 0x180023d7f
cmp qword [rsi + 8], r15
jne 0x180023c5f
mov qword [rsi + 8], r12
movss xmm1, dword [0x1801d4724]
movaps xmm2, xmm1
mov byte [rsi + 0x10], r12b
call fcn.1800019e0
jmp 0x180023d7f
cmp ebx, 7
jne 0x180023d7f
mov byte [rsi + 0x2d], 1
jmp 0x180023d7f
shr rbx, 0x10
xorps xmm2, xmm2
movsx eax, bx
movd xmm1, eax
cvtdq2ps xmm1, xmm1
divss xmm1, dword [0x1801d46d4]
jmp 0x180023c27
mov edi, 1
mov ecx, 0xfffffffd
lea eax, [rdx - 0x201]
and eax, ecx
mov ebp, 2
neg eax
lea eax, [rdx - 0x204]
sbb r14d, r14d
and r14d, r12d
test ecx, eax
lea eax, [rdx - 0x207]
cmove r14d, edi
test ecx, eax
lea eax, [rdx - 0x20b]
cmove r14d, ebp
test ecx, eax
jne 0x180023cf8
shr rbx, 0x10
mov r14d, r12d
cmp bx, di
setne r14b
add r14d, 3
cmp dword [rsi + 0x14], r12d
jne 0x180023d12
call qword [sym.imp.USER32.dll_GetCapture]
test rax, rax
jne 0x180023d12
mov rcx, r15
call qword [sym.imp.USER32.dll_SetCapture]
mov eax, dword [rsi + 0x14]
mov r8b, dil
bts eax, r14d
mov edx, r14d
mov dword [rsi + 0x14], eax
jmp 0x180023d7a
mov edi, 1
cmp edx, r8d
mov ebp, r12d
sete bpl
cmp edx, 0x208
jne 0x180023d42
mov ebp, 2
jmp 0x180023d57
cmp edx, ecx
jne 0x180023d57
shr rbx, 0x10
mov ebp, r12d
cmp bx, di
setne bpl
add ebp, 3
mov eax, dword [rsi + 0x14]
btr eax, ebp
mov dword [rsi + 0x14], eax
test eax, eax
jne 0x180023d75
call qword [sym.imp.USER32.dll_GetCapture]
cmp rax, r15
jne 0x180023d75
call qword [sym.imp.USER32.dll_ReleaseCapture]
xor r8d, r8d
mov edx, ebp
call fcn.180001a70
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.18013d070
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret