Function at 0x407420
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:
sub esp, 0x4d8
mov eax, dword [0x41d438]
push ebx
mov dword [esp + 0x4d8], eax
mov eax, dword [esp + 0x4e4]
push ebp
or ebp, 0xffffffff
xor ebx, ebx
mov dword [eax], ebp
mov eax, dword [esp + 0x4e4]
cmp eax, ebx
mov dword [esp + 0xc], ebx
je 0x40746f
push eax
push str.ping.exe__n_1__s
lea ecx, [esp + 0x94]
push 0x50
push ecx
call dword [sym.imp.MSVCR71.dll__snprintf]
add esp, 0x10
cmp eax, 0x50
jne 0x407486
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x4d4]
call fcn.00413841
add esp, 0x4d8
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreatePipe]
push edi
xor edx, edx
mov dword [esp + 0x30], edx
push ebx
mov dword [esp + 0x38], edx
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x40], edx
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x40], 0xc
mov dword [esp + 0x48], 1
mov dword [esp + 0x44], ebx
call esi
test eax, eax
je 0x4076c1
push ebx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x28]
push edx
call esi
test eax, eax
je 0x4076c1
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x50]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x3c]
push edx
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
lea eax, [esp + 0x54]
push eax
push ebx
push ebx
xor ecx, ecx
push ebx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x54], ecx
mov ebp, 1
push ebp
mov dword [esp + 0x5c], ecx
push ebx
mov dword [esp + 0x64], ecx
push ebx
lea ecx, [esp + 0xb4]
push ecx
push ebx
mov dword [esp + 0x78], 0x44
mov dword [esp + 0xa4], 0x101
mov word [esp + 0xa8], bx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4076c1
mov edx, dword [esp + 0x3c]
push 0xbb8
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
push ebx
jne 0x4076a0
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x50]
push eax
push 0x400
lea ecx, [esp + 0xf0]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4076ab
mov eax, dword [esp + 0x4c]
mov edi, dword [sym.imp.MSVCR71.dll__mbsstr]
lea ecx, [esp + 0xe4]
push str.Request_timed_out
push ecx
mov byte [esp + eax + 0xec], bl
call edi
add esp, 8
cmp eax, ebx
jne 0x40769a
lea edx, [esp + 0xe4]
push 0x418d98
push edx
call edi
add esp, 8
cmp eax, ebx
jne 0x40769a
lea eax, [esp + 0xe4]
push str.Minimum
push eax
call edi
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x407636
lea ecx, [esp + 0xe4]
push 0x418d88
push ecx
call edi
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x4076ab
mov edi, dword [sym.imp.MSVCR71.dll_sscanf]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x2c]
push ecx
push str.Minimum___dms__Maximum___dms__Average___dms
push esi
call edi
add esp, 0x14
cmp eax, 3
jne 0x40766e
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x4f0]
mov dword [eax], edx
mov dword [esp + 0x14], ebp
jmp 0x4076ab
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x2c]
push eax
push 0x418d30
push esi
call edi
add esp, 0x14
cmp eax, 3
jne 0x4076ab
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x4f0]
mov dword [edx], ecx
mov dword [esp + 0x14], ebp
jmp 0x4076ab
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [esp + 0x40]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x3c]
push edx
call esi
jmp 0x4076c7
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x4076d2
push eax
call esi
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4076dd
push eax
call esi
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x4076e8
push eax
call esi
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x4076f3
push eax
call esi
mov ecx, dword [esp + 0x4e4]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
call fcn.00413841
add esp, 0x4d8
ret