Function at 0x1006fad0
Capabilities:
Connect pipe
Create pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1012fa4b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xdc
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x1c], esi
lea esp, [esp]
lea ebx, [esi + 0x48]
mov ecx, ebx
call fcn.1006e3f0
test al, al
jne 0x1006fca8
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xa8]
call fcn.1006e360
mov byte [ebp - 4], 1
push str..pipe_
lea ecx, [ebp - 0x30]
call fcn.100019d0
mov byte [ebp - 4], 2
lea edx, [esi + 0x18]
mov dword [ebp - 0x64], edx
cmp dword [edx + 0x18], 0x10
jb 0x1006fb51
mov edx, dword [edx + 4]
jmp 0x1006fb54
add edx, 4
push edx
lea ecx, [ebp - 0x14]
push ecx
mov ecx, eax
call fcn.100082c0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x30]
call fcn.10001c80
lea edx, [ebp - 0xa8]
push edx
mov eax, dword [esi + 0xa4]
push eax
push 0x1000
push 0x1000
push 0xff
push 0
push 0x40000003
mov ecx, dword [ebp - 0x14]
push ecx
call sub.KERNEL32.dll_CreateNamedPipeA
mov edi, eax
mov dword [ebp - 0x18], edi
push str.CreateNamedPipe
push edi
call fcn.1006ea50
add esp, 8
mov eax, dword [esi + 0x50]
cmp eax, 0xffffffff
je 0x1006fbba
push eax
call sub.KERNEL32.dll_SetEvent
xor edx, edx
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], edx
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x28]
call fcn.1001a5d0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x38]
call fcn.10008420
lea ecx, [ebp - 0x28]
call fcn.10001070
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x28]
call fcn.10001070
mov dword [ebp - 0x58], eax
mov ecx, ebx
call fcn.10001070
mov dword [ebp - 0x54], eax
lea ecx, [ebp - 0x50]
push ecx
push edi
call sub.KERNEL32.dll_ConnectNamedPipe
test eax, eax
jne 0x1006fcd7
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 0x68], eax
cmp eax, 0x217
je 0x1006fcd7
cmp eax, 0x3e5
je 0x1006fc5e
push eax
push 0x101454e8
lea ecx, [ebp - 0xe8]
call fcn.1006e6d0
push 0x10180678
lea edx, [ebp - 0xe8]
push edx
call fcn.10056f02
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 2
call fcn.1006e410
add esp, 0x10
mov ecx, ebx
call fcn.1006e3f0
test al, al
je 0x1006fcb9
push edi
call sub.KERNEL32.dll_CloseHandle
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.1001a590
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.10001c80
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa8]
call fcn.1006e3a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x101454e8
push 0
lea ecx, [ebp - 0x70]
push ecx
lea edx, [ebp - 0x50]
push edx
push edi
call sub.KERNEL32.dll_GetOverlappedResult
push eax
call fcn.1006e9e0
add esp, 8
push 8
call fcn.101209a7
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x80], eax
mov dword [eax + 4], esi
mov dword [eax], edi
push 0
push 0
push 0
push 0
push eax
push 0x1006fab0
call fcn.1006ebd0
add esp, 0x1c
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [esi + 0x34]
call fcn.1006f4e0
mov edi, dword [esi + 0x38]
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x20], edi
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x6c], eax
cmp edi, eax
je 0x1006fd6c
lea ecx, [ebp - 0x3c]
push ecx
mov edx, dword [edi]
push edx
call sub.KERNEL32.dll_GetExitCodeThread
test eax, eax
je 0x1006fd50
cmp dword [ebp - 0x3c], 0x103
jne 0x1006fd50
mov eax, edi
mov dword [ebp - 0x88], eax
add edi, 4
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x74], eax
jmp 0x1006fd17
mov eax, dword [edi]
push eax
call sub.KERNEL32.dll_CloseHandle
push edi
lea ecx, [ebp - 0x84]
push ecx
lea ecx, [esi + 0x34]
call fcn.1006ed50
mov edi, dword [eax]
jmp 0x1006fd14
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.1001a590
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.10001c80
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa8]
call fcn.1006e3a0
mov dword [ebp - 4], 0xffffffff
jmp 0x1006fb00