Function at 0x14000a078
Capabilities:
Accept command line arguments
Set current directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x7b0]
sub rsp, 0x8b0
mov rax, qword [0x14001c508]
xor rax, rsp
mov qword [rbp + 0x7a0], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdi, rax
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
nop
lea rbx, [0x14001c030]
cmp rbx, 0xffffffffffffffff
je 0x14000a0e5
mov qword [0x14001ddf8], rbx
cmp qword [0x14001c030], 0
je 0x14000a0e5
mov rax, qword [rbx + 0x40]
mov cl, 1
call rax
lea rbx, [rbx + 0x48]
cmp qword [rbx], 0
jne 0x14000a0d3
mov rbx, qword [0x14001dd50]
mov rax, qword [0x14001dd58]
jmp 0x14000a110
mov rcx, qword [rbx]
test rcx, rcx
je 0x14000a10c
mov rax, qword [rcx + 0x38]
mov cl, 1
call rax
mov rax, qword [0x14001dd58]
add rbx, 8
cmp rbx, rax
jb 0x14000a0f5
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x14001de00], eax
mov eax, dword [0x14001245c]
mov dword [rbp - 0x70], eax
movzx eax, word [0x140012460]
mov word [rbp - 0x6c], ax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000a171
mov r8d, 0x400
lea rdx, [rbp - 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14000a171
lea rcx, [rbp - 0x60]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x14000a171
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea rdx, str..exe
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t_]
mov rdx, rdi
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__2]
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc140u.dll_CPngImage::LoadFromBuffer]
mov rcx, rax
call qword [sym.imp.mfc140u.dll_CDHtmlDialog::LoadFromResource]
mov rbx, rax
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc140u.dll_CDHtmlDialog::LoadFromResource]
mov rcx, rax
call qword [sym.imp.mfc140u.dll_CDumpContext::operator__]
xor r8d, r8d
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.mfc140u.dll_CDocObjectServer::XOleObject::EnumAdvise]
mov ebx, eax
test eax, eax
js 0x14000a244
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc140u.dll_CMFCPropertyGridProperty::GetHierarchyLevel]
sub eax, ebx
dec eax
cdqe
lea rcx, [rdi + rax*2]
jmp 0x14000a233
lea rdx, str.UnregServer
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14000a38d
lea rdx, str.RegServer
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14000a37c
lea rdx, str.ParentProcessIdentity
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov rcx, rbx
test eax, eax
jg 0x14000a2b5
lea rdx, [rbp - 0x70]
call fcn.1400077a8
test rax, rax
mov rbx, rax
jne 0x14000a1e8
call sub.acdb24.dll_class_AcDbHostApplicationServices____ptr64___cdecl_acdbHostApplicationServices_void_
lea rbx, [0x14001d180]
mov rcx, rbx
call sub.acdb24.dll_enum_Acad::ErrorStatus___cdecl_acdbSetHostApplicationServices_class_AcDbHostApplicationServices____ptr64_
mov cl, 1
call qword [sym.imp.UTxShared.dll_public:_static_long_int___cdecl_UTxSharedUtil::GetLangLocaleID_bool_]
mov edx, eax
lea rcx, [rsp + 0x40]
call sub.AcPal.dll_public:_void___cdecl_AcLocale::constructor_int____ptr64
lea rcx, [rsp + 0x40]
call sub.acdb24.dll_enum_Acad::ErrorStatus___cdecl_acdbValidateSetup_class_AcLocale_const____ptr64_
lea rcx, [rsp + 0x40]
call sub.AcPal.dll_public:_void___cdecl_AcLocale::destructor_void____ptr64
mov r8b, 1
xor edx, edx
lea rcx, str.AcGeomentObj.dbx
call sub.acdb24.dll_bool___cdecl_acrxLoadModule_wchar_t_const____ptr64__bool__bool_
lea rcx, [0x14001ddb0]
call fcn.14000964c
xor r8d, r8d
lea edx, [r8 + 4]
lea rcx, [0x14001ddb0]
call fcn.14000893c
jmp 0x14000a3a1
mov dword [rsp + 0x40], 0x3a
lea rdx, [rsp + 0x40]
call fcn.1400077a8
test rax, rax
je 0x14000a244
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi64]
mov r8d, eax
mov edx, 1
mov ecx, 0x100400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [0x14001de18], rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x14000a335
mov rdx, qword [0x14001dd98]
cmp rdx, qword [0x14001dda0]
je 0x14000a31d
mov qword [rdx], rax
add qword [0x14001dd98], 8
jmp 0x14000a244
lea r8, [0x14001de18]
lea rcx, [0x14001dd90]
call fcn.140006444
jmp 0x14000a244
call qword [sym.imp.KERNEL32.dll_GetLastError]
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x20], rcx
mov r9d, 0x400
mov r8d, eax
xor edx, edx
mov ecx, 0x1100
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
mov rdx, qword [rsp + 0x58]
lea rcx, str.Invalid_parent_process_ID_Error__s_n
call fcn.14000a428
jmp 0x14000a244
mov byte [0x14001dd11], 1
call fcn.1400089cc
call fcn.140008344
mov byte [0x14001dd11], 0
jmp 0x14000a3d9
lea rcx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x14000a396
lea rcx, [0x14001ddb0]
call fcn.1400094a4
mov rcx, rbx
call fcn.140004430
call fcn.14000d8ad
mov rcx, rbx
call fcn.140003f88
lea rcx, [0x14001ddb0]
call fcn.14000978c
call qword [sym.imp.ole32.dll_CoUninitialize]
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
xor eax, eax
mov rcx, qword [rbp + 0x7a0]
xor rcx, rsp
call fcn.14000df40
lea r11, [rsp + 0x8b0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret