Function at 0x4420f0
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b5ae9
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x4e5a30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov esi, ecx
mov ecx, dword [ebp + 0x10]
mov dword [esi], ecx
lea ecx, [esi + 0x10]
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x38], eax
mov dword [esi + 4], edx
call fcn.0044b390
lea edi, [esi + 0x20]
xor ebx, ebx
mov eax, 7
xor ecx, ecx
mov dword [edi + 0x14], eax
mov dword [edi + 0x10], ebx
mov dword [ebp - 4], ebx
mov word [edi], cx
xor edx, edx
mov dword [esi + 0x50], eax
mov dword [esi + 0x4c], ebx
mov word [esi + 0x3c], dx
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
mov edx, dword [eax]
mov byte [ebp - 4], 2
call edx
push str.Server_created
mov dword [esi + 0x58], eax
call fcn.00440290
mov ecx, eax
call fcn.00440fe0
mov eax, dword [ebp - 0x38]
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x442184
sub eax, ecx
sar eax, 1
push eax
mov eax, dword [ebp - 0x38]
push eax
mov ecx, edi
call fcn.004024be
xor ecx, ecx
push ebx
mov word [ebp - 0x34], cx
mov byte [esi + 0x1c], bl
push 0x4c31e0
lea ecx, [ebp - 0x34]
mov byte [esi + 0x1d], bl
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x24], ebx
call fcn.004024be
mov ecx, dword [esi]
mov edx, dword [ecx]
mov edx, dword [edx]
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 3
call edx
cmp dword [ebp - 0x20], 8
mov dword [esi + 8], eax
jb 0x4421e8
mov eax, dword [ebp - 0x34]
push eax
call fcn.00468992
add esp, 4
lea ecx, [ebp - 0x3c]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
xor eax, eax
push ebx
push ebx
push 1
lea edx, [ebp - 0x18]
push edx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x14], 0x100
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
xor eax, eax
lea ecx, [ebp - 0x40]
push ecx
push ebx
lea edx, [ebp - 0x60]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x3c]
push edx
push 1
mov dword [ebp - 0x60], 0xffffffff
mov dword [ebp - 0x5c], 1
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], 5
mov dword [ebp - 0x44], eax
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
push 0x14
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 1
push eax
mov dword [ebp - 0x38], eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x38]
push ebx
push eax
push 1
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
cmp dword [edi + 0x14], 8
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x6c], 0xc
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], ebx
jb 0x4422b4
mov edi, dword [edi]
neg eax
sbb eax, eax
lea edx, [ebp - 0x6c]
and eax, edx
push eax
push ebx
push 0x400
push 0x400
push 0xff
push 4
push 3
push edi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x3c]
cmp eax, ebx
je 0x4422ea
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x40]
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp eax, ebx
je 0x4422fa
push eax
call edi
mov eax, dword [ebp - 0x38]
cmp eax, ebx
je 0x442304
push eax
call edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00469ca2
mov esp, ebp
pop ebp
ret 0xc