Function at 0x535c5c
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
call fcn.004053dc
lea edi, [ebp - 8]
xor eax, eax
push ebp
push 0x536272
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
mov eax, dword [ebp + 0xc]
push eax
call sub.advapi32.dll_IsValidSid
test eax, eax
je 0x53625c
mov eax, dword [ebp + 8]
call fcn.0040b8c8
mov byte [ebp - 0x21], al
xor eax, eax
mov dword [edi], eax
call fcn.00535b64
test al, al
jne 0x535cd7
lea eax, [ebp - 0x10]
push eax
push 0
push edi
push 0
push 0
push 4
push 1
mov eax, dword [ebp + 8]
call fcn.004053ec
push eax
call sub.ADVAPI32.DLL_GetNamedSecurityInfoA
call fcn.00535b50
test al, al
je 0x53625c
jmp 0x535d3f
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 4
mov eax, dword [ebp + 8]
call fcn.004053ec
mov ebx, eax
push ebx
call sub.advapi32.dll_GetFileSecurityA
mov eax, dword [ebp - 0x18]
call fcn.00403010
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov edx, dword [ebp - 0x18]
call fcn.00403830
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 4
push ebx
call sub.advapi32.dll_GetFileSecurityA
test eax, eax
je 0x53625c
lea eax, [ebp - 0x40]
push eax
push edi
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_GetSecurityDescriptorDacl
test eax, eax
je 0x53625c
xor ecx, ecx
push ebp
push 0x536255
push dword fs:[ecx]
mov dword fs:[ecx], esp
cmp dword [edi], 0
jne 0x535d5c
call fcn.00404960
jmp 0x53625c
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1a]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_GetSecurityDescriptorControl
test eax, eax
jne 0x535d7b
call fcn.00404960
jmp 0x53625c
movzx eax, word [ebp - 0x1a]
and ax, 4
cmp ax, 4
je 0x535d93
call fcn.00404960
jmp 0x53625c
push 2
push 0xc
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [edi]
push eax
call sub.advapi32.dll_GetAclInformation
test eax, eax
jne 0x535db1
call fcn.00404960
jmp 0x53625c
push 1
push 4
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [edi]
push eax
call sub.advapi32.dll_GetAclInformation
test eax, eax
jne 0x535dcf
call fcn.00404960
jmp 0x53625c
mov eax, dword [ebp - 0x4c]
mov ebx, eax
dec ebx
cmp ebx, 0
jl 0x535e0e
lea eax, [ebp - 0x30]
push eax
push ebx
mov eax, dword [edi]
push eax
call sub.advapi32.dll_GetAce
test eax, eax
je 0x535e08
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0x30]
add eax, 8
push eax
call sub.advapi32.dll_EqualSid
test eax, eax
je 0x535e08
push ebx
mov eax, dword [edi]
push eax
call sub.advapi32.dll_DeleteAce
dec ebx
cmp ebx, 0xffffffff
jne 0x535dda
push 2
push 0xc
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [edi]
push eax
call sub.advapi32.dll_GetAclInformation
test eax, eax
jne 0x535e2c
call fcn.00404960
jmp 0x53625c
push 1
push 4
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [edi]
push eax
call sub.advapi32.dll_GetAclInformation
test eax, eax
jne 0x535e4a
call fcn.00404960
jmp 0x53625c
mov eax, dword [ebp + 0xc]
push eax
call sub.advapi32.dll_GetLengthSid
add eax, 0xc
sub eax, 4
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x48]
mov ebx, eax
mov edx, dword [ebp - 0x44]
add ebx, edx
mov ecx, dword [ebp - 0x38]
add ecx, ecx
add ecx, eax
sub ecx, edx
mov dword [ebp - 0x34], ecx
cmp ebx, dword [ebp - 0x34]
jbe 0x535e7a
mov dword [ebp - 0x34], ebx
mov eax, dword [ebp - 0x34]
call fcn.00403010
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x536237
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebp - 0xc]
mov eax, esi
xor ecx, ecx
mov edx, dword [ebp - 0x34]
call fcn.00403830
mov edx, esi
mov eax, dword [edi]
mov ecx, ebx
call fcn.00403230
mov eax, dword [ebp - 0xc]
movzx edx, word [ebp - 0x34]
mov word [eax + 2], dx
push 2
push 0xc
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_GetAclInformation
test eax, eax
jne 0x535edc
call fcn.00404960
call fcn.00404960
jmp 0x53625c
xor eax, eax
mov dword [ebp - 0x28], eax
call fcn.00535b64
test al, al
jne 0x535fb8
mov eax, dword [ebp - 0x38]
call fcn.00403010
mov dword [ebp - 0x30], eax
xor eax, eax
push ebp
push 0x535fb1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x30]
xor ecx, ecx
mov edx, dword [ebp - 0x38]
call fcn.00403830
mov eax, dword [ebp - 0x30]
mov byte [eax], 0
cmp byte [ebp - 0x21], 0
jne 0x535f27
mov eax, dword [ebp - 0x30]
mov byte [eax + 1], 3
cmp byte [ebp + 0x14], 0
je 0x535f3d
call fcn.00535b64
test al, al
jne 0x535f3d
mov eax, dword [ebp - 0x30]
add byte [eax + 1], 0x10
mov eax, dword [ebp - 0x30]
movzx edx, word [ebp - 0x38]
mov word [eax + 2], dx
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov eax, dword [ebp + 0xc]
push eax
call sub.advapi32.dll_GetLengthSid
mov ecx, eax
mov eax, dword [ebp - 0x30]
lea edx, [eax + 8]
mov eax, dword [ebp + 0xc]
call fcn.00403230
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x2c]
push eax
push esi
call sub.advapi32.dll_AddAce
test eax, eax
jne 0x535f98
call fcn.00404960
call fcn.00404960
call fcn.00404960
jmp 0x53625c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x536126
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x30]
call fcn.0040302c
ret
xor eax, eax
mov dword [ebp - 0x28], eax
cmp byte [ebp - 0x21], 0
jne 0x536075
mov eax, dword [ebp - 0x38]
call fcn.00403010
mov dword [ebp - 0x30], eax
xor eax, eax
push ebp
push 0x53606e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x30]
xor ecx, ecx
mov edx, dword [ebp - 0x38]
call fcn.00403830
mov eax, dword [ebp - 0x30]
mov byte [eax], 0
mov eax, dword [ebp - 0x30]
mov byte [eax + 1], 0xb
mov eax, dword [ebp - 0x30]
movzx edx, word [ebp - 0x38]
mov word [eax + 2], dx
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov eax, dword [ebp + 0xc]
push eax
call sub.advapi32.dll_GetLengthSid
mov ecx, eax
mov eax, dword [ebp - 0x30]
lea edx, [eax + 8]
mov eax, dword [ebp + 0xc]
call fcn.00403230
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x2c]
push eax
push esi
call sub.advapi32.dll_AddAce
test eax, eax
jne 0x536055
call fcn.00404960
call fcn.00404960
call fcn.00404960
jmp 0x53625c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x536075
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x30]
call fcn.0040302c
ret
mov eax, dword [ebp - 0x38]
call fcn.00403010
mov dword [ebp - 0x30], eax
xor eax, eax
push ebp
push 0x53611f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x30]
xor ecx, ecx
mov edx, dword [ebp - 0x38]
call fcn.00403830
mov eax, dword [ebp - 0x30]
mov byte [eax], 0
mov eax, dword [ebp - 0x30]
mov byte [eax + 1], 0
mov eax, dword [ebp - 0x30]
movzx edx, word [ebp - 0x38]
mov word [eax + 2], dx
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov eax, dword [ebp + 0xc]
push eax
call sub.advapi32.dll_GetLengthSid
mov ecx, eax
mov eax, dword [ebp - 0x30]
lea edx, [eax + 8]
mov eax, dword [ebp + 0xc]
call fcn.00403230
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_AddAce
test eax, eax
jne 0x536106
call fcn.00404960
call fcn.00404960
call fcn.00404960
jmp 0x53625c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x536126
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x30]
call fcn.0040302c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x536279
lea eax, [ebp + 8]
call fcn.00404f5c
ret