Function at 0x42e9f9
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x9c
mov eax, dword [0x5a05c4]
mov ebx, edx
mov esi, ecx
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x90], eax
mov byte [ebp - 0x8c], al
mov dword [ebp - 0x88], 2
mov dword [ebp - 0x94], 0x55b580
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x7c], eax
cmp byte [ecx + 0xb], al
js 0x42ea4d
mov eax, esi
jmp 0x42ea53
mov eax, dword [esi]
test eax, eax
je 0x42ea76
lea ecx, [ebp - 0x74]
lea edi, [ebp - 0x70]
xor edx, edx
push ecx
push edx
push edi
push edx
push edx
push 4
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
test eax, eax
je 0x42eacf
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
lea esi, [ebp - 0x84]
xor edi, edi
mov dword [esi - 0x10], 0x55b580
mov ecx, esi
push 0xffffffffffffffff
push edi
call fcn.0042f8a6
push dword [esi - 0xc]
call fcn.004588a0
add esp, 4
mov ecx, esi
mov dword [esi - 0xc], edi
call fcn.004305e8
mov dword [esi - 0x10], 0x55b5a0
push dword [esi - 0xc]
call fcn.004588a0
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00527311
mov eax, ebx
add esp, 0x9c
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0xa4], esi
mov esi, dword [ebp - 0x70]
test esi, esi
je 0x42eaf4
lea edi, [ebp - 0x94]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
mov ecx, edi
lea edi, [ebp - 0x70]
push esi
call fcn.0042fb2c
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x70], 0
je 0x42ea76
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
cmp eax, ecx
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0xa8], ecx
je 0x42ed2e
lea ebx, [ebp - 0x94]
mov eax, dword [ebp - 0x94]
mov ecx, ebx
call dword [eax + 4]
test eax, eax
je 0x42ecf9
mov eax, dword [ebp - 0x9c]
xor esi, esi
add eax, 4
mov dword [ebp - 0xa0], eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x70], 0x55b574
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x24], 7
call fcn.0042efd6
lea ecx, [ebp - 0x1c]
call fcn.0042efd6
lea ecx, [ebp - 0x18]
call fcn.0042efd6
lea ecx, [ebp - 0x14]
call fcn.0042efd6
mov eax, dword [ebp - 0x94]
mov ecx, ebx
push esi
call dword [eax + 0x10]
mov ebx, eax
add eax, 4
cmp eax, edi
je 0x42ebe5
mov eax, dword [ebx + 0x50]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x24], eax
lea eax, [ebx + 0x54]
push eax
call fcn.00430464
lea eax, [ebx + 0x58]
lea ecx, [ebp - 0x1c]
push eax
call fcn.00430464
lea eax, [ebx + 0x5c]
lea ecx, [ebp - 0x18]
push eax
call fcn.00430464
mov al, byte [ebx + 0x4c]
test al, al
mov byte [ebp - 0x28], al
je 0x42ebe5
mov edi, ebx
add edi, 8
push edi
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
push edi
lea ecx, [ebp - 0x6c]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_CopySid]
test eax, eax
je 0x42ed73
mov eax, dword [ebx]
mov edi, dword [ebx + 0x64]
mov ecx, ebx
call dword [eax + 0xc]
cmp byte [ebp - 0x28], 0
mov byte [ebp - 0x95], al
je 0x42ec5b
mov bl, byte [ebx + 0x68]
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x42ec5b
mov eax, dword [ebp - 0x9c]
cmp byte [eax + 0x48], 0
je 0x42ec5b
push dword [ebp - 0xa0]
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x42ec5b
push dword [ebp - 0xa0]
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
mov ecx, dword [ebp + 8]
and edi, ecx
cmp edi, ecx
jne 0x42ec5b
and bl, 3
cmp bl, 3
jne 0x42ec5b
cmp byte [ebp - 0x95], 0
jne 0x42ec5b
test eax, eax
mov ebx, 1
jne 0x42ec5d
xor ebx, ebx
mov dword [ebp - 0x70], 0x55b574
xor edx, edx
mov eax, dword [ebp - 0x14]
dec edx
mov ecx, edx
lock xadd dword [eax - 4], ecx
dec ecx
test ecx, ecx
jg 0x42ec84
add eax, 0xfffffff0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor edx, edx
dec edx
mov eax, dword [ebp - 0x18]
mov ecx, edx
lea edi, [ebp - 0x70]
lock xadd dword [eax - 4], ecx
dec ecx
test ecx, ecx
jg 0x42eca4
add eax, 0xfffffff0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor edx, edx
dec edx
mov eax, dword [ebp - 0x1c]
mov ecx, edx
lock xadd dword [eax - 4], ecx
dec ecx
test ecx, ecx
jg 0x42ecc1
add eax, 0xfffffff0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor edx, edx
dec edx
mov eax, dword [ebp - 0x20]
mov ecx, edx
lock xadd dword [eax - 4], ecx
dec ecx
test ecx, ecx
jg 0x42ecdb
add eax, 0xfffffff0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test ebx, ebx
lea ebx, [ebp - 0x94]
jne 0x42ed13
mov eax, dword [ebp - 0x94]
mov ecx, ebx
inc esi
call dword [eax + 4]
cmp esi, eax
jb 0x42eb4a
mov ecx, ebx
push 3
push dword [ebp + 8]
push dword [ebp - 0x9c]
call fcn.004303aa
test al, al
je 0x42ea76
mov eax, dword [ebp - 0x9c]
add eax, 0x60
cmp eax, dword [ebp - 0xa8]
mov dword [ebp - 0x9c], eax
jne 0x42eb26
mov esi, dword [ebp - 0xa4]
cmp byte [esi + 0xb], 0
jns 0x42ed44
mov esi, dword [esi]
test esi, esi
je 0x42ea76
lea ecx, [ebp - 0x94]
call fcn.004304ca
xor ecx, ecx
push ecx
push eax
push ecx
push ecx
push 4
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov esi, eax
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
sete bl
jmp 0x42ea78
call fcn.0042f361
mov byte [ebp - 0x28], 0
push eax
call fcn.0042f0b0