Function at 0x40cfa0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417efa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18c
push ebx
push esi
push edi
lea edi, [ebp - 0x198]
mov ecx, 0x63
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
push 0x44
push 0
lea eax, [ebp - 0x54]
push eax
call fcn.00414c60
add esp, 0xc
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x28], 0x80
push 0x10
push 0
lea eax, [ebp - 0x6c]
push eax
call fcn.00414c60
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
push 0x41b504
lea ecx, [ebp - 0x18c]
push ecx
call fcn.00406a37
add esp, 0xc
mov dword [ebp - 0x194], eax
mov edx, dword [ebp - 0x194]
mov dword [ebp - 0x198], edx
mov dword [ebp - 4], 0
push 0x41b504
mov eax, dword [ebp - 0x198]
push eax
lea ecx, [ebp - 0x90]
push ecx
call fcn.00401149
add esp, 0xc
mov byte [ebp - 4], 2
mov esi, esp
lea ecx, [ebp - 0x18c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp esi, esp
call fcn.0041512c
cmp dword [ebp + 0xc], 0
je 0x40d09f
mov esi, esp
push 0x41b500
lea ecx, [ebp - 0x90]
call dword [0x41a180]
cmp esi, esp
call fcn.0041512c
mov esi, esp
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x90]
call dword [0x41a180]
cmp esi, esp
call fcn.0041512c
mov esi, esp
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x54]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
mov edi, esp
push 0
lea ecx, [ebp - 0x90]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator___unsigned_int_]
cmp edi, esp
call fcn.0041512c
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp esi, esp
call fcn.0041512c
test eax, eax
jne 0x40d10b
mov byte [ebp - 0x165], 0
mov dword [ebp - 4], 0xffffffff
mov esi, esp
lea ecx, [ebp - 0x90]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp esi, esp
call fcn.0041512c
mov al, byte [ebp - 0x165]
jmp 0x40d177
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x40d128
mov esi, esp
push 0xffffffffffffffff
mov eax, dword [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp esi, esp
call fcn.0041512c
mov esi, esp
mov eax, dword [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.0041512c
mov esi, esp
mov eax, dword [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.0041512c
mov byte [ebp - 0x159], 1
mov dword [ebp - 4], 0xffffffff
mov esi, esp
lea ecx, [ebp - 0x90]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp esi, esp
call fcn.0041512c
mov al, byte [ebp - 0x159]
push edx
mov ecx, ebp
push eax
lea edx, [0x40d1a8]
call fcn.0041514f
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x198
cmp ebp, esp
call fcn.0041512c
mov esp, ebp
pop ebp
ret