Function at 0x100189e
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
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 0x10018cd
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 0x10018bd
mov eax, dword [ebp + 0xc]
xor esi, esi
cmp eax, esi
je 0x1001aba
cmp word [eax + 4], si
je 0x1001aba
cmp dword [ebx + 4], esi
mov dword [ebp - 0x10], esi
jbe 0x1001a10
lea edi, [ebx + 8]
mov eax, dword [edi + 4]
cmp eax, 8
jne 0x10019ce
and dword [ebp - 0xc], 0
push eax
push dword [ebp + 0xc]
call fcn.010027f9
and dword [ebp - 8], 0
mov esi, eax
mov eax, dword [ebp + 0xc]
cmp word [eax + 4], 0
jbe 0x10019eb
mov ecx, dword [edi]
lea eax, [ebp - 4]
push eax
call fcn.01001679
test eax, eax
jne 0x1001aef
lea eax, [esi + 8]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x1001992
cmp dword [ebp + 0x10], 0
je 0x1001960
mov ecx, dword [edi]
mov al, byte [esi]
cmp al, byte [ecx + 0x1c]
jne 0x1001960
xor eax, eax
mov al, byte [esi + 1]
push eax
call fcn.010014ff
jmp 0x1001969
mov eax, dword [edi]
mov cl, byte [esi]
cmp cl, byte [eax + 0x1c]
jne 0x1001970
mov dword [ebp - 0xc], 1
mov al, byte [esi]
test al, al
jne 0x1001980
mov eax, dword [edi]
mov eax, dword [eax + 0x18]
or dword [esi + 4], eax
jmp 0x1001992
cmp al, 1
jne 0x1001a30
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.010027f9
mov esi, eax
mov eax, dword [ebp + 0xc]
movzx eax, word [eax + 4]
cmp dword [ebp - 8], eax
jb 0x1001920
cmp dword [ebp - 0xc], 0
je 0x10019eb
cmp dword [ebp + 0x10], 0
je 0x10019c6
mov eax, dword [edi]
cmp dword [eax + 0x20], 7
jne 0x1001a30
mov eax, dword [edi]
and dword [eax + 0x18], 0
jmp 0x10019fe
cmp eax, 1
je 0x10019d8
cmp eax, 4
jne 0x10019fe
mov ecx, dword [edi]
lea eax, [ebp - 4]
push eax
call fcn.01001679
test eax, eax
jne 0x1001aef
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 0x10018f3
push 8
push dword [ebp + 0xc]
call fcn.010027f9
mov ecx, dword [ebp + 0xc]
mov esi, eax
xor eax, eax
cmp word [ecx + 4], ax
mov dword [ebp - 0x10], eax
jbe 0x1001aed
jmp 0x1001a3a
push 0xd
pop eax
jmp 0x1001aef
xor eax, eax
cmp dword [ebx + 4], eax
mov dword [ebp - 0xc], eax
mov dword [ebp + 0x10], eax
jbe 0x1001a8d
lea edi, [ebx + 0xc]
test byte [edi], 7
je 0x1001a79
mov ecx, dword [edi - 4]
lea eax, [ebp - 0x14]
push eax
call fcn.01001679
test eax, eax
jne 0x1001aef
lea eax, [esi + 8]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x1001a79
mov dword [ebp - 0xc], 1
inc dword [ebp + 0x10]
mov eax, dword [ebp + 0x10]
add edi, 8
cmp eax, dword [ebx + 4]
jb 0x1001a48
cmp dword [ebp - 0xc], 0
jne 0x1001a98
movzx ecx, word [esi + 2]
mov eax, dword [ebp + 8]
add dword [eax], ecx
jmp 0x1001a9c
and dword [esi + 4], 0
movzx eax, word [esi + 2]
inc dword [ebp - 0x10]
push eax
push esi
call fcn.010027f9
mov esi, eax
mov eax, dword [ebp + 0xc]
movzx eax, word [eax + 4]
cmp dword [ebp - 0x10], eax
jb 0x1001a38
jmp 0x1001aed
cmp dword [ebx + 4], esi
jbe 0x1001aed
lea edi, [ebx + 8]
mov ecx, dword [edi]
lea eax, [ebp + 0xc]
push eax
call fcn.01001679
test eax, eax
jne 0x1001aef
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 0x1001ac2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc