Function at 0x10025ec6
Capabilities:
Compare security identifiers

Disassembly:
push 0xe0
mov eax, 0x1002c1df
call fcn.1002acfb
mov edi, edx
mov esi, ecx
mov dword [ebp - 0xe4], esi
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0xec], ebx
mov eax, dword [0x1002f024]
cmp eax, 0x1002f024
je 0x10025f0f
test byte [eax + 0x1c], 1
je 0x10025f0f
cmp byte [eax + 0x19], 5
jb 0x10025f0f
push ecx
push dword [ebp + 8]
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1002586a
and dword [ebp - 0xd8], 0
lea ecx, [ebp - 0xd0]
call fcn.1001ff3b
and dword [ebp - 4], 0
lea eax, [ebp - 0xd8]
and dword [ebx], 0
push eax
push edi
call dword [sym.imp.api_ms_win_security_sddl_l1_1_0.dll_ConvertStringSidToSidW]
mov ebx, eax
mov ecx, dword [0x1002f024]
mov edi, 0x100032fc
cmp ecx, 0x1002f024
je 0x10025f6e
test byte [ecx + 0x1c], 2
je 0x10025f6e
cmp byte [ecx + 0x19], 4
jb 0x10025f6e
push ebx
push dword [ecx + 0x14]
mov edx, edi
push dword [ecx + 0x10]
push 0x19
pop ecx
call fcn.10003c37
mov ecx, dword [0x1002f024]
cmp ebx, 1
jne 0x10026150
mov eax, dword [ebp - 0xd8]
xor ebx, ebx
test eax, eax
setne bl
cmp ecx, 0x1002f024
je 0x10025fb5
test byte [ecx + 0x1c], 2
je 0x10025fb5
cmp byte [ecx + 0x19], 4
jb 0x10025fb5
push ebx
push dword [ecx + 0x14]
mov edx, edi
push dword [ecx + 0x10]
push 0x1a
pop ecx
call fcn.10003c37
mov eax, dword [ebp - 0xd8]
mov ecx, dword [0x1002f024]
cmp ebx, 1
jne 0x10026150
push eax
lea ecx, [ebp - 0xd0]
call fcn.100248f6
push dword [ebp - 0xd8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
and dword [ebp - 0xd8], 0
lea ecx, [ebp - 0x70]
call fcn.1001ff3b
xor edi, edi
mov byte [ebp - 4], bl
cmp dword [esi + 0x14], edi
jbe 0x100260ed
lea eax, [esi + 0x10]
mov dword [ebp - 0xe8], eax
push edi
mov ecx, eax
call fcn.10003dc3
lea ecx, [ebp - 0x70]
mov eax, dword [eax]
mov dword [ebp - 0xdc], eax
lea esi, [eax + 4]
cmp ecx, esi
je 0x1002606e
mov eax, dword [esi + 0x4c]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x24], eax
lea eax, [esi + 0x50]
push eax
call fcn.1000d431
lea eax, [esi + 0x54]
push eax
lea ecx, [ebp - 0x1c]
call fcn.1000d431
lea eax, [esi + 0x58]
push eax
lea ecx, [ebp - 0x18]
call fcn.1000d431
mov al, byte [esi + 0x48]
mov byte [ebp - 0x28], al
test al, al
je 0x10026068
add esi, 4
push esi
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
push esi
lea ecx, [ebp - 0x6c]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_CopySid]
test eax, eax
je 0x1002618a
mov eax, dword [ebp - 0xdc]
mov ecx, dword [eax + 0x64]
mov eax, dword [eax]
mov dword [ebp - 0xe0], ecx
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x10030334]
mov ecx, dword [ebp - 0xdc]
call esi
mov byte [ebp - 0xd1], al
mov eax, dword [ebp - 0xdc]
mov cl, byte [eax + 0x68]
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x6c]
mov byte [ebp - 0xd2], cl
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x100260d6
cmp byte [ebp - 0xd1], 0
jne 0x100260d6
mov eax, dword [ebp - 0xe0]
cmp eax, dword [ebp + 8]
jne 0x100260d6
mov al, byte [ebp - 0xd2]
and al, 3
cmp al, 3
je 0x1002613d
mov esi, dword [ebp - 0xe4]
inc edi
cmp edi, dword [esi + 0x14]
jae 0x100260ed
mov eax, dword [ebp - 0xe8]
jmp 0x10025ffc
push ecx
push dword [ebp + 8]
lea eax, [ebp - 0xd0]
mov ecx, esi
push eax
call fcn.10024d3c
movzx ebx, al
mov eax, dword [0x1002f024]
cmp eax, 0x1002f024
je 0x1002612e
test byte [eax + 0x1c], 2
je 0x1002612e
cmp byte [eax + 0x19], 4
jb 0x1002612e
push ebx
push dword [eax + 0x14]
mov edx, 0x100032fc
push dword [eax + 0x10]
push 0x1b
pop ecx
call fcn.10003c37
xor ecx, ecx
inc ecx
cmp ebx, ecx
jne 0x1002613d
mov eax, dword [ebp - 0xec]
mov dword [eax], ecx
lea ecx, [ebp - 0x70]
call fcn.1001ffa1
mov ecx, dword [0x1002f024]
mov edi, 0x100032fc
cmp ecx, 0x1002f024
je 0x10026175
test byte [ecx + 0x1c], 1
je 0x10026175
cmp byte [ecx + 0x19], 5
jb 0x10026175
push ebx
push dword [ecx + 0x14]
mov edx, edi
push dword [ecx + 0x10]
push 0x1c
pop ecx
call fcn.10003c37
lea ecx, [ebp - 0xd0]
call fcn.1001ffa1
mov eax, ebx
call fcn.1002acaa
ret 0xc
call fcn.100052d9
mov ecx, eax
mov byte [ebp - 0x28], 0
call fcn.10003dc3
int3