Function at 0x1800021ec
Capabilities:
Print debug messages

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x4e8]
sub rsp, 0x5e8
mov rax, qword [0x180025070]
xor rax, rsp
mov qword [rbp + 0x4d0], rax
mov r15, rcx
lea rcx, str.QueryContextMenu
mov r13d, r9d
mov ebx, r8d
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test byte [rbp + 0x558], 2
jne 0x1800026f0
mov rcx, r15
mov r14d, r13d
call fcn.180001e78
test byte [rbp + 0x558], 1
mov edi, eax
mov dword [rsp + 0x20], eax
jne 0x1800026f0
xor esi, esi
test r12, r12
je 0x1800026f0
test eax, eax
je 0x1800026f0
lea rcx, [rbp + 0xb2]
xor edx, edx
mov r8d, 0x206
mov word [rbp + 0xb0], si
call fcn.18000ac00
lea rcx, [r15 + 0x30]
xor edx, edx
call fcn.1800032e4
mov rcx, rax
call fcn.18000316c
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea rcx, [rbp + 0xb0]
mov edx, 0x208
mov r8, rax
call fcn.180001a84
lea rcx, [rbp + 0xb0]
call qword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
cmp qword [r15 + 0x28], rsi
jne 0x1800022f2
call fcn.18000219c
mov rcx, qword [0x1800283f0]
mov edx, 0xcc
test eax, eax
jne 0x1800022e8
mov edx, 0xca
call qword [sym.imp.USER32.dll_LoadBitmapW]
mov qword [r15 + 0x28], rax
mov esi, 0x50
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, esi
call fcn.18000ac00
mov rax, qword [r15 + 0x28]
mov dword [rsp + 0x50], esi
lea rcx, [rbp - 0x60]
xor esi, esi
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x5c], esi
call fcn.180001ccc
cmp ebx, 1
mov ebx, 1
lea r9, [rsp + 0x50]
seta sil
mov rcx, r12
mov r8d, ebx
mov edx, esi
mov dword [rsp + 0x54], 0x100
mov dword [rsp + 0x58], 0x800
call qword [sym.imp.USER32.dll_InsertMenuItemW]
add esi, ebx
xor eax, eax
mov qword [rsp + 0x54], 0x4b
test dil, 4
je 0x1800023d6
lea edx, [rbx + 7]
lea rcx, [rsp + 0x28]
xor r8d, r8d
mov dword [rsp + 0x24], eax
call fcn.1800018bc
lea rcx, [r15 + 0x48]
lea rdx, [rsp + 0x24]
mov rbx, rax
call fcn.18000332c
mov rdx, rbx
mov rcx, rax
call fcn.180002724
lea rcx, [rsp + 0x28]
call fcn.180002718
lea rcx, [rbp + 0x88]
call fcn.18000316c
mov ebx, 1
lea r9, [rsp + 0x50]
mov r8d, ebx
mov edx, esi
mov rcx, r12
mov qword [rbp - 0x78], rax
mov dword [rsp + 0x60], r13d
lea r14d, [r13 + 1]
call qword [sym.imp.USER32.dll_InsertMenuItemW]
add esi, ebx
test bl, dil
je 0x18000250f
mov eax, r14d
lea rcx, [rsp + 0x28]
xor r8d, r8d
sub eax, r13d
mov edx, ebx
mov dword [rsp + 0x24], eax
call fcn.1800018bc
lea rdx, [rsp + 0x24]
lea rcx, [r15 + 0x48]
mov rbx, rax
call fcn.18000332c
mov rdx, rbx
mov rcx, rax
call fcn.180002724
lea rcx, [rsp + 0x28]
call fcn.180002718
lea rcx, [rbp - 0x58]
call fcn.18000316c
mov dword [rsp + 0x60], r14d
lea r9, [rsp + 0x50]
mov r8d, 1
mov edx, esi
mov rcx, r12
mov qword [rbp - 0x78], rax
inc r14d
call qword [sym.imp.USER32.dll_InsertMenuItemW]
xor eax, eax
lea rcx, [rbp + 0x2c2]
xor edx, edx
mov r8d, 0x206
inc esi
mov word [rbp + 0x2c0], ax
call fcn.18000ac00
lea rcx, [rbp + 0xb0]
call fcn.180001abc
lea rcx, [rbp - 0x38]
call fcn.18000316c
lea r9, [rbp + 0xb0]
lea rcx, [rbp + 0x2c0]
mov r8, rax
mov edx, 0x208
call fcn.180001b04
mov eax, r14d
lea r8, [rbp + 0xb0]
sub eax, r13d
lea rcx, [rsp + 0x28]
mov edx, 2
mov dword [rsp + 0x24], eax
call fcn.1800018bc
lea rdx, [rsp + 0x24]
lea rcx, [r15 + 0x48]
mov rbx, rax
call fcn.18000332c
mov rdx, rbx
mov rcx, rax
call fcn.180002724
lea rcx, [rsp + 0x28]
call fcn.180002718
lea rax, [rbp + 0x2c0]
mov ebx, 1
mov dword [rsp + 0x60], r14d
lea r9, [rsp + 0x50]
mov r8d, ebx
mov edx, esi
mov rcx, r12
mov qword [rbp - 0x78], rax
add r14d, ebx
call qword [sym.imp.USER32.dll_InsertMenuItemW]
mov edi, dword [rsp + 0x20]
add esi, ebx
test dil, 2
je 0x1800026a9
xor r8d, r8d
mov eax, r14d
lea rcx, [rsp + 0x28]
sub eax, r13d
lea edx, [r8 + 5]
lea rdi, [r15 + 0x48]
mov dword [rsp + 0x20], eax
call fcn.1800018bc
lea rdx, [rsp + 0x20]
mov rcx, rdi
mov rbx, rax
call fcn.18000332c
mov rdx, rbx
mov rcx, rax
call fcn.180002724
lea rcx, [rsp + 0x28]
call fcn.180002718
lea rcx, [rbp + 0x28]
call fcn.18000316c
mov r15d, 1
mov dword [rsp + 0x60], r14d
lea r9, [rsp + 0x50]
mov r8d, r15d
mov edx, esi
mov rcx, r12
mov qword [rbp - 0x78], rax
add r14d, r15d
call qword [sym.imp.USER32.dll_InsertMenuItemW]
mov eax, r14d
lea edx, [r15 + 6]
sub eax, r13d
lea rcx, [rsp + 0x28]
xor r8d, r8d
mov dword [rsp + 0x20], eax
add esi, r15d
call fcn.1800018bc
lea rdx, [rsp + 0x20]
mov rcx, rdi
mov rbx, rax
call fcn.18000332c
mov rdx, rbx
mov rcx, rax
call fcn.180002724
lea rcx, [rsp + 0x28]
call fcn.180002718
lea rcx, [rbp + 0x48]
call fcn.18000316c
mov dword [rsp + 0x60], r14d
lea r9, [rsp + 0x50]
mov r8d, r15d
mov edx, esi
mov rcx, r12
mov qword [rbp - 0x78], rax
add r14d, r15d
call qword [sym.imp.USER32.dll_InsertMenuItemW]
xor eax, eax
lea rcx, [rbp + 0x2c2]
xor edx, edx
mov r8d, 0x206
add esi, r15d
mov word [rbp + 0x2c0], ax
call fcn.18000ac00
lea rcx, [rbp + 0x68]
call fcn.18000316c
lea r9, [rbp + 0xb0]
lea rcx, [rbp + 0x2c0]
mov r8, rax
mov edx, 0x208
call fcn.180001b04
mov eax, r14d
lea r8, [rbp + 0xb0]
sub eax, r13d
lea edx, [r15 + 5]
lea rcx, [rsp + 0x28]
mov dword [rsp + 0x20], eax
call fcn.1800018bc
lea rdx, [rsp + 0x20]
mov rcx, rdi
mov rbx, rax
call fcn.18000332c
mov rcx, rax
mov rdx, rbx
call fcn.180002724
lea rcx, [rsp + 0x28]
call fcn.180002718
lea rax, [rbp + 0x2c0]
mov ebx, r15d
mov dword [rsp + 0x60], r14d
lea r9, [rsp + 0x50]
mov r8d, ebx
mov edx, esi
mov rcx, r12
mov qword [rbp - 0x78], rax
add r14d, ebx
call qword [sym.imp.USER32.dll_InsertMenuItemW]
add esi, ebx
xor eax, eax
lea r9, [rsp + 0x50]
mov r8d, ebx
mov edx, esi
mov rcx, r12
mov dword [rsp + 0x54], 0x100
mov dword [rsp + 0x58], 0x800
mov dword [rsp + 0x60], eax
call qword [sym.imp.USER32.dll_InsertMenuItemW]
lea rcx, str.QueryContextMenu_end_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, [rbp - 0x60]
call fcn.180001c68
sub r14d, r13d
mov eax, r14d
jmp 0x1800026f2
xor eax, eax
mov rcx, qword [rbp + 0x4d0]
xor rcx, rsp
call fcn.18000a9b0
add rsp, 0x5e8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret