Function at 0x140001190
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x108]
sub rsp, 0x1f0
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140006008]
xor rax, rsp
mov qword [rbp + 0xe0], rax
mov rbx, rcx
xor esi, esi
mov dword [rsp + 0x60], esi
lea rcx, [rbp + 0x40]
call qword [sym.imp.mfc140u.dll_CColorDialog::CColorDialog]
lea r14, vtable.UserDataCommandLineInfo.0
mov qword [rbp + 0x40], r14
lea rcx, [rbp + 0x88]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
lea rcx, [rbp + 0x90]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
lea rdx, [rbp + 0x40]
mov rcx, rbx
call qword [sym.imp.mfc140u.dll_CMFCPrintPreviewToolBar::OnToolHitTest]
mov rdx, qword [rbp + 0x88]
mov rcx, qword [rbp + 0x90]
call qword [sym.imp.UserData.dll_acudInitProductParams]
call qword [sym.imp.UserData.dll_void___cdecl_SetWorkingDirectory_void_]
lea rcx, str.DwgCheckStandardsRes.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
lea rcx, [rbp + 0x10]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
test rdi, rdi
jne 0x14000127e
lea rdx, str.Cannot_find_or_error_loading:
lea rcx, [rbp + 0x10]
call qword [sym.imp.mfc140u.dll_CMFCControlRendererInfo::CMFCControlRendererInfo]
lea rdx, str.DwgCheckStandardsRes.dll
lea rcx, [rbp + 0x10]
call qword [sym.imp.mfc140u.dll_COleCurrency::operator_]
xor r8d, r8d
lea edx, [rsi + 0x10]
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.mfc140u.dll_AfxInitNetworkAddressControl]
jmp 0x1400015e2
call qword [sym.imp.mfc140u.dll_AfxFieldText]
mov qword [rax + 0x18], rdi
mov edx, 0x899
lea rcx, [rbp + 0x30]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__1]
nop
mov rcx, qword [rbx + 0xa0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsdup]
mov qword [rbx + 0xa0], rax
mov rdx, qword [rbx + 0x90]
lea rcx, [rbp + 0x28]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__2]
nop
mov edx, 0x2f
xor r8d, r8d
lea rcx, [rbp + 0x28]
call qword [sym.imp.mfc140u.dll_CPaneFrameWnd::EnterDragMode]
cmp eax, 0xffffffff
setne bl
mov edx, 1
lea rcx, [rbp + 0xa0]
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x140001315
lea r9d, [rax + 0x10]
lea r8, [0x140003734]
lea rdx, str.Cannot_initialize_security_descriptor
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x1400015cc
mov dword [rsp + 0x70], 0x18
lea rax, [rbp + 0xa0]
mov qword [rsp + 0x78], rax
mov dword [rbp - 0x80], 1
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp - 0x70], 0x68
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsdup]
mov qword [rbp - 0x58], rax
mov dword [rbp - 0x34], 0x101
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbp - 0x20], rax
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbp - 0x18], rax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x20], 0xffffffffffffffff
je 0x1400015cc
cmp qword [rbp - 0x18], 0xffffffffffffffff
je 0x1400015cc
cmp rax, 0xffffffffffffffff
je 0x1400015cc
neg bl
sbb ax, ax
and ax, 5
mov word [rbp - 0x30], ax
mov ecx, 0x800
call qword [sym.imp.mfc140u.dll_operator]
mov rbx, rax
mov r8d, 0x400
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov rdx, rbx
lea rcx, [rbp + 0x20]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__2]
nop
mov edx, 2
mov rcx, rbx
call fcn.14000206c
lea rcx, [rbp + 8]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
lea rdx, [0x1400037fc]
lea rcx, [rbp]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__2]
nop
mov edx, 0x5c
lea rcx, [rbp + 0x20]
call qword [sym.imp.mfc140u.dll_COleControl::ReleaseCaches]
mov r8d, eax
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x20]
call qword [sym.imp.mfc140u.dll_CStringList::InsertBefore]
nop
mov rdx, rax
lea rcx, [rbp]
call qword [sym.imp.mfc140u.dll_Ordinal_1667]
nop
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
lea rdx, [0x140003800]
lea rcx, [rbp]
call qword [sym.imp.mfc140u.dll_COleCurrency::operator_]
lea rdx, str.VoltaireTheAutoDog
lea rcx, [rbp + 8]
call qword [sym.imp.mfc140u.dll_CMFCControlRendererInfo::CMFCControlRendererInfo]
lea rdx, [rbp + 0x28]
lea rcx, [rbp + 8]
call qword [sym.imp.mfc140u.dll_Ordinal_1667]
nop
lea rcx, [rbp]
call qword [sym.imp.mfc140u.dll_CMFCRibbonUndoButton::GetIconSize]
mov rdx, rax
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc140u.dll_Ordinal_285]
mov rbx, rax
mov dword [rsp + 0x60], 1
lea r9, [0x140003850]
mov rcx, 0xffffffffffffffff
nop dword [rax]
inc rcx
cmp word [r9 + rcx*2], 0
jne 0x1400014b0
mov rdx, qword [rbp]
mov dword [rsp + 0x20], ecx
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc140u.dll_CMFCTasksPane::CollapseAllGroups]
lea r8, [rbp + 8]
mov rdx, rbx
lea rcx, [rbp + 0x18]
call fcn.140001640
nop
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov rax, qword [rbp + 0x18]
mov edx, dword [rax - 0x10]
inc edx
lea rcx, [rbp + 0x18]
call qword [sym.imp.mfc140u.dll_Ordinal_4946]
mov rdx, rax
lea rax, [rbp + 0xc8]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 1
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1400015a0
mov rax, qword [rbp]
mov qword [rsp + 0x68], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], esi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, reloc.mfc140u.dll_CBlobProperty::Release
mov r9d, reloc.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
xor r8d, r8d
lea edx, [r8 + 0x40]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.mfc140u.dll_AfxInitNetworkAddressControl]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
lea rcx, [rbp + 0x18]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rbp]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rbp + 8]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rbp + 0x20]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rbp + 0x28]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rbp + 0x30]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rbp + 0x10]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
mov qword [rbp + 0x40], r14
lea rcx, [rbp + 0x90]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
lea rcx, [rbp + 0x88]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
lea rcx, [rbp + 0x40]
call qword [sym.imp.mfc140u.dll_CAnimationVariable::CAnimationVariable]
xor eax, eax
mov rcx, qword [rbp + 0xe0]
xor rcx, rsp
call fcn.140001c20
lea r11, [rsp + 0x1f0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret