Function at 0x690a9d08
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov byte [ebp - 9], 0
call fcn.690a9cf8
test al, al
je 0x690aa0a4
push esi
call sub.advapi32.dll_IsValidSid
test eax, eax
je 0x690aa0a4
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x18], eax
xor ecx, ecx
push ebp
push 0x690aa09d
push dword fs:[ecx]
mov dword fs:[ecx], esp
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 4
push 1
mov eax, dword [ebp - 4]
call fcn.690056a4
push eax
call sub.ADVAPI32.DLL_GetNamedSecurityInfoA
call fcn.690a9ce4
test al, al
jne 0x690a9d83
call fcn.69004bb0
jmp 0x690aa0a4
cmp dword [ebp - 0x10], 0
jne 0x690a9d93
call fcn.69004bb0
jmp 0x690aa0a4
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2a]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_GetSecurityDescriptorControl
test eax, eax
jne 0x690a9dc0
movzx eax, word [ebp - 0x2a]
and ax, 4
cmp ax, 4
je 0x690a9dc0
call fcn.69004bb0
jmp 0x690aa0a4
lea eax, [ebp - 0x40]
xor ecx, ecx
mov edx, 0xc
call fcn.69003ab4
push 2
push 0xc
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_GetAclInformation
test eax, eax
jne 0x690a9dee
call fcn.69004bb0
jmp 0x690aa0a4
lea eax, [ebp - 0x30]
xor ecx, ecx
mov edx, 4
call fcn.69003ab4
push 1
push 4
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_GetAclInformation
test eax, eax
jne 0x690a9e1c
call fcn.69004bb0
jmp 0x690aa0a4
mov ebx, dword [ebp - 0x40]
dec ebx
cmp ebx, 0
jl 0x690a9e58
lea eax, [ebp - 0x34]
push eax
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_GetAce
test eax, eax
je 0x690a9e52
push esi
mov eax, dword [ebp - 0x34]
add eax, 8
push eax
call sub.advapi32.dll_EqualSid
test eax, eax
je 0x690a9e52
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_DeleteAce
dec ebx
cmp ebx, 0xffffffff
jne 0x690a9e25
lea eax, [ebp - 0x40]
xor ecx, ecx
mov edx, 0xc
call fcn.69003ab4
push 2
push 0xc
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_GetAclInformation
test eax, eax
jne 0x690a9e86
call fcn.69004bb0
jmp 0x690aa0a4
lea eax, [ebp - 0x30]
xor ecx, ecx
mov edx, 4
call fcn.69003ab4
push 1
push 4
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_GetAclInformation
test eax, eax
jne 0x690a9eb4
call fcn.69004bb0
jmp 0x690aa0a4
push esi
call sub.advapi32.dll_GetLengthSid
add eax, 0xc
sub eax, 4
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x3c]
mov ebx, eax
mov edx, dword [ebp - 0x38]
add ebx, edx
mov ecx, dword [ebp - 0x28]
add ecx, ecx
add ecx, eax
mov eax, ecx
cmp edx, eax
jb 0x690a9ee1
xor eax, eax
mov dword [ebp - 0x24], eax
jmp 0x690a9ee6
sub eax, edx
mov dword [ebp - 0x24], eax
cmp ebx, dword [ebp - 0x24]
jbe 0x690a9eee
mov dword [ebp - 0x24], ebx
mov eax, dword [ebp - 0x24]
call fcn.690032b0
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x690aa079
push dword fs:[eax]
mov dword fs:[eax], esp
mov edi, dword [ebp - 0x14]
mov eax, edi
xor ecx, ecx
mov edx, dword [ebp - 0x24]
call fcn.69003ab4
mov edx, edi
mov eax, dword [ebp - 0x10]
mov ecx, ebx
call fcn.69003510
mov eax, dword [ebp - 0x14]
movzx edx, word [ebp - 0x24]
mov word [eax + 2], dx
push 2
push 0xc
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_GetAclInformation
test eax, eax
jne 0x690a9f51
call fcn.69004bb0
call fcn.69004bb0
jmp 0x690aa0a4
mov eax, dword [ebp - 4]
call fcn.6900c168
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x28]
call fcn.690032b0
mov dword [ebp - 0x34], eax
xor eax, eax
push ebp
push 0x690aa014
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x34]
xor ecx, ecx
mov edx, dword [ebp - 0x28]
call fcn.69003ab4
mov eax, dword [ebp - 0x34]
mov byte [eax], 0
test bl, bl
jne 0x690a9f97
mov eax, dword [ebp - 0x34]
mov byte [eax + 1], 3
cmp byte [ebp + 8], 0
je 0x690a9fa4
mov eax, dword [ebp - 0x34]
add byte [eax + 1], 0x10
mov eax, dword [ebp - 0x34]
movzx edx, word [ebp - 0x28]
mov word [eax + 2], dx
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 8]
mov dword [eax + 4], edx
push esi
call sub.advapi32.dll_GetLengthSid
mov ecx, eax
mov eax, dword [ebp - 0x34]
lea edx, [eax + 8]
mov eax, esi
call fcn.69003510
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x30]
push eax
push edi
call sub.advapi32.dll_AddAce
test eax, eax
jne 0x690a9ffb
call fcn.69004bb0
call fcn.69004bb0
call fcn.69004bb0
jmp 0x690aa0a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x690aa01b
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x34]
call fcn.690032cc
ret
movzx eax, byte [ebp - 9]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4