Function at 0x462700
Capabilities:
Connect pipe
Create pipe
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60e885
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x69f000]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 0xc]
lea eax, [esi + 0x20]
push eax
mov dword [ebp - 0x8c], eax
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
cmp byte [esi + 0x39], 0
je 0x46275f
mov eax, dword [ebp - 0x8c]
push eax
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov eax, 5
jmp 0x462ae9
lea eax, [esi + 0x58]
push eax
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
cmp dword [esi + 0x54], 0
je 0x462797
nop
mov ecx, dword [esi + 0x4c]
mov eax, dword [esi + 0x48]
dec ecx
and ecx, dword [esi + 0x50]
mov ecx, dword [eax + ecx*4]
lea ecx, [ecx + 0xc]
call fcn.0040bd90
add dword [esi + 0x54], 0xffffffff
je 0x462790
inc dword [esi + 0x50]
jmp 0x462770
mov dword [esi + 0x50], 0
lea eax, [esi + 0x58]
push eax
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x4627ab
mov ecx, dword [edi]
mov edx, dword [edi + 0x10]
push 0
push 0x65fe6c
call fcn.0040ce20
add esp, 8
test eax, eax
je 0x462ad9
push edi
mov edx, str..pipe_
lea ecx, [ebp - 0x28]
call fcn.0041d990
mov edi, eax
add esp, 4
cmp esi, edi
je 0x462806
mov ecx, esi
call fcn.0040bd90
movups xmm0, xmmword [edi]
xor eax, eax
movups xmmword [esi], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
lea ecx, [ebp - 0x28]
call fcn.0040bd90
mov eax, dword [ebp + 8]
sub eax, 1
je 0x462914
sub eax, 1
jne 0x462ad9
mov dword [esi + 0x18], 2
lea edi, [eax + 1]
nop dword [eax]
push str._OUT
lea eax, [ebp - 0x40]
push esi
push eax
call fcn.004100a0
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x462851
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x8c], eax
mov dword [ebp - 4], 0xffffffff
call fcn.0040bd90
mov eax, dword [ebp - 0x8c]
cmp eax, 0xffffffff
je 0x46288e
test eax, eax
jne 0x4628ad
cmp edi, 0x57e40
je 0x462ab8
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
inc edi
cmp edi, 0x57e40
jle 0x462830
jmp 0x4628b0
mov dword [esi + 0x70], eax
push 0x66e9f8
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.004100a0
add esp, 0xc
mov dword [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x4628d1
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0xffffffff
mov edi, eax
call fcn.0040bd90
test edi, edi
je 0x462ab1
cmp edi, 0xffffffff
je 0x462ab1
mov dword [esi + 0x74], edi
jmp 0x462a7c
push str._OUT
lea eax, [ebp - 0x70]
mov dword [esi + 0x18], 1
push esi
push eax
call fcn.004100a0
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x462935
mov eax, dword [eax]
push 0
push 0
push 0x5000
push 0x5000
push 1
push 1
push 2
push eax
call dword [sym.imp.KERNEL32.DLL_CreateNamedPipeW]
lea ecx, [ebp - 0x70]
mov edi, eax
call fcn.0040bd90
cmp edi, 0xffffffff
je 0x462ab8
test edi, edi
je 0x462ab8
push 0x66e9f8
lea eax, [ebp - 0x88]
mov dword [esi + 0x74], edi
push esi
push eax
call fcn.004100a0
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x46298b
mov eax, dword [eax]
push 0
push 0
push 0x5000
push 0x5000
push 1
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.DLL_CreateNamedPipeW]
lea ecx, [ebp - 0x88]
mov edi, eax
call fcn.0040bd90
cmp edi, 0xffffffff
je 0x462ab1
test edi, edi
je 0x462ab1
mov dword [esi + 0x70], edi
xor edi, edi
nop dword [eax]
push 0
push dword [esi + 0x70]
inc edi
call dword [sym.imp.KERNEL32.DLL_ConnectNamedPipe]
test eax, eax
jne 0x462a18
call dword [sym.imp.KERNEL32.DLL_GetLastError]
xor ecx, ecx
cmp eax, 0x217
sete cl
mov dword [ebp - 0x8c], ecx
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp dword [ebp - 0x8c], 0
jne 0x462a1e
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
cmp edi, 0x57e40
jl 0x4629d0
inc edi
jmp 0x462a1e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp edi, 0x57e41
jne 0x462a42
mov ecx, esi
call fcn.00462ef0
lea eax, [esi + 0x20]
push eax
mov eax, dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
call eax
mov eax, 4
jmp 0x462ae9
push 0
push dword [esi + 0x74]
call dword [sym.imp.KERNEL32.DLL_ConnectNamedPipe]
test eax, eax
je 0x462a59
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x462a7c
mov edi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call edi
xor ecx, ecx
cmp eax, 0x217
sete cl
mov dword [ebp - 0x8c], ecx
call edi
cmp dword [ebp - 0x8c], 0
je 0x462ab1
lea eax, [ebp - 0x90]
mov byte [esi + 0x39], 1
push eax
push 0
push esi
push 0x4622a0
push 0
push 0
mov byte [esi + 0x38], 1
mov dword [ebp - 0x90], 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [esi + 0x1c], eax
test eax, eax
jne 0x462aca
mov byte [esi + 0x38], al
mov ecx, esi
call fcn.00462ef0
lea eax, [esi + 0x20]
push eax
mov eax, dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
call eax
mov eax, 0xfffffffa
jmp 0x462ae9
lea eax, [esi + 0x20]
push eax
mov eax, dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
call eax
xor eax, eax
jmp 0x462ae9
lea eax, [esi + 0x20]
push eax
mov eax, dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
call eax
mov eax, 0xfffffff9
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005d077b
mov esp, ebp
pop ebp
ret 0x18