Function at 0x461e70
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
push ebx
push esi
push edi
mov edi, ecx
mov al, byte [edi]
nop
mov al, 1
xchg byte [edi], al
lea ecx, [edi + 0x48]
call fcn.00462e50
push 0x14
push pe_nt_image_headers32
mov dword [ebp - 0x28], 0xc
mov dword [ebp - 0x20], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 1
push eax
mov dword [ebp - 0x24], eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x461ec4
push 0
push 0
push 1
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov edx, dword [ebp + 8]
xorps xmm0, xmm0
mov ecx, edx
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x2c], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x461ee1
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.00414570
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x461f90
cmp dword [ebp - 0x2c], 0xf
lea eax, [ebp - 0x40]
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmova eax, dword [ebp - 0x40]
push 0
push 0
push ecx
push eax
push 0
push 0xfde9
call ebx
mov esi, eax
test esi, esi
jle 0x461f90
push esi
xorps xmm0, xmm0
mov dword [ebp - 0x7c], 0
push 0
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x78], 0
movups xmmword [ebp - 0x8c], xmm0
call fcn.00413a10
cmp dword [ebp - 0x78], 7
lea ecx, [ebp - 0x8c]
push esi
cmova ecx, dword [ebp - 0x8c]
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 0xf
push ecx
push dword [ebp - 0x30]
cmova eax, dword [ebp - 0x40]
push eax
push 0
push 0xfde9
call ebx
movups xmm0, xmmword [ebp - 0x8c]
movups xmmword [ebp - 0x58], xmm0
movq xmm0, qword [ebp - 0x7c]
movq qword [ebp - 0x48], xmm0
mov ebx, dword [ebp - 0x44]
jmp 0x461fac
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0
mov ebx, 7
xor eax, eax
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x44], ebx
mov word [ebp - 0x58], ax
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0xf
jbe 0x461fe0
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x461fd6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46226d
push ecx
push edx
call fcn.005ab85c
add esp, 8
cmp ebx, 7
mov dword [ebp - 0xc], 0
push 9
xorps xmm0, xmm0
mov dword [ebp - 8], 0
lea esi, [ebp - 0x58]
cmova esi, dword [ebp - 0x58]
lea ecx, [ebp - 0x1c]
push str..pipe_
movups xmmword [ebp - 0x1c], xmm0
call fcn.004134e0
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x462013
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x1c]
call fcn.00413740
mov ecx, dword [ebp - 8]
mov eax, ecx
mov ebx, dword [ebp - 0xc]
sub eax, ebx
cmp eax, 6
jb 0x462067
cmp ecx, 7
lea esi, [ebp - 0x1c]
lea eax, [ebx + 6]
cmova esi, dword [ebp - 0x1c]
push 0xc
mov dword [ebp - 0xc], eax
push str.Client
lea eax, [esi + ebx*2]
push eax
call fcn.005c3580
add esp, 0xc
xor eax, eax
mov word [esi + ebx*2 + 0xc], ax
jmp 0x46207b
push 6
push str.Client
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
push 6
call fcn.004135d0
cmp dword [ebp - 0x44], 7
lea esi, [ebp - 0x58]
push 9
cmova esi, dword [ebp - 0x58]
lea ecx, [ebp - 0x70]
xorps xmm0, xmm0
mov dword [ebp - 0x60], 0
push str..pipe_
movups xmmword [ebp - 0x70], xmm0
mov dword [ebp - 0x5c], 0
call fcn.004134e0
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4620b0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x70]
call fcn.00413740
cmp dword [ebp - 8], 7
lea ecx, [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
lea eax, [ebp - 0x1c]
cmova eax, dword [ebp - 0x1c]
push ecx
push 0
push 0x10000
push 0
push 1
push 6
push 1
push eax
call esi
cmp dword [ebp - 0x5c], 7
lea ecx, [ebp - 0x28]
push ecx
push 0
push 0
push 0x10000
push 1
mov dword [edi + 4], eax
lea eax, [ebp - 0x70]
cmova eax, dword [ebp - 0x70]
push 6
push 2
push eax
call esi
push dword [ebp - 0x24]
mov dword [edi + 8], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [edi + 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
je 0x462187
cmp dword [edi + 8], 0xffffffff
je 0x462184
lea eax, [ebp + 8]
mov dword [ebp + 8], edi
push eax
lea eax, [ebp - 0x74]
mov dword [ebp - 0x74], 0x4628f0
push eax
lea ecx, [ebp - 0x94]
call fcn.00462f70
cmp dword [edi + 0x3c], 0
jne 0x462272
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [eax], 0
mov dword [eax + 4], 0
cmp dword [ebp - 0x90], 0
mov dword [edi + 0x38], ecx
mov dword [edi + 0x3c], edx
jne 0x462272
mov bl, 1
jmp 0x462194
push eax
call esi
mov eax, dword [edi + 8]
cmp eax, 0xffffffff
je 0x462192
push eax
call esi
xor bl, bl
mov ecx, dword [ebp - 0x5c]
cmp ecx, 7
jbe 0x4621ce
mov edx, dword [ebp - 0x70]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4621c4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x462277
push ecx
push edx
call fcn.005ab85c
add esp, 8
mov ecx, dword [ebp - 8]
xor eax, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
cmp ecx, 7
jbe 0x462218
mov edx, dword [ebp - 0x1c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x46220e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x462277
push ecx
push edx
call fcn.005ab85c
add esp, 8
mov ecx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 7
mov word [ebp - 0x1c], ax
cmp ecx, 7
jbe 0x462262
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x462258
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x462277
push ecx
push edx
call fcn.005ab85c
add esp, 8
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.005c695f
call fcn.004122d0
call fcn.005c695f
int3