Function at 0x48ec4a
Capabilities:
Connect pipe
Create pipe

Disassembly:
push 0x48
mov eax, 0x51bd44
call fcn.004b9729
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x38], eax
cmp byte [ebx + 0x24], 0
mov dword [ebp - 4], 1
je 0x48ec75
xor bl, bl
jmp 0x48f02c
mov ecx, ebx
call fcn.0048f08e
xor eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
lea edi, [ebx + 0x34]
stosd dword es:[edi], eax
lea ecx, [ebx + 0x48]
push 0
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov edi, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
inc eax
push eax
push eax
push 0
call esi
mov edi, eax
xor eax, eax
push eax
push eax
push eax
push eax
mov dword [ebp - 0x20], edi
mov dword [ebx + 0x44], edi
mov dword [ebx + 0x58], eax
call esi
and dword [ebp - 0x28], 0
push 0
push ecx
mov ecx, esp
mov dword [ebx + 0x28], eax
push str._IwH3bcKXOhNU0CuYkN72v_H6rwMqAXXsGrHgl7GyU6Mj0POgdsIRMhLhU6JXpxZBEIDR5uGGU9ez43KCdhCDtmPh0jLjMjbzYWHzgPEW0dCCxmBCARBGYEHXgFezULJQoZGRg7JTETKyA0IQE7O2YuAGIjNwIGKDsYKA4fMgEdLxE1YCcNcSAmKxMvATEBMDZwJBw9HTMZMzliHmk4MWJ3EgpoLHYnLy0_OhUWGQp5OjAvHh8rBTYMFSouPhIJbzgBJAAWOw46OR4WaiILODsyGDsQBg4FMiMDM286Nj8BFSwXBj0TOAQIBDgcGgoEKBsXFDxnDCpsMw0aOz0LD8MewEdZCANPBYrChkFAWQMNj4aJx4QOhcVGQMVKywAODAcARwTMB55GyExf2MFFxcdPD0XGDYeACkcJyoGDBcWBD84Zz8NDCIYD2wnFG9GxoIIDQ_Dj4tI3ciBBsoKiwxHgMKFA1tEDMMKxwfBGksBgAAAU0_hlGh78j_CvGMLAEoJ
call fcn.00466d59
lea eax, [ebp - 0x48]
push eax
call fcn.0048626d
pop ecx
pop ecx
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0046929c
push eax
lea ecx, [ebp - 0x28]
call fcn.00466d59
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 4
call fcn.004690f8
push dword [ebp + 8]
call fcn.00468ac1
pop ecx
push eax
push dword [ebp + 8]
lea ecx, [ebp - 0x28]
call fcn.00470614
and dword [ebp - 0x24], 0
push 0
push ecx
mov ecx, esp
push str.qSe8vNfZm3naAs6M3cpSFlIaUsyzsFmUJsCHgl7GyU6Mj0PPBNiNDUWNRoWLzgzMzEAPgEUAQ8bJwo8MG0GJjkrGxMoBxgWIBofNQEZJmMQMDVifx4CNAETNxBgMWwJCz1qLhErLRgOfiQHEwE4HyBkFhg8A2V4JBoYcjxrOxgTJmwnYmYIdXkoLGcWOjU2ABU6EDAkNQIHLCgmMSgUYzQ9HmBvI3kAJzwhFBpiNGI4e2VtLmIxdR0xBiQMJm4sI34NAgsaJR5_AGNjAGcMExwsCwRiExBiZwYFYSgKHAE9PB0bBzU_ETNhYDgeOx4CcjEwchZhfmIMeyJiYR0LIBF3ZDp4EwUGF2IiFidlExQAAADr5JWa1tDcPrSRLVt0A3
call fcn.00466d59
lea eax, [ebp - 0x54]
push eax
call fcn.0048626d
pop ecx
pop ecx
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.0046929c
push eax
lea ecx, [ebp - 0x24]
call fcn.00466d59
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 7
call fcn.004690f8
push dword [ebp + 8]
call fcn.00468ac1
pop ecx
push eax
push dword [ebp + 8]
lea ecx, [ebp - 0x24]
call fcn.00470614
cmp dword [ebp + 0x24], 0
je 0x48ee86
push 0x14
call fcn.004b8773
pop ecx
xor esi, esi
mov dword [ebp - 0x18], eax
inc esi
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x14], esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
push eax
push 0xffffffffffffffff
mov eax, 0x2000
mov dword [ebp - 0x1c], 0xc
push eax
push eax
push 0xff
push 6
push 0x40000001
push dword [ebp - 0x28]
call esi
mov dword [ebx + 0x2c], eax
lea eax, [ebp - 0x1c]
push eax
push 0xffffffffffffffff
mov eax, 0x2000
push eax
push eax
push 0xff
push 6
push 0x40000002
push dword [ebp - 0x24]
call esi
mov dword [ebx + 0x30], eax
lea eax, [ebx + 0x34]
push eax
push dword [ebx + 0x2c]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x48edfd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x48efbd
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov esi, eax
cmp esi, 0x217
je 0x48ee32
cmp esi, 0x3e5
jne 0x48efba
push dword [ebp + 0x28]
push dword [ebx + 0x44]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x48efba
lea eax, [ebx + 0x48]
push eax
push dword [ebx + 0x2c]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x48ee4a
call edi
jmp 0x48efb8
call edi
mov esi, eax
cmp esi, 0x217
je 0x48ef56
cmp esi, 0x3e5
jne 0x48efba
push dword [ebp + 0x28]
push dword [ebx + 0x58]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, 0x102
cmp eax, ecx
jne 0x48ef56
mov esi, ecx
jmp 0x48efba
mov eax, dword [ebp + 0x28]
mov ecx, 0x1f4
cdq
xor edi, edi
idiv ecx
xor cl, cl
mov edx, eax
mov dword [ebp - 0x2c], ecx
xor al, al
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x34], eax
test edx, edx
je 0x48efb2
xor esi, esi
mov ebx, ecx
inc esi
test al, al
je 0x48eeb9
test bl, bl
jne 0x48ef03
jmp 0x48eed9
push 0x3e8
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
mov ecx, dword [ebp - 0x34]
test eax, eax
movzx ecx, cl
cmovne ecx, esi
mov dword [ebp - 0x34], ecx
test bl, bl
jne 0x48eeef
push 0x3e8
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
movzx ebx, bl
cmovne ebx, esi
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x34]
inc edi
cmp edi, dword [ebp - 0x30]
jb 0x48eeaf
mov dword [ebp - 0x2c], ebx
mov ebx, dword [ebp - 0x14]
test al, al
je 0x48efb2
mov ecx, dword [ebp - 0x2c]
test cl, cl
je 0x48efb2
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
xor eax, eax
push eax
mov edi, 0x60000000
push edi
push 3
push eax
push eax
push 0x40000000
push dword [ebp - 0x28]
call esi
mov dword [ebx + 0x30], eax
xor eax, eax
push eax
push edi
push 3
push eax
push eax
push SysReAllocString
push dword [ebp - 0x24]
call esi
mov dword [ebx + 0x2c], eax
cmp eax, 0xffffffff
je 0x48efb2
lea esi, [ebx + 8]
mov word [ebx + 0x24], 1
lea eax, [ebp + 0xc]
cmp esi, eax
je 0x48ef78
mov ecx, esi
call fcn.00498ef7
lea eax, [ebp + 0xc]
mov ecx, esi
push eax
call fcn.00498dba
mov eax, dword [ebp + 0x2c]
mov dword [ebx + 0x20], eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x3c], 0x48c7e1
push eax
mov dword [ebp - 0x38], ebx
call fcn.00481d65
pop ecx
pop ecx
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
call fcn.00498a0e
cmp dword [ebp - 0x14], 0
je 0x48efad
call fcn.004c23c4
xor ebx, ebx
inc ebx
jmp 0x48f016
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x48efc6
mov dword [eax], esi
cmp dword [ebx + 0x28], 0
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x48efdb
push dword [ebx + 0x28]
call esi
and dword [ebx + 0x28], 0
cmp dword [ebx + 0x2c], 0
je 0x48efea
push dword [ebx + 0x2c]
call esi
and dword [ebx + 0x2c], 0
cmp dword [ebx + 0x30], 0
je 0x48eff9
push dword [ebx + 0x30]
call esi
and dword [ebx + 0x30], 0
test edi, edi
je 0x48f000
push edi
call esi
xor eax, eax
lea edi, [ebx + 0x34]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebx + 0x48]
xor bl, bl
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.0040ce73
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.0040ce73
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040ce73
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00498ef7
lea ecx, [ebp + 0xc]
call fcn.00498ef7
mov al, bl
call fcn.004b96d8
ret 0x2c