Function at 0x42d670
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 0x42d896
lea ebx, [ebp - 0x13c]
xor edi, edi
push 0x110
push edi
push ebx
call fcn.00569910
add esp, 0xc
mov dword [ebx - 0xc], 0x11c
sub esp, 0x10
movdqa xmm0, xmmword [0x63a080]
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 0x42d89d
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 0x42d8e9
mov eax, dword [0x65870c]
mov ecx, dword [0x64783c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jle 0x42d875
push 0x65870c
call fcn.00564ee8
add esp, 4
cmp dword [0x65870c], 0xffffffff
jne 0x42d875
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 0x42d8ec
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 0x42d964
mov ebx, dword [ebp - 0x170]
mov eax, dword [ebp - 0x184]
test eax, eax
je 0x42d85d
cmp dword [0x64a78c], 2
jg 0x42d85d
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
jne 0x42d926
mov dword [0x658708], ebx
push 0x65870c
call fcn.00564f37
add esp, 4
mov esi, 0x80003
mov eax, dword [0x658708]
test eax, eax
mov ecx, 0x63a130
cmovne ecx, eax
lea edi, [ebp - 0x180]
mov dword [edi + 4], ecx
mov dword [edi + 8], 1
jmp 0x42d89d
xor edi, edi
mov esi, 3
mov eax, dword [ebp + 8]
cmp byte [eax + 0xb], 0
jns 0x42d8a8
mov eax, dword [eax]
sub esp, 0x20
mov dword [esp + 0x1c], edi
movaps xmm0, xmmword [0x63a0a0]
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.00568175
mov eax, esi
add esp, 0x178
pop esi
pop edi
pop ebx
pop ebp
ret
int3
xor ebx, ebx
cmp dword [0x64a78c], 2
jg 0x42d85d
call fcn.004ed0f0
lea esi, [ebp - 0x148]
mov ecx, esi
push eax
push 2
push 0x2e
push str.registration_protocol_win.cc
call fcn.00592570
lea eax, [ebp - 0x140]
push 0x33
push str.ConvertStringSecurityDescriptorToSecurityDescriptor
jmp 0x42d94f
call fcn.004ed0f0
lea esi, [ebp - 0x148]
mov ecx, esi
push eax
push 2
push 0x18
push str.scoped_local_alloc.cc
call fcn.00592570
lea eax, [ebp - 0x140]
push 9
push 0x63b76f
push eax
call fcn.005320d0
add esp, 0xc
mov ecx, esi
call fcn.00592350
jmp 0x42d85d
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [0x64a78c], 2
jg 0x42d83b
call fcn.004ed0f0
lea esi, [ebp - 0x148]
mov ecx, esi
push eax
push 2
push 0x45
push str.registration_protocol_win.cc
call fcn.00592570
lea eax, [ebp - 0x140]
push 0x17
push str.BuildSecurityDescriptor
push eax
call fcn.005320d0
add esp, 0xc
mov ecx, esi
call fcn.00592350
jmp 0x42d83b