Function at 0x416bf0
Capabilities:
Create pipe
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x503d68
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x549394]
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 ebx, ecx
mov dword [ebp - 0x40], ebx
mov ecx, dword [ebx]
test ecx, ecx
je 0x416c3d
call fcn.004172b0
mov ecx, dword [ebx]
test ecx, ecx
je 0x416c37
push ecx
call fcn.00416ef0
mov dword [ebx], 0
push 0x8104
call fcn.004976ca
mov ebx, eax
mov dword [ebp - 0x3c], ebx
push 0x8104
push 0
push ebx
mov dword [ebp - 4], 0
call fcn.004d9120
add esp, 0x10
push 0x4172a0
push 0x417b20
push 2
push 0x4058
push ebx
call fcn.00497ab4
mov byte [ebp - 4], 1
lea esi, [ebx + 0x80d4]
mov dword [ebx + 0x80c8], 0xffffffff
lea edi, [ebx + 0x80e8]
mov dword [ebx + 0x80cc], 0x533814
mov dword [ebx + 0x80d0], edi
push 8
mov dword [ebp - 0x38], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.004976ca
add esp, 4
mov dword [esi], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [esi]
push 0
push 0
push 0
mov dword [eax], esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, dword [ebp - 0x40]
mov dword [edi], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x80ec], 0
mov dword [ebx + 0x80f0], 0
mov dword [ebx + 0x80f4], 0
mov dword [ebx + 0x80f8], 0
mov dword [ebx + 0x80fc], 0
mov byte [ebx + 0x8100], 0
mov dword [ebx + 0x28], 0xffffffff
mov dword [ebx + 0x80b0], 0xffffffff
mov dword [ebx + 0x80b4], 0xffffffff
mov dword [ebx + 0x4080], 0xffffffff
mov dword [ebx + 0x80b8], 0xffffffff
mov dword [ebx + 0x80bc], 0xffffffff
mov dword [ebx + 0x80c0], 0xffffffff
mov dword [ebx + 0x80c4], 0xffffffff
mov dword [ebx + 0x80c8], 0xffffffff
mov dword [esi], ebx
mov dword [ebx + 0x80ec], eax
mov ebx, dword [esi]
cmp dword [ebx + 0x80c8], 0xffffffff
jne 0x416eb3
push 1
lea eax, [ebp - 0x28]
xor ecx, ecx
push eax
mov dword [ebp - 0x38], ecx
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x34], 0xc
mov dword [ebp - 0x2c], 1
lea esi, [ebx + 0x80b4]
mov dword [ebp - 0x30], eax
lea edi, [ebx + 0x10]
mov dword [ebp - 0x3c], 0
lea eax, [ebp - 0x34]
push eax
push 0x3e8
push 0x6000
push 0x6000
push 2
push 6
push 0x40000003
push str..PIPE7125ECE6_7E7F_4111_A667_260D1DA47906
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [edi + 0x18], eax
cmp eax, 0xffffffff
je 0x416ea1
push 0
push 1
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 1
push 0
mov dword [esi - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
add dword [ebp - 0x38], 2
mov dword [esi], eax
mov eax, dword [esi - 4]
mov dword [edi], eax
mov eax, dword [esi]
add esi, 8
mov dword [edi + 0x14], eax
add edi, 0x4058
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x3c], eax
cmp eax, 2
jb 0x416de6
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 0x38]
mov dword [ebx + ecx*4 + 0x80b0], eax
mov dword [ebx + 0x80c4], eax
lea eax, [ebp - 0x14]
push eax
push 0
push ebx
push 0x417390
push 0
push 0
call fcn.004e2b60
add esp, 0x18
mov dword [ebx + 0x80c8], eax
test eax, eax
je 0x416ea1
mov al, 1
jmp 0x416ec7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, ebx
call fcn.004172b0
mov esi, dword [ebp - 0x40]
mov ebx, dword [esi]
test ebx, ebx
je 0x416ebf
push ecx
mov ecx, ebx
call fcn.00416ef0
mov dword [esi], 0
xor al, al
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.0049742c
mov esp, ebp
pop ebp
ret 8