Function at 0x4f872a
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 [0x597010]
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 0x4f8846
lea edi, [ebp - 0x13c]
xor ebx, ebx
push 0x110
push ebx
push edi
call fcn.0052c210
add esp, 0xc
mov dword [edi - 0xc], 0x11c
sub esp, 0x10
movdqa xmm0, xmmword [0x58d010]
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 [edi - 8], 6
mov dword [edi - 4], ebx
mov word [edi + 0x108], 0
lea ecx, [ebp - 0x148]
push edx
push eax
push 0x23
push ecx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
mov edi, 0x80003
test eax, eax
je 0x4f884d
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 0x4f8a26
mov eax, dword [0x5abb80]
mov ecx, dword [0x59b038]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4f8899
mov eax, dword [0x5abb7c]
test eax, eax
mov ecx, 0x58d0dc
cmovne ecx, eax
lea ebx, [ebp - 0x180]
mov dword [ebx + 4], ecx
mov dword [ebx + 8], 1
jmp 0x4f884d
xor ebx, ebx
mov edi, 3
mov eax, dword [ebp + 8]
cmp byte [eax + 0xb], 0
jns 0x4f8858
mov eax, dword [eax]
sub esp, 0x20
mov dword [esp + 0x1c], ebx
movaps xmm0, xmmword [0x58d020]
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], edi
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.00528e13
mov eax, esi
add esp, 0x178
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x5abb80
call fcn.00528497
add esp, 4
cmp dword [0x5abb80], 0xffffffff
jne 0x4f8825
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 0x4f89aa
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x184], eax
pcmpeqd xmm0, xmm0
lea eax, [ebp - 0x16c]
movdqu xmmword [eax + 0x10], xmm0
movdqu xmmword [eax], xmm0
mov ecx, eax
movups xmm0, xmmword [0x58d1ba]
lea eax, [ebp - 0x2c]
movups xmmword [eax + 0xa], xmm0
movdqu xmm0, xmmword [str.CURRENT_USER]
movdqu xmmword [eax], xmm0
xor ebx, ebx
xor esi, esi
inc esi
push ebx
push esi
push 0x10000000
push eax
push ecx
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
lea eax, [ebp - 0x16c]
push eax
push esi
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_BuildSecurityDescriptorW]
test eax, eax
je 0x4f89f1
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [0x59d910], 2
jg 0x4f89f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [ebp - 0x148]
mov ecx, esi
push eax
push 2
push 0x44
push str....._third_partycrashpadcrashpadutilwin_registration_protocol_win.cc
call fcn.00471a00
lea eax, [ebp - 0x140]
push 0x17
push str.BuildSecurityDescriptor
push eax
call fcn.0042d698
add esp, 0xc
mov ecx, esi
call fcn.00471b70
jmp 0x4f89f7
xor ebx, ebx
cmp dword [0x59d910], 2
jg 0x4f8a0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [ebp - 0x148]
mov ecx, esi
push eax
push 2
push 0x2d
push str....._third_partycrashpadcrashpadutilwin_registration_protocol_win.cc
call fcn.00471a00
lea eax, [ebp - 0x140]
push 0x33
push str.ConvertStringSecurityDescriptorToSecurityDescriptor
push eax
call fcn.0042d698
add esp, 0xc
mov ecx, esi
call fcn.00471b70
jmp 0x4f8a0e
mov ebx, dword [ebp - 0x170]
cmp dword [ebp - 0x184], 0
je 0x4f8a0e
push dword [ebp - 0x184]
call fcn.00509ac4
add esp, 4
mov dword [0x5abb7c], ebx
push 0x5abb80
call fcn.0052850d
add esp, 4
jmp 0x4f8825
int3