Function at 0x4bf7b0
Capabilities:
Create pipe

Disassembly:
push 0xffffffffffffffff
push 0x5601c0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5b3890]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, dword [esp + 0x4c]
xor ebx, ebx
mov dword [esp + 0x14], ebx
cmp esi, ebx
jne 0x4bf7e9
lea esi, [esp + 0x14]
mov ebp, dword [esp + 0x40]
cmp ebp, ebx
je 0x4bf9c2
cmp byte [esp + 0x50], bl
jne 0x4bf9c2
mov dword [esp + 0x40], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x4c], ebx
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
push ebx
mov dword [esp + 0x24], eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x4c]
mov edi, 1
push edx
mov byte [esp + 0x40], 1
mov dword [esp + 0x34], edi
mov dword [esp + 0x2c], 0xc
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x4bf894
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov eax, dword [esp + 0x4c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
je 0x4bf86b
cmp eax, 0xffffffff
je 0x4bf86b
push eax
call esi
mov dword [esp + 0x4c], ebx
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x4bf87b
cmp eax, 0xffffffff
je 0x4bf87b
push eax
call esi
mov eax, 0xfffffffd
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov eax, dword [esp + 0x40]
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x4bf8f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov eax, dword [esp + 0x4c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
je 0x4bf8c7
cmp eax, 0xffffffff
je 0x4bf8c7
push eax
call esi
mov dword [esp + 0x4c], ebx
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x4bf8d7
cmp eax, 0xffffffff
je 0x4bf8d7
push eax
call esi
mov eax, 0xfffffffc
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov edx, dword [esp + 0x40]
push ebx
push ebx
lea ecx, [esp + 0x20]
push ecx
push edx
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
jne 0x4bf93d
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x4c]
mov dword [esi], eax
call fcn.00425250
lea ecx, [esp + 0x40]
call fcn.00425250
mov eax, 0xfffffffb
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
push ebx
push eax
mov eax, dword [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x68]
push edx
mov edx, dword [esp + 0x68]
push eax
mov eax, dword [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x60]
push edx
mov edx, dword [esp + 0x60]
push eax
mov eax, dword [esp + 0x5c]
push ebx
push esi
push ecx
push edx
push ebp
push eax
call fcn.004bde50
mov esi, eax
add esp, 0x38
cmp esi, ebx
jle 0x4bf99a
mov edi, dword [esp + 0x38]
mov ecx, edi
call fcn.00418ed0
mov ecx, dword [esp + 0x40]
push edi
push ecx
call fcn.004bdc30
add esp, 8
lea ecx, [esp + 0x4c]
call fcn.00425250
lea ecx, [esp + 0x40]
call fcn.00425250
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov dword [esi], 0x16
mov eax, 0xfffffffe
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret