Function at 0x14000f650
Capabilities:
Open clipboard

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rdi, rcx
xor esi, esi
mov rcx, qword [0x140036138]
mov r14d, esi
mov dword [rsp + 0x58], esi
call qword [sym.imp.USER32.dll_GetMenu]
nop dword [rax + rax]
mov rcx, qword [0x1400365c8]
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x58]
mov edx, 0xb0
mov rbp, rax
call qword [sym.imp.USER32.dll_SendMessageW]
nop dword [rax + rax]
mov eax, dword [rsp + 0x60]
lea r15d, [rsi + 1]
cmp dword [rsp + 0x58], eax
mov ebx, esi
mov edx, r15d
mov rcx, rbp
sete bl
call qword [sym.imp.USER32.dll_GetSubMenu]
nop dword [rax + rax]
mov r8d, ebx
mov edx, 0x300
mov rcx, rax
call qword [sym.imp.USER32.dll_EnableMenuItem]
nop dword [rax + rax]
mov edx, r15d
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetSubMenu]
nop dword [rax + rax]
mov r8d, ebx
mov edx, 0x301
mov rcx, rax
call qword [sym.imp.USER32.dll_EnableMenuItem]
nop dword [rax + rax]
mov edx, r15d
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetSubMenu]
nop dword [rax + rax]
mov r8d, ebx
mov edx, 0x303
mov rcx, rax
call qword [sym.imp.USER32.dll_EnableMenuItem]
nop dword [rax + rax]
mov edx, r15d
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetSubMenu]
nop dword [rax + rax]
mov r8d, ebx
lea edx, [rsi + 0x1c]
mov rcx, rax
call qword [sym.imp.USER32.dll_EnableMenuItem]
nop dword [rax + rax]
mov rcx, rdi
call qword [sym.imp.USER32.dll_OpenClipboard]
nop dword [rax + rax]
test eax, eax
je 0x14000f788
mov ecx, r15d
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
nop dword [rax + rax]
mov r14d, eax
call qword [sym.imp.USER32.dll_CloseClipboard]
nop dword [rax + rax]
test r14d, r14d
mov ebx, esi
mov edx, r15d
mov rcx, rbp
sete bl
call qword [sym.imp.USER32.dll_GetSubMenu]
nop dword [rax + rax]
mov r8d, ebx
mov edx, 0x302
mov rcx, rax
call qword [sym.imp.USER32.dll_EnableMenuItem]
nop dword [rax + rax]
mov rcx, qword [0x1400365c8]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0xe]
call qword [sym.imp.USER32.dll_SendMessageW]
nop dword [rax + rax]
mov ebx, r15d
mov edx, r15d
test rax, rax
mov rcx, rbp
cmovne ebx, esi
call qword [sym.imp.USER32.dll_GetSubMenu]
nop dword [rax + rax]
mov r8d, ebx
mov edx, 0x15
mov rcx, rax
call qword [sym.imp.USER32.dll_EnableMenuItem]
nop dword [rax + rax]
mov edx, r15d
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetSubMenu]
nop dword [rax + rax]
mov r8d, ebx
mov edx, 0x16
mov rcx, rax
call qword [sym.imp.USER32.dll_EnableMenuItem]
nop dword [rax + rax]
mov edx, r15d
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetSubMenu]
nop dword [rax + rax]
mov r8d, ebx
mov edx, 0x1d
mov rcx, rax
call qword [sym.imp.USER32.dll_EnableMenuItem]
nop dword [rax + rax]
cmp dword [0x1400363ac], esi
mov ebx, esi
mov edx, r15d
mov rcx, rbp
setne bl
call qword [sym.imp.USER32.dll_GetSubMenu]
nop dword [rax + rax]
mov r8d, ebx
mov edx, 0x18
mov rcx, rax
call qword [sym.imp.USER32.dll_EnableMenuItem]
nop dword [rax + rax]
mov rcx, qword [0x1400365c8]
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc6
call qword [sym.imp.USER32.dll_SendMessageW]
nop dword [rax + rax]
mov edx, r15d
mov rcx, rbp
test eax, eax
sete sil
call qword [sym.imp.USER32.dll_GetSubMenu]
nop dword [rax + rax]
mov r8d, esi
mov edx, 0x10
mov rcx, rax
call qword [sym.imp.USER32.dll_EnableMenuItem]
nop dword [rax + rax]
mov eax, dword [0x1400363ac]
mov edx, 2
neg eax
mov rcx, rbp
sbb ebx, ebx
and ebx, 8
call qword [sym.imp.USER32.dll_GetSubMenu]
nop dword [rax + rax]
mov r8d, ebx
mov edx, 0x20
mov rcx, rax
call qword [sym.imp.USER32.dll_CheckMenuItem]
nop dword [rax + rax]
mov edx, 3
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetSubMenu]
nop dword [rax + rax]
mov ecx, dword [0x1400363b8]
neg ecx
sbb r8d, r8d
and r8d, 8
mov edx, 0x1b
mov rcx, rax
call qword [sym.imp.USER32.dll_CheckMenuItem]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret