Function at 0x4035d5
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 0x403663
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 0x403653
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x40361f
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp eax, ebx
jl 0x40362d
mov dword [ebp - 4], 0x80004005
push dword [ebp - 4]
push 0x121
push str.pipe.cpp
call fcn.0042fdc3
push str.Failed_to_create_the_security_descriptor_for_the_connection_event_and_pipe.
push dword [ebp - 4]
call fcn.0042d996
pop ecx
pop ecx
jmp 0x403757
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.0042f202
add esp, 0xc
mov dword [ebp - 4], eax
cmp eax, ebx
jge 0x403696
push dword [esi]
push str.Failed_to_allocate_full_name_of_pipe:__ls
push eax
call fcn.0042d996
add esp, 0xc
jmp 0x403756
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 0x403711
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4036dc
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
test eax, eax
jl 0x4036ea
mov dword [ebp - 4], 0x80004005
push dword [ebp - 4]
push 0x131
push str.pipe.cpp
call fcn.0042fdc3
push dword [ebp - 8]
push str.Failed_to_create_pipe:__ls
push dword [ebp - 4]
call fcn.0042d996
add esp, 0xc
jmp 0x403754
cmp dword [ebp + 0xc], 0
je 0x4037d4
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 8]
push str..pipe_ls.Cache
push eax
call fcn.0042f202
add esp, 0xc
mov dword [ebp - 4], eax
test eax, eax
jns 0x40377b
mov ecx, dword [ebp + 8]
push dword [ecx]
push str.Failed_to_allocate_full_name_of_cache_pipe:__ls
push eax
call fcn.0042d996
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 0x403764
push dword [ebp - 8]
call fcn.0042dd7e
cmp dword [ebp - 0xc], ebx
pop edi
pop ebx
je 0x403774
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 0x4037d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4037a4
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
test eax, eax
jl 0x4037b2
mov dword [ebp - 4], 0x80004005
push dword [ebp - 4]
push 0x13d
push str.pipe.cpp
call fcn.0042fdc3
push dword [ebp - 8]
push str.Failed_to_create_pipe:__ls
push dword [ebp - 4]
jmp 0x403743
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 0x403754