Function at 0x45a8c0
Capabilities:
Create pipe
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x521960
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x579630]
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 - 0x50], xmm0
push eax
mov dword [ebp - 0x54], ebx
call fcn.00459ef0
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 - 0x14], eax
sub ecx, ebx
je 0x45a9ec
dec ecx
je 0x45a92d
lea eax, [ebx + 8]
jmp 0x45aaec
lea eax, [esi + 0x40]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0045a2b0
add esp, 8
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
push 0
cmovae eax, dword [ebp - 0x30]
push eax
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
jne 0x45a961
lea esi, [eax + 4]
jmp 0x45a9be
mov edi, dword [ebp + 8]
test edi, edi
je 0x45a9d0
cmp dword [esi + 0x8c], 0
je 0x45a9d0
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push eax
call fcn.0045ac70
mov ebx, eax
mov dword [ebp - 0x18], 0
add esp, 4
cmp ebx, 0xffffffff
je 0x45a9d0
mov ecx, dword [esi + 0x8c]
lea eax, [ebp - 0x18]
push eax
push ebx
call ecx
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x45a9d0
mov eax, dword [ebp - 0x18]
cmp edi, eax
je 0x45a9d0
cmp dword [ebp - 0x14], eax
je 0x45a9d0
mov esi, 0xb
cmp dword [ebp - 0x1c], 8
jb 0x45aaea
push dword [ebp - 0x30]
jmp 0x45aae2
cmp dword [ebp - 0x1c], 8
jb 0x45aacd
push dword [ebp - 0x30]
call fcn.004085be
add esp, 4
xor eax, eax
jmp 0x45aaec
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 0x45aa11
mov eax, 2
jmp 0x45aaec
lea eax, [esi + 0x40]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.0045a2b0
add esp, 8
lea ecx, [esi + 0x70]
mov dword [ebp - 4], 0
lea eax, [ebp - 0x48]
cmp ecx, eax
je 0x45aa3c
push 0xffffffffffffffff
push 0
push eax
call fcn.00407d00
cmp dword [ebp - 0x34], 8
lea eax, [ebp - 0x48]
push edi
cmovae eax, dword [ebp - 0x48]
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 0x45aa79
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x50], 0
cmp dword [esi + 0x2c], 0xffffffff
jne 0x45aa91
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [eax - 5]
neg esi
sbb esi, esi
add esi, 3
jmp 0x45aad9
mov eax, dword [ebp + 8]
push dword [esi + 8]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test bl, bl
je 0x45aad1
lea eax, [ebp - 0x14]
push eax
push 0
push esi
push fcn.0045a340
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x34], eax
test eax, eax
jne 0x45aac5
lea esi, [eax + 2]
jmp 0x45aad9
lea ecx, [ebp - 0x48]
call fcn.004087d0
xor eax, eax
jmp 0x45aaec
push esi
call fcn.0045a340
mov esi, eax
cmp dword [ebp - 0x34], 8
jb 0x45aaea
push dword [ebp - 0x48]
call fcn.004085be
add esp, 4
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.00401590
mov esp, ebp
pop ebp
ret 0xc