Function at 0x4035a5
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 0x403633
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 0x403623
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
ret
jle 0x4035ef
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp eax, ebx
jl 0x4035fd
mov dword [ebp - 4], 0x80004005
push dword [ebp - 4]
push 0x132
push str.pipe.cpp
call fcn.0043294e
push str.Failed_to_create_the_security_descriptor_for_the_connection_event_and_pipe.
push dword [ebp - 4]
call fcn.0042fa86
pop ecx
pop ecx
jmp 0x403727
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.0043177a
add esp, 0xc
mov dword [ebp - 4], eax
cmp eax, ebx
ret
jge 0x403666
push dword [esi]
push str.Failed_to_allocate_full_name_of_pipe:__ls
push eax
call fcn.0042fa86
add esp, 0xc
jmp 0x403726
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 0x4036e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4036ac
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
test eax, eax
jl 0x4036ba
mov dword [ebp - 4], 0x80004005
push dword [ebp - 4]
push 0x142
push str.pipe.cpp
call fcn.0043294e
push dword [ebp - 8]
push str.Failed_to_create_pipe:__ls
push dword [ebp - 4]
call fcn.0042fa86
add esp, 0xc
jmp 0x403724
cmp dword [ebp + 0xc], 0
je 0x4037a4
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 8]
push str..pipe_ls.Cache
push eax
call fcn.0043177a
add esp, 0xc
mov dword [ebp - 4], eax
test eax, eax
jns 0x40374b
mov ecx, dword [ebp + 8]
push dword [ecx]
push str.Failed_to_allocate_full_name_of_cache_pipe:__ls
push eax
call fcn.0042fa86
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 0x403734
push dword [ebp - 8]
call fcn.004301e8
cmp dword [ebp - 0xc], ebx
pop edi
pop ebx
je 0x403744
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 0x4037a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x403774
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
test eax, eax
jl 0x403782
mov dword [ebp - 4], 0x80004005
push dword [ebp - 4]
push 0x14e
push str.pipe.cpp
call fcn.0043294e
push dword [ebp - 8]
push str.Failed_to_create_pipe:__ls
push dword [ebp - 4]
jmp 0x403713
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 0x403724