Function at 0x100184b0
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 0x1006addf
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 0x1001856d
mov edx, dword [esi + 0x1c]
lea ecx, [esi + 0xc]
mov eax, 0x7ffffffe
sub eax, edx
cmp eax, 9
jb 0x100187ea
cmp dword [ecx + 0x14], 7
jbe 0x1001850b
mov ecx, dword [ecx]
push edx
push ecx
push 9
push 0x10098d50
push ecx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x30]
call fcn.10019020
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 0x1001855e
test ecx, ecx
jle 0x1001855b
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.100104a0
mov eax, dword [0x100ad1b8]
test al, 1
jne 0x100185ad
or eax, 1
mov dword [0x100ad1b8], eax
mov dword [ebp - 4], 1
push 0x1006d030
mov dword [0x100ad1b0], 0
mov dword [0x100ad1b4], 0xc0000225
call fcn.10047fb9
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0x10098d64
lea ecx, [ebp - 0x30]
call fcn.10010700
mov dword [ebp - 4], 2
cmp dword [0x100ad1b0], 0
jg 0x10018633
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push 0x1009b534
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov byte [ebp - 4], 3
mov ecx, dword [0x100ad1b0]
cmp edi, ecx
je 0x10018607
test ecx, ecx
jle 0x100185ff
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x100ad1b0], edi
mov ecx, edi
mov byte [ebp - 4], 2
test ecx, ecx
jle 0x1001861b
mov dword [0x100ad1b4], 0
jmp 0x10018633
sub esp, 0x18
lea eax, [ebp - 0x30]
mov ecx, esp
push eax
call fcn.10014470
mov ecx, 0x100ad1b0
call fcn.100205b0
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
call fcn.100104a0
mov eax, dword [0x100ad1b8]
test al, 1
jne 0x10018682
or eax, 1
mov dword [0x100ad1b8], eax
mov dword [ebp - 4], 4
push 0x1006d030
mov dword [0x100ad1b0], 0
mov dword [0x100ad1b4], 0xc0000225
call fcn.10047fb9
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
xorps xmm0, xmm0
mov edx, dword [0x100ad1b0]
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x70], xmm0
mov eax, dword [eax + 4]
movups xmmword [ebp - 0x60], xmm0
cmp edx, 0xffffffff
jne 0x100186ae
mov edi, 0xc00000c0
jmp 0x100187d3
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 0x100186ea
xor edi, edi
jmp 0x100186fe
mov eax, dword fs:[0x18]
mov edi, dword [eax + 0xbf4]
test edi, edi
js 0x100187d3
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.10047c76
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 [0x100ad1b8]
test al, 1
jne 0x10018776
or eax, 1
mov dword [0x100ad1b8], eax
mov byte [ebp - 4], 6
push 0x1006d030
mov dword [0x100ad1b0], 0
mov dword [0x100ad1b4], 0xc0000225
call fcn.10047fb9
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, 0x100ad1b0
push eax
push edx
call fcn.100207a0
test eax, eax
js 0x100187b5
add esi, 4
lea eax, [ebp - 0x3c]
cmp esi, eax
je 0x100187b5
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 0x100187b8
mov edx, dword [ebp - 0x3c]
push dword [edx + 4]
lea eax, [ebp - 0x3c]
push eax
mov ecx, eax
call fcn.10018e00
push 0x28
push dword [ebp - 0x3c]
call fcn.10047ca6
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.1000f9a0
int3