Function at 0x140001470
Capabilities:
Terminate process

Disassembly:
mov r11, rsp
push rsi
push rdi
push r12
sub rsp, 0x420
mov qword [rsp + 0xa0], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov rax, qword [0x140028030]
xor rax, rsp
mov qword [rsp + 0x410], rax
mov rbp, rcx
lea rcx, [r11 - 0x388]
call qword [sym.imp.MSVCR90.dll_public:_void___cdecl_std::exception::constructor_void____ptr64]
nop
xor edi, edi
mov qword [rsp + 0xf0], rdi
mov qword [rsp + 0xd8], rdi
mov dword [rsp + 0xe0], edi
mov qword [rsp + 0xe8], rdi
mov qword [rsp + 0x300], rdi
mov dword [rsp + 0xe4], edi
mov word [rsp + 0xf8], di
lea rax, vtable.ADDPLWIZ_Error.0
mov qword [rsp + 0xb0], rax
lea rax, vtable.ADDPLWIZ_Error.1.0
mov qword [rsp + 0xc8], rax
mov byte [rbp + 0x1868], dil
lea rdx, [rbp + 0x148]
mov rcx, rbp
call sub.mfc90u.dll_CDocManager::AddDocTemplate
lea rdx, [rbp + 0x260]
mov rcx, rbp
call sub.mfc90u.dll_CDocManager::AddDocTemplate
lea rdx, [rbp + 0x578]
mov rcx, rbp
call sub.mfc90u.dll_CDocManager::AddDocTemplate
lea rdx, [rbp + 0x698]
mov rcx, rbp
call sub.mfc90u.dll_CDocManager::AddDocTemplate
lea rdx, [rbp + 0x860]
mov rcx, rbp
call sub.mfc90u.dll_CDocManager::AddDocTemplate
lea rdx, [rbp + 0xe00]
mov rcx, rbp
call sub.mfc90u.dll_CDocManager::AddDocTemplate
lea rdx, [rbp + 0x1290]
mov rcx, rbp
call sub.mfc90u.dll_CDocManager::AddDocTemplate
lea rdx, [rbp + 0x1458]
mov rcx, rbp
call sub.mfc90u.dll_CDocManager::AddDocTemplate
lea rdx, [rbp + 0x1590]
mov rcx, rbp
call sub.mfc90u.dll_CDocManager::AddDocTemplate
lea rdx, [rbp + 0x16c0]
mov rcx, rbp
call sub.mfc90u.dll_CDocManager::AddDocTemplate
or dword [rbp + 0xac], 0x20
mov qword [rbp + 0x258], rbp
mov qword [rbp + 0x370], rbp
mov qword [rbp + 0x688], rbp
mov qword [rbp + 0x7a8], rbp
mov qword [rbp + 0x998], rbp
mov qword [rbp + 0xf10], rbp
mov qword [rbp + 0x13a0], rbp
mov qword [rbp + 0x1588], rbp
mov qword [rbp + 0x16a0], rbp
mov qword [rbp + 0x17d0], rbp
call sub.apperr.dll_HD_Create_App_Error_Handler
mov rbx, rax
cmp qword [rbp + 0x1860], rdi
je 0x140001635
call qword [sym.imp.plotcfg10.dll_class_HT_SPMem_Pool____ptr64___cdecl_SPMP_void_]
mov r8, qword [rax]
mov rdx, qword [rbp + 0x1860]
mov rcx, rax
call qword [r8 + 0x10]
test eax, eax
jne 0x140001635
mov rcx, qword [rbp + 0x1860]
test rcx, rcx
je 0x140001635
mov rax, qword [rcx]
lea edx, [rdi + 1]
call qword [rax]
test rbx, rbx
je 0x14000164d
call qword [sym.imp.plotcfg10.dll_class_HT_SPMem_Pool____ptr64___cdecl_SPMP_void_]
mov r8, qword [rax]
mov rdx, rbx
mov rcx, rax
call qword [r8 + 8]
mov qword [rbp + 0x1860], rbx
mov rcx, rbx
test rbx, rbx
je 0x140001662
call qword [sym.imp.hcreg10.dll_hcreg_SetErrorHandler]
lea rcx, [rsp + 0x40]
call qword [sym.imp.hcreg10.dll_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______cdecl_GetDriverDirectory_void_]
nop
mov rdx, qword [rax]
lea rcx, [rsp + 0x58]
call qword [sym.imp.heidi10.dll_public:_void___cdecl_HT_String::constructor_wchar_t_const____ptr64____ptr64]
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc90u.dll_CView::CView]
mov r11d, edi
mov eax, dword [rsp + 0x68]
test eax, eax
cmovg r11d, eax
test r11d, r11d
jne 0x1400016a3
xor ecx, ecx
call qword [sym.imp.MSVCR90.dll_exit]
int3
lea rcx, [rsp + 0x50]
call qword [sym.imp.hcreg10.dll_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______cdecl_GetPMPDirectory_void_]
nop
mov rdx, qword [rax]
lea rcx, [rsp + 0x88]
call qword [sym.imp.heidi10.dll_public:_void___cdecl_HT_String::constructor_wchar_t_const____ptr64____ptr64]
nop
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc90u.dll_CView::CView]
mov r11d, edi
mov eax, dword [rsp + 0x98]
test eax, eax
cmovg r11d, eax
test r11d, r11d
jne 0x1400016ea
xor ecx, ecx
call qword [sym.imp.MSVCR90.dll_exit]
int3
lea rcx, [rsp + 0x48]
call qword [sym.imp.hcreg10.dll_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______cdecl_GetPlotStylesDirectory_void_]
nop
mov rdx, qword [rax]
lea rcx, [rsp + 0x70]
call qword [sym.imp.heidi10.dll_public:_void___cdecl_HT_String::constructor_wchar_t_const____ptr64____ptr64]
nop
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc90u.dll_CView::CView]
mov r11d, edi
mov eax, dword [rsp + 0x80]
test eax, eax
cmovg r11d, eax
test r11d, r11d
jne 0x14000172e
xor ecx, ecx
call qword [sym.imp.MSVCR90.dll_exit]
int3
mov rbx, qword [rbp + 0x1860]
test rbx, rbx
je 0x1400017d8
lea rcx, [rsp + 0x30]
call qword [sym.imp.hcreg10.dll_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______cdecl_GetProductName_void_]
nop
mov r8, qword [rbx]
mov rdx, qword [rax]
mov rcx, rbx
call qword [r8 + 0xb8]
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc90u.dll_CView::CView]
mov rbx, qword [rbp + 0x1860]
lea rcx, [rsp + 0x30]
call qword [sym.imp.hcreg10.dll_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______cdecl_GetProgramName_void_]
nop
mov r8, qword [rbx]
mov rdx, qword [rax]
mov rcx, rbx
call qword [r8 + 0xc0]
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc90u.dll_CView::CView]
mov rbx, qword [rbp + 0x1860]
lea rcx, [rsp + 0x30]
call qword [sym.imp.hcreg10.dll_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______cdecl_GetCompanyName_void_]
nop
mov r8, qword [rbx]
mov rdx, qword [rax]
mov rcx, rbx
call qword [r8 + 0xc8]
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc90u.dll_CView::CView]
mov rcx, qword [rbp + 0x1860]
mov rax, qword [rcx]
lea rdx, str.log.log
call qword [rax + 0x48]
cmp qword [rbp + 0x1850], 0
jne 0x140001890
mov ecx, 0x130
call qword [sym.imp.heidi10.dll_public:_static_void____ptr64___cdecl_HT_Object::operator_new_unsigned_long_long_unsigned___int64__]
mov r12, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140001836
lea rdx, [rbp + 0x1860]
lea rcx, [rsp + 0x38]
call fcn.140001cb0
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x88]
lea rdx, [rsp + 0x58]
mov rcx, r12
call qword [sym.imp.plcfmgr.dll_public:_void___cdecl_HT_Plot_Config_Manager::constructor_class_HT_String____ptr64__class_HT_String____ptr64__class_HT_String____ptr64__class_HT_Smart_Pointer_class_HT_Error_Handler___unsigned_long_int____ptr64]
mov rdi, rax
cmp qword [rbp + 0x1850], 0
je 0x140001871
call qword [sym.imp.plotcfg10.dll_class_HT_SPMem_Pool____ptr64___cdecl_SPMP_void_]
mov r8, qword [rax]
mov rdx, qword [rbp + 0x1850]
mov rcx, rax
call qword [r8 + 0x10]
test eax, eax
jne 0x140001871
mov rcx, qword [rbp + 0x1850]
test rcx, rcx
je 0x140001871
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
test rdi, rdi
je 0x140001889
call qword [sym.imp.plotcfg10.dll_class_HT_SPMem_Pool____ptr64___cdecl_SPMP_void_]
mov r8, qword [rax]
mov rdx, rdi
mov rcx, rax
call qword [r8 + 8]
mov qword [rbp + 0x1850], rdi
lea rdx, [rbp + 0x1850]
lea rcx, [rsp + 0x38]
call fcn.140001cb0
mov rdx, rax
mov rcx, rbp
call fcn.140001d00
lea rdx, [rbp + 0x1860]
lea rcx, [rsp + 0x38]
call fcn.140001cb0
mov rdx, rax
mov rcx, rbp
call fcn.140001bf0
nop
lea rcx, [rsp + 0x70]
call qword [sym.imp.heidi10.dll_public_virtual:_void___cdecl_HT_String::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x88]
call qword [sym.imp.heidi10.dll_public_virtual:_void___cdecl_HT_String::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x58]
call qword [sym.imp.heidi10.dll_public_virtual:_void___cdecl_HT_String::destructor_void____ptr64]
nop
lea rcx, [rsp + 0xb0]
call qword [sym.imp.plotcfg10.dll_public_virtual:_void___cdecl_HT_Exception::destructor_void____ptr64]
mov rcx, qword [rsp + 0x410]
xor rcx, rsp
call fcn.140013160
lea r11, [rsp + 0x420]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret