Function at 0x42b130
Capabilities:
Connect pipe
Create pipe
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57dfa3
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x5e108c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x60d204], 0
je 0x42b171
mov eax, 1
jmp 0x42b5d6
push 1
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp - 0x74]
mov dword [ebp - 0x94], 0xc
mov dword [ebp - 0x8c], 0
xor esi, esi
mov dword [ebp - 0x90], eax
nop dword [eax]
push 0
push 1
push 1
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x6212b8], eax
test eax, eax
je 0x42b5d4
add esi, 4
cmp esi, 0x14
jb 0x42b1b0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov eax, dword [esi + 0x60d204]
test eax, eax
je 0x42b1f3
cmp eax, 0xffffffff
je 0x42b1f3
push eax
call edi
mov dword [esi + 0x60d204], 0
add esi, 0x4028
cmp esi, 0x140c8
jl 0x42b1e1
push ecx
lea eax, [ebp - 0x60]
push eax
call fcn.0042bda0
mov dword [ebp - 4], 0
mov esi, 0x60d200
mov ebx, 0x140c8
nop word [eax + eax]
mov eax, dword [ebx + 0x60d1f0]
lea ecx, [ebp - 0x94]
cmp dword [ebp - 0x4c], 8
push ecx
push 0x1388
push 0x2000
push 0x2000
push 5
mov dword [esi], eax
lea eax, [ebp - 0x60]
cmovae eax, dword [ebp - 0x60]
push 6
push 0x40000003
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x42b576
lea ecx, [esi - 0x10]
xor edi, edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x42b2ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x42b2a1
cmp eax, 0x3e5
jne 0x42b2ad
mov edi, 1
jmp 0x42b2af
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x42b2af
xor edi, edi
xor eax, eax
mov dword [esi + 0x4014], edi
test edi, edi
sete al
add ebx, 4
mov dword [esi + 0x4010], eax
add esi, 0x4028
cmp ebx, 0x140dc
jb 0x42b230
push 7
xor eax, eax
mov dword [ebp - 0x30], 7
push str.Global_
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
call fcn.0040bc40
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
lea eax, [ebp - 0x88]
mov dword [ebp - 0x88], 0
push eax
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.ole32.dll_StringFromCLSID]
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x88]
test edx, edx
je 0x42b436
mov dword [ebp - 0x98], 7
mov dword [ebp - 0x9c], eax
mov word [ebp - 0xac], ax
cmp word [edx], ax
jne 0x42b36b
xor ecx, ecx
jmp 0x42b37f
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42b370
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xac]
call fcn.0040bc40
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x42b3a1
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.0040ca40
xor eax, eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0xac]
mov dword [ebp - 0x1c], 0
push eax
call fcn.00424a90
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x98]
cmp eax, 8
jb 0x42b42a
mov ecx, dword [ebp - 0xac]
inc eax
cmp eax, 0x7fffffff
jbe 0x42b3e6
call fcn.005092d6
add eax, eax
cmp eax, 0x1000
jb 0x42b421
test byte [ebp - 0xac], 0x1f
je 0x42b3fd
call fcn.005092d6
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x42b409
call fcn.005092d6
sub ecx, eax
cmp ecx, 4
jae 0x42b415
call fcn.005092d6
cmp ecx, 0x23
jbe 0x42b41f
call fcn.005092d6
mov ecx, eax
push ecx
call fcn.004f454d
add esp, 4
push dword [ebp - 0x88]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x44]
call fcn.00424980
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
push 0
push 1
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x6212cc], eax
test eax, eax
je 0x42b498
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0
push eax
push 0
push 0x60d1f0
push 0x42bd80
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x42b498
mov esi, 1
jmp 0x42b49a
xor esi, esi
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x42b4f3
mov ecx, dword [ebp - 0x2c]
inc eax
cmp eax, 0x7fffffff
jbe 0x42b4b2
call fcn.005092d6
add eax, eax
cmp eax, 0x1000
jb 0x42b4ea
test byte [ebp - 0x2c], 0x1f
je 0x42b4c6
call fcn.005092d6
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x42b4d2
call fcn.005092d6
sub ecx, eax
cmp ecx, 4
jae 0x42b4de
call fcn.005092d6
cmp ecx, 0x23
jbe 0x42b4e8
call fcn.005092d6
mov ecx, eax
push ecx
call fcn.004f454d
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x1c], 0
cmp eax, 8
jb 0x42b560
mov ecx, dword [ebp - 0x44]
inc eax
cmp eax, 0x7fffffff
jbe 0x42b51f
call fcn.005092d6
add eax, eax
cmp eax, 0x1000
jb 0x42b557
test byte [ebp - 0x44], 0x1f
je 0x42b533
call fcn.005092d6
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x42b53f
call fcn.005092d6
sub ecx, eax
cmp ecx, 4
jae 0x42b54b
call fcn.005092d6
cmp ecx, 0x23
jbe 0x42b555
call fcn.005092d6
mov ecx, eax
push ecx
call fcn.004f454d
add esp, 4
xor eax, eax
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
jmp 0x42b578
xor esi, esi
mov eax, dword [ebp - 0x4c]
cmp eax, 8
jb 0x42b5d0
mov ecx, dword [ebp - 0x60]
inc eax
cmp eax, 0x7fffffff
jbe 0x42b590
call fcn.005092d6
add eax, eax
cmp eax, 0x1000
jb 0x42b5c7
test cl, 0x1f
je 0x42b5a3
call fcn.005092d6
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x42b5af
call fcn.005092d6
sub ecx, eax
cmp ecx, 4
jae 0x42b5bb
call fcn.005092d6
cmp ecx, 0x23
jbe 0x42b5c5
call fcn.005092d6
mov ecx, eax
push ecx
call fcn.004f454d
add esp, 4
mov eax, esi
jmp 0x42b5d6
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004f4655
mov esp, ebp
pop ebp
ret 4