Function at 0x76b3cba0
Capabilities:
Create pipe

Disassembly:
push 0x34
push 0x76b9dd80
call fcn.76b4e0a8
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov ecx, dword [ebp + 8]
test ecx, ecx
jne 0x76b3cbdf
call sym.msvcrt.dll___doserrno
mov dword [eax], ebx
call sym.msvcrt.dll__errno
mov dword [eax], 0x16
push ebx
push ebx
push ebx
push ebx
push ebx
call sym.msvcrt.dll__invalid_parameter
add esp, 0x14
or eax, 0xffffffff
jmp 0x76b3ce29
lea eax, [ecx + 4]
mov dword [ebp - 0x38], eax
or dword [eax], 0xffffffff
or dword [ecx], 0xffffffff
mov ecx, dword [ebp + 0x10]
test ecx, 0xffff3f7f
jne 0x76b3cbb8
mov eax, ecx
mov edx, 0xc000
and eax, edx
cmp eax, edx
je 0x76b3cbb8
mov dword [ebp - 0x44], 0xc
mov dword [ebp - 0x40], ebx
and ecx, 0x80
mov dword [ebp - 0x34], ecx
push 0
pop eax
sete al
mov dword [ebp - 0x3c], eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.api_ms_win_core_namedpipe_l1_1_0.dll_CreatePipe]
test eax, eax
jne 0x76b3cc47
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
push eax
call fcn.76b262a9
pop ecx
jmp 0x76b3cbd7
call fcn.76b3b293
mov esi, eax
mov dword [ebp - 0x20], esi
cmp esi, 0xffffffff
je 0x76b3cdea
mov dword [ebp - 4], ebx
mov edx, esi
sar edx, 5
and eax, 0x1f
imul ecx, eax, 0x24
mov eax, dword [edx*4 + sym.msvcrt.dll___pioinfo]
mov byte [ecx + eax + 4], 0x89
mov eax, dword [edx*4 + sym.msvcrt.dll___pioinfo]
and dword [ecx + eax + 8], 0xfffffffc
mov eax, dword [edx*4 + sym.msvcrt.dll___pioinfo]
and dword [ecx + eax + 8], 0xfffffff7
mov dword [ebp - 4], 0xfffffffe
call fcn.76b3cdb3
call fcn.76b3b293
mov edi, eax
mov dword [ebp - 0x28], edi
cmp edi, 0xffffffff
je 0x76b3cdd0
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], 1
mov edx, edi
sar edx, 5
and eax, 0x1f
imul ecx, eax, 0x24
mov eax, dword [edx*4 + sym.msvcrt.dll___pioinfo]
mov byte [ecx + eax + 4], 0x89
mov eax, dword [edx*4 + sym.msvcrt.dll___pioinfo]
and dword [ecx + eax + 8], 0xfffffffc
mov eax, dword [edx*4 + sym.msvcrt.dll___pioinfo]
and dword [ecx + eax + 8], 0xfffffff7
mov dword [ebp - 4], 0xfffffffe
call fcn.76b3cdc3
lea eax, [ebp - 0x24]
push eax
call sym.msvcrt.dll__get_fmode
pop ecx
test eax, eax
je 0x76b3cd0b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.76b4977b
add esp, 0x14
mov ecx, 0x8000
mov eax, dword [ebp + 0x10]
test ecx, eax
jne 0x76b3cd23
test eax, 0x4000
jne 0x76b3cd55
cmp dword [ebp - 0x24], ecx
jne 0x76b3cd55
mov edx, esi
sar edx, 5
mov eax, esi
and eax, 0x1f
imul ecx, eax, 0x24
mov eax, dword [edx*4 + sym.msvcrt.dll___pioinfo]
and byte [eax + ecx + 4], 0x7f
mov edx, edi
sar edx, 5
mov eax, edi
and eax, 0x1f
imul ecx, eax, 0x24
mov eax, dword [edx*4 + sym.msvcrt.dll___pioinfo]
and byte [eax + ecx + 4], 0x7f
cmp dword [ebp - 0x34], 0
je 0x76b3cd8d
mov edx, esi
sar edx, 5
mov eax, esi
and eax, 0x1f
imul ecx, eax, 0x24
mov eax, dword [edx*4 + sym.msvcrt.dll___pioinfo]
or byte [eax + ecx + 4], 0x10
mov edx, edi
sar edx, 5
mov eax, edi
and eax, 0x1f
imul ecx, eax, 0x24
mov eax, dword [edx*4 + sym.msvcrt.dll___pioinfo]
or byte [eax + ecx + 4], 0x10
push dword [ebp - 0x2c]
push esi
call fcn.76b3b6fd
push dword [ebp - 0x30]
push edi
call fcn.76b3b6fd
add esp, 0x10
call sym.msvcrt.dll__errno
mov dword [eax], ebx
mov eax, dword [ebp - 0x1c]
jmp 0x76b3cdf0
mov edx, esi
sar edx, 5
mov eax, esi
and eax, 0x1f
imul ecx, eax, 0x24
mov eax, dword [edx*4 + sym.msvcrt.dll___pioinfo]
mov byte [eax + ecx + 4], bl
jmp 0x76b3cded
mov edi, dword [ebp - 0x28]
xor eax, eax
inc eax
test eax, eax
je 0x76b3ce1d
call sym.msvcrt.dll__errno
mov dword [eax], 0x18
push dword [ebp - 0x2c]
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
push dword [ebp - 0x30]
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
call sym.msvcrt.dll___doserrno
mov dword [eax], ebx
jmp 0x76b3cbd7
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov eax, dword [ebp - 0x38]
mov dword [eax], edi
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret