Function at 0x40f800
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41be8a
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 sub.MSVCR71.dll_memset
add esp, 0xc
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x28], 0x80
push 0x10
push 0
lea eax, [ebp - 0x6c]
push eax
call sub.MSVCR71.dll_memset
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
push 0x41f860
lea ecx, [ebp - 0x18c]
push ecx
call fcn.00408e93
add esp, 0xc
mov dword [ebp - 0x194], eax
mov edx, dword [ebp - 0x194]
mov dword [ebp - 0x198], edx
mov dword [ebp - 4], 0
push 0x41f860
mov eax, dword [ebp - 0x198]
push eax
lea ecx, [ebp - 0x90]
push ecx
call fcn.004014e7
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.00418d1c
cmp dword [ebp + 0xc], 0
je 0x40f8ff
mov esi, esp
push 0x41e68c
lea ecx, [ebp - 0x90]
call dword [0x41e1fc]
cmp esi, esp
call fcn.00418d1c
mov esi, esp
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x90]
call dword [0x41e1fc]
cmp esi, esp
call fcn.00418d1c
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.00418d1c
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp esi, esp
call fcn.00418d1c
test eax, eax
jne 0x40f96b
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.00418d1c
mov al, byte [ebp - 0x165]
jmp 0x40f9d7
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x40f988
mov esi, esp
push 0xffffffffffffffff
mov eax, dword [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp esi, esp
call fcn.00418d1c
mov esi, esp
mov eax, dword [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.00418d1c
mov esi, esp
mov eax, dword [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.00418d1c
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.00418d1c
mov al, byte [ebp - 0x159]
push edx
mov ecx, ebp
push eax
lea edx, [0x40fa08]
call fcn.00418d3f
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.00418d1c
mov esp, ebp
pop ebp
ret