Function at 0x479fb0
Capabilities:
Create pipe
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x573b40
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x5edd38]
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
push dword [ebp + 0x10]
lea eax, [ebp - 0x54]
xorps xmm0, xmm0
xor ebx, ebx
movq qword [ebp - 0x54], xmm0
push eax
mov dword [ebp - 0x4c], ebx
call fcn.00479570
test al, al
lea edi, [ebp - 0x54]
cmove edi, ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0x18], eax
sub ecx, ebx
je 0x47a135
sub ecx, 1
je 0x47a01f
lea eax, [ebx + 8]
jmp 0x47a25b
lea eax, [esi + 0x40]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.004798e0
add esp, 8
cmp dword [ebp - 0x34], 8
lea eax, [ebp - 0x48]
push 0
cmovae eax, dword [ebp - 0x48]
push eax
mov dword [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
jne 0x47a056
lea esi, [eax + 4]
jmp 0x47a0ee
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x47a10e
cmp dword [esi + 0x8c], 0
je 0x47a10e
cmp dword [ebp - 0x34], 8
lea eax, [ebp - 0x48]
push 0
cmovae eax, dword [ebp - 0x48]
push 0x190000
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x47a0af
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 3
je 0x47a0af
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or edi, 0xffffffff
mov dword [ebp - 0x14], 0
cmp edi, 0xffffffff
je 0x47a10e
mov esi, dword [esi + 0x8c]
lea eax, [ebp - 0x14]
push eax
push edi
mov ecx, esi
call dword [0x5817c0]
call esi
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x47a10e
mov eax, dword [ebp - 0x14]
cmp ebx, eax
je 0x47a10e
cmp dword [ebp - 0x18], eax
je 0x47a10e
mov esi, 0xb
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 4], 4
cmp ecx, 8
jb 0x47a259
inc ecx
push ecx
push dword [ebp - 0x48]
lea ecx, [ebp - 0x48]
jmp 0x47a254
mov eax, dword [ebp - 0x34]
mov dword [ebp - 4], 5
cmp eax, 8
jb 0x47a231
inc eax
lea ecx, [ebp - 0x48]
push eax
push dword [ebp - 0x48]
call fcn.0040a2e0
xor eax, eax
jmp 0x47a25b
mov bl, byte [ebp + 0xc]
push 0
push 0
push 1
push 0
mov byte [esi + 0xc], bl
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 8], eax
test eax, eax
jne 0x47a15a
mov eax, 2
jmp 0x47a25b
lea eax, [esi + 0x40]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004798e0
add esp, 8
lea ecx, [esi + 0x70]
mov dword [ebp - 4], 0
lea eax, [ebp - 0x30]
cmp ecx, eax
je 0x47a18c
cmp dword [ebp - 0x1c], 8
push dword [ebp - 0x20]
cmovae eax, dword [ebp - 0x30]
push eax
call fcn.00408f30
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
push edi
cmovae eax, dword [ebp - 0x30]
push 0x3e8
push 0
push 0
push 1
push 0xe
push 0x80003
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x47a1c9
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x50], 0
cmp dword [esi + 0x2c], 0xffffffff
jne 0x47a1e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [eax - 5]
neg esi
sbb esi, esi
add esi, 3
jmp 0x47a23d
mov eax, dword [ebp + 8]
push dword [esi + 8]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test bl, bl
je 0x47a235
lea eax, [ebp - 0x18]
push eax
push 0
push esi
push fcn.00479980
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x34], eax
test eax, eax
jne 0x47a215
lea esi, [eax + 2]
jmp 0x47a23d
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], 2
cmp eax, 8
jb 0x47a231
inc eax
lea ecx, [ebp - 0x30]
push eax
push dword [ebp - 0x30]
call fcn.0040a2e0
xor eax, eax
jmp 0x47a25b
push esi
call fcn.00479980
mov esi, eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 4], 1
cmp ecx, 8
jb 0x47a259
inc ecx
push ecx
push dword [ebp - 0x30]
lea ecx, [ebp - 0x30]
call fcn.0040a2e0
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.00401682
mov esp, ebp
pop ebp
ret 0xc