Function at 0x1400967e0
Capabilities:
Check os version

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xe0]
sub rsp, 0x1e0
mov qword [rbp - 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x228], rbx
mov rax, qword [0x140216b40]
xor rax, rsp
mov qword [rbp + 0xd0], rax
mov r12d, r9d
mov r15d, r8d
mov rsi, rdx
mov r14, rcx
mov r13, qword [rbp + 0x148]
mov qword [rsp + 0x30], rdx
lea rax, [0x14021fb48]
mov qword [rbp - 0x68], rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test r14, r14
je 0x14009685a
lea rax, [r14 + 8]
mov qword [0x14021cf60], rax
jmp 0x140096865
mov qword [0x14021cf60], 0
mov rbx, qword [0x14021cfc8]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r9d, eax
mov r8, rbx
lea rdx, [0x140095ba0]
mov ecx, 5
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [0x14021cf50], rax
and byte [r14 + 0xf0], 0xf7
or byte [r14 + 0xf0], 1
mov rbx, qword [r14 + 8]
mov edx, dword [rbp + 0x140]
mov ecx, r12d
call fcn.1400a4640
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rbx
mov r9d, dword [rbp + 0x140]
mov r8d, eax
mov edx, r15d
mov rcx, rsi
call qword [sym.imp.USER32.dll_TrackPopupMenuEx]
mov r15d, eax
and byte [r14 + 0xf0], 0xfe
mov rcx, qword [0x14021cf50]
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
xor r12d, r12d
mov qword [0x14021cf50], r12
mov qword [0x14021cf60], r12
lea rcx, [0x14021fb48]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [rbp - 0x60], r12b
mov rcx, qword [r14 + 8]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rbx, qword [r14 + 8]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetParent]
test rax, rax
je 0x140096941
nop dword [rax]
mov rbx, rax
mov rcx, rax
call qword [sym.imp.USER32.dll_GetParent]
test rax, rax
jne 0x140096930
mov rcx, rbx
call qword [sym.imp.USER32.dll_UpdateWindow]
test byte [r14 + 0xf0], 4
je 0x140096b56
nop dword [rax + rax]
mov edx, dword [r14 + 0x28]
lea r8d, [rdx - 1]
test r8d, r8d
js 0x140096b56
movsxd rcx, r8d
mov rax, qword [r14 + 0x20]
lea rcx, [rax + rcx*8]
mov rsi, qword [rcx]
cmp r8d, edx
jge 0x140096b56
lea eax, [rdx - 1]
cmp r8d, eax
je 0x1400969d0
sub edx, r8d
lea eax, [rdx - 1]
movsxd r8, eax
shl r8, 3
lea r9, [rcx + 8]
movsxd rax, edx
shl rax, 3
test r8, r8
je 0x1400969d0
test rcx, rcx
je 0x140096b3b
test r9, r9
je 0x140096b3b
cmp rax, r8
jb 0x140096b2e
mov rdx, r9
call fcn.1400df7a0
dec dword [r14 + 0x28]
test rsi, rsi
je 0x140096b56
mov qword [rsp + 0x30], rsi
mov edi, r12d
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetMenuItemCount]
test eax, eax
jle 0x140096960
nop word [rax + rax]
xor edx, edx
lea r8d, [rdx + 0x50]
lea rcx, [rsp + 0x40]
call fcn.1400e0460
mov dword [rsp + 0x40], 0x50
mov dword [rbp - 0x50], VarUI4FromDisp
xor edx, edx
mov r8d, VarUI4FromDisp
lea rcx, [rbp - 0x4c]
call fcn.1400e0460
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x140096a51
mov eax, dword [rbp - 0x4c]
cmp eax, 5
jae 0x140096a59
cmp eax, 4
jne 0x140096a51
cmp dword [rbp - 0x48], 0x5a
jae 0x140096a59
mov dword [rsp + 0x40], 0x44
mov dword [rsp + 0x44], 0x32
lea r9, [rsp + 0x40]
mov r8d, 1
mov edx, edi
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetMenuItemInfoW]
mov rbx, qword [rsp + 0x70]
test rbx, rbx
je 0x140096b16
cmp dword [rbx], 0x1313
jne 0x140096b16
mov dword [rsp + 0x44], 0x31
mov eax, dword [rbx + 0x10]
mov dword [rsp + 0x48], eax
mov eax, dword [rbx + 0x14]
mov dword [rsp + 0x4c], eax
mov rax, qword [rbx + 8]
mov qword [rsp + 0x78], rax
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [rbp - 0x80], eax
mov qword [rsp + 0x70], r12
lea r9, [rsp + 0x40]
mov r8d, 1
mov edx, edi
mov rcx, rsi
call qword [sym.imp.USER32.dll_SetMenuItemInfoW]
mov r9d, dword [rsp + 0x50]
mov r8d, dword [rsp + 0x4c]
or r8d, dword [rsp + 0x48]
bts r8d, 0xa
mov rax, qword [rbx + 8]
mov qword [rsp + 0x20], rax
mov edx, edi
mov rcx, rsi
call qword [sym.imp.USER32.dll_ModifyMenuW]
mov rcx, qword [rbx + 8]
call fcn.1400dce58
mov edx, 0x20
mov rcx, rbx
call fcn.1400dce50
inc edi
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetMenuItemCount]
cmp edi, eax
jl 0x140096a00
jmp 0x140096960
call fcn.1400eb3a4
mov dword [rax], 0x22
jmp 0x140096b46
call fcn.1400eb3a4
mov dword [rax], 0x16
call fcn.1400eb1f8
mov ecx, 0x80070057
call fcn.14004a980
nop
mov eax, r15d
mov rcx, qword [rbp + 0xd0]
xor rcx, rsp
call fcn.1400dd830
mov rbx, qword [rsp + 0x228]
add rsp, 0x1e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret