Function at 0x46ad70
Capabilities:
Create pipe
Create process on windows
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6a4aab
mov eax, dword fs:[0]
push eax
sub esp, 0x8b8
mov eax, dword [0x7e2670]
xor eax, ebp
mov dword [ebp - 0x88], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x8c0], ecx
mov eax, dword [ebp + 8]
push eax
push 0x6f0b68
call fcn.0066610b
add esp, 8
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0xffffffff
mov dword [ebp - 0x38], 0xc
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 1
push 0
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x46ae03
xor al, al
jmp 0x46b0d7
push 0x44
push 0
lea edx, [ebp - 0x84]
push edx
call fcn.006665c0
add esp, 0xc
push 0
push 1
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov dword [ebp - 0x84], 0x44
lea ecx, [ebp - 0x84]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0x100
xor ecx, ecx
mov word [ebp - 0x54], cx
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x84]
push eax
push 0
push 0
push 0x8000000
push 1
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x46aeeb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x89c], eax
push 0
push 0
lea edx, [ebp - 0x898]
push edx
push 0x400
mov eax, dword [ebp - 0x89c]
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov ecx, dword [ebp - 0x898]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x6f0ba0
call fcn.0066610b
add esp, 0xc
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
mov eax, dword [ebp - 0x898]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor al, al
jmp 0x46b0d7
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x24]
push edx
push 0x6f0b8c
call fcn.0066610b
add esp, 8
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
mov dword [ebp - 0x14], 0x801
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0x19], 0
push 1
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor ecx, ecx
cmp eax, 0x102
sete cl
mov byte [ebp - 0x19], cl
push 0
lea edx, [ebp - 0x3c]
push edx
push 0
push 0
push 0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
movzx ecx, byte [ebp - 0x19]
test ecx, ecx
jne 0x46af72
cmp dword [ebp - 0x3c], 0
ja 0x46af72
mov dword [ebp - 0x8c4], 0
jmp 0x46af7c
mov dword [ebp - 0x8c4], 1
cmp dword [ebp - 0x8c4], 0
je 0x46b0b3
push 0x6ef123
lea ecx, [ebp - 0x8b8]
call fcn.00404630
mov dword [ebp - 4], 0
cmp dword [ebp - 0x3c], 0
jbe 0x46b014
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x8bc], edx
cmp dword [ebp - 0x8bc], 0x800
jbe 0x46afc5
mov dword [ebp - 0x8bc], 0x800
push 0
lea eax, [ebp - 0x8bc]
push eax
mov ecx, dword [ebp - 0x8bc]
push ecx
lea edx, [ebp - 0x894]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x8bc]
mov byte [ebp + ecx - 0x894], 0
lea edx, [ebp - 0x894]
push edx
lea ecx, [ebp - 0x8b8]
call fcn.004138a0
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x8bc]
mov dword [ebp - 0x3c], eax
jmp 0x46afa0
lea ecx, [ebp - 0x8b8]
call fcn.00405300
movzx ecx, al
test ecx, ecx
jne 0x46b094
lea ecx, [ebp - 0x8b8]
call fcn.00404810
push eax
push 0x6f0bf0
call fcn.0066610b
add esp, 8
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
push 0
push 0x6f0bf4
lea ecx, [ebp - 0x8b8]
call fcn.004138c0
cmp eax, 0xffffffff
jne 0x46b07e
push 0
push 0x6f0bfc
lea ecx, [ebp - 0x8b8]
call fcn.004138c0
cmp eax, 0xffffffff
je 0x46b092
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8b8]
call fcn.00404770
jmp 0x46b0b3
jmp 0x46b09c
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8b8]
call fcn.00404770
jmp 0x46af29
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x88]
xor ecx, ebp
call fcn.006665ac
mov esp, ebp
pop ebp
ret 0xc