Function at 0x140018eb0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rbx, rcx
lea rax, vtable.AppMan.0
mov qword [rcx], rax
mov byte [rcx + 0x474], 1
lea rcx, [rsp + 0x50]
call fcn.1400b6e50
nop
mov rcx, qword [rbx + 0x4d0]
test rcx, rcx
je 0x140018ef2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
xor ecx, ecx
call fcn.140075680
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x140018f0d
mov rax, qword [rcx]
mov edx, 1
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140018f21
mov rax, qword [rcx]
mov edx, 1
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rdx, str.gw_OnShutdown.py
lea rcx, [rsp + 0xb0]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__7]
nop
lea rdx, [rsp + 0xb0]
lea rcx, [rbx + 0x1c0]
call fcn.14000dec0
nop
lea rcx, [rsp + 0xb0]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov rcx, rbx
call fcn.14001c8d0
lea r9, str.Deleting_DBman
mov edx, 5
lea r8d, [rdx - 7]
mov rcx, qword [0x1401776d0]
call fcn.1400a5ff0
mov rcx, qword [0x1401776d8]
test rcx, rcx
je 0x140018f95
mov rax, qword [rcx]
mov edx, 1
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [0x1401776e8]
mov r8, qword [rcx + 0x18]
mov rax, r8
neg rax
sbb rdx, rdx
mov qword [rsp + 0xb8], rdx
test r8, r8
je 0x140019001
nop word [rax + rax]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0xa8]
lea rdx, [rsp + 0xb8]
call sub.mfc140u.dll_Ordinal_5962
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140018fef
mov rax, qword [rcx]
mov edx, 1
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [0x1401776e8]
cmp qword [rsp + 0xb8], 0
jne 0x140018fc0
test rcx, rcx
je 0x140019011
mov rax, qword [rcx]
mov edx, 1
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov qword [0x1401776e8], 0
mov rcx, qword [0x1401776f0]
test rcx, rcx
je 0x140019033
mov rax, qword [rcx]
mov edx, 1
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rcx, [rsp + 0x50]
call fcn.1400b71c0
mov dword [rsp + 0x20], eax
lea r9, str.AppMan_Shutdown_time__d_msecs
mov edx, 5
lea r8d, [rdx - 7]
mov rcx, qword [0x1401776d0]
call fcn.1400a5ff0
mov rdi, qword [0x1401776e0]
test rdi, rdi
je 0x14001907e
mov rcx, rdi
call fcn.140081150
mov edx, CWnd::accDoDefaultAction
mov rcx, rdi
call fcn.1400c7b94
lea r9, str.____GetWire_terminated____
xor edx, edx
lea r8d, [rdx - 2]
mov rcx, qword [0x1401776d0]
call fcn.1400a5ff0
lea r14, [rbx + 0x490]
mov r8d, 1
mov rdx, r14
lea rcx, [rsp + 0x38]
call sub.mfc140u.dll_CRibbonCategoryScroll::CRibbonCategoryScroll
nop
xor esi, esi
cmp qword [rbx + 0x18], rsi
jle 0x1400190f9
xor edi, edi
nop dword [rax]
test rdi, rdi
js 0x1400191be
cmp rdi, qword [rbx + 0x18]
jge 0x1400191be
mov rax, qword [rbx + 0x10]
mov rcx, qword [rax + rdi*8]
test rcx, rcx
je 0x1400190eb
mov rax, qword [rcx]
mov edx, 1
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
inc esi
inc rdi
movsxd rax, esi
cmp rax, qword [rbx + 0x18]
jl 0x1400190c0
xor edx, edx
lea r8, [rdx - 1]
lea rcx, [rbx + 8]
call fcn.14001c6c0
lea rcx, [rsp + 0x38]
call sub.mfc140u.dll_CUserTool::SetToolIcon
mov rcx, qword [0x1401776d0]
test rcx, rcx
je 0x140019128
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [0x1401776c8], 0
lea rcx, [rsp + 0x38]
call sub.mfc140u.dll_CUserTool::SetToolIcon
nop
lea rcx, [rsp + 0x50]
call fcn.1400b6ea0
nop
mov qword [rsp + 0xb0], r14
lea rax, vtable.CCriticalSection.0
mov qword [r14], rax
lea rcx, [r14 + 0x10]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
nop
mov rcx, r14
call sub.mfc140u.dll_CSharedFile::CSharedFile
nop
lea rcx, [rbx + 0x468]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rbx + 0x1c0]
call fcn.14001eb80
nop
lea rcx, [rbx + 0xf0]
call fcn.14008e0c0
nop
lea rcx, [rbx + 0x58]
call fcn.1400b2440
nop
lea rcx, [rbx + 0x48]
call fcn.1400c6d01
nop
lea rcx, [rbx + 8]
add rsp, 0x70
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
jmp fcn.140018e70
call sub.mfc140u.dll_AfxRegDeleteKey
int3