Function at 0x1001b9d3
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
cmp dword [ebp + 8], ebx
push edi
mov dword [ebp - 4], ebx
mov dword [esi], ebx
je 0x1001bb7e
xor eax, eax
cmp dword [ebp + 0x10], ebx
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], 8
je 0x1001ba25
push 2
lea eax, [ebp - 0x14]
pop edi
push edi
push 0xc
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_GetAclInformation]
mov ebx, eax
test ebx, ebx
je 0x1001bb87
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov ecx, dword [ebp - 0x10]
lea edi, [eax + ecx + 8]
push edi
call fcn.101d42d4
test eax, eax
pop ecx
mov dword [esi], eax
je 0x1001bb8c
push 4
push 0
push eax
call fcn.10042530
add esp, 0xc
push 2
push edi
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
mov ebx, eax
xor eax, eax
cmp ebx, eax
je 0x1001bb95
cmp dword [ebp + 0x10], eax
mov edi, dword [sym.imp.ADVAPI32.dll_AddAce]
mov dword [ebp - 8], eax
mov dword [ebp + 0xc], eax
je 0x1001bae4
cmp dword [ebp - 0x14], eax
jbe 0x1001bae4
mov dword [ebp + 0xc], eax
jmp 0x1001ba87
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_GetAce]
mov ebx, eax
test ebx, ebx
je 0x1001bb5a
mov eax, dword [ebp - 8]
test byte [eax + 1], 0x10
jne 0x1001bae4
add eax, 8
push eax
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x1001bad9
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 2]
push ecx
push eax
push 0xffffffffffffffff
push 2
push dword [esi]
call edi
mov ebx, eax
test ebx, ebx
je 0x1001bb63
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x14]
jb 0x1001ba85
push dword [ebp + 0x14]
push dword [ebp + 0x18]
push 2
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
mov ebx, eax
test ebx, ebx
je 0x1001bb9e
cmp dword [ebp + 0x10], 0
je 0x1001bba5
mov eax, dword [ebp - 0x14]
test eax, eax
jbe 0x1001bba5
cmp dword [ebp + 0xc], eax
jae 0x1001bba5
lea eax, [ebp - 8]
and dword [ebp - 8], 0
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_GetAce]
mov ebx, eax
test ebx, ebx
je 0x1001bb6c
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 2]
push ecx
push eax
push 0xffffffffffffffff
push 2
push dword [esi]
call edi
mov ebx, eax
test ebx, ebx
je 0x1001bb75
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x14]
jb 0x1001bb1c
jmp 0x1001bba5
mov dword [ebp - 4], 5
jmp 0x1001bba9
mov dword [ebp - 4], 6
jmp 0x1001bba9
mov dword [ebp - 4], 8
jmp 0x1001bba9
mov dword [ebp - 4], 9
jmp 0x1001bba5
mov dword [ebp - 4], 1
jmp 0x1001bba9
mov dword [ebp - 4], edi
jmp 0x1001bba5
mov dword [ebp - 4], 3
jmp 0x1001bba5
mov dword [ebp - 4], 4
jmp 0x1001bba5
mov dword [ebp - 4], 7
test ebx, ebx
jne 0x1001bbb9
mov eax, dword [esi]
test eax, eax
je 0x1001bbb9
push eax
call fcn.101d42fd
and dword [esi], 0
pop ecx
cmp dword [0x1027b8c0], 0
je 0x1001bbed
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [esi]
push dword [ebp + 8]
push dword [ebp - 4]
push ebx
push str.CKSecurity::CopyAcl_____Inner___ret:__d___myerror:__d___SrcAcl:__08x___DstAcl:__08x___b:__08x___Sid:__08x___Mask:__08x_
push str.Security
push 0xffffffffffffffff
push 0x1027b02c
call fcn.10085230
add esp, 0x2c
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret