Function at 0x1400bd8c0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xc0
mov qword [rbp + 0x17], 0xfffffffffffffffe
mov rsi, rcx
xor r12d, r12d
mov qword [rbp + 0x77], r12
mov qword [rbp + 0x7f], r12
lea rcx, [rbp + 0x7f]
call qword [sym.imp.USER32.dll_GetCursorPos]
mov edx, 0x197
mov rcx, qword [0x14021cfd0]
call qword [sym.imp.USER32.dll_LoadMenuW]
mov rbx, rax
mov qword [rbp + 0x6f], rax
lea rdx, [0x140190abc]
lea rcx, [rbp - 0x39]
call fcn.14004df84
mov r8, rax
lea rdx, [rbp + 0x67]
lea rcx, [0x14021cdd0]
call fcn.1400cdc10
nop
mov rax, qword [rbp + 0x67]
mov qword [rsp + 0x20], rax
mov r9d, 0x802c
xor r8d, r8d
mov edx, r9d
mov rcx, rbx
call qword [sym.imp.USER32.dll_ModifyMenuW]
lea rdx, [0x140190ac4]
lea rcx, [rbp - 0x31]
call fcn.14004df84
mov r8, rax
lea rdx, [rbp - 0x29]
lea rcx, [0x14021cdd0]
call fcn.1400cdc10
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov rbx, qword [rbp + 0x67]
add rbx, 0xffffffffffffffe8
or r15d, 0xffffffff
cmp rcx, rbx
je 0x1400bd9d6
cmp dword [rbx + 0x10], r12d
jl 0x1400bd9c8
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x1400bd9c8
call fcn.14004ecac
mov rdi, rax
mov ecx, r15d
lock xadd dword [rbx + 0x10], ecx
sub ecx, 1
jg 0x1400bd9be
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rdi + 0x18]
mov qword [rbp + 0x67], rax
jmp 0x1400bd9d6
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp + 0x67]
call fcn.14004edac
nop
mov rdx, qword [rbp - 0x29]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400bd9f4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rbp + 0x67]
mov qword [rsp + 0x20], rax
mov r9d, 0x802a
xor r8d, r8d
mov edx, r9d
mov rcx, qword [rbp + 0x6f]
call qword [sym.imp.USER32.dll_ModifyMenuW]
lea rdx, [0x140190acc]
lea rcx, [rbp - 0x21]
call fcn.14004df84
mov r8, rax
lea rdx, [rbp - 0x19]
lea rcx, [0x14021cdd0]
call fcn.1400cdc10
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov rbx, qword [rbp + 0x67]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x1400bda93
cmp dword [rbx + 0x10], 0
jl 0x1400bda85
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x1400bda85
call fcn.14004ecac
mov rdi, rax
mov ecx, r15d
lock xadd dword [rbx + 0x10], ecx
sub ecx, 1
jg 0x1400bda7b
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rdi + 0x18]
mov qword [rbp + 0x67], rax
jmp 0x1400bda93
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp + 0x67]
call fcn.14004edac
nop
mov rdx, qword [rbp - 0x19]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400bdab1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rbp + 0x67]
mov qword [rsp + 0x20], rax
mov r9d, 0x802b
xor r8d, r8d
mov edx, r9d
mov rbx, qword [rbp + 0x6f]
mov rcx, rbx
call qword [sym.imp.USER32.dll_ModifyMenuW]
mov edx, 0x802a
mov r8d, 1
mov rcx, rbx
call qword [sym.imp.USER32.dll_EnableMenuItem]
mov edx, 0x802c
mov r8d, 1
mov rcx, rbx
call qword [sym.imp.USER32.dll_EnableMenuItem]
mov edx, 0x802b
mov r8d, 1
mov rcx, rbx
call qword [sym.imp.USER32.dll_EnableMenuItem]
mov rcx, rsi
call fcn.1400b9bf0
test eax, eax
je 0x1400bdb49
xor r8d, r8d
mov edx, 0x802a
mov rcx, rbx
call qword [sym.imp.USER32.dll_EnableMenuItem]
mov rcx, rsi
call fcn.1400b9ac0
test eax, eax
je 0x1400bdb49
xor r8d, r8d
mov edx, 0x802c
mov rcx, rbx
call qword [sym.imp.USER32.dll_EnableMenuItem]
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.USER32.dll_OpenClipboard]
mov rdi, r12
test eax, eax
je 0x1400bdb6e
mov ecx, 1
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rdi, rax
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rcx, rsi
call fcn.1400b9ac0
test eax, eax
je 0x1400bdb90
test rdi, rdi
je 0x1400bdb90
xor r8d, r8d
mov edx, 0x802b
mov rcx, rbx
call qword [sym.imp.USER32.dll_EnableMenuItem]
lea rdx, [0x14018b0c4]
lea rcx, [rbp - 0x11]
call fcn.14004df84
mov r8, rax
lea rdx, [rbp - 9]
lea rcx, [0x14021cdd0]
call fcn.1400cdc10
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov rbx, qword [rbp + 0x67]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x1400bdc10
cmp dword [rbx + 0x10], 0
jl 0x1400bdc02
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x1400bdc02
call fcn.14004ecac
mov rdi, rax
mov ecx, r15d
lock xadd dword [rbx + 0x10], ecx
sub ecx, 1
jg 0x1400bdbf8
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rdi + 0x18]
mov qword [rbp + 0x67], rax
jmp 0x1400bdc10
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp + 0x67]
call fcn.14004edac
nop
mov rdx, qword [rbp - 9]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400bdc2e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rbp + 0x67]
mov qword [rsp + 0x20], rax
mov r9d, 0x802d
xor r8d, r8d
mov edx, r9d
mov rdi, qword [rbp + 0x6f]
mov rcx, rdi
call qword [sym.imp.USER32.dll_ModifyMenuW]
call fcn.14004b618
mov rcx, rax
test rax, rax
jne 0x1400bdc68
mov ecx, 0x80004005
call fcn.14004a980
int3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x49], rax
call fcn.14004b618
mov rcx, rax
test rax, rax
jne 0x1400bdc8e
mov ecx, 0x80004005
call fcn.14004a980
int3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x41], rax
lea rdx, [rbp - 0x49]
mov rcx, qword [rsi + 0x3a8]
call fcn.1400d2b50
mov rax, qword [rbp - 0x49]
cmp dword [rax - 0x10], 0
je 0x1400bdcc5
mov rax, qword [rbp - 0x41]
cmp dword [rax - 0x10], 0
je 0x1400bdcc5
xor r8d, r8d
jmp 0x1400bdccb
mov r8d, 1
mov edx, 0x802d
mov rcx, rdi
call qword [sym.imp.USER32.dll_EnableMenuItem]
xor r8d, r8d
lea rdx, [rbp + 0x1f]
lea rcx, [rbp + 0x6f]
call fcn.1400b89d0
mov rbx, qword [rax]
mov qword [rbp + 0x77], rbx
cmp dword [rsi + 0x460], 0
je 0x1400bde80
xor r9d, r9d
xor r8d, r8d
mov edx, 0x800
mov rcx, rbx
call qword [sym.imp.USER32.dll_AppendMenuW]
lea rdx, [0x140190ad4]
lea rcx, [rbp - 1]
call fcn.14004df84
mov r8, rax
lea rdx, [rbp + 7]
lea rcx, [0x14021cdd0]
call fcn.1400cdc10
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov rbx, qword [rbp + 0x67]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x1400bdd91
cmp dword [rbx + 0x10], 0
jl 0x1400bdd83
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x1400bdd83
call fcn.14004ecac
mov rdi, rax
mov ecx, r15d
lock xadd dword [rbx + 0x10], ecx
sub ecx, 1
jg 0x1400bdd79
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rdi + 0x18]
mov qword [rbp + 0x67], rax
jmp 0x1400bdd91
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp + 0x67]
call fcn.14004edac
nop
mov rdx, qword [rbp + 7]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400bddaf
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r9, qword [rbp + 0x67]
xor edx, edx
mov r8d, 0x8029
mov rcx, qword [rbp + 0x77]
call qword [sym.imp.USER32.dll_AppendMenuW]
lea rdx, [0x140190adc]
lea rcx, [rbp + 0xf]
call fcn.14004df84
mov r8, rax
lea rdx, [rbp - 0x59]
lea rcx, [0x14021cdd0]
call fcn.1400cdc10
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov rbx, qword [rbp + 0x67]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x1400bde45
cmp dword [rbx + 0x10], 0
jl 0x1400bde37
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x1400bde37
call fcn.14004ecac
mov rdi, rax
mov ecx, r15d
lock xadd dword [rbx + 0x10], ecx
sub ecx, 1
jg 0x1400bde2d
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rdi + 0x18]
mov qword [rbp + 0x67], rax
jmp 0x1400bde45
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp + 0x67]
call fcn.14004edac
nop
mov rdx, qword [rbp - 0x59]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400bde63
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r9, qword [rbp + 0x67]
xor edx, edx
mov r8d, 0x8027
mov rbx, qword [rbp + 0x77]
mov rcx, rbx
call qword [sym.imp.USER32.dll_AppendMenuW]
mov rdi, qword [rbp + 0x6f]
mov rsi, qword [rsi + 0x10]
mov r14d, dword [rbp + 0x83]
mov edx, r14d
mov ecx, dword [rbp + 0x7f]
call fcn.1400be140
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], r12d
mov r9d, r14d
mov r8d, eax
mov edx, 2
mov rcx, rbx
call qword [sym.imp.USER32.dll_TrackPopupMenu]
test rdi, rdi
je 0x1400bded1
mov rcx, rdi
call qword [sym.imp.USER32.dll_DestroyMenu]
test eax, eax
cmovne rdi, r12
mov qword [rbp + 0x6f], rdi
test rbx, rbx
je 0x1400bdee9
mov rcx, rbx
call qword [sym.imp.USER32.dll_DestroyMenu]
test eax, eax
cmovne rbx, r12
mov qword [rbp + 0x77], rbx
mov rdx, qword [rbp - 0x41]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400bdf07
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rbp - 0x49]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400bdf26
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp + 0x67]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r15d
sub r15d, 1
jg 0x1400bdf44
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rbp + 0x77]
test rcx, rcx
je 0x1400bdf54
call qword [sym.imp.USER32.dll_DestroyMenu]
nop
mov rcx, qword [rbp + 0x6f]
test rcx, rcx
je 0x1400bdf63
call qword [sym.imp.USER32.dll_DestroyMenu]
add rsp, 0xc0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret