Function at 0x415518
Capabilities:
Create pipe
Create process on windows
Create two anonymous pipes
Read file on windows
Read pipe
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffce8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x1318], ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004049b4
xor eax, eax
push ebp
push 0x4157aa
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00404558
xor eax, eax
push ebp
push 0x41577a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x1314], 0x94
lea eax, [ebp - 0x1314]
push eax
call sub.kernel32.dll_GetVersionExA
cmp dword [ebp - 0x1304], 2
jne 0x4155ad
mov dword [ebp - 0x7c], 0xc
xor eax, eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], 0xffffffff
push 0
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
call sub.kernel32.dll_CreatePipe
jmp 0x4155c1
push 0x1000
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
call sub.kernel32.dll_CreatePipe
xor eax, eax
push ebp
push 0x415769
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x60]
xor ecx, ecx
mov edx, 0x44
call fcn.00403338
mov dword [ebp - 0x60], 0x44
mov word [ebp - 0x30], 0
mov dword [ebp - 0x34], 1
or dword [ebp - 0x34], 0x100
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x127d]
mov edx, dword [ebp - 4]
call fcn.004082c4
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x60]
push eax
push 0
push 0
push 0x20
push 0xffffffffffffffff
push 0
push 0
lea eax, [ebp - 0x127d]
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x415749
xor eax, eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4156fd
push 0x1f4
mov eax, dword [ebp - 0x70]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov ebx, eax
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push 0x1000
lea eax, [ebp - 0x107c]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_PeekNamedPipe
test eax, eax
je 0x4156e4
cmp dword [ebp - 0x18], 0
jbe 0x4156e4
lea eax, [ebp - 0x107c]
xor ecx, ecx
mov edx, 0x1000
call fcn.00403338
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x107c]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_ReadFile
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x1318]
lea edx, [ebp - 0x107c]
mov ecx, 0x1000
call fcn.004047c8
mov eax, dword [ebp - 0x1318]
mov ecx, dword [ebp - 0x14]
dec ecx
xor edx, edx
call fcn.00404a24
mov eax, esi
mov edx, dword [ebp - 8]
call fcn.00404800
cmp ebx, 0x102
je 0x4156f3
mov dword [ebp - 0x1c], 1
cmp dword [ebp - 0x1c], 0
je 0x41564c
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x70]
push eax
call sub.kernel32.dll_GetExitCodeProcess
push 0
mov eax, dword [ebp - 0x70]
push eax
call sub.kernel32.dll_TerminateProcess
xor eax, eax
push ebp
push 0x41573f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x70]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x6c]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x415749
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x415770
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
ret