Function at 0x47b720
Capabilities:
Create pipe
Create two anonymous pipes

Disassembly:
sub esp, 0x28
mov eax, dword [esp + 0x2c]
push ebx
push ebp
push esi
push edi
push 0xfffffffffffffff5
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 0xc
mov dword [esp + 0x38], 1
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x28]
or ebx, 0xffffffff
push eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x47b7c9
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 0
push 0
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x28], ebx
call esi
mov edx, dword [esp + 0x2c]
push eax
push edx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push eax
call edi
test eax, eax
mov eax, dword [esp + 0x1c]
jne 0x47b7d5
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x47b7ba
cmp eax, ebx
je 0x47b7ba
push eax
call esi
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x47b7c9
cmp eax, ebx
je 0x47b7c9
push eax
call esi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
test eax, eax
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x47b7ea
cmp eax, ebx
je 0x47b7ea
push eax
call ebp
mov dword [esp + 0x1c], ebx
push 0
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x47b83b
mov eax, dword [esp + 0x10]
test eax, eax
je 0x47b820
cmp eax, ebx
je 0x47b820
push eax
call ebp
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x18]
test eax, eax
je 0x47b82f
cmp eax, ebx
je 0x47b82f
push eax
call ebp
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
push 2
push 0
push 0
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x34], ebx
call esi
mov ecx, dword [esp + 0x30]
push eax
push ecx
call esi
push eax
call edi
test eax, eax
jne 0x47b8c6
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x47b86e
cmp eax, ebx
je 0x47b86e
push eax
call ebp
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x47b881
cmp eax, ebx
je 0x47b881
push eax
call ebp
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x14]
test eax, eax
je 0x47b894
cmp eax, ebx
je 0x47b894
push eax
call ebp
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x20]
test eax, eax
je 0x47b8a7
cmp eax, ebx
je 0x47b8a7
push eax
call ebp
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x18]
test eax, eax
je 0x47b82f
cmp eax, ebx
je 0x47b82f
push eax
call ebp
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
mov eax, dword [esp + 0x20]
test eax, eax
je 0x47b8d9
cmp eax, ebx
je 0x47b8d9
push eax
call ebp
mov dword [esp + 0x20], ebx
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x47b8f7
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x14]
call fcn.0047b9b0
test eax, eax
jne 0x47b939
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x47b90e
cmp eax, ebx
je 0x47b90e
push eax
call ebp
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x18], ebx
test ecx, ecx
je 0x47b91d
cmp ecx, ebx
je 0x47b91d
push ecx
call ebp
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x14]
test eax, eax
je 0x47b930
cmp eax, ebx
je 0x47b930
push eax
call ebp
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x24]
jmp 0x47b824
mov eax, dword [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
lea edi, [esp + 0x1c]
call fcn.0047baa0
mov esi, eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x47b960
cmp eax, ebx
je 0x47b960
push eax
call ebp
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x47b973
cmp eax, ebx
je 0x47b973
push eax
call ebp
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x14]
test eax, eax
je 0x47b986
cmp eax, ebx
je 0x47b986
push eax
call ebp
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x24]
test eax, eax
je 0x47b995
cmp eax, ebx
je 0x47b995
push eax
call ebp
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4