Function at 0x10024220
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], 0x10025540
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 0x100242ac
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 [0x100eb0f0]
test eax, eax
jne 0x100242ed
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 [0x100eb0f0], eax
mov eax, dword [0x100eb0f0]
test eax, eax
je 0x100242d0
mov eax, 1
lock xadd dword [0x100eb0f0], eax
mov dword [esi + 0x30], 0x100c98e0
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.1003a430
mov dword [esi + 0x68], eax
lea eax, [esi + 0x60]
mov dword [esi + 0x6c], fcn.1003a430
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.100363b0
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 0x10024386
push 1
push edx
push dword [esi + 0x10]
call fcn.1000c750
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.1002a840
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 0x10024491
mov eax, dword [esi + 0x2c]
lea ebx, [eax + 1]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, 0xa
jge 0x10024460
cmp eax, 5
jne 0x10024430
mov dword [esi + 0x2c], ebx
jmp 0x10024442
cmp dword [esi + 0x18], 0
je 0x10024460
cmp eax, 0x57
mov dword [esi + 0x18], 0
jne 0x10024460
mov eax, dword [esi + 0x30]
test eax, eax
je 0x100242a0
add eax, eax
push 2
push eax
push edi
call fcn.1000c750
add esp, 0xc
jmp 0x100242a0
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 0x1002456b
add eax, eax
push 2
push eax
push edi
call fcn.1000c750
add esp, 0xc
jmp 0x1002456b
mov eax, dword [esi + 0x30]
test eax, eax
je 0x100244a6
add eax, eax
push 2
push eax
push edi
call fcn.1000c750
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.1001d540
add esp, 0x10
movzx eax, byte [esi + 0x1c]
cmp al, 4
jne 0x1002454a
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 0x1002458f
push 1
push eax
push dword [esi + 0x10]
call fcn.1000c750
add esp, 0xc
jmp 0x1002458f
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 0x10024583
push 1
push eax
push dword [esi + 0x10]
call fcn.1000c750
add esp, 0xc
cmp edi, 0xffffffff
je 0x1002458f
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