Function at 0x10023950
Capabilities:
Create pipe
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xb0
mov esi, esp
mov dword [esi + 0x98], ebp
mov dword [esi + 0x9c], esp
mov dword [esi + 0xa8], 0xffffffff
mov dword [esi + 0xa4], 0x10024c80
lea eax, [esi + 0xa0]
mov dword [esi + 0xc], 0
mov dword [esi + 0x18], 8
mov dword [esi + 0x2c], 0
mov ecx, dword fs:[0]
mov dword [esi + 0xa0], ecx
mov dword fs:[0], eax
movzx eax, byte [ebp + 0xc]
mov ecx, 0x40080002
sub ecx, eax
mov al, 1
mov dword [esi + 0x14], eax
mov dword [esi + 0x70], ecx
jmp 0x100239dc
mov al, 1
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esi + 0x74], eax
mov edi, dword [sym.imp.bcryptprimitives.dll_ProcessPrng]
lea ebx, [esi + 0x30]
xorps xmm0, xmm0
mov eax, dword [0x100ef0f0]
test eax, eax
jne 0x10023a1d
nop word [eax + eax]
movaps xmmword [esi + 0x30], xmm0
push 0x10
push ebx
call edi
mov eax, dword [esi + 0x30]
xorps xmm0, xmm0
mov dword [0x100ef0f0], eax
mov eax, dword [0x100ef0f0]
test eax, eax
je 0x10023a00
mov eax, 1
lock xadd dword [0x100ef0f0], eax
mov dword [esi + 0x30], 0x100ccde0
mov dword [esi + 0x34], 2
mov dword [esi + 0x40], 0
mov byte [esi + 7], 1
mov dword [esi + 0xa8], 1
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0xc]
mov byte [esi + 6], al
lea eax, [esi + 0x74]
mov dword [esi + 0x60], eax
lea eax, [esi + 0x1c]
mov dword [esi + 0x64], fcn.100393d0
mov dword [esi + 0x68], eax
lea eax, [esi + 0x60]
mov dword [esi + 0x6c], fcn.100393d0
mov dword [esi + 0x38], eax
mov eax, dword [esi + 0x10]
mov dword [esi + 0x3c], 2
mov dword [esi + 0x24], eax
mov eax, dword [esi + 8]
mov dword [esi + 0x28], eax
push ebx
lea eax, [esi + 0x7c]
push eax
call fcn.10035b40
add esp, 8
mov edx, dword [esi + 8]
mov ecx, dword [esi + 0x14]
test edx, edx
sete al
or cl, al
test cl, 1
jne 0x10023ab6
push 1
push edx
push dword [esi + 0x10]
call fcn.1000be70
add esp, 0xc
mov ecx, dword [esi + 0x80]
mov eax, dword [esi + 0x84]
mov edx, dword [esi + 0x7c]
mov byte [esi + 6], 1
mov byte [esi + 7], 1
mov dword [esi + 0x14], eax
add eax, ecx
mov dword [esi + 0x8c], ecx
mov dword [esi + 0x10], ecx
mov dword [esi + 0x24], ecx
mov dword [esi + 8], edx
mov dword [esi + 0x28], edx
mov dword [esi + 0x90], eax
lea eax, [esi + 0x88]
mov word [esi + 0x94], 0
mov dword [esi + 0x88], 1
push eax
lea eax, [esi + 0x30]
push eax
call fcn.10029fa0
add esp, 8
mov edi, dword [esi + 0x34]
push 0
push 0
push 0x10000
push 0x10000
push 1
push dword [esi + 0x18]
push dword [esi + 0x70]
push edi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
cmp eax, 0xffffffff
mov dword [esi + 0xc], eax
jne 0x10023bc1
mov eax, dword [esi + 0x2c]
lea ebx, [eax + 1]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, 0xa
jge 0x10023b90
cmp eax, 5
jne 0x10023b60
mov dword [esi + 0x2c], ebx
jmp 0x10023b72
cmp dword [esi + 0x18], 0
je 0x10023b90
cmp eax, 0x57
mov dword [esi + 0x18], 0
jne 0x10023b90
mov eax, dword [esi + 0x30]
test eax, eax
je 0x100239d0
add eax, eax
push 2
push eax
push edi
call fcn.1000be70
add esp, 0xc
jmp 0x100239d0
mov ebx, dword [ebp + 8]
mov dword [ebx + 8], eax
mov eax, dword [esi + 0x30]
mov dword [ebx + 4], 0
mov dword [ebx], 1
test eax, eax
je 0x10023c9b
add eax, eax
push 2
push eax
push edi
call fcn.1000be70
add esp, 0xc
jmp 0x10023c9b
mov eax, dword [esi + 0x30]
test eax, eax
je 0x10023bd6
add eax, eax
push 2
push eax
push edi
call fcn.1000be70
add esp, 0xc
movzx eax, byte [ebp + 0x10]
mov dword [esi + 0x60], 0xc
mov dword [esi + 0x64], 0
mov ecx, dword [esi + 8]
mov dword [esi + 0x30], 0
mov dword [esi + 0x4c], 0
mov word [esi + 0x50], 0
xorps xmm0, xmm0
mov byte [esi + 6], 1
mov byte [esi + 7], 0
mov dword [esi + 0x68], eax
movzx eax, byte [ebp + 0xc]
mov dword [esi + 0x28], ecx
mov ecx, dword [esi + 0xc]
mov byte [esi + 0x4d], al
xor al, 1
mov dword [esi + 0x78], ecx
lea ecx, [esi + 0x30]
mov byte [esi + 0x4c], al
lea eax, [esi + 0x60]
movups xmmword [esi + 0x38], xmm0
mov dword [esi + 0x48], eax
mov eax, dword [esi + 0x10]
mov dword [esi + 0x24], eax
push ecx
push dword [esi + 0x14]
push eax
lea eax, [esi + 0x1c]
push eax
call fcn.1001cc50
add esp, 0x10
movzx eax, byte [esi + 0x1c]
cmp al, 4
jne 0x10023c7a
mov eax, dword [esi + 0x20]
mov ebx, dword [ebp + 8]
mov ecx, dword [esi + 0xc]
mov dword [ebx + 4], ecx
mov dword [ebx + 8], eax
mov eax, dword [esi + 8]
mov dword [ebx], 0
test eax, eax
je 0x10023cbf
push 1
push eax
push dword [esi + 0x10]
call fcn.1000be70
add esp, 0xc
jmp 0x10023cbf
movzx ecx, byte [esi + 0x1f]
mov ebx, dword [ebp + 8]
movzx edi, word [esi + 0x1d]
mov edx, dword [esi + 0x20]
mov byte [ebx + 7], cl
mov word [ebx + 5], di
mov byte [ebx + 4], al
mov dword [ebx + 8], edx
mov dword [ebx], 1
mov eax, dword [esi + 8]
mov edi, dword [esi + 0xc]
test eax, eax
je 0x10023cb3
push 1
push eax
push dword [esi + 0x10]
call fcn.1000be70
add esp, 0xc
cmp edi, 0xffffffff
je 0x10023cbf
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0xa0]
mov dword fs:[0], eax
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret