Function at 0x4035f2
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 0x403680
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 0x403670
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x40363c
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp eax, ebx
jl 0x40364a
mov dword [ebp - 4], 0x80004005
push dword [ebp - 4]
push 0x11e
push str.pipe.cpp
call fcn.0043166e
push str.Failed_to_create_the_security_descriptor_for_the_connection_event_and_pipe.
push dword [ebp - 4]
call fcn.0042eef6
pop ecx
pop ecx
jmp 0x403774
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.00430aad
add esp, 0xc
mov dword [ebp - 4], eax
cmp eax, ebx
jge 0x4036b3
push dword [esi]
push str.Failed_to_allocate_full_name_of_pipe:__ls
push eax
call fcn.0042eef6
add esp, 0xc
jmp 0x403773
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 0x40372e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4036f9
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
test eax, eax
jl 0x403707
mov dword [ebp - 4], 0x80004005
push dword [ebp - 4]
push 0x12e
push str.pipe.cpp
call fcn.0043166e
push dword [ebp - 8]
push str.Failed_to_create_pipe:__ls
push dword [ebp - 4]
call fcn.0042eef6
add esp, 0xc
jmp 0x403771
cmp dword [ebp + 0xc], 0
je 0x4037f1
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 8]
push str..pipe_ls.Cache
push eax
call fcn.00430aad
add esp, 0xc
mov dword [ebp - 4], eax
test eax, eax
jns 0x403798
mov ecx, dword [ebp + 8]
push dword [ecx]
push str.Failed_to_allocate_full_name_of_cache_pipe:__ls
push eax
call fcn.0042eef6
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 0x403781
push dword [ebp - 8]
call fcn.0042f657
cmp dword [ebp - 0xc], ebx
pop edi
pop ebx
je 0x403791
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 0x4037f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4037c1
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
test eax, eax
jl 0x4037cf
mov dword [ebp - 4], 0x80004005
push dword [ebp - 4]
push 0x13a
push str.pipe.cpp
call fcn.0043166e
push dword [ebp - 8]
push str.Failed_to_create_pipe:__ls
push dword [ebp - 4]
jmp 0x403760
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 0x403771