Function at 0x180120f80
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xc0
mov qword [rbp - 0x39], 0xfffffffffffffffe
mov qword [rsp + 0x108], rbx
mov rax, qword [0x1804e0010]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov r15, rcx
xor edi, edi
mov dword [rbp - 0x51], edi
mov rcx, qword [rcx + 0xe0]
test rcx, rcx
je 0x1801213fa
cmp dword [r15 + 0x17c], 3
jne 0x180120feb
mov rax, qword [rcx]
call qword [rax + 0x50]
test rax, rax
je 0x1801213fa
mov rcx, qword [r15 + 0x300]
test rcx, rcx
je 0x18012111c
mov rax, qword [rcx]
lea rdx, [rbp + 0x77]
call qword [rax + 0x70]
mov r10, rax
test rax, rax
je 0x18012111c
mov rax, rdi
mov rcx, qword [r15 + 0x300]
test rcx, rcx
je 0x18012102a
mov edx, 0x12c
call fcn.18021e500
cmp r10, rax
jne 0x18012111c
mov dword [rsp + 0x20], edi
lea r9, vtable.type_info.0
lea r8, vtable.type_info.0
xor edx, edx
mov rcx, r10
call sub.VCRUNTIME140.dll___RTDynamicCast
mov rbx, rax
test rax, rax
je 0x18012111c
mov rcx, qword [rbp + 0x77]
mov qword [rbp - 0x59], rcx
lea rdx, [r15 + 0x88]
test r15, r15
cmove rdx, rdi
mov r9d, edi
mov r10d, edi
mov r8, rax
nop word [rax + rax]
cmp r8, rdx
je 0x180121096
add r10d, dword [r8 + 0x30]
add r9d, dword [r8 + 0x2c]
mov r8, qword [r8 + 8]
test r8, r8
jne 0x180121080
test rdx, rdx
je 0x1801210be
test r8, r8
jne 0x1801210be
mov qword [rbp - 0x49], rdi
xor r9d, r9d
lea r8, [rbp - 0x49]
mov rcx, rbx
call fcn.18021e170
mov ecx, dword [rbp - 0x55]
sub ecx, dword [rbp - 0x45]
mov eax, dword [rbp - 0x49]
jmp 0x180121102
mov eax, dword [rbp + 0x7b]
sub eax, r10d
sub ecx, r9d
mov dword [rbp - 0x59], ecx
mov dword [rbp - 0x55], eax
test rdx, rdx
jne 0x180121108
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x60]
test rax, rax
je 0x180121108
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x11], xmm0
mov r9, qword [rax]
xor r8d, r8d
lea rdx, [rbp - 0x11]
mov rcx, rax
call qword [r9 + 0x10]
mov ecx, dword [rbp - 0x55]
sub ecx, dword [rbp - 0xd]
mov eax, dword [rbp - 0x11]
mov dword [rbp - 0x55], ecx
sub dword [rbp - 0x59], eax
lea rdx, [rbp - 0x59]
mov rcx, rbx
call fcn.180151130
test al, al
jne 0x1801213fa
mov r13d, 1
mov ecx, r13d
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x180121165
cmp dword [r15 + 0x17c], 2
je 0x180121165
mov rcx, qword [r15 + 8]
call qword [sym.imp.USER32.dll_GetParent]
mov rcx, rax
xor r9d, r9d
mov edx, VarUI4FromDisp
mov r8d, 0x11be
call qword [sym.imp.USER32.dll_PostMessageW]
jmp 0x1801213fa
mov rcx, qword [r15 + 0xd8]
call qword [sym.imp.USER32.dll_IsMenu]
test eax, eax
je 0x1801213fa
cmp byte [r15 + 0x81], dil
jne 0x1801213fa
mov ecx, dword [r15 + 0x17c]
lea eax, [rcx - 2]
cmp eax, r13d
jbe 0x18012119b
cmp ecx, r13d
jne 0x1801211be
mov edx, 0x50009
mov rcx, qword [r15 + 8]
call qword [sym.imp.USER32.dll_KillTimer]
mov rcx, qword [r15 + 0x118]
call qword [sym.imp.USER32.dll_SetCursor]
mov ecx, dword [r15 + 0x17c]
cmp ecx, 2
je 0x1801212de
mov rbx, qword [r15 + 0x2f0]
mov qword [rbp - 0x59], rbx
test rbx, rbx
je 0x1801211e0
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
nop
test rbx, rbx
je 0x1801212cf
mov rax, qword [rbx]
lea rdx, [rbp - 1]
mov rcx, rbx
call qword [rax + 0x68]
nop
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x90]
mov r12, rax
mov qword [rbp - 0x41], rax
test rax, rax
je 0x180121218
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx]
nop
test r12, r12
je 0x18012126b
mov rax, qword [r12]
xor edx, edx
mov rcx, r12
call qword [rax + pe_nt_image_headers64]
cmp eax, 2
sete r14b
lea rax, [rbp - 0x31]
mov qword [rbp - 0x11], rax
lea rdx, [rbp - 1]
lea rcx, [rbp - 0x31]
call fcn.180005900
mov rsi, rax
mov rdi, qword [r15 + 0xd8]
call fcn.180112fa0
mov rcx, rax
movzx r9d, r14b
mov r8, rsi
mov rdx, rdi
call fcn.18025ef10
xor edi, edi
test r12, r12
je 0x18012127b
mov rax, qword [r12]
mov rcx, r12
call qword [rax + 8]
nop
mov rdx, qword [rbp + 0x17]
cmp rdx, 8
jb 0x1801212be
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1801212b9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1801212b9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180393fb0
movdqa xmm0, xmmword [0x1803f7240]
movdqu xmmword [rbp + 0xf], xmm0
mov word [rbp - 1], di
test rbx, rbx
je 0x1801212de
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
nop
xor edx, edx
mov rcx, qword [r15 + 0xd8]
call qword [sym.imp.USER32.dll_GetSubMenu]
mov rbx, rax
mov qword [rbp - 0x11], rax
mov dword [rbp - 0x51], r13d
call fcn.180023950
mov rcx, rax
mov rdx, rbx
call fcn.1800ba160
and r13d, 0xfffffffe
mov dword [rbp - 0x51], r13d
mov rcx, r15
call fcn.18012b720
lea rcx, [rbp - 0x49]
call qword [sym.imp.USER32.dll_GetCursorPos]
cmp dword [r15 + 0x17c], 0
sete bl
call fcn.180023950
mov rcx, rax
movzx r8d, bl
mov rdx, qword [r15 + 0xf0]
call fcn.1800b8430
nop
xor edx, edx
mov rcx, qword [r15 + 0xd8]
call qword [sym.imp.USER32.dll_GetSubMenu]
mov rdi, rax
mov qword [rbp - 0x41], rax
or r13d, 2
mov dword [rbp - 0x51], r13d
mov rcx, qword [r15 + 8]
call qword [sym.imp.USER32.dll_GetParent]
mov rbx, rax
call fcn.180023950
mov rcx, rax
mov qword [rsp + 0x28], rbx
mov edx, dword [rbp - 0x45]
mov dword [rsp + 0x20], edx
mov r9d, dword [rbp - 0x49]
mov rdx, rdi
call fcn.1800b88f0
mov ebx, eax
and r13d, 0xfffffffd
mov dword [rbp - 0x51], r13d
test eax, eax
je 0x1801213c7
mov edx, ebx
mov rcx, r15
call fcn.18012bea0
mov rcx, qword [r15 + 8]
call qword [sym.imp.USER32.dll_GetParent]
mov rcx, rax
xor r9d, r9d
mov r8d, ebx
mov edx, VarUI4FromDisp
call qword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [r15 + 0x17c]
dec eax
cmp eax, 2
ja 0x1801213fa
mov rcx, qword [r15 + 0x118]
call qword [sym.imp.USER32.dll_SetCursor]
xor r9d, r9d
mov edx, 0x50009
mov r8d, 0x1f4
mov rcx, qword [r15 + 8]
call qword [sym.imp.USER32.dll_SetTimer]
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.180393f50
mov rbx, qword [rsp + 0x108]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret