Function at 0x404200
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create two anonymous pipes
Read file on windows
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x48ad8b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4d8
mov al, byte [esp + 0x1f]
push ebx
push ebp
push esi
xor ebx, ebx
push edi
push ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], al
call fcn.00408500
mov edi, 0x4b15a0
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x14]
push ebp
call fcn.00409450
test al, al
je 0x40427c
mov edi, dword [esp + 0x14]
mov ecx, ebp
mov edx, ecx
mov esi, 0x4b15a0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], ebp
mov byte [eax + ebp], bl
mov eax, dword [esp + 0x4fc]
mov dword [esp + 0x4f0], ebx
cmp eax, ebx
jne 0x4042d2
mov esi, dword [esp + 0x4f8]
mov cl, byte [esp + 0x10]
push ebx
mov byte [esi], cl
mov ecx, esi
call fcn.00408500
mov edx, dword [0x4919fc]
lea eax, [esp + 0x10]
push edx
push ebx
push eax
mov ecx, esi
call fcn.00408260
push 1
lea ecx, [esp + 0x14]
mov dword [esp + 0x4f4], 0xffffffff
call fcn.00408500
jmp 0x404560
push eax
push str.ping.exe__n_4__s
lea ecx, [esp + 0xa0]
push 0x50
push ecx
call fcn.0045a2af
add esp, 0x10
cmp eax, 0x50
jne 0x404316
mov esi, dword [esp + 0x4f8]
mov dl, byte [esp + 0x10]
lea ecx, [esp + 0x10]
mov byte [esi], dl
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov eax, dword [0x4919fc]
push eax
push ebx
push ecx
jmp 0x404535
xor edx, edx
mov esi, dword [sym.imp.KERNEL32.dll_CreatePipe]
mov dword [esp + 0x38], edx
lea eax, [esp + 0x38]
mov dword [esp + 0x3c], edx
push ebx
mov dword [esp + 0x44], edx
lea ecx, [esp + 0x28]
push eax
lea edx, [esp + 0x3c]
push ecx
push edx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x48], 0xc
mov dword [esp + 0x50], 1
mov dword [esp + 0x4c], ebx
call esi
test eax, eax
je 0x4044e0
lea eax, [esp + 0x38]
push ebx
lea ecx, [esp + 0x24]
push eax
lea edx, [esp + 0x38]
push ecx
push edx
call esi
test eax, eax
je 0x4044e0
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x54]
lea edx, [esp + 0x44]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x30]
xor ecx, ecx
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x44], ecx
lea eax, [esp + 0x54]
push edx
mov dword [esp + 0x4c], ecx
push eax
push ebx
mov dword [esp + 0x58], ecx
push ebx
push ebx
mov dword [esp + 0x64], ecx
push 1
push ebx
lea ecx, [esp + 0xb4]
push ebx
push ecx
push ebx
mov dword [esp + 0x7c], 0x44
mov dword [esp + 0xa8], 0x101
mov word [esp + 0xac], bx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4044e0
mov edx, dword [esp + 0x44]
push 0x9c40
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
push ebx
jne 0x4044bf
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0xf0]
push 0x400
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4044ca
mov eax, dword [esp + 0x28]
inc eax
push eax
call fcn.004801e7
mov ecx, dword [esp + 0x2c]
mov ebp, eax
mov edx, ecx
lea esi, [esp + 0xec]
mov edi, ebp
add esp, 4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x2c]
mov edi, ebp
or ecx, 0xffffffff
mov byte [eax + ebp], 0
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x14]
push ebx
call fcn.00409450
test al, al
je 0x4044b2
mov edi, dword [esp + 0x14]
mov ecx, ebx
mov edx, ecx
mov esi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], ebx
mov byte [eax + ebx], 0
push ebp
call fcn.00480210
add esp, 4
xor ebx, ebx
jmp 0x4044ca
mov ecx, dword [esp + 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [esp + 0x48]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x44]
push eax
call esi
jmp 0x4044e6
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x4044f1
push eax
call esi
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x4044fc
push eax
call esi
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x404507
push eax
call esi
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x404512
push eax
call esi
mov esi, dword [esp + 0x4f8]
mov cl, byte [esp + 0x10]
lea eax, [esp + 0x10]
mov byte [esi], cl
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov edx, dword [0x4919fc]
push edx
push ebx
push eax
mov ecx, esi
call fcn.00408260
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x404560
mov al, byte [ecx - 1]
test al, al
je 0x404556
cmp al, 0xff
je 0x404556
dec al
mov byte [ecx - 1], al
jmp 0x404560
dec ecx
push ecx
call fcn.00480210
add esp, 4
mov ecx, dword [esp + 0x4e8]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x4e4
ret