Function at 0x71a11e11
Capabilities:
Compare security identifiers

Disassembly:
push dword [ebp - 0x28]
add eax, 8
push eax
call dword [sym.imp._CADVAPI.DLL_EqualSid]
test eax, eax
jne 0x71a11f40
mov eax, dword [ebp - 0x1c]
push dword [ebp - 0x34]
add eax, 8
push eax
call dword [sym.imp._CADVAPI.DLL_EqualSid]
test eax, eax
jne 0x71a11f40
mov eax, dword [ebp - 0x1c]
add eax, 8
push eax
call edi
lea esi, [esi + eax + 8]
jmp 0x71a11f40
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x71a15078]
mov ecx, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
mov dword [eax], ebx
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x38]
push eax
push ecx
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x13], bl
mov byte [ebp - 0x12], bl
mov byte [ebp - 0x11], bl
mov byte [ebp - 0x10], bl
mov byte [ebp - 0xf], 5
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 3
call dword [sym.imp._CADVAPI.DLL_GetSecurityDescriptorDacl]
test eax, eax
je 0x71a1284a
push esi
push edi
mov esi, dword [sym.imp._CADVAPI.DLL_AllocateAndInitializeSid]
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 2
xor edi, edi
inc edi
push edi
lea eax, [ebp - 0x14]
push eax
call esi
test eax, eax
je 0x71a12860
lea eax, [ebp - 0x28]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push edi
lea eax, [ebp - 0xc]
push eax
call esi
test eax, eax
je 0x71a12876
lea eax, [ebp - 0x34]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push edi
push edi
lea eax, [ebp - 0xc]
push eax
call esi
test eax, eax
je 0x71a12893
push dword [ebp - 0x20]
mov edi, dword [sym.imp._CADVAPI.DLL_GetLengthSid]
call edi
mov esi, eax
add esi, 0x10
cmp dword [ebp - 0x38], ebx
je 0x71a11f4b
cmp dword [ebp - 0x24], ebx
je 0x71a11f4b
push 2
push 0xc
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x24]
call dword [sym.imp._CADVAPI.DLL_GetAclInformation]
test eax, eax
je 0x71a12083
cmp dword [ebp - 0x44], ebx
mov dword [ebp - 0x18], ebx
jbe 0x71a11f4b
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x24]
call dword [sym.imp._CADVAPI.DLL_GetAce]
test eax, eax
je 0x71a12083
mov eax, dword [ebp - 0x1c]
movzx ecx, byte [eax]
sub ecx, ebx
jne 0x71a128b9
mov edx, dword [eax + 4]
mov ecx, 0x20006
and edx, ecx
cmp edx, ecx
je 0x71a11dcd
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x44]
jb 0x71a11f08
lea eax, [esi + 0x14]
push eax
push 0x40
call dword [sym.imp._CKERNEL.DLL_GlobalAlloc]
cmp eax, ebx
mov ecx, dword [ebp - 0x2c]
mov dword [ecx], eax
je 0x71a1292e
push 1
lea edi, [eax + 0x14]
push eax
mov dword [ebp - 0x30], edi
call dword [sym.imp._CADVAPI.DLL_InitializeSecurityDescriptor]
test eax, eax
je 0x71a12078
push 2
push esi
push edi
call dword [sym.imp._CADVAPI.DLL_InitializeAcl]
test eax, eax
je 0x71a12078
push dword [ebp - 0x20]
push 0x40120000
push 2
push edi
mov edi, dword [sym.imp._CADVAPI.DLL_AddAccessDeniedAce]
call edi
test eax, eax
je 0x71a12078
cmp dword [ebp - 0x38], ebx
je 0x71a11ff9
cmp dword [ebp - 0x24], ebx
je 0x71a11ff9
cmp dword [ebp - 0x44], ebx
mov dword [ebp - 0x18], ebx
jbe 0x71a11ff9
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x24]
call dword [sym.imp._CADVAPI.DLL_GetAce]
test eax, eax
je 0x71a12078
mov eax, dword [ebp - 0x1c]
movzx ecx, byte [eax]
sub ecx, ebx
jne 0x71a128d7
mov edx, dword [eax + 4]
mov ecx, 0x20006
and edx, ecx
cmp edx, ecx
je 0x71a12036
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x44]
jb 0x71a11fba
mov eax, dword [ebp - 0x2c]
push ebx
push dword [ebp - 0x30]
push 1
push dword [eax]
call dword [sym.imp._CADVAPI.DLL_SetSecurityDescriptorDacl]
test eax, eax
je 0x71a12083
xor esi, esi
push dword [ebp - 0x20]
mov edi, dword [sym.imp._CADVAPI.DLL_FreeSid]
call edi
push dword [ebp - 0x28]
call edi
push dword [ebp - 0x34]
call edi
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.71a122ab
leave
ret 8
push dword [ebp - 0x28]
mov esi, dword [sym.imp._CADVAPI.DLL_EqualSid]
add eax, 8
push eax
call esi
test eax, eax
jne 0x71a11fee
mov eax, dword [ebp - 0x1c]
push dword [ebp - 0x34]
add eax, 8
push eax
call esi
test eax, eax
jne 0x71a11fee
mov eax, dword [ebp - 0x1c]
add eax, 8
push eax
push 0x40120080
push 2
push dword [ebp - 0x30]
call dword [sym.imp._CADVAPI.DLL_AddAccessAllowedAce]
test eax, eax
jne 0x71a11fee
call dword [sym.imp._CKERNEL.DLL_GetLastError]
jmp 0x71a12905
call dword [sym.imp._CKERNEL.DLL_GetLastError]
jmp 0x71a12920
call dword [sym.imp._CKERNEL.DLL_GetLastError]
cmp eax, ebx
jne 0x71a12029
push 0x1f
pop eax
jmp 0x71a12029
call dword [sym.imp._CKERNEL.DLL_GetLastError]
cmp eax, ebx
jne 0x71a12027
push 0x1f
pop eax
jmp 0x71a12027
call dword [sym.imp._CKERNEL.DLL_GetLastError]
mov esi, eax
cmp esi, ebx
jne 0x71a12885
push 0x1f
pop esi
push dword [ebp - 0x20]
call dword [sym.imp._CADVAPI.DLL_FreeSid]
jmp 0x71a12025
call dword [sym.imp._CKERNEL.DLL_GetLastError]
mov edi, eax
cmp edi, ebx
jne 0x71a128a2
push 0x1f
pop edi
push dword [ebp - 0x28]
mov esi, dword [sym.imp._CADVAPI.DLL_FreeSid]
call esi
push dword [ebp - 0x20]
call esi
mov eax, edi
jmp 0x71a12027
dec ecx
jne 0x71a11f40
mov edx, dword [eax + 4]
mov ecx, 0x20006
and edx, ecx
cmp edx, ecx
je 0x71a11dfd
jmp 0x71a11f40
dec ecx
jne 0x71a11fee
mov edx, dword [eax + 4]
mov ecx, 0x20006
and edx, ecx
cmp edx, ecx
jne 0x71a11fee
add eax, 8
push eax
push 0x40120000
push 2
push dword [ebp - 0x30]
call edi
jmp 0x71a12070
mov esi, eax
cmp esi, ebx
jne 0x71a1290e
push 0x1f
pop esi
mov edi, dword [ebp - 0x2c]
push dword [edi]
call dword [sym.imp._CKERNEL.DLL_GlobalFree]
mov dword [edi], ebx
jmp 0x71a12010
mov esi, eax
cmp esi, ebx
jne 0x71a12010
push 0x1f
jmp 0x71a12940
call dword [sym.imp._CKERNEL.DLL_GetLastError]
mov esi, eax
cmp esi, ebx
jne 0x71a12010
push 8
pop esi
jmp 0x71a12010