Function at 0x40cc50
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x54aadb
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5c403c]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esp + 0x3c]
cmp eax, 0x4e
je 0x40cc97
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x44]
push edx
push ecx
push eax
jmp 0x40ce47
mov ebp, dword [esp + 0x44]
mov edx, dword [ebp]
cmp edx, dword [esi + 0x20]
jne 0x40ce3a
mov eax, dword [ebp + 8]
sub eax, 0x7d0
je 0x40ce98
sub eax, 1
je 0x40ce64
sub eax, 0x12
jne 0x40ce3a
mov ebx, dword [ebp + 0xc]
push 0x7da
xor edi, edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call fcn.0040baf0
mov ebx, dword [esp + 0x20]
mov ebp, eax
dec ebx
push 0x7da
and ebp, 0x1f
call fcn.0040baf0
and eax, 0x1f
cmp eax, ebp
jne 0x40cd1f
lea esp, [esp]
mov eax, dword [esp + 0x20]
dec eax
lea ebx, [eax - 1]
push 0x7da
xor edi, edi
mov dword [esp + 0x24], eax
call fcn.0040baf0
and eax, 0x1f
cmp eax, ebp
je 0x40cd00
mov ebx, dword [esp + 0x24]
inc ebx
push 0x7da
xor edi, edi
call fcn.0040baf0
and eax, 0x1f
cmp eax, ebp
jne 0x40cd56
mov eax, dword [esp + 0x24]
inc eax
lea ebx, [eax + 1]
push 0x7da
xor edi, edi
mov dword [esp + 0x28], eax
call fcn.0040baf0
and eax, 0x1f
cmp eax, ebp
je 0x40cd37
mov eax, dword [esp + 0x24]
inc eax
mov dword [esp + 0x24], eax
sub eax, dword [esp + 0x20]
inc eax
push eax
call sub.mfc90u.dll_new__
add esp, 4
push 0x872
lea edi, [esp + 0x24]
xor ebx, ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], eax
call fcn.0040baf0
lea ecx, [esp + 0x3c]
call dword [0x55a6c4]
mov dword [esp + 0x34], ebx
cmp ebp, 0x11
jne 0x40cdea
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
call dword [0x55a31c]
mov bl, 1
mov byte [esp + 0x34], bl
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
push esi
call fcn.0040bb40
mov byte [esp + 0x34], 2
push eax
lea ecx, [esp + 0x40]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_2]
mov byte [esp + 0x34], bl
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov byte [esp + 0x34], 0
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_char_class_StrTraitMFC_DLL_char_class_ATL::ChTraitsCRT_char_____::CStringT_char_class_StrTraitMF]
mov eax, dword [esp + 0x18]
push eax
call sub.mfc90u.dll_delete__
mov eax, dword [esp + 0x40]
add esp, 4
cmp dword [eax - 0xc], 0
je 0x40ce24
mov edi, eax
mov eax, esi
call fcn.00402790
test eax, eax
je 0x40ce11
mov eax, dword [eax + 0x20]
push 0xa
push 0
push 0
push edi
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [esp + 0x34], 0xffffffff
lea ecx, [esp + 0x3c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov ebp, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x40]
push ecx
push ebp
push edx
push 0x4e
mov ecx, esi
call sub.mfc90u.dll_CWnd::OnChildNotify
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0x10
mov ebp, dword [ebp + 0x10]
cmp ebp, 0x20
jge 0x40ce89
cmp ebp, 0xd
je 0x40ce89
cmp ebp, 0xa
je 0x40ce89
push 0x916
xor edi, edi
xor ebx, ebx
call fcn.0040baf0
lea eax, [edi + 1]
jmp 0x40ce4e
push 3
push esi
call fcn.0040c9b0
mov eax, 1
jmp 0x40ce4e
push 0x7ec
xor edi, edi
xor ebx, ebx
call fcn.0040baf0
mov ebp, dword [ebp + 0xc]
mov edi, eax
push ebp
mov ecx, edi
mov eax, esi
call fcn.0040d8e0
push ebp
push edi
push esi
call fcn.0040ddd0
push ebp
push edi
mov eax, esi
call fcn.0040db00
lea eax, [ebx + 1]
jmp 0x40ce4e