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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a247e
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x4cc0a0]
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
cmp dword [0x4cf804], 0
je 0x435f21
mov eax, 1
jmp 0x436363
push 1
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp - 0x70]
mov dword [ebp - 0x90], 0xc
mov dword [ebp - 0x88], 0
xor esi, esi
mov dword [ebp - 0x8c], eax
nop dword [eax]
push 0
push 1
push 1
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x4e38b8], eax
test eax, eax
je 0x436361
add esi, 4
cmp esi, 0x14
jb 0x435f60
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov eax, dword [esi + 0x4cf804]
test eax, eax
je 0x435fa3
cmp eax, 0xffffffff
je 0x435fa3
push eax
call edi
mov dword [esi + 0x4cf804], 0
add esi, 0x4028
cmp esi, 0x140c8
jl 0x435f91
push ecx
lea eax, [ebp - 0x5c]
push eax
call fcn.00436b40
mov dword [ebp - 4], 0
mov esi, 0x4cf800
mov ebx, 0x140c8
nop word [eax + eax]
mov eax, dword [ebx + 0x4cf7f0]
lea ecx, [ebp - 0x90]
cmp dword [ebp - 0x48], 8
push ecx
push 0x1388
push 0x2000
push 0x2000
push 5
mov dword [esi], eax
lea eax, [ebp - 0x5c]
cmovae eax, dword [ebp - 0x5c]
push 6
push 0x40000003
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x436346
lea ecx, [esi - 0x10]
xor edi, edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x43605d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x436051
cmp eax, 0x3e5
jne 0x43605d
mov edi, 1
jmp 0x43605f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x43605f
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 0x435fe0
push 7
xor eax, eax
mov dword [ebp - 0x2c], 7
push str.Global_
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
call fcn.00406f20
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
lea eax, [ebp - 0x84]
mov dword [ebp - 0x84], 0
push eax
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.ole32.dll_StringFromCLSID]
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x84]
test edx, edx
je 0x436206
mov dword [ebp - 0x94], 7
mov dword [ebp - 0x98], eax
mov word [ebp - 0xa8], ax
cmp word [edx], ax
jne 0x436115
xor ecx, ecx
jmp 0x43612f
mov ecx, edx
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x436120
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xa8]
call fcn.00406f20
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x436199
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x7fffffff
jbe 0x436158
call fcn.0047c212
add eax, eax
cmp eax, 0x1000
jb 0x436190
test byte [ebp - 0x28], 0x1f
je 0x43616c
call fcn.0047c212
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x436178
call fcn.0047c212
sub ecx, eax
cmp ecx, 4
jae 0x436184
call fcn.0047c212
cmp ecx, 0x23
jbe 0x43618e
call fcn.0047c212
mov ecx, eax
push ecx
call fcn.00442364
add esp, 4
mov ecx, dword [ebp - 0x94]
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp ecx, 8
jae 0x4361e1
mov eax, dword [ebp - 0x98]
add eax, 1
je 0x4361ea
add eax, eax
push eax
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004788b0
mov ecx, dword [ebp - 0x94]
add esp, 0xc
jmp 0x4361ea
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x98]
mov byte [ebp - 4], 2
push dword [ebp - 0x84]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x40]
call fcn.00407150
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
push 0
push 1
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x4e38cc], eax
test eax, eax
je 0x436268
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 0
push eax
push 0
push 0x4cf7f0
push 0x436b20
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x436268
mov esi, 1
jmp 0x43626a
xor esi, esi
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4362c3
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x7fffffff
jbe 0x436282
call fcn.0047c212
add eax, eax
cmp eax, 0x1000
jb 0x4362ba
test byte [ebp - 0x28], 0x1f
je 0x436296
call fcn.0047c212
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4362a2
call fcn.0047c212
sub ecx, eax
cmp ecx, 4
jae 0x4362ae
call fcn.0047c212
cmp ecx, 0x23
jbe 0x4362b8
call fcn.0047c212
mov ecx, eax
push ecx
call fcn.00442364
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
cmp eax, 8
jb 0x436330
mov ecx, dword [ebp - 0x40]
inc eax
cmp eax, 0x7fffffff
jbe 0x4362ef
call fcn.0047c212
add eax, eax
cmp eax, 0x1000
jb 0x436327
test byte [ebp - 0x40], 0x1f
je 0x436303
call fcn.0047c212
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x43630f
call fcn.0047c212
sub ecx, eax
cmp ecx, 4
jae 0x43631b
call fcn.0047c212
cmp ecx, 0x23
jbe 0x436325
call fcn.0047c212
mov ecx, eax
push ecx
call fcn.00442364
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
jmp 0x436348
xor esi, esi
mov ecx, dword [ebp - 0x48]
cmp ecx, 8
jb 0x43635d
inc ecx
push ecx
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x5c]
call fcn.00406ec0
mov eax, esi
jmp 0x436363
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 - 0x10]
xor ecx, ebp
call fcn.00442377
mov esp, ebp
pop ebp
ret 4