Function at 0x10018c5
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x14
push ebx
push esi
push edi
push 8
pop esi
mov ebx, ecx
xor edx, edx
mov dword [eax], esi
cmp dword [ebx + 4], edx
jbe 0x10018f4
lea ecx, [ebx + 8]
mov eax, dword [ecx]
mov edi, dword [eax + 0x14]
inc edx
mov dword [eax + 0x18], edi
add ecx, esi
cmp edx, dword [ebx + 4]
jb 0x10018e4
mov eax, dword [ebp + 0xc]
xor esi, esi
cmp eax, esi
je 0x1001ae5
cmp word [eax + 4], si
je 0x1001ae5
mov dword [ebp - 0x10], esi
cmp dword [ebx + 4], esi
jbe 0x1001a3b
lea edi, [ebx + 8]
mov eax, dword [edi + 4]
cmp eax, 8
jne 0x10019f9
and dword [ebp - 0xc], 0
push eax
push dword [ebp + 0xc]
call fcn.01002f1b
mov ecx, dword [ebp + 0xc]
and dword [ebp - 8], 0
mov esi, eax
xor eax, eax
cmp ax, word [ecx + 4]
jae 0x1001a16
mov ecx, dword [edi]
lea eax, [ebp - 4]
push eax
call fcn.01001789
test eax, eax
jne 0x1001b1a
lea eax, [esi + 8]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x10019b9
cmp dword [ebp + 0x10], 0
je 0x1001987
mov ecx, dword [edi]
mov al, byte [esi]
cmp al, byte [ecx + 0x1c]
jne 0x1001987
movzx eax, byte [esi + 1]
push eax
call fcn.0100160f
jmp 0x1001990
mov eax, dword [edi]
mov cl, byte [esi]
cmp cl, byte [eax + 0x1c]
jne 0x1001997
mov dword [ebp - 0xc], 1
mov al, byte [esi]
test al, al
jne 0x10019a7
mov eax, dword [edi]
mov eax, dword [eax + 0x18]
or dword [esi + 4], eax
jmp 0x10019b9
cmp al, 1
jne 0x1001aba
mov eax, dword [edi]
mov eax, dword [eax + 0x18]
not eax
and dword [esi + 4], eax
movzx eax, word [esi + 2]
inc dword [ebp - 8]
push eax
push esi
call fcn.01002f1b
mov esi, eax
mov eax, dword [ebp + 0xc]
movzx eax, word [eax + 4]
cmp dword [ebp - 8], eax
jb 0x1001948
cmp dword [ebp - 0xc], 0
je 0x1001a16
cmp dword [ebp + 0x10], 0
je 0x10019f1
mov eax, dword [edi]
cmp dword [eax + 0x20], 7
jne 0x1001aba
mov eax, dword [edi]
and dword [eax + 0x18], 0
jmp 0x1001a29
cmp eax, 1
je 0x1001a03
cmp eax, 4
jne 0x1001a29
mov ecx, dword [edi]
lea eax, [ebp - 4]
push eax
call fcn.01001789
test eax, eax
jne 0x1001b1a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov ecx, eax
mov eax, dword [ebp + 8]
add ecx, 8
add dword [eax], ecx
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
add edi, 8
cmp eax, dword [ebx + 4]
jb 0x100191a
push 8
push dword [ebp + 0xc]
call fcn.01002f1b
mov ecx, dword [ebp + 0xc]
and dword [ebp - 0x10], 0
mov esi, eax
xor eax, eax
cmp ax, word [ecx + 4]
jae 0x1001b18
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp + 0x10], eax
cmp dword [ebx + 4], eax
jbe 0x1001aaf
lea edi, [ebx + 0xc]
test byte [edi], 7
je 0x1001a9b
mov ecx, dword [edi - 4]
lea eax, [ebp - 0x14]
push eax
call fcn.01001789
test eax, eax
jne 0x1001b1a
lea eax, [esi + 8]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x1001a9b
mov dword [ebp - 0xc], 1
inc dword [ebp + 0x10]
mov eax, dword [ebp + 0x10]
add edi, 8
cmp eax, dword [ebx + 4]
jb 0x1001a6a
cmp dword [ebp - 0xc], 0
jne 0x1001abf
movzx ecx, word [esi + 2]
mov eax, dword [ebp + 8]
add dword [eax], ecx
jmp 0x1001ac3
push 0xd
pop eax
jmp 0x1001b1a
and dword [esi + 4], 0
movzx eax, word [esi + 2]
inc dword [ebp - 0x10]
push eax
push esi
call fcn.01002f1b
mov esi, eax
mov eax, dword [ebp + 0xc]
movzx eax, word [eax + 4]
cmp dword [ebp - 0x10], eax
jb 0x1001a5a
jmp 0x1001b18
cmp dword [ebx + 4], esi
jbe 0x1001b18
lea edi, [ebx + 8]
mov ecx, dword [edi]
lea eax, [ebp + 0xc]
push eax
call fcn.01001789
test eax, eax
jne 0x1001b1a
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov ecx, eax
mov eax, dword [ebp + 8]
add ecx, 8
add dword [eax], ecx
inc esi
add edi, 8
cmp esi, dword [ebx + 4]
jb 0x1001aed
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc