Function at 0x40fd40
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c48a
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 0x41fa40
lea ecx, [ebp - 0x18c]
push ecx
call fcn.004091d0
add esp, 0xc
mov dword [ebp - 0x194], eax
mov edx, dword [ebp - 0x194]
mov dword [ebp - 0x198], edx
mov dword [ebp - 4], 0
push 0x41fa40
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.0041925c
cmp dword [ebp + 0xc], 0
je 0x40fe3f
mov esi, esp
push 0x41e67c
lea ecx, [ebp - 0x90]
call dword [0x41e1f4]
cmp esi, esp
call fcn.0041925c
mov esi, esp
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x90]
call dword [0x41e1f4]
cmp esi, esp
call fcn.0041925c
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.0041925c
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp esi, esp
call fcn.0041925c
test eax, eax
jne 0x40feab
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.0041925c
mov al, byte [ebp - 0x165]
jmp 0x40ff17
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x40fec8
mov esi, esp
push 0xffffffffffffffff
mov eax, dword [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp esi, esp
call fcn.0041925c
mov esi, esp
mov eax, dword [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.0041925c
mov esi, esp
mov eax, dword [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.0041925c
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.0041925c
mov al, byte [ebp - 0x159]
push edx
mov ecx, ebp
push eax
lea edx, [0x40ff48]
call fcn.0041927f
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.0041925c
mov esp, ebp
pop ebp
ret