Function at 0x442150
Capabilities:
Check os version
Connect pipe
Create pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4614d8
mov eax, dword fs:[0]
push eax
sub esp, 0x1d4
mov eax, dword [0x4786a0]
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 esi, ecx
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [esi], 0xffffffff
call fcn.004218e0
lea ebx, [eax + 0x10]
mov dword [ebp - 0x1b8], ebx
mov byte [ebp - 4], 1
cmp dword [ebp + 0xc], edi
jne 0x4423a5
xor eax, eax
mov dword [ebp - 0x1d4], eax
mov dword [ebp - 0x1cc], eax
mov dword [ebp - 0x1d0], eax
mov dword [ebp - 0x1d4], 0xc
mov dword [ebp - 0x1cc], 1
mov dword [ebp - 0x1c4], edi
mov dword [ebp - 0x1c0], edi
mov byte [ebp - 4], 2
mov eax, dword [0x47bc40]
cmp dword [eax - 0xc], edi
setne al
test al, al
je 0x442341
mov dword [ebp - 0x1bc], edi
lea ecx, [ebp - 0x1bc]
push ecx
push 0x20008
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov ecx, dword [ebp - 0x1bc]
lea edx, [ebp - 0x1c8]
push edx
call fcn.00441640
mov edi, dword [eax]
mov dword [ebp - 0x1e0], edi
mov dword [eax], 0
mov dword [ebp - 0x1b4], edi
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x1c8]
push eax
call fcn.0044543c
lea ecx, [ebp - 0x1dc]
push edi
push ecx
call fcn.00441950
mov edi, dword [eax]
mov dword [eax], 0
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x1dc]
push edx
call fcn.0044543c
mov dword [ebp - 0x1d0], edi
mov eax, edi
add esp, 0x14
lea edi, [ebp - 0x1c4]
mov dword [ebp - 0x1c8], 0
call fcn.00442b30
push 4
push 0x46e2e0
lea ebx, [ebp - 0x1b8]
call fcn.00420540
push 0
call fcn.0044543c
mov eax, dword [ebp - 0x1e0]
push eax
call fcn.0044543c
mov eax, dword [ebp - 0x1bc]
add esp, 8
test eax, eax
je 0x4422ce
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x1b8]
mov edi, dword [ebp - 0x1c0]
lea ecx, [ebp - 0x1d4]
push ecx
push 0
push 0x400
push 0x400
push 0xff
push 6
push 3
push ebx
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi], eax
mov byte [ebp - 4], 1
test edi, edi
je 0x442470
lea edx, [edi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x442470
mov edx, dword [edi]
mov eax, dword [edx]
mov ecx, edi
call eax
lea ecx, [edi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x442470
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov ecx, edi
call edx
jmp 0x442470
push 0x11c
lea ecx, [ebp - 0x1ac]
push 0
push ecx
call fcn.00449910
add esp, 0xc
lea edx, [ebp - 0x1ac]
push edx
mov dword [ebp - 0x1ac], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x1a8], 6
jb 0x4422da
lea eax, [ebp - 0x1d4]
push eax
call fcn.00441c80
mov eax, dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x1d0]
add esp, 4
lea edi, [ebp - 0x1c4]
call fcn.00442b90
jmp 0x4422d4
call fcn.00441ed0
test al, al
je 0x4423c6
push 4
push 0x46e2e0
lea ebx, [ebp - 0x1b8]
call fcn.00420540
mov ebx, dword [ebp - 0x1b8]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push ebx
call edi
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x4424e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x442470
push 0xbb8
push ebx
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
jne 0x44245c
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x2c], ax
push 0x3d
mov eax, 0x46e2f0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
call fcn.00429690
push 0x190
push 0x46e098
sub esp, 0x48
mov byte [ebp - 4], 6
mov dword [ebp - 0x1b4], esp
lea ebx, [ebp - 0x2c]
mov esi, esp
call fcn.0041ee70
lea esi, [ebp - 0x74]
call fcn.004230f0
add esp, 0x50
push 0x4707ec
mov ecx, esi
push ecx
call fcn.00449840
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push ebx
call edi
mov dword [esi], eax
cmp dword [esi], 0xffffffff
jne 0x4424e4
xor edx, edx
mov ebx, 7
push 0x21
mov eax, 0x46e370
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], dx
call fcn.00429690
push 0x197
push 0x46e098
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x90]
push ecx
mov byte [ebp - 4], bl
call fcn.00441520
sub esp, 0x40
mov byte [ebp - 4], 8
mov ebx, eax
mov esi, esp
mov dword [ebp - 0x1b4], esp
call fcn.0041ee70
lea esi, [ebp - 0x74]
call fcn.004230f0
add esp, 0x50
push 0x4707ec
mov edx, esi
push edx
call fcn.00449840
mov ecx, dword [esi]
push 0
push 0
lea eax, [ebp - 0x1d8]
push eax
push ecx
mov dword [ebp - 0x1d8], 2
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
jne 0x442556
mov dword [ebp - 0x1c], eax
xor edx, edx
push 0x1e
mov eax, 0x46e3b4
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], dx
call fcn.00429690
push 0x19b
push 0x46e098
lea eax, [ebp - 0x2c]
push eax
lea ebx, [ebp - 0x90]
mov byte [ebp - 4], 9
call fcn.00441f60
sub esp, 0x48
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x1b4], esp
mov ebx, eax
jmp 0x44243d
cmp dword [ebp + 0xc], 0
jne 0x44266b
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x47bc44
call edi
mov edx, dword [esi]
push 0x47bc44
mov dword [0x47b6e4], edx
mov byte [0x47b6da], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x442609
call fcn.004426e0
xor ecx, ecx
mov word [ebp - 0x2c], cx
push 0x18
mov eax, 0x46e3f4
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
call fcn.00429690
push 0x1a9
push 0x46e098
lea edx, [ebp - 0x2c]
push edx
lea ebx, [ebp - 0x90]
mov byte [ebp - 4], 0xb
call fcn.00441f60
sub esp, 0x48
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x1b4], esp
mov ebx, eax
mov esi, esp
call fcn.0041ee70
lea esi, [ebp - 0x74]
call fcn.004230f0
add esp, 0x50
push 0x4707ec
mov eax, esi
push eax
jmp 0x442457
push 0x47bc44
call edi
mov cl, byte [0x47b6da]
push 0x47bc44
mov byte [ebp - 0x1ad], cl
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [ebp - 0x1ad], 0
je 0x442666
mov edx, dword [esi]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.004426e0
mov eax, 0x46e428
lea esi, [ebp - 0x2c]
call fcn.004297a0
push 0x1b9
push 0x46e098
sub esp, 0x48
mov byte [ebp - 4], 0xd
mov dword [ebp - 0x1b4], esp
mov ebx, esi
jmp 0x4425ea
call fcn.004426e0
add ebx, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44268b
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4426b1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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.00445447
mov esp, ebp
pop ebp
ret 8