Function at 0x454940
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 + 0x20]
or edi, 0xffffffff
push eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x4549e9
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 0
push 0
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x2c], edi
call esi
mov edx, dword [esp + 0x24]
push eax
push edx
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push eax
call ebp
test eax, eax
mov eax, dword [esp + 0x14]
jne 0x4549f5
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4549da
cmp eax, edi
je 0x4549da
push eax
call esi
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4549e9
cmp eax, edi
je 0x4549e9
push eax
call esi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x454a0a
cmp eax, edi
je 0x454a0a
push eax
call ebx
mov dword [esp + 0x14], edi
push 0
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], edi
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x4549e9
push 2
push 0
push 0
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x34], edi
call esi
mov ecx, dword [esp + 0x30]
push eax
push ecx
call esi
push eax
call ebp
test eax, eax
jne 0x454aa1
mov eax, dword [esp + 0x14]
test eax, eax
je 0x454a60
cmp eax, edi
je 0x454a60
push eax
call ebx
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x454a73
cmp eax, edi
je 0x454a73
push eax
call ebx
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x454a86
cmp eax, edi
je 0x454a86
push eax
call ebx
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x20]
test eax, eax
je 0x454a95
cmp eax, edi
je 0x454a95
push eax
call ebx
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 0x454ab4
cmp eax, edi
je 0x454ab4
push eax
call ebx
mov dword [esp + 0x20], edi
mov ecx, dword [esp + 0x10]
cmp ecx, edi
je 0x454ad2
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x14]
call fcn.00454b80
test eax, eax
jne 0x454b14
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x454ae9
cmp eax, edi
je 0x454ae9
push eax
call ebx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x1c], edi
test ecx, ecx
je 0x454af8
cmp ecx, edi
je 0x454af8
push ecx
call ebx
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x454b0b
cmp eax, edi
je 0x454b0b
push eax
call ebx
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x24]
jmp 0x454a8a
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x1c]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00454c60
mov esi, eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x454b3c
cmp eax, edi
je 0x454b3c
push eax
call ebx
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x454b4f
cmp eax, edi
je 0x454b4f
push eax
call ebx
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x454b62
cmp eax, edi
je 0x454b62
push eax
call ebx
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x24]
test eax, eax
je 0x454b71
cmp eax, edi
je 0x454b71
push eax
call ebx
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4