Function at 0x40ae7d
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0xd4
mov eax, dword [0x417c2c]
xor eax, ebp
mov dword [ebp + 0x70], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x60]
xor edi, edi
push eax
mov dword [ebp + 0x38], 0xc
mov dword [ebp + 0x3c], edi
mov dword [ebp + 0x40], 1
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
push 0x44
pop esi
push esi
lea eax, [ebp - 0x1c]
push edi
push eax
call sub.MSVCR80.dll_memset
mov dword [ebp - 0x1c], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
add esp, 0xc
mov dword [ebp + 0x10], 0x100
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff6
call ebx
push 0xfffffffffffffff5
mov dword [ebp + 0x1c], eax
call ebx
push 0xfffffffffffffff4
mov dword [ebp + 0x20], eax
call ebx
mov dword [ebp + 0x24], eax
push edi
lea eax, [ebp + 0x38]
push eax
lea eax, [ebp + 0x54]
push eax
lea eax, [ebp + 0x44]
push eax
call fcn.0040a661
push edi
lea eax, [ebp + 0x38]
push eax
lea eax, [ebp + 0x48]
push eax
lea eax, [ebp + 0x50]
push eax
call fcn.0040a661
add esp, 0x20
push 2
push edi
push edi
lea eax, [ebp + 0x58]
push eax
call esi
push eax
push dword [ebp + 0x54]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push eax
call fcn.0040a2a1
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
push dword [ebp + 0x54]
call ebx
mov eax, dword [ebp + 0x58]
push 2
push edi
mov dword [ebp + 0x54], eax
push edi
lea eax, [ebp + 0x58]
push eax
call esi
push eax
push dword [ebp + 0x50]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push eax
call fcn.0040a2a1
pop ecx
push dword [ebp + 0x50]
call ebx
mov eax, dword [ebp + 0x58]
push 0xbe
mov dword [ebp + 0x50], eax
call fcn.00408299
push dword [ebp + 0x48]
mov esi, eax
push 0x415788
lea eax, [ebp + 0x5c]
push 9
push eax
mov dword [ebp + 0x4c], esi
call dword [sym.imp.MSVCR80.dll_swprintf_s]
lea eax, [ebp + 0x5c]
push eax
push str.MPCL_WRITE_PIPE_HANDLE
push 0x41580c
push 0x5f
push esi
call fcn.004014b8
push 0x5e
lea ecx, [esi + eax*2 + 2]
pop esi
push dword [ebp + 0x44]
sub esi, eax
push 0x415788
lea eax, [ebp + 0x5c]
push 9
push eax
mov dword [ebp + 0x58], ecx
call dword [sym.imp.MSVCR80.dll_swprintf_s]
lea eax, [ebp + 0x5c]
push eax
push str.MPCL_READ_PIPE_HANDLE
push 0x41580c
push esi
push dword [ebp + 0x58]
call fcn.004014b8
mov ecx, dword [ebp + 0x58]
add esp, 0x4c
push dword [ebp + 0x7c]
sub esi, eax
push str.MPCL_SERVER_ID
push str._s_d
lea ecx, [ecx + eax*2 + 2]
dec esi
push esi
push ecx
mov dword [ebp + 0x58], ecx
call fcn.004014b8
mov ecx, dword [ebp + 0x58]
push dword [ebp + 0x4c]
mov word [ecx + eax*2 + 2], di
call fcn.0040a91b
add esp, 0x18
mov esi, eax
lea eax, [ebp + 0x28]
push eax
lea eax, [ebp - 0x1c]
push eax
push edi
push esi
push 0x400
push 1
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push 0x41a2c0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40b057
push 0x415a28
call fcn.0040a23c
pop ecx
push edi
push edi
push edi
push 1
call dword [sym.imp.KERNEL32.dll_RaiseException]
cmp dword [0x41aac8], edi
mov eax, dword [ebp + 0x28]
mov dword [ebp + 0x58], eax
je 0x40b070
push 0xffffffffffffffff
push dword [ebp + 0x2c]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push dword [ebp + 0x2c]
call ebx
push dword [ebp + 0x48]
call ebx
push dword [ebp + 0x44]
call ebx
push esi
call fcn.004082af
push dword [ebp + 0x4c]
call fcn.004082af
push 0x10
call fcn.00408299
add esp, 0xc
cmp eax, edi
je 0x40b0b5
mov ecx, dword [ebp + 0x54]
mov edx, dword [ebp + 0x50]
mov esi, dword [ebp + 0x58]
mov dword [eax + 4], esi
mov dword [eax], vtable.PipeProcessChannel.0
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
jmp 0x40b0b7
xor eax, eax
mov ecx, dword [ebp + 0x70]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bb82
add ebp, 0x74
leave
ret