Function at 0x418504
Capabilities:
Create pipe
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff54
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0xa0], ebx
mov edi, ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
call fcn.00404b4c
mov eax, dword [ebp - 0xc]
call fcn.00404b4c
xor eax, eax
push ebp
push 0x418852
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
mov eax, dword [ebp + 0x18]
call fcn.0040469c
mov eax, dword [ebp + 0x14]
call fcn.0040469c
lea ecx, [ebp - 0xa0]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.004182f4
mov edx, dword [ebp - 0xa0]
lea eax, [ebp - 8]
call fcn.00404734
mov byte [ebp - 0x26], 0
mov dword [ebp - 0x88], 0xc
mov dword [ebp - 0x80], 0xffffffff
xor eax, eax
mov dword [ebp - 0x84], eax
lea eax, [ebp - 0x9c]
xor ecx, ecx
mov edx, 0x14
call fcn.00402f60
mov dword [ebp - 0x94], 0xa
push 0
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
push eax
call sub.kernel32.dll_CreatePipe
test eax, eax
je 0x418827
push 0
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
call sub.kernel32.dll_CreatePipe
test eax, eax
je 0x418827
push 0
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
call sub.kernel32.dll_CreatePipe
test eax, eax
je 0x418827
mov eax, dword [ebp - 0x14]
mov dword [0x435718], eax
mov ebx, 6
lea esi, [ebp - 4]
lea eax, [ebp - 0x9c]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_SetCommTimeouts
add esi, 4
dec ebx
jne 0x418626
lea eax, [ebp - 0x6c]
xor ecx, ecx
mov edx, 0x44
call fcn.00402f60
mov dword [ebp - 0x6c], 0x44
mov eax, dword [ebp - 4]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x40], 0x141
mov word [ebp - 0x3c], di
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x6c]
push eax
push 0
push 0
push 0x40
push 0xffffffffffffffff
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x88]
push eax
mov eax, dword [ebp - 8]
call fcn.00404b5c
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x41873c
mov eax, dword [ebp + 0x1c]
mov dword [eax], 0x15
lea eax, [ebp - 0xa4]
push eax
mov ecx, pe_nt_image_headers32
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00404bbc
push dword [ebp - 0xa4]
push 0x418870
lea eax, [ebp - 0xa8]
call fcn.00416130
push dword [ebp - 0xa8]
mov eax, dword [ebp + 0x14]
mov edx, 3
call fcn.00404a1c
mov eax, dword [ebp - 8]
call fcn.0040495c
cmp eax, 0x7ffe
jle 0x418711
mov eax, dword [ebp + 0x14]
mov edx, 0x418880
call fcn.004046f0
cmp word [ebp + 0xa], 0
je 0x41873c
mov edx, dword [ebp + 0x14]
mov edx, dword [edx]
lea eax, [ebp - 0xac]
mov ecx, 0x4188a4
call fcn.004049a8
mov edx, dword [ebp - 0xac]
lea ecx, [ebp - 0x26]
mov eax, dword [ebp + 0xc]
call dword [ebp + 8]
test bl, bl
je 0x418811
mov esi, 0x64
cmp word [ebp + 0xa], 0
je 0x418755
mov esi, 1
mov eax, dword [ebp + 0x18]
cmp dword [eax], 0
je 0x418765
cmp esi, 0xa
jle 0x418765
sub esi, 0xa
push esi
mov eax, dword [ebp - 0x7c]
push eax
call sub.kernel32.dll_WaitForSingleObject
push dword [ebp + 0xc]
push dword [ebp + 8]
lea ecx, [ebp - 0x26]
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp - 0x18]
call fcn.004183c8
mov ebx, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
lea ecx, [ebp - 0x26]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x20]
call fcn.004183c8
mov byte [ebp - 0x25], al
cmp byte [ebp - 0x26], 0
je 0x4187b0
push 0xff
mov eax, dword [ebp - 0x7c]
push eax
call sub.kernel32.dll_TerminateProcess
mov eax, dword [ebp + 0x1c]
push eax
mov eax, dword [ebp - 0x7c]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp + 0x1c]
cmp dword [eax], 0x103
je 0x418755
test bl, bl
jne 0x418755
cmp byte [ebp - 0x25], 0
jne 0x418755
mov eax, dword [ebp + 0x10]
cdq
push edx
push eax
xor eax, eax
call fcn.00413234
push dword [ebp + 0xc]
push dword [ebp + 8]
lea ecx, [ebp - 0x26]
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp - 0x18]
call fcn.004183c8
push dword [ebp + 0xc]
push dword [ebp + 8]
lea ecx, [ebp - 0x26]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x20]
call fcn.004183c8
mov eax, dword [ebp + 0x1c]
cmp dword [eax], 0
sete byte [ebp - 0xd]
mov ebx, 6
lea esi, [ebp - 4]
mov eax, dword [esi]
push eax
call sub.kernel32.dll_CloseHandle_1
add esi, 4
dec ebx
jne 0x418819
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418859
lea eax, [ebp - 0xac]
mov edx, 4
call fcn.004046c0
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004046c0
ret