Function at 0x4028c0
Capabilities:
Connect pipe
Create pipe
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41db2c
mov eax, dword fs:[0]
push eax
mov eax, 0x1108
call fcn.00407df0
mov eax, dword [0x428470]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
or esi, 0xffffffff
mov dword [ebp - 0x101c], 0
mov edi, 3
mov dword [ebp - 0x1020], esi
lea ecx, [ebp - 0x1058]
mov dword [ebp - 4], 0
call fcn.00405310
push 0
push 0
push 0
push 0xffffffffffffffff
mov dword [ebp - 0x1014], 0
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [ebp - 0x1014], eax
cmp dword [0x429a7c], 0
mov byte [ebp - 4], 2
jne 0x402962
lea eax, [ebp - 0x1014]
push eax
push 0x402560
push str.Intergy_Installer
call dword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerExW]
mov dword [0x429a80], eax
mov dword [0x429a60], 0x10
mov dword [0x429a64], 2
mov dword [0x429a6c], 0
mov dword [0x429a70], 0
mov dword [0x429a74], 0
mov dword [0x429a78], 0x7d0
mov dword [0x429a68], 3
jmp 0x4029b0
mov eax, dword [ebp - 0x101c]
sub eax, 0
je 0x402ba2
dec eax
jne 0x402cc0
cmp esi, 0xffffffff
je 0x402ae3
xor edi, edi
lea eax, [ebp - 0x1018]
push edi
push eax
push 0x1000
lea eax, [ebp - 0x1010]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402a16
mov edi, dword [ebp - 0x1018]
lea eax, [ebp - 0x1018]
push 0
push eax
push 0x1000
lea eax, [ebp - 0x1010]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4029f0
push esi
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
lea eax, [ebp - 0x1044]
mov dword [ebp - 0x1034], 0
push eax
xorps xmm0, xmm0
push esi
movdqu xmmword [ebp - 0x1044], xmm0
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
cmp edi, 0x1000
jae 0x402d46
lea eax, [ebp - 0x1010]
mov byte [ebp + edi - 0x1010], 0
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402a60
sub eax, edx
je 0x402cc0
lea eax, [ebp - 0x1010]
push eax
call fcn.00406f24
add esp, 4
test eax, eax
jne 0x402cc0
lea eax, [ebp - 0x1010]
push 0x41e4dc
push eax
call fcn.00407714
add esp, 8
test eax, eax
je 0x402cc0
push 0x41e4dc
push 0
call fcn.00407714
add esp, 8
test eax, eax
je 0x402cc0
push 0x41e4dc
push 0
call fcn.00407714
add esp, 8
test eax, eax
je 0x402cc0
push 0
push eax
push eax
push 1
call fcn.00407944
add esp, 0x10
jmp 0x402cc0
push 1
push 0x40
push 8
push str.PipeError.txt
lea ecx, [ebp - 0x1114]
call fcn.004019e0
push 0xa
lea eax, [ebp - 0x1114]
mov byte [ebp - 4], 3
push str.Service_is_running_but_pipe_is_not_valid
push eax
call fcn.00401430
add esp, 8
push eax
call fcn.004010e0
add esp, 8
lea ecx, [ebp - 0x1114]
call fcn.00403e30
mov eax, dword [ebp - 0x1114]
mov byte [ebp - 4], 2
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x1114]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [ebp + ecx - 0x1118], eax
lea ecx, [ebp - 0x1110]
call fcn.004020a0
mov eax, dword [ebp - 0x1114]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x1114]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x1118], eax
lea eax, [ebp - 0x10b4]
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.00405d40
add esp, 4
jmp 0x402cc0
test edi, edi
je 0x402cc0
cmp edi, 2
jbe 0x402ca1
cmp edi, 3
jne 0x402cc0
lea ecx, [ebp - 0x1058]
call fcn.00405420
movzx eax, al
test eax, eax
je 0x402cc0
xorps xmm0, xmm0
mov dword [ebp - 0x1024], 0
push 1
lea eax, [ebp - 0x106c]
movq qword [ebp - 0x102c], xmm0
push eax
mov dword [ebp - 0x102c], 0xc
mov dword [ebp - 0x1024], 0
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x402c25
push 0
push dword [ebp - 0x1054]
lea eax, [ebp - 0x106c]
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp - 0x106c]
mov dword [ebp - 0x1028], eax
lea eax, [ebp - 0x102c]
push eax
push 0x3e8
push 0
push 0
push 1
push 0
push 0x40000003
push str..pipeIntergyInstaller
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov edi, eax
cmp esi, 0xffffffff
je 0x402c63
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 1
push dword [ebp - 0x1014]
mov esi, edi
push edi
mov dword [ebp - 0x1020], esi
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
lea eax, [ebp - 0x1044]
mov dword [ebp - 0x1034], 0
push eax
xorps xmm0, xmm0
push edi
movdqu xmmword [ebp - 0x1044], xmm0
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
jmp 0x402cb6
cmp esi, 0xffffffff
je 0x402cb6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or esi, 0xffffffff
mov dword [ebp - 0x1020], esi
mov ecx, 0x429a60
call fcn.00402d50
cmp dword [0x429a64], 1
je 0x402cff
push 0xffffffffffffffff
lea eax, [ebp - 0x1048]
push eax
lea eax, [ebp - 0x101c]
push eax
lea eax, [ebp - 0x1018]
push eax
push dword [ebp - 0x1014]
call dword [sym.imp.KERNEL32.dll_GetQueuedCompletionStatus]
cmp dword [0x429a64], 1
mov edi, dword [ebp - 0x1018]
jne 0x4029b0
mov eax, dword [ebp - 0x1014]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x402d12
push eax
call edi
lea ecx, [ebp - 0x1058]
mov byte [ebp - 4], 0
call fcn.00405330
cmp esi, 0xffffffff
je 0x402d29
push esi
call edi
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.00407988
mov esp, ebp
pop ebp
ret 8
call fcn.0040620f
int3