Function at 0x14000ae10
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov rax, qword [0x1400975a0]
xor rax, rsp
mov qword [rbp + 0xa0], rax
mov r13, qword [rbp + 0x118]
mov rsi, rcx
lea rcx, [0x14009a048]
mov r12d, r9d
mov r15d, r8d
mov r14, rdx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test rsi, rsi
je 0x14000ae72
lea rax, [rsi + 8]
mov qword [0x140099f70], rax
jmp 0x14000ae7d
mov qword [0x140099f70], 0
mov rbx, qword [0x14009a188]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [0x140008ed0]
mov r9d, eax
mov r8, rbx
mov ecx, 5
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov edx, dword [rbp + 0x110]
mov ecx, r12d
mov qword [0x140099f60], rax
and byte [rsi + 0xf0], 0xf7
or byte [rsi + 0xf0], 1
mov rbx, qword [rsi + 8]
call fcn.14001a310
mov r9d, dword [rbp + 0x110]
mov r8d, eax
mov edx, r15d
mov rcx, r14
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rbx
call qword [sym.imp.USER32.dll_TrackPopupMenuEx]
and byte [rsi + 0xf0], 0xfe
mov rcx, qword [0x140099f60]
mov r15d, eax
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
xor r12d, r12d
lea rcx, [0x14009a048]
mov qword [0x140099f60], r12
mov qword [0x140099f70], r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rbx, qword [rsi + 8]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetParent]
test rax, rax
je 0x14000af51
nop word [rax + rax]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.USER32.dll_GetParent]
test rax, rax
jne 0x14000af40
mov rcx, rbx
call qword [sym.imp.USER32.dll_UpdateWindow]
test byte [rsi + 0xf0], 4
je 0x14000b0da
lea r14, [rsi + 0x20]
nop dword [rax + rax]
mov edx, dword [r14 + 8]
dec edx
js 0x14000b0da
mov rax, qword [r14]
movsxd rcx, edx
mov rsi, qword [rax + rcx*8]
mov rcx, r14
call fcn.140016930
test eax, eax
je 0x14000b0da
test rsi, rsi
je 0x14000b0da
mov rcx, rsi
mov edi, r12d
call qword [sym.imp.USER32.dll_GetMenuItemCount]
test eax, eax
jle 0x14000af70
nop
xor edx, edx
lea rcx, [rsp + 0x30]
lea r8d, [rdx + 0x50]
call fcn.14001d0b0
lea rcx, [rbp - 0x7c]
xor edx, edx
mov r8d, pe_nt_image_headers64
mov dword [rsp + 0x30], 0x50
call fcn.14001d0b0
lea rcx, [rbp - 0x80]
mov dword [rbp - 0x80], VarUI4FromDisp
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x14000b001
mov eax, dword [rbp - 0x7c]
cmp eax, 5
jae 0x14000b009
cmp eax, 4
jne 0x14000b001
cmp dword [rbp - 0x78], 0x5a
jae 0x14000b009
mov dword [rsp + 0x30], 0x44
lea r9, [rsp + 0x30]
mov r8d, 1
mov edx, edi
mov rcx, rsi
mov dword [rsp + 0x34], 0x32
call qword [sym.imp.USER32.dll_GetMenuItemInfoW]
mov rbx, qword [rsp + 0x60]
test rbx, rbx
je 0x14000b0c2
cmp dword [rbx], 0x1313
jne 0x14000b0c2
mov dword [rsp + 0x34], 0x31
mov eax, dword [rbx + 0x10]
mov dword [rsp + 0x38], eax
mov eax, dword [rbx + 0x14]
mov dword [rsp + 0x3c], eax
mov rax, qword [rbx + 8]
mov qword [rsp + 0x68], rax
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea r9, [rsp + 0x30]
mov r8d, 1
mov edx, edi
mov rcx, rsi
mov qword [rsp + 0x60], r12
mov dword [rsp + 0x70], eax
call qword [sym.imp.USER32.dll_SetMenuItemInfoW]
mov r8d, dword [rsp + 0x3c]
or r8d, dword [rsp + 0x38]
mov rax, qword [rbx + 8]
mov r9d, dword [rsp + 0x40]
bts r8d, 0xa
mov edx, edi
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_ModifyMenuW]
mov rcx, qword [rbx + 8]
call fcn.14001c994
mov rcx, rbx
call fcn.14001c074
mov rcx, rsi
inc edi
call qword [sym.imp.USER32.dll_GetMenuItemCount]
cmp edi, eax
jl 0x14000afb0
jmp 0x14000af70
mov eax, r15d
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.14001d080
mov rbx, qword [rsp + 0x1f8]
add rsp, 0x1b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret