Function at 0x64081fb0
Capabilities:
Connect pipe
Create pipe

Disassembly:
sub esp, 0x5c
mov eax, dword [0x640f0ebc]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 0x54], 0
mov eax, dword [ebp + 0x30]
xorps xmm0, xmm0
push esi
push edi
lea edi, [ebp + 0x30]
movq qword [esp + 0x54], xmm0
mov eax, dword [eax]
movups xmmword [esp + 0x44], xmm0
cmp eax, 1
je 0x640820bd
test eax, eax
je 0x640820bd
mov ecx, dword [edi]
mov dword [esp + 0x20], bind
push 1
mov eax, dword [ecx + 8]
add ecx, 0x10
lea ebx, [ecx + eax*4]
mov ecx, edi
lea eax, [esp + 0x24]
push eax
call dword [0x640b0cc4]
mov edi, dword [edi]
mov ecx, dword [esp + 0x20]
add ecx, 4
mov dword [esp + 0x24], eax
push ebx
mov edx, dword [edi + 8]
add ecx, edx
lea esi, [edi + ecx*4]
add edi, 0x10
push esi
lea ecx, [edi + edx*4]
push ecx
lea ecx, [ebp + 0x30]
call fcn.64082860
mov ecx, dword [ebp + 0x30]
mov esi, dword [esp + 0x20]
mov eax, dword [ecx + 0xc]
add eax, 4
lea edi, [ebx + esi*4]
push edi
lea edi, [ebp + 0x30]
lea edx, [ecx + eax*4]
mov eax, dword [ecx + 8]
add ecx, 0x14
add eax, esi
push edx
lea eax, [ecx + eax*4]
mov ecx, edi
push eax
call fcn.64082860
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx]
test eax, eax
je 0x64082083
cmp eax, 0xffffffff
je 0x6408208b
or eax, 0xffffffff
lock xadd dword [ecx], eax
setne al
test al, al
jne 0x6408208b
push ecx
mov ecx, edi
call fcn.64082620
mov ecx, dword [edi]
push 0x1c
mov eax, dword [ecx + 8]
add eax, dword [esp + 0x24]
lea esi, [ecx + eax*4]
call fcn.640ae2b5
movups xmm0, xmmword [esp + 0x48]
mov ecx, dword [esp + 0x60]
movups xmmword [eax], xmm0
movq xmm0, qword [esp + 0x58]
movq qword [eax + 0x10], xmm0
mov dword [eax + 0x18], ecx
mov dword [esi + 0x10], eax
jmp 0x640820ea
mov ecx, edi
call dword [0x640b0cbc]
push 0x1c
mov esi, eax
call fcn.640ae2b5
movups xmm0, xmmword [esp + 0x48]
mov ecx, dword [esp + 0x60]
movups xmmword [eax], xmm0
movq xmm0, qword [esp + 0x58]
movq qword [eax + 0x10], xmm0
mov dword [eax + 0x18], ecx
mov dword [esi], eax
add esp, 4
mov ecx, edi
call fcn.64082670
mov ecx, dword [edi]
xor esi, esi
mov eax, dword [ecx + 0xc]
mov ebx, dword [ecx + eax*4 + 0xc]
lea ecx, [esp + 0x30]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], 0xc
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x1c], esi
call dword [0x640b0df8]
lea ecx, [esp + 0x2c]
call dword [0x640b0df8]
lea ecx, [esp + 0x28]
call dword [0x640b0df8]
test byte [ebp + 0x54], 7
je 0x640823f0
push 0x14
call fcn.640ae2b5
push 0x14
push 0
mov esi, eax
call fcn.640ae2e5
add esp, 0xc
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x64082197
push 0x640bfe20
push 0x20
lea ecx, [esp + 0x18]
call dword [0x640b0d9c]
lea eax, [esp + 0x10]
mov ecx, ebp
push eax
call fcn.64082920
lea ecx, [esp + 0x10]
call dword [0x640b0d94]
xor bl, bl
jmp 0x640824ba
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x6408249d
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 1
push dword [esp + 0x28]
mov dword [esp + 0x28], 0
call edi
push dword [esp + 0x14]
lea ecx, [esp + 0x30]
push 0
call dword [0x640b0bb4]
lea ecx, [esp + 0x2c]
call dword [0x640b0d00]
mov ebx, eax
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x18]
mov dword [esp + 0x2c], ebx
push ebx
push 1
push dword [esp + 0x28]
call edi
test eax, eax
je 0x6408225d
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push 0
push 0
push 5
push dword [esp + 0x28]
call edi
push dword [esp + 0x14]
lea ecx, [esp + 0x2c]
push 0
call dword [0x640b0bb4]
lea ecx, [esp + 0x28]
call dword [0x640b0d00]
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], eax
push ecx
push dword [esp + 0x18]
push eax
push 5
push dword [esp + 0x28]
call edi
test eax, eax
jne 0x64082295
push 0x640bfe20
push 0x20
lea ecx, [esp + 0x18]
call dword [0x640b0d9c]
lea eax, [esp + 0x10]
mov ecx, ebp
push eax
call fcn.64082920
lea ecx, [esp + 0x10]
call dword [0x640b0d94]
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
jmp 0x640824ba
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x1c]
mov dword [esp + 0x60], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 1
lea eax, [esp + 0x88]
mov word [esp + 0x8c], 0x100
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x64082169
push dword [ebx]
mov ebx, dword [sym.imp.ADVAPI32.dll_GetLengthSid]
call ebx
lea edi, [eax + 0x28]
mov eax, dword [esp + 0x20]
push dword [eax]
call ebx
push dword [esp + 0x1c]
add eax, 0xfffffffc
add edi, eax
call ebx
dec eax
lea ecx, [esp + 0x30]
add edi, eax
and edi, 0xfffffffc
push edi
push 0
call dword [0x640b0bb4]
lea ecx, [esp + 0x30]
call dword [0x640b0d00]
push 4
mov ebx, eax
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test byte [ebp + 0x54], 1
mov ecx, dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
je 0x6408234d
mov eax, dword [esp + 0x24]
push dword [eax]
push 0x1f01ff
push 2
push ebx
call ecx
test eax, eax
je 0x64082383
mov ecx, dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
test byte [ebp + 0x54], 2
mov edi, dword [esp + 0x20]
je 0x64082367
push dword [edi]
push 0x1f01ff
push 2
push ebx
call ecx
test eax, eax
je 0x64082383
test byte [ebp + 0x54], 4
je 0x640823bb
push dword [esp + 0x1c]
push 0x1f01ff
push 2
push ebx
call dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
test eax, eax
jne 0x640823bb
push 0x640bfe20
push 0x20
lea ecx, [esp + 0x18]
call dword [0x640b0d9c]
lea eax, [esp + 0x10]
mov ecx, ebp
push eax
call fcn.64082920
lea ecx, [esp + 0x10]
call dword [0x640b0d94]
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
xor bl, bl
jmp 0x640824ba
mov eax, dword [esp + 0x24]
push 0
push dword [eax]
push esi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorOwner]
push 0
push dword [edi]
push esi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorGroup]
push 0
push ebx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x64082383
mov ebx, dword [esp + 0x34]
lea edi, [ebp + 0x30]
mov dword [esp + 0x3c], esi
lea eax, [esp + 0x38]
push eax
push 0xbb8
push 0
push 0
push 0xff
push 0
push 0x40000003
lea ecx, [ebp + 0x40]
call dword [0x640b09b0]
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [ebx], eax
cmp eax, 0xffffffff
je 0x6408246f
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x64082430
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
lea ecx, [ebx + 4]
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
mov eax, dword [ebp + 0x34]
push ecx
push dword [ebx]
mov dword [ebx + 0x14], eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x640824af
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x640824a8
cmp eax, 0x3e5
je 0x640824a1
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x640bfe20
push 0x20
lea ecx, [esp + 0x18]
call dword [0x640b0d9c]
lea eax, [esp + 0x10]
mov ecx, ebp
push eax
call fcn.64082920
lea ecx, [esp + 0x10]
call dword [0x640b0d94]
mov ecx, edi
call fcn.640828b0
xor bl, bl
jmp 0x640824ba
xor al, al
mov byte [ebx + 0x18], al
jmp 0x640824b8
mov al, 1
mov byte [ebx + 0x18], al
jmp 0x640824b8
push dword [ebp + 0x34]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov bl, 1
lea ecx, [esp + 0x28]
call dword [0x640b0df0]
lea ecx, [esp + 0x2c]
call dword [0x640b0df0]
lea ecx, [esp + 0x30]
call dword [0x640b0df0]
push 0x14
push esi
call fcn.640ae2e5
mov ecx, dword [esp + 0x70]
add esp, 8
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.640ae828
add esp, 0x5c
ret