Function at 0x40a7e0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4103e2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push ebp
push esi
mov ebp, ecx
push edi
push 0x415ae8
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov dword [esp + 0x3c], 0
call sub.MFC42.DLL_CStringArray::CStringArray
push 0x68
mov byte [esp + 0x40], 1
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x3c], 2
je 0x40a846
push 0
mov ecx, eax
call fcn.0040d300
mov edi, eax
jmp 0x40a848
xor edi, edi
push 0
push 0x84
mov ecx, edi
mov byte [esp + 0x44], 1
call sub.MFC42.DLL_CDialog::Create
push 0
mov ecx, edi
call sub.MFC42.DLL_CWnd::CenterWindow
mov ebx, 5
mov ecx, edi
push ebx
call sub.MFC42.DLL_CWnd::ShowWindow
mov ecx, dword [0x415ae4]
lea eax, [esp + 0x18]
push 0x84
push eax
call fcn.0040bef0
mov esi, dword [eax]
mov byte [esp + 0x3c], 3
test esi, esi
je 0x40a8bb
mov eax, dword [esi + 4]
test eax, eax
jne 0x40a8b6
mov ecx, dword [esi]
push ecx
call fcn.0040edb3
test eax, eax
mov dword [esi + 4], eax
jne 0x40a8b6
cmp dword [esi], 0
je 0x40a8b6
push 0x8007000e
call fcn.0040ecf2
mov esi, dword [esi + 4]
jmp 0x40a8bd
xor esi, esi
push esi
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x18]
mov byte [esp + 0x3c], bl
test eax, eax
je 0x40a8f8
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x40a8f0
test esi, esi
je 0x40a8f0
push 1
mov ecx, esi
call fcn.004045a0
mov dword [esp + 0x18], 0
push ebx
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x24]
push eax
call fcn.0040d4a0
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], 6
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c], bl
call fcn.0040e8b6
lea ecx, [esp + 0x14]
push ecx
lea ecx, [edi + 0x64]
call sub.MFC42.DLL_CString::operator
mov ecx, edi
call fcn.0040d480
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CStringArray::SetSize
lea esi, [ebp + 0xc]
push str.Ec.dll__s
lea edx, [esp + 0x20]
push esi
push edx
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 7
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c], bl
call fcn.0040e8b6
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x10]
push eax
push ecx
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CStringArray::SetAtGrow
push str.ExternCommand.dll__s
lea edx, [esp + 0x20]
push esi
push edx
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 8
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c], bl
call fcn.0040e8b6
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x10]
push eax
push ecx
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CStringArray::SetAtGrow
push str.PrintDriver.dll__s
lea edx, [esp + 0x20]
push esi
push edx
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 9
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c], bl
call fcn.0040e8b6
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x10]
push eax
push ecx
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CStringArray::SetAtGrow
push str.EcExternObj.dll__s
lea edx, [esp + 0x20]
push esi
push edx
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 0xa
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c], bl
call fcn.0040e8b6
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x10]
push eax
push ecx
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CStringArray::SetAtGrow
push str.EcCustomObject.dll__s
lea edx, [esp + 0x20]
push esi
push edx
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 0xb
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c], bl
call fcn.0040e8b6
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x10]
push eax
push ecx
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CStringArray::SetAtGrow
push str.EcObExtend.dll__s
lea edx, [esp + 0x20]
push esi
push edx
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 0xc
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c], bl
call fcn.0040e8b6
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x10]
push eax
push ecx
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CStringArray::SetAtGrow
mov eax, dword [esp + 0x28]
xor esi, esi
test eax, eax
jle 0x40ab01
mov ebx, dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov edx, dword [esp + 0x24]
push 0
push 0
mov eax, dword [edx + esi*4]
push eax
push str.regsvr32.exe
push 0
push 0
call ebx
mov eax, dword [esp + 0x28]
inc esi
cmp esi, eax
jl 0x40aae1
push 0
mov ecx, edi
call sub.MFC42.DLL_CWnd::ShowWindow
test edi, edi
je 0x40ab17
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax + 4]
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 1
call fcn.0040e8b6
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 0
call fcn.0040e92e
lea ecx, [esp + 0x10]
mov dword [esp + 0x3c], 0xffffffff
call fcn.0040e8b6
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x30
ret