Function at 0x4035ad
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
or dword [ebp - 0x14], 0xffffffff
push ebx
push edi
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
xor ebx, ebx
stosd dword es:[edi], eax
mov dword [ebp - 0xc], ebx
stosd dword es:[edi], eax
mov dword [ebp - 8], ebx
cmp dword [ebp + 0xc], ebx
jne 0x40363b
push ebx
lea eax, [ebp - 0xc]
push eax
push 1
push str.D:_A__GA___SY__A__GA___BA__A__GRGW0x00100000___WD_
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
jne 0x40362b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x4035f7
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp eax, ebx
jl 0x403605
mov dword [ebp - 4], 0x80004005
push dword [ebp - 4]
push 0x132
push str.pipe.cpp
call fcn.00432f06
push str.Failed_to_create_the_security_descriptor_for_the_connection_event_and_pipe.
push dword [ebp - 4]
call fcn.00430126
pop ecx
pop ecx
jmp 0x40372f
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], 0xc
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ebx
push esi
mov esi, dword [ebp + 8]
push dword [esi]
lea eax, [ebp - 8]
push str..pipe_ls
push eax
call fcn.00431d32
add esp, 0xc
mov dword [ebp - 4], eax
cmp eax, ebx
jge 0x40366e
push dword [esi]
push str.Failed_to_allocate_full_name_of_pipe:__ls
push eax
call fcn.00430126
add esp, 0xc
jmp 0x40372e
mov eax, dword [ebp - 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
neg eax
sbb eax, eax
lea ecx, [ebp - 0x20]
and eax, ecx
push eax
push 1
mov esi, 0x10000
push esi
push esi
push 1
push ebx
mov ebx, 0x80003
push ebx
push dword [ebp - 8]
call edi
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x4036e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4036b4
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
test eax, eax
jl 0x4036c2
mov dword [ebp - 4], 0x80004005
push dword [ebp - 4]
push 0x142
push str.pipe.cpp
call fcn.00432f06
push dword [ebp - 8]
push str.Failed_to_create_pipe:__ls
push dword [ebp - 4]
call fcn.00430126
add esp, 0xc
jmp 0x40372c
cmp dword [ebp + 0xc], 0
je 0x4037ac
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 8]
push str..pipe_ls.Cache
push eax
call fcn.00431d32
add esp, 0xc
mov dword [ebp - 4], eax
test eax, eax
jns 0x403753
mov ecx, dword [ebp + 8]
push dword [ecx]
push str.Failed_to_allocate_full_name_of_cache_pipe:__ls
push eax
call fcn.00430126
add esp, 0xc
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
pop esi
cmp dword [ebp - 8], ebx
je 0x40373c
push dword [ebp - 8]
call fcn.00430887
cmp dword [ebp - 0xc], ebx
pop edi
pop ebx
je 0x40374c
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 4]
leave
ret 0xc
push 0
push 1
push esi
push esi
push 1
push 0
push ebx
push dword [ebp - 8]
call edi
cmp eax, 0xffffffff
jne 0x4037af
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40377c
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
test eax, eax
jl 0x40378a
mov dword [ebp - 4], 0x80004005
push dword [ebp - 4]
push 0x14e
push str.pipe.cpp
call fcn.00432f06
push dword [ebp - 8]
push str.Failed_to_create_pipe:__ls
push dword [ebp - 4]
jmp 0x40371b
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp + 0x10]
and dword [eax], 0
jmp 0x40372c