Function at 0x10017b8
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
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 0x10017e5
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 0x10017d5
mov eax, dword [ebp + 0xc]
xor esi, esi
cmp eax, esi
je 0x10019d2
cmp word [eax + 4], si
je 0x10019d2
cmp dword [ebx + 4], esi
mov dword [ebp - 0x10], esi
jbe 0x1001928
lea edi, [ebx + 8]
mov eax, dword [edi + 4]
cmp eax, 8
jne 0x10018e6
and dword [ebp - 0xc], 0
push eax
push dword [ebp + 0xc]
call fcn.010025af
and dword [ebp - 8], 0
mov esi, eax
mov eax, dword [ebp + 0xc]
cmp word [eax + 4], 0
jbe 0x1001903
mov ecx, dword [edi]
lea eax, [ebp - 4]
push eax
call fcn.010015b7
test eax, eax
jne 0x1001a07
lea eax, [esi + 8]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x10018aa
cmp dword [ebp + 0x10], 0
je 0x1001878
mov ecx, dword [edi]
mov al, byte [esi]
cmp al, byte [ecx + 0x1c]
jne 0x1001878
xor eax, eax
mov al, byte [esi + 1]
push eax
call fcn.01001467
jmp 0x1001881
mov eax, dword [edi]
mov cl, byte [esi]
cmp cl, byte [eax + 0x1c]
jne 0x1001888
mov dword [ebp - 0xc], 1
mov al, byte [esi]
test al, al
jne 0x1001898
mov eax, dword [edi]
mov eax, dword [eax + 0x18]
or dword [esi + 4], eax
jmp 0x10018aa
cmp al, 1
jne 0x1001948
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.010025af
mov esi, eax
mov eax, dword [ebp + 0xc]
movzx eax, word [eax + 4]
cmp dword [ebp - 8], eax
jb 0x1001838
cmp dword [ebp - 0xc], 0
je 0x1001903
cmp dword [ebp + 0x10], 0
je 0x10018de
mov eax, dword [edi]
cmp dword [eax + 0x20], 7
jne 0x1001948
mov eax, dword [edi]
and dword [eax + 0x18], 0
jmp 0x1001916
cmp eax, 1
je 0x10018f0
cmp eax, 4
jne 0x1001916
mov ecx, dword [edi]
lea eax, [ebp - 4]
push eax
call fcn.010015b7
test eax, eax
jne 0x1001a07
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 0x100180b
push 8
push dword [ebp + 0xc]
call fcn.010025af
mov ecx, dword [ebp + 0xc]
mov esi, eax
xor eax, eax
cmp word [ecx + 4], ax
mov dword [ebp - 0x10], eax
jbe 0x1001a05
jmp 0x1001952
push 0xd
pop eax
jmp 0x1001a07
xor eax, eax
cmp dword [ebx + 4], eax
mov dword [ebp - 0xc], eax
mov dword [ebp + 0x10], eax
jbe 0x10019a5
lea edi, [ebx + 0xc]
test byte [edi], 7
je 0x1001991
mov ecx, dword [edi - 4]
lea eax, [ebp - 0x14]
push eax
call fcn.010015b7
test eax, eax
jne 0x1001a07
lea eax, [esi + 8]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x1001991
mov dword [ebp - 0xc], 1
inc dword [ebp + 0x10]
mov eax, dword [ebp + 0x10]
add edi, 8
cmp eax, dword [ebx + 4]
jb 0x1001960
cmp dword [ebp - 0xc], 0
jne 0x10019b0
movzx ecx, word [esi + 2]
mov eax, dword [ebp + 8]
add dword [eax], ecx
jmp 0x10019b4
and dword [esi + 4], 0
movzx eax, word [esi + 2]
inc dword [ebp - 0x10]
push eax
push esi
call fcn.010025af
mov esi, eax
mov eax, dword [ebp + 0xc]
movzx eax, word [eax + 4]
cmp dword [ebp - 0x10], eax
jb 0x1001950
jmp 0x1001a05
cmp dword [ebx + 4], esi
jbe 0x1001a05
lea edi, [ebx + 8]
mov ecx, dword [edi]
lea eax, [ebp + 0xc]
push eax
call fcn.010015b7
test eax, eax
jne 0x1001a07
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 0x10019da
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc