Function at 0x1001cea0
Capabilities:
Create pipe

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1006d8cf
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x60
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x24], 0
jg 0x1001cf5d
mov edx, dword [esi + 0x1c]
lea ecx, [esi + 0xc]
mov eax, 0x7ffffffe
sub eax, edx
cmp eax, 9
jb 0x1001d1da
cmp dword [ecx + 0x14], 7
jbe 0x1001cefb
mov ecx, dword [ecx]
push edx
push ecx
push 9
push 0x1009ae94
push ecx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x30]
call fcn.1001da20
cmp dword [ebp - 0x1c], 7
lea eax, [ebp - 0x30]
push 0
cmova eax, dword [ebp - 0x30]
push 0
push 0
push 0
push 1
push 4
push 3
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov edi, eax
mov dword [ebp - 4], 0
mov ecx, dword [esi + 0x24]
cmp edi, ecx
je 0x1001cf4e
test ecx, ecx
jle 0x1001cf4b
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x24], edi
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
call fcn.10010ed0
mov eax, dword [0x100b00d0]
test al, 1
jne 0x1001cf9d
or eax, 1
mov dword [0x100b00d0], eax
mov dword [ebp - 4], 1
push 0x1006fb70
mov dword [0x100b00c8], 0
mov dword [0x100b00cc], 0xc0000225
call fcn.1004a65c
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0x1009aea8
lea ecx, [ebp - 0x30]
call fcn.10011130
mov dword [ebp - 4], 2
cmp dword [0x100b00c8], 0
jg 0x1001d023
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push 0x1009c6b0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov byte [ebp - 4], 3
mov ecx, dword [0x100b00c8]
cmp edi, ecx
je 0x1001cff7
test ecx, ecx
jle 0x1001cfef
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x100b00c8], edi
mov ecx, edi
mov byte [ebp - 4], 2
test ecx, ecx
jle 0x1001d00b
mov dword [0x100b00cc], 0
jmp 0x1001d023
sub esp, 0x18
lea eax, [ebp - 0x30]
mov ecx, esp
push eax
call fcn.10016630
mov ecx, 0x100b00c8
call fcn.1001ec70
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
call fcn.10010ed0
mov eax, dword [0x100b00d0]
test al, 1
jne 0x1001d072
or eax, 1
mov dword [0x100b00d0], eax
mov dword [ebp - 4], 4
push 0x1006fb70
mov dword [0x100b00c8], 0
mov dword [0x100b00cc], 0xc0000225
call fcn.1004a65c
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
xorps xmm0, xmm0
mov edx, dword [0x100b00c8]
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x70], xmm0
mov eax, dword [eax + 4]
movups xmmword [ebp - 0x60], xmm0
cmp edx, 0xffffffff
jne 0x1001d09e
mov edi, 0xc00000c0
jmp 0x1001d1c3
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 8]
push 0
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x14]
push eax
push 0x20
lea eax, [ebp - 0x70]
mov dword [ebp - 0x24], ecx
push eax
push 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x1c], 1
push eax
push 0x8005e01c
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1001d0da
xor edi, edi
jmp 0x1001d0ee
mov eax, dword fs:[0x18]
mov edi, dword [eax + 0xbf4]
test edi, edi
js 0x1001d1c3
xorps xmm0, xmm0
mov dword [ebp - 0x40], 0
push 0x28
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
call fcn.1004a319
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], 5
mov eax, dword [0x100b00d0]
test al, 1
jne 0x1001d166
or eax, 1
mov dword [0x100b00d0], eax
mov byte [ebp - 4], 6
push 0x1006fb70
mov dword [0x100b00c8], 0
mov dword [0x100b00cc], 0xc0000225
call fcn.1004a65c
add esp, 4
mov byte [ebp - 4], 5
mov eax, dword [esi]
mov edx, dword [eax + 4]
lea eax, [ebp - 0x50]
push eax
push ecx
lea eax, [esi + 0xc]
mov ecx, 0x100b00c8
push eax
push edx
call fcn.1001ee60
test eax, eax
js 0x1001d1a5
add esi, 4
lea eax, [ebp - 0x3c]
cmp esi, eax
je 0x1001d1a5
mov eax, dword [ebp - 0x3c]
mov edx, dword [esi]
mov ecx, dword [esi + 4]
mov dword [esi], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], edx
mov dword [esi + 4], eax
mov dword [ebp - 0x38], ecx
jmp 0x1001d1a8
mov edx, dword [ebp - 0x3c]
push dword [edx + 4]
lea eax, [ebp - 0x3c]
push eax
mov ecx, eax
call fcn.1001d800
push 0x28
push dword [ebp - 0x3c]
call fcn.1004a349
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
call fcn.1000fa60
int3