Function at 0x420a50
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 [0x644040]
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 0x420c76
lea ebx, [ebp - 0x13c]
xor edi, edi
push 0x110
push edi
push ebx
call fcn.00567640
add esp, 0xc
mov dword [ebx - 0xc], 0x11c
sub esp, 0x10
movdqa xmm0, xmmword [0x639b90]
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 0x420c7d
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 0x420cc9
mov eax, dword [0x65872c]
mov ecx, dword [0x64784c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jle 0x420c55
push 0x65872c
call fcn.00562c08
add esp, 4
cmp dword [0x65872c], 0xffffffff
jne 0x420c55
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 0x420ccc
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 0x420d44
mov ebx, dword [ebp - 0x170]
mov eax, dword [ebp - 0x184]
test eax, eax
je 0x420c3d
cmp dword [0x64a79c], 2
jg 0x420c3d
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
jne 0x420d06
mov dword [0x658728], ebx
push 0x65872c
call fcn.00562c57
add esp, 4
mov esi, 0x80003
mov eax, dword [0x658728]
test eax, eax
mov ecx, 0x639c40
cmovne ecx, eax
lea edi, [ebp - 0x180]
mov dword [edi + 4], ecx
mov dword [edi + 8], 1
jmp 0x420c7d
xor edi, edi
mov esi, 3
mov eax, dword [ebp + 8]
cmp byte [eax + 0xb], 0
jns 0x420c88
mov eax, dword [eax]
sub esp, 0x20
mov dword [esp + 0x1c], edi
movaps xmm0, xmmword [0x639bb0]
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.00565ea5
mov eax, esi
add esp, 0x178
pop esi
pop edi
pop ebx
pop ebp
ret
int3
xor ebx, ebx
cmp dword [0x64a79c], 2
jg 0x420c3d
call fcn.004f27f0
lea esi, [ebp - 0x148]
mov ecx, esi
push eax
push 2
push 0x2e
push str.registration_protocol_win.cc
call fcn.0045af70
lea eax, [ebp - 0x140]
push 0x33
push str.ConvertStringSecurityDescriptorToSecurityDescriptor
jmp 0x420d2f
call fcn.004f27f0
lea esi, [ebp - 0x148]
mov ecx, esi
push eax
push 2
push 0x18
push str.scoped_local_alloc.cc
call fcn.0045af70
lea eax, [ebp - 0x140]
push 9
push 0x63b2ef
push eax
call fcn.00538a30
add esp, 0xc
mov ecx, esi
call fcn.0044fb10
jmp 0x420c3d
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [0x64a79c], 2
jg 0x420c1b
call fcn.004f27f0
lea esi, [ebp - 0x148]
mov ecx, esi
push eax
push 2
push 0x45
push str.registration_protocol_win.cc
call fcn.0045af70
lea eax, [ebp - 0x140]
push 0x17
push str.BuildSecurityDescriptor
push eax
call fcn.00538a30
add esp, 0xc
mov ecx, esi
call fcn.0044fb10
jmp 0x420c1b