Function at 0x41fc70
Capabilities:
Access peb ldr_data
Create pipe
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x178
mov al, byte [ebp + 0xc]
mov ecx, dword [0x64a040]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
xor ecx, ecx
dec ecx
mov dword [ebp - 0x180], ecx
mov dword [ebp - 0x17c], ecx
mov dword [ebp - 0x178], ecx
test al, al
je 0x41fe96
lea ebx, [ebp - 0x13c]
xor edi, edi
push 0x110
push edi
push ebx
call fcn.00582870
add esp, 0xc
mov dword [ebx - 0xc], 0x11c
sub esp, 0x10
movdqa xmm0, xmmword [0x63ffe0]
movdqu xmmword [esp], xmm0
mov esi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
call esi
mov ecx, 3
push ecx
push 1
push edx
push eax
call esi
mov ecx, 3
push ecx
push 0x20
push edx
push eax
call esi
mov dword [ebx - 8], 6
mov dword [ebx - 4], edi
mov word [ebx + 0x108], 0
lea ecx, [ebp - 0x148]
push edx
push eax
push 0x23
push ecx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
mov esi, 0x80003
test eax, eax
je 0x41fe9d
mov dword [ebp - 0x180], 0xc
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xa0]
mov eax, dword [eax + 0xc]
mov ecx, dword fs:[0x18]
cmp eax, dword [ecx + 0x24]
je 0x41fee9
mov eax, dword [0x65e70c]
mov ecx, dword [0x64d82c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jle 0x41fe75
push 0x65e70c
call fcn.0057dc73
add esp, 4
cmp dword [0x65e70c], 0xffffffff
jne 0x41fe75
lea eax, [ebp - 0x14c]
mov dword [eax], 0xffffffff
push 0
push eax
push 1
push str.D:_A__GA___SY__A__GWGR___S_1_15_2_1_S:_ML_____S_1_16_0_
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
je 0x41feec
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x184], eax
pcmpeqd xmm0, xmm0
lea edi, [ebp - 0x16c]
movdqu xmmword [edi + 0x10], xmm0
movdqu xmmword [edi], xmm0
movdqa xmm0, xmmword [str.CURRENT_]
lea eax, [ebp - 0x2a]
movdqu xmmword [eax], xmm0
mov dword [eax + 0x10], 0x530055
mov dword [eax + 0x14], 0x520045
mov word [eax + 0x18], 0
xor ebx, ebx
xor esi, esi
inc esi
push ebx
push esi
push 0x10000000
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_BuildExplicitAccessWithNameW]
lea eax, [ebp - 0x170]
xor edx, edx
dec edx
mov dword [eax], edx
lea ecx, [ebp - 0x174]
mov dword [ecx], edx
push eax
push ecx
push dword [ebp - 0x14c]
push ebx
push ebx
push edi
push esi
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_BuildSecurityDescriptorW]
test eax, eax
jne 0x41ff64
mov ebx, dword [ebp - 0x170]
mov eax, dword [ebp - 0x184]
test eax, eax
je 0x41fe5d
cmp dword [0x650774], 2
jg 0x41fe5d
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
jne 0x41ff26
mov dword [0x65e708], ebx
push 0x65e70c
call fcn.0057dcc2
add esp, 4
mov esi, 0x80003
mov eax, dword [0x65e708]
test eax, eax
mov ecx, 0x640090
cmovne ecx, eax
lea edi, [ebp - 0x180]
mov dword [edi + 4], ecx
mov dword [edi + 8], 1
jmp 0x41fe9d
xor edi, edi
mov esi, 3
mov eax, dword [ebp + 8]
cmp byte [eax + 0xb], 0
jns 0x41fea8
mov eax, dword [eax]
sub esp, 0x20
mov dword [esp + 0x1c], edi
movaps xmm0, xmmword [0x640000]
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], esi
mov dword [esp], eax
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov esi, eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005810d5
mov eax, esi
add esp, 0x178
pop esi
pop edi
pop ebx
pop ebp
ret
int3
xor ebx, ebx
cmp dword [0x650774], 2
jg 0x41fe5d
call fcn.00417770
lea esi, [ebp - 0x148]
mov ecx, esi
push eax
push 2
push 0x2e
push str.registration_protocol_win.cc
call fcn.00409720
lea eax, [ebp - 0x140]
push 0x33
push str.ConvertStringSecurityDescriptorToSecurityDescriptor
jmp 0x41ff4f
call fcn.00417770
lea esi, [ebp - 0x148]
mov ecx, esi
push eax
push 2
push 0x18
push str.scoped_local_alloc.cc
call fcn.00409720
lea eax, [ebp - 0x140]
push 9
push 0x6416cf
push eax
call fcn.00545ec0
add esp, 0xc
mov ecx, esi
call fcn.00409610
jmp 0x41fe5d
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [0x650774], 2
jg 0x41fe3b
call fcn.00417770
lea esi, [ebp - 0x148]
mov ecx, esi
push eax
push 2
push 0x45
push str.registration_protocol_win.cc
call fcn.00409720
lea eax, [ebp - 0x140]
push 0x17
push str.BuildSecurityDescriptor
push eax
call fcn.00545ec0
add esp, 0xc
mov ecx, esi
call fcn.00409610
jmp 0x41fe3b