Function at 0x5085e0
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x168
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x50d630
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [0x6d1ebc]
lea edi, [esi + 8]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov al, byte [esi + 0x40]
mov dword [ebp - 0x10], 0
mov byte [ebp - 0x20], al
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [ebp - 0x20], 0
mov edi, 0xffffffff
je 0x50890a
lea eax, [ebp - 0x168]
push 0x110
push 0
push eax
call fcn.0061e8c0
add esp, 0xc
mov esi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov dword [ebp - 0x174], 0x11c
mov dword [ebp - 0x10], 0xffffffff
push 3
push 2
push 0
push 0
call esi
push 3
push 1
push edx
push eax
call esi
push 3
push 0x20
push edx
push eax
call esi
lea esi, [ebp - 0x174]
mov dword [ebp - 0x170], 6
mov dword [ebp - 0x16c], 0
mov word [ebp - 0x60], 0
push edx
push eax
push 0x23
push esi
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x50890a
call fcn.00406c60
push 0x6774a2
push esi
call fcn.0049eca0
add esp, 8
xor ebx, ebx
cmp dword [ebp - 0x164], 0
mov edi, 0xffffffff
je 0x5088bb
cmp dword [ebp - 0x160], 7
jbe 0x5086fb
mov esi, dword [ebp - 0x174]
mov dword [ebp - 0x10], 4
push esi
call fcn.00622c44
add esp, 4
test eax, eax
mov edi, 0xffffffff
mov ebx, 0
je 0x5088bb
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], 0
mov word [ebp - 0x3c], 0
sub esp, 0xc
mov cl, byte [ebp - 0x58]
mov byte [esp + 4], cl
lea ecx, [ebp - 0x3c]
mov dword [esp + 8], str..pipeACROCOMMACTWIN_
mov dword [esp], 0x19
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x40], ecx
call fcn.00405590
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x10], 5
lea eax, [ebp - 0x58]
push ecx
push 0x65d9de
push eax
call fcn.0043b100
add esp, 0xc
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x44], 7
lea ebx, [ebp - 0x58]
jbe 0x508783
mov ebx, dword [ebp - 0x58]
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
mov esi, edx
sub esi, ecx
cmp esi, eax
jae 0x5087b7
mov dword [ebp - 0x10], 6
sub esp, 0x10
mov cl, byte [ebp - 0x24]
mov byte [esp + 4], cl
lea ecx, [ebp - 0x3c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp], eax
call fcn.0040b010
jmp 0x5087e1
lea esi, [ecx + eax]
cmp edx, 7
mov dword [ebp - 0x2c], esi
jbe 0x5087c8
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x40], edx
mov edi, dword [ebp - 0x40]
add eax, eax
lea ecx, [edi + ecx*2]
push eax
push ebx
push ecx
call fcn.0061e340
add esp, 0xc
mov word [edi + esi*2], 0
mov ecx, dword [ebp - 0x44]
cmp ecx, 8
jb 0x508823
mov eax, dword [ebp - 0x58]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x508812
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x50892c
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
mov dword [ebp - 0x10], 5
mov dword [ebp - 0x10], 5
call fcn.00508170
mov ebx, eax
test eax, eax
je 0x508854
cmp dword [ebp - 0x28], 7
mov dword [ebp - 0x58], 0xc
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x20], ebx
jbe 0x50885b
mov eax, dword [ebp - 0x3c]
jmp 0x50885e
mov edi, 0xffffffff
jmp 0x508880
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x58]
push ecx
push 0x3e8
push 0
push 0
push 1
push 0xe
push 0x80003
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov ebx, dword [ebp - 0x20]
mov edi, eax
mov ecx, dword [ebp - 0x28]
cmp ecx, 8
jb 0x5088bb
mov eax, dword [ebp - 0x3c]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x5088b1
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x508938
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
mov ecx, dword [ebp - 0x160]
cmp ecx, 8
jb 0x5088f8
mov eax, dword [ebp - 0x174]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x5088ee
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x508920
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
test ebx, ebx
je 0x50890a
mov dword [ebp - 0x10], 0xffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, edi
add esp, 0x168
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 3
call fcn.006207e0
mov dword [ebp - 0x10], 1
call fcn.006207e0
mov dword [ebp - 0x10], 2
call fcn.006207e0
nop word cs:[eax + eax]
nop
push ebp
sub esp, 0x20
add ebp, 0xc
call fcn.0061de80
nop dword [eax]
push ebp
sub esp, 0x20
add ebp, 0xc
mov ecx, dword [ebp - 0x44]
cmp ecx, 8
jb 0x50899e
mov eax, dword [ebp - 0x58]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x508994
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x5089b7
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], 0
add esp, 0x20
pop ebp
ret
call fcn.006207e0
nop dword [eax]
push ebp
sub esp, 0x20
add ebp, 0xc
call fcn.0061de80
nop dword [eax]
push ebp
sub esp, 0x20
add ebp, 0xc
call fcn.0061de80
nop dword [eax]
push ebp
sub esp, 0x20
add ebp, 0xc
mov ecx, dword [ebp - 0x28]
cmp ecx, 8
jb 0x508a1e
mov eax, dword [ebp - 0x3c]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x508a14
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x508a37
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 7
mov word [ebp - 0x3c], 0
add esp, 0x20
pop ebp
ret
call fcn.006207e0
nop dword [eax]
push ebp
sub esp, 0x20
add ebp, 0xc
mov ecx, dword [ebp - 0x160]
cmp ecx, 8
jb 0x508a84
mov eax, dword [ebp - 0x174]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x508a7a
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x508a89
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
add esp, 0x20
pop ebp
ret
call fcn.006207e0
nop
push ebp
sub esp, 0x20
add ebp, 0xc
call fcn.0061de80
int3