Function at 0x180004660
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x18002b040]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov qword [rsp + 0x60], r8
mov r12, rdx
mov rdi, rcx
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x68], rdx
xor esi, esi
mov dword [rsp + 0x38], esi
lea rdx, [rsp + 0x38]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x1800048bc
mov r8d, dword [rsp + 0x38]
test r8d, r8d
je 0x1800048bc
xor edx, edx
lea ecx, [rsi + 0x18]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r14, rax
test rax, rax
je 0x1800048bc
mov rcx, qword [r12]
mov eax, dword [rcx - 0x10]
mov dword [rsp + 0x48], eax
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
xor r9d, r9d
xor r8d, r8d
mov edx, 0x418
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageW]
mov r13, rax
mov dword [rsp + 0x20], 0x40
xor edx, edx
mov r9d, 0x1000
mov r8d, operator
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r15, rax
test rax, rax
je 0x18000484f
mov ebx, esi
test r13d, r13d
jle 0x180004836
nop dword [rax]
nop word [rax + rax]
movsxd r8, ebx
mov r9, r15
mov edx, 0x44b
mov rcx, rdi
call qword [sym.imp.USER32.dll_SendMessageW]
test rax, rax
je 0x180004829
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, operator
lea r8, [rbp - 0x80]
mov rdx, r15
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x180004829
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CMFCControlRendererInfo::CMFCControlRendererInfo]
mov r8d, dword [rsp + 0x48]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CStringList::InsertBefore]
nop
mov rdx, rax
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_Ordinal_1501]
nop
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov rdx, qword [rsp + 0x40]
mov rcx, r12
call qword [sym.imp.mfc140u.dll_CFileFind::CloseContext]
test eax, eax
jne 0x180004829
lea edx, [rax + 0x28]
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_COleControl::ReleaseCaches]
mov edi, eax
test eax, eax
js 0x180004824
lea r8d, [rax + 1]
lea rdx, [0x18001a584]
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CDocObjectServer::XOleObject::EnumAdvise]
test eax, eax
jns 0x18000487d
mov rdi, qword [rsp + 0x58]
inc ebx
cmp ebx, r13d
jl 0x180004760
xor esi, esi
mov r9d, 0x1000
mov r8d, operator
mov rdx, r15
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, r12
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov eax, esi
jmp 0x1800048c7
sub eax, edi
lea r9d, [rax - 1]
lea r8d, [rdi + 1]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CMouseManager::LoadState]
nop
mov rdx, rax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.mfc140u.dll_Ordinal_1501]
nop
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov esi, 1
jmp 0x180004836
mov rcx, r12
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
xor eax, eax
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.1800151d0
mov rbx, qword [rsp + 0x2f8]
add rsp, 0x2a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret