Function at 0x6edaa488
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 4], 0x8007000e
call fcn.6edaa02c
mov esi, eax
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
xor edi, edi
mov dword [ebp - 8], eax
cmp eax, edi
je 0x6edaa685
push 2
push esi
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.API_MS_Win_Security_Base_L1_1_0.dll_InitializeAcl]
mov eax, dword [ebx]
test eax, eax
je 0x6edaa51a
cmp edi, dword [eax]
jge 0x6edaa51a
push edi
push eax
call dword [0x6ed833c0]
cmp dword [ebp + 8], 0
mov esi, eax
je 0x6edaa4f2
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.API_MS_Win_Security_Base_L1_1_0.dll_EqualSid]
test eax, eax
je 0x6edaa513
push dword [esi + 8]
movzx eax, byte [esi + 1]
push dword [esi + 4]
push eax
push 2
push dword [ebp - 8]
call dword [sym.imp.API_MS_Win_Security_Base_L1_1_0.dll_AddAccessDeniedAceEx]
test eax, eax
jne 0x6edaa513
mov dword [ebp - 4], 0x8007000e
inc edi
cmp dword [ebp - 4], 0
jge 0x6edaa4c8
xor edi, edi
cmp dword [ebx + 0xc], edi
jne 0x6edaa593
cmp dword [ebx + 0x10], edi
jne 0x6edaa593
cmp dword [ebp - 4], edi
jl 0x6edaa593
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x6edaa593
mov eax, ecx
test eax, eax
je 0x6edaa53c
mov eax, dword [eax]
jmp 0x6edaa53e
xor eax, eax
cmp edi, eax
jge 0x6edaa593
push edi
push ecx
call dword [0x6ed833c0]
cmp dword [ebp + 8], 0
mov esi, eax
je 0x6edaa562
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.API_MS_Win_Security_Base_L1_1_0.dll_EqualSid]
test eax, eax
je 0x6edaa58c
test byte [esi + 0xc], 1
jne 0x6edaa58c
push dword [esi + 8]
movzx eax, byte [esi + 1]
push dword [esi + 4]
and eax, 0xffffffef
push eax
push 2
push dword [ebp - 8]
call dword [sym.imp.API_MS_Win_Security_Base_L1_1_0.dll_AddAccessDeniedAceEx]
test eax, eax
jne 0x6edaa58c
mov dword [ebp - 4], 0x8007000e
inc edi
cmp dword [ebp - 4], 0
jge 0x6edaa52b
xor edi, edi
cmp dword [ebp - 4], edi
jl 0x6edaa5f9
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x6edaa5f9
mov eax, ecx
test eax, eax
je 0x6edaa5ab
mov eax, dword [eax]
jmp 0x6edaa5ad
xor eax, eax
cmp edi, eax
jge 0x6edaa5f9
push edi
push ecx
call dword [0x6ed833c0]
cmp dword [ebp + 8], 0
mov esi, eax
je 0x6edaa5d1
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.API_MS_Win_Security_Base_L1_1_0.dll_EqualSid]
test eax, eax
je 0x6edaa5f2
push dword [esi + 8]
movzx eax, byte [esi + 1]
push dword [esi + 4]
push eax
push 2
push dword [ebp - 8]
call dword [sym.imp.API_MS_Win_Security_Base_L1_1_0.dll_AddAccessAllowedAceEx]
test eax, eax
jne 0x6edaa5f2
mov dword [ebp - 4], 0x8007000e
inc edi
cmp dword [ebp - 4], 0
jge 0x6edaa59a
xor edi, edi
cmp dword [ebx + 0xc], edi
jne 0x6edaa672
cmp dword [ebx + 0x10], edi
jne 0x6edaa672
cmp dword [ebp - 4], edi
jl 0x6edaa679
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x6edaa672
mov eax, ecx
test eax, eax
je 0x6edaa61b
mov eax, dword [eax]
jmp 0x6edaa61d
xor eax, eax
cmp edi, eax
jge 0x6edaa672
push edi
push ecx
call dword [0x6ed833c0]
cmp dword [ebp + 8], 0
mov esi, eax
je 0x6edaa641
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.API_MS_Win_Security_Base_L1_1_0.dll_EqualSid]
test eax, eax
je 0x6edaa66b
test byte [esi + 0xc], 1
je 0x6edaa66b
push dword [esi + 8]
movzx eax, byte [esi + 1]
push dword [esi + 4]
and eax, 0xffffffef
push eax
push 2
push dword [ebp - 8]
call dword [sym.imp.API_MS_Win_Security_Base_L1_1_0.dll_AddAccessAllowedAceEx]
test eax, eax
jne 0x6edaa66b
mov dword [ebp - 4], 0x8007000e
inc edi
cmp dword [ebp - 4], 0
jge 0x6edaa60a
xor edi, edi
cmp dword [ebp - 4], edi
jge 0x6edaa685
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 8], edi
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
pop edi
pop esi
mov dword [eax], ecx
mov eax, dword [ebp - 4]
pop ebx
leave
ret 8