Function at 0x101463c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xc0
cmp dword [rdx + 0x10], 0xfffffd3a
mov r15, r8
mov r14, rdx
mov rbx, rcx
jne 0x101494b
call qword [sym.imp.USER32.dll_CreatePopupMenu]
xor r13d, r13d
xor ebp, ebp
mov rsi, rax
mov rdi, qword [0x01031110]
mov byte [rsp + 0x48], 0
lea rcx, [rdi + 0x28]
mov qword [rsp + 0x40], rcx
lea rcx, [rsp + 0x40]
call fcn.01015798
cmp byte [rsp + 0x48], 0
mov edi, dword [rdi + 0x20]
je 0x10146b8
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [rsp + 0x48], 0
cmp ebp, edi
jae 0x10147a5
mov rcx, qword [0x01031110]
and qword [rsp + 0xf8], 0
lea r8, [rsp + 0xf8]
mov edx, ebp
call fcn.0101ba68
test eax, eax
js 0x101479e
mov r12, qword [rsp + 0xf8]
test r12, r12
je 0x101479e
cmp dword [r12 + 0x1c], 1
jne 0x101479e
mov edi, 0x50
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8, rdi
call sub.msvcrt.dll_memset
mov dword [rsp + 0x50], edi
mov dword [rsp + 0x54], 0x63
mov qword [rsp + 0x80], r12
mov rcx, qword [r12 + 0x28]
call fcn.010229f0
and dword [rsp + 0x5c], 0
or rcx, 0xffffffffffffffff
lea edx, [rbp + 0x8002]
mov rdi, rax
mov qword [rsp + 0x88], rax
xor eax, eax
mov dword [rsp + 0x60], edx
lea r9, [rsp + 0x50]
repne scasw ax, word [rdi]
lea r8d, [rax + 1]
not rcx
dec rcx
cmp r12, qword [rbx + 0x48]
cmove r13d, edx
mov dword [rsp + 0x90], ecx
xor edx, edx
mov rcx, rsi
call qword [sym.imp.USER32.dll_InsertMenuItemW]
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x101479e
call qword [sym.imp.ole32.dll_CoTaskMemFree]
and qword [rsp + 0x88], 0
inc ebp
jmp 0x101467f
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetMenuItemCount]
and dword [rsp + 0x20], 0
mov r9d, r13d
lea r8d, [rax + 0x8001]
mov edx, 0x8002
mov rcx, rsi
call qword [sym.imp.USER32.dll_CheckMenuRadioItem]
movsxd r8, dword [r14 + 0x18]
mov rcx, qword [r14]
lea r9, [rsp + 0x30]
mov edx, 0x433
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [r14]
lea r8, [rsp + 0x30]
mov r9d, 2
xor edx, edx
call qword [sym.imp.USER32.dll_MapWindowPoints]
mov rcx, qword [rbx + 8]
mov edx, 0xffffffec
movdqu xmm0, xmmword [rsp + 0x30]
mov dword [rsp + 0xa0], 0x14
movdqu xmmword [rsp + 0xa4], xmm0
call qword [sym.imp.USER32.dll_GetWindowLongW]
mov r8d, dword [rsp + 0x30]
mov r9d, dword [rsp + 0x3c]
bt eax, 0x16
lea rax, [rsp + 0xa0]
mov edx, 0x11c2
cmovb r8d, dword [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov rax, qword [rbx + 8]
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_TrackPopupMenuEx]
mov r12d, 0x50
mov edi, eax
test eax, eax
je 0x10148d9
lea rcx, [rsp + 0x50]
mov r8, r12
xor edx, edx
call sub.msvcrt.dll_memset
lea r9, [rsp + 0x50]
xor r8d, r8d
mov edx, edi
mov rcx, rsi
mov dword [rsp + 0x50], r12d
mov dword [rsp + 0x54], 0x22
mov dword [rsp + 0x60], edi
call qword [sym.imp.USER32.dll_GetMenuItemInfoW]
mov rdi, qword [rsp + 0x80]
cmp qword [rbx + 0x48], rdi
je 0x10148d9
cmp qword [rbx + 0x48], 0
je 0x10148b6
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x28]
mov rax, qword [rbx]
mov rdx, rdi
mov rcx, rbx
call qword [rax + 0x30]
mov rcx, rbx
call fcn.01018554
mov rcx, qword [rbx + 8]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_InvalidateRect]
mov rcx, rsi
xor edi, edi
call qword [sym.imp.USER32.dll_GetMenuItemCount]
test eax, eax
jle 0x101493b
lea rcx, [rsp + 0x50]
mov r8, r12
xor edx, edx
call sub.msvcrt.dll_memset
lea r9, [rsp + 0x50]
mov r8d, 1
mov edx, edi
mov rcx, rsi
mov dword [rsp + 0x50], r12d
mov dword [rsp + 0x54], 0x20
call qword [sym.imp.USER32.dll_GetMenuItemInfoW]
test eax, eax
je 0x101492c
mov rcx, qword [rsp + 0x80]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, rsi
inc edi
call qword [sym.imp.USER32.dll_GetMenuItemCount]
cmp edi, eax
jl 0x10148e8
mov rcx, rsi
call qword [sym.imp.USER32.dll_DestroyMenu]
mov dword [r15], 1
lea r11, [rsp + 0xc0]
xor eax, eax
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret