Function at 0x4d3bc0
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.004046b8
lea edi, [ebp - 8]
xor eax, eax
push ebp
push 0x4d41d6
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 0x4d41c0
mov eax, dword [ebp + 8]
call fcn.00409000
mov byte [ebp - 0x21], al
xor eax, eax
mov dword [edi], eax
call fcn.004d3ac8
test al, al
jne 0x4d3c3b
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.004046c8
push eax
call sub.ADVAPI32.DLL_GetNamedSecurityInfoA
call fcn.004d3ab4
test al, al
je 0x4d41c0
jmp 0x4d3ca3
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 4
mov eax, dword [ebp + 8]
call fcn.004046c8
mov ebx, eax
push ebx
call sub.advapi32.dll_GetFileSecurityA
mov eax, dword [ebp - 0x18]
call fcn.00402704
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov edx, dword [ebp - 0x18]
call fcn.00402cf8
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 0x4d41c0
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 0x4d41c0
xor ecx, ecx
push ebp
push 0x4d41b9
push dword fs:[ecx]
mov dword fs:[ecx], esp
cmp dword [edi], 0
jne 0x4d3cc0
call fcn.00403c6c
jmp 0x4d41c0
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 0x4d3cdf
call fcn.00403c6c
jmp 0x4d41c0
mov ax, word [ebp - 0x1a]
and ax, 4
cmp ax, 4
je 0x4d3cf7
call fcn.00403c6c
jmp 0x4d41c0
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 0x4d3d15
call fcn.00403c6c
jmp 0x4d41c0
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 0x4d3d33
call fcn.00403c6c
jmp 0x4d41c0
mov eax, dword [ebp - 0x4c]
mov ebx, eax
dec ebx
cmp ebx, 0
jl 0x4d3d72
lea eax, [ebp - 0x30]
push eax
push ebx
mov eax, dword [edi]
push eax
call sub.advapi32.dll_GetAce
test eax, eax
je 0x4d3d6c
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 0x4d3d6c
push ebx
mov eax, dword [edi]
push eax
call sub.advapi32.dll_DeleteAce
dec ebx
cmp ebx, 0xffffffff
jne 0x4d3d3e
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 0x4d3d90
call fcn.00403c6c
jmp 0x4d41c0
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 0x4d3dae
call fcn.00403c6c
jmp 0x4d41c0
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 0x4d3dde
mov dword [ebp - 0x34], ebx
mov eax, dword [ebp - 0x34]
call fcn.00402704
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4d419b
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.00402cf8
mov edx, esi
mov eax, dword [edi]
mov ecx, ebx
call fcn.00402900
mov eax, dword [ebp - 0xc]
mov dx, 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 0x4d3e40
call fcn.00403c6c
call fcn.00403c6c
jmp 0x4d41c0
xor eax, eax
mov dword [ebp - 0x28], eax
call fcn.004d3ac8
test al, al
jne 0x4d3f1c
mov eax, dword [ebp - 0x38]
call fcn.00402704
mov dword [ebp - 0x30], eax
xor eax, eax
push ebp
push 0x4d3f15
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x30]
xor ecx, ecx
mov edx, dword [ebp - 0x38]
call fcn.00402cf8
mov eax, dword [ebp - 0x30]
mov byte [eax], 0
cmp byte [ebp - 0x21], 0
jne 0x4d3e8b
mov eax, dword [ebp - 0x30]
mov byte [eax + 1], 3
cmp byte [ebp + 0x14], 0
je 0x4d3ea1
call fcn.004d3ac8
test al, al
jne 0x4d3ea1
mov eax, dword [ebp - 0x30]
add byte [eax + 1], 0x10
mov eax, dword [ebp - 0x30]
mov dx, 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.00402900
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 0x4d3efc
call fcn.00403c6c
call fcn.00403c6c
call fcn.00403c6c
jmp 0x4d41c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d408a
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x30]
call fcn.00402724
ret
xor eax, eax
mov dword [ebp - 0x28], eax
cmp byte [ebp - 0x21], 0
jne 0x4d3fd9
mov eax, dword [ebp - 0x38]
call fcn.00402704
mov dword [ebp - 0x30], eax
xor eax, eax
push ebp
push 0x4d3fd2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x30]
xor ecx, ecx
mov edx, dword [ebp - 0x38]
call fcn.00402cf8
mov eax, dword [ebp - 0x30]
mov byte [eax], 0
mov eax, dword [ebp - 0x30]
mov byte [eax + 1], 0xb
mov eax, dword [ebp - 0x30]
mov dx, 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.00402900
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 0x4d3fb9
call fcn.00403c6c
call fcn.00403c6c
call fcn.00403c6c
jmp 0x4d41c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d3fd9
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x30]
call fcn.00402724
ret
mov eax, dword [ebp - 0x38]
call fcn.00402704
mov dword [ebp - 0x30], eax
xor eax, eax
push ebp
push 0x4d4083
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x30]
xor ecx, ecx
mov edx, dword [ebp - 0x38]
call fcn.00402cf8
mov eax, dword [ebp - 0x30]
mov byte [eax], 0
mov eax, dword [ebp - 0x30]
mov byte [eax + 1], 0
mov eax, dword [ebp - 0x30]
mov dx, 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.00402900
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 0x4d406a
call fcn.00403c6c
call fcn.00403c6c
call fcn.00403c6c
jmp 0x4d41c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d408a
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x30]
call fcn.00402724
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d41dd
lea eax, [ebp + 8]
call fcn.00404208
ret