Function at 0x40cec9
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426541
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1a4
push edi
mov dword [ebp - 0x158], ecx
lea ecx, [ebp - 0x14]
call fcn.00401555
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x128]
call sub.MFC42.DLL_CString::CString_1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x12c]
call sub.MFC42.DLL_CString::CString_1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x120]
call sub.MFC42.DLL_CString::CString_1
mov byte [ebp - 4], 3
mov byte [ebp - 0x118], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x117]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x124], 0x104
cmp dword [ebp + 0x10], 0
je 0x40d094
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x15c], eax
cmp dword [ebp - 0x15c], 0
je 0x40cfc6
cmp dword [ebp - 0x15c], 6
je 0x40cffe
cmp dword [ebp - 0x15c], 0xff
je 0x40cf8e
jmp 0x40d08f
lea ecx, [ebp - 0x124]
push ecx
lea edx, [ebp - 0x118]
push edx
push 1
mov ecx, dword [ebp - 0x158]
add ecx, 0xc
call sym.PcMFStation.exe_public:_int___thiscall_CMfsCfgInfo::GetSaveFolder_enum_TYPE_SHEET__char___unsigned_long_int__
lea eax, [ebp - 0x118]
push eax
mov ecx, dword [ebp - 0x158]
call fcn.004016f4
mov dword [ebp - 0x10], eax
jmp 0x40d08f
lea ecx, [ebp - 0x124]
push ecx
lea edx, [ebp - 0x118]
push edx
push 2
mov ecx, dword [ebp - 0x158]
add ecx, 0xc
call sym.PcMFStation.exe_public:_int___thiscall_CMfsCfgInfo::GetSaveFolder_enum_TYPE_SHEET__char___unsigned_long_int__
lea eax, [ebp - 0x118]
push eax
mov ecx, dword [ebp - 0x158]
call fcn.004016f4
mov dword [ebp - 0x10], eax
jmp 0x40d08f
push 0xa
lea ecx, [ebp - 0x130]
push ecx
mov ecx, dword [ebp - 0x158]
call fcn.0040158c
mov dword [ebp - 0x160], eax
mov edx, dword [ebp - 0x160]
mov dword [ebp - 0x164], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x164]
push eax
lea ecx, [ebp - 0x128]
call sub.MFC42.DLL_CString::operator_1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x130]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x128]
call fcn.00401415
test eax, eax
jne 0x40d08f
push 5
push 0
push 0
lea ecx, [ebp - 0x128]
call fcn.00401307
push eax
push 0x435484
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0x20
jbe 0x40d08f
mov dword [ebp - 0x10], 1
jmp case.0x40d0c8.3
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x168], edx
cmp dword [ebp - 0x168], 0xff
jg 0x40d0cf
cmp dword [ebp - 0x168], 0xff
je 0x40d0d4
cmp dword [ebp - 0x168], 0xa
ja case.0x40d0c8.3
mov eax, dword [ebp - 0x168]
jmp dword [eax*4 + 0x40d625]
jmp case.0x40d0c8.3
push 4
lea ecx, [ebp - 0x134]
push ecx
mov ecx, dword [ebp - 0x158]
call fcn.0040158c
mov dword [ebp - 0x16c], eax
mov edx, dword [ebp - 0x16c]
mov dword [ebp - 0x170], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x170]
push eax
lea ecx, [ebp - 0x128]
call sub.MFC42.DLL_CString::operator_1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x134]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x128]
call fcn.00401415
test eax, eax
jne 0x40d1e5
lea ecx, [ebp - 0x138]
push ecx
mov ecx, 0x438ff0
call sub.MFC42.DLL_CWinThread::GetMainWnd
mov ecx, eax
add ecx, 0xc0
call fcn.0040159b
mov dword [ebp - 0x174], eax
mov edx, dword [ebp - 0x174]
mov dword [ebp - 0x178], edx
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x178]
push eax
lea ecx, [ebp - 0x120]
call sub.MFC42.DLL_CString::operator_1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x138]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0x120]
push ecx
push 1
push str.__tp__d__drv___s_
lea edx, [ebp - 0x12c]
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
push 5
push 0
lea ecx, [ebp - 0x12c]
call fcn.00401307
push eax
lea ecx, [ebp - 0x128]
call fcn.00401307
push eax
push 0x4354a0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0x20
jbe 0x40d1e5
mov dword [ebp - 0x10], 1
jmp case.0x40d0c8.3
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x13c]
push edx
mov ecx, dword [ebp - 0x158]
call fcn.0040158c
mov dword [ebp - 0x17c], eax
mov eax, dword [ebp - 0x17c]
mov dword [ebp - 0x180], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x180]
push ecx
lea ecx, [ebp - 0x128]
call sub.MFC42.DLL_CString::operator_1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x13c]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x128]
call fcn.00401415
test eax, eax
jne 0x40d2fb
lea edx, [ebp - 0x140]
push edx
mov ecx, 0x438ff0
call sub.MFC42.DLL_CWinThread::GetMainWnd
mov ecx, eax
add ecx, 0xc0
call fcn.0040159b
mov dword [ebp - 0x184], eax
mov eax, dword [ebp - 0x184]
mov dword [ebp - 0x188], eax
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x188]
push ecx
lea ecx, [ebp - 0x120]
call sub.MFC42.DLL_CString::operator_1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x140]
call sub.MFC42.DLL_CString::CString
mov edx, dword [ebp - 0x120]
push edx
push 0x4354a8
lea eax, [ebp - 0x12c]
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push 5
push 0
lea ecx, [ebp - 0x12c]
call fcn.00401307
push eax
lea ecx, [ebp - 0x128]
call fcn.00401307
push eax
push 0x4354b4
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0x20
jbe 0x40d2fb
mov dword [ebp - 0x10], 1
jmp case.0x40d0c8.3
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x144]
push eax
mov ecx, dword [ebp - 0x158]
call fcn.0040158c
mov dword [ebp - 0x18c], eax
mov ecx, dword [ebp - 0x18c]
mov dword [ebp - 0x190], ecx
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x190]
push edx
lea ecx, [ebp - 0x128]
call sub.MFC42.DLL_CString::operator_1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x144]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x128]
call fcn.00401415
test eax, eax
jne 0x40d411
lea eax, [ebp - 0x148]
push eax
mov ecx, 0x438ff0
call sub.MFC42.DLL_CWinThread::GetMainWnd
mov ecx, eax
add ecx, 0xc0
call fcn.0040159b
mov dword [ebp - 0x194], eax
mov ecx, dword [ebp - 0x194]
mov dword [ebp - 0x198], ecx
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x198]
push edx
lea ecx, [ebp - 0x120]
call sub.MFC42.DLL_CString::operator_1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x148]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x120]
push eax
push str.__D__s_
lea ecx, [ebp - 0x12c]
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push 5
push 0
lea ecx, [ebp - 0x12c]
call fcn.00401307
push eax
lea ecx, [ebp - 0x128]
call fcn.00401307
push eax
push 0x4354c4
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0x20
jbe 0x40d411
mov dword [ebp - 0x10], 1
jmp case.0x40d0c8.3
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x14c]
push ecx
mov ecx, dword [ebp - 0x158]
call fcn.0040158c
mov dword [ebp - 0x19c], eax
mov edx, dword [ebp - 0x19c]
mov dword [ebp - 0x1a0], edx
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x1a0]
push eax
lea ecx, [ebp - 0x128]
call sub.MFC42.DLL_CString::operator_1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14c]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x128]
call fcn.00401415
test eax, eax
jne 0x40d527
lea ecx, [ebp - 0x150]
push ecx
mov ecx, 0x438ff0
call sub.MFC42.DLL_CWinThread::GetMainWnd
mov ecx, eax
add ecx, 0xc0
call fcn.0040159b
mov dword [ebp - 0x1a4], eax
mov edx, dword [ebp - 0x1a4]
mov dword [ebp - 0x1a8], edx
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x1a8]
push eax
lea ecx, [ebp - 0x120]
call sub.MFC42.DLL_CString::operator_1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x150]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0x120]
push ecx
push str.__drv___s_
lea edx, [ebp - 0x12c]
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push 5
push 0
lea ecx, [ebp - 0x12c]
call fcn.00401307
push eax
lea ecx, [ebp - 0x128]
call fcn.00401307
push eax
push 0x4354d8
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0x20
jbe 0x40d527
mov dword [ebp - 0x10], 1
jmp case.0x40d0c8.3
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x154]
push edx
mov ecx, dword [ebp - 0x158]
call fcn.0040158c
mov dword [ebp - 0x1ac], eax
mov eax, dword [ebp - 0x1ac]
mov dword [ebp - 0x1b0], eax
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x1b0]
push ecx
lea ecx, [ebp - 0x128]
call sub.MFC42.DLL_CString::operator_1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x154]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x128]
call fcn.00401415
test eax, eax
jne case.0x40d0c8.3
push 5
push 0
push 0
lea ecx, [ebp - 0x128]
call fcn.00401307
push eax
push str.open
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0x20
jbe case.0x40d0c8.3
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0x10], 0
jne 0x40d5d8
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x158]
call fcn.004014d3
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x120]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x12c]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x128]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004013d9
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret 0xc