Function at 0x10015bed
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x10274398]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x44]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor ebx, ebx
lea eax, [ebp - 0x28]
push eax
push 4
push ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x44], 8
mov dword [ebp - 0x1c], ebx
call fcn.100159b8
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0xc
test eax, eax
je 0x10015e8d
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorDacl]
test eax, eax
je 0x10015e8d
cmp dword [ebp - 0x20], ebx
jne 0x10015c6d
mov dword [ebp - 0x38], ebx
cmp dword [ebp - 0x38], ebx
je 0x10015e86
push 2
push 0xc
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_GetAclInformation]
test eax, eax
je 0x10015e8d
push dword [ebp - 0x14]
cmp dword [ebp - 0x48], ebx
jne 0x10015cb8
call fcn.10015ae9
pop ecx
mov dword [ebp - 0x10], eax
call esi
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push str.AIFP
push str.AIL:CARTD:_s__s__d___d
jmp 0x10015e82
push str.AIL:CARTD__s_
push 3
pop edi
push edi
call fcn.101d1209
add esp, 0xc
push str.ConvertSidToStringSidW
push 0x101f76fc
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
or dword [ebp - 0x30], 0xffffffff
lea ecx, [ebp - 0x2c]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [ebp - 0x3c], eax
push ebx
xor eax, eax
inc eax
push ebx
push eax
mov dword [ebp - 0x34], eax
mov byte [ebp - 7], al
lea eax, [ebp - 0xc]
push eax
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
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x24], ebx
cmp dword [ebp - 0x48], ebx
jbe 0x10015dec
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x10015e08
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x3c], ebx
je 0x10015d65
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
add eax, 8
push eax
call dword [ebp - 0x3c]
test eax, eax
je 0x10015d65
mov eax, dword [ebp - 0x1c]
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
push ecx
push eax
push dword [ebp - 0x18]
jmp 0x10015d76
mov eax, dword [ebp - 0x1c]
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
push ecx
push eax
push 0x101f76f8
push str.AIL:CARTD:ACE__s___x___x_
push edi
call fcn.101d1209
mov eax, dword [ebp - 0x1c]
add esp, 0x14
add eax, 8
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
mov eax, dword [ebp - 0x1c]
je 0x10015da6
cmp byte [eax], 1
jne 0x10015da6
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x30], ecx
test byte [eax + 1], 8
jne 0x10015dca
cmp byte [eax], bl
jne 0x10015dca
cmp dword [ebp - 0x18], ebx
je 0x10015dd8
push str.S_1_15_2_1
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x10015dca
mov dword [ebp - 0x34], ebx
cmp dword [ebp - 0x18], ebx
je 0x10015dd8
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LocalFree]
inc dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x48]
jb 0x10015d22
cmp dword [ebp - 0x34], ebx
je 0x10015e24
push dword [ebp - 0x14]
call fcn.10015ae9
pop ecx
mov dword [ebp - 0x10], eax
call esi
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push str.AIFP
jmp 0x10015e14
call esi
push eax
push ebx
push dword [ebp - 0x14]
push 0x101f76a4
push str.AIL:CARTD:_s__s__d___d
push edi
call fcn.101d1209
add esp, 0x18
jmp 0x10015e8d
cmp dword [ebp - 0x30], 0xffffffff
je 0x10015e86
push dword [ebp - 0x30]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_DeleteAce]
mov dword [ebp - 0x10], eax
call esi
push eax
push dword [ebp - 0x10]
mov edi, str.AIL:CARTD:_s__s__d___d
push dword [ebp - 0x14]
push 0x101f769c
push edi
push 3
call fcn.101d1209
add esp, 0x18
cmp dword [ebp - 0x10], ebx
je 0x10015e8d
push dword [ebp - 0x4c]
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x14]
call fcn.10015a4c
add esp, 0x10
mov dword [ebp - 0x10], eax
call esi
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0x101f7694
push edi
push 3
jmp 0x10015e1a
mov dword [ebp - 0x10], 1
call esi
mov esi, eax
cmp dword [ebp - 0x28], ebx
je 0x10015ea7
push dword [ebp - 0x28]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 0x2c], ebx
je 0x10015eb5
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 0x10], ebx
jne 0x10015ed4
push esi
push dword [ebp - 0x14]
push str.AIL:CARTD__s__err_d
push 1
call fcn.101d1209
add esp, 0x10
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101d14d7
leave
ret