Function at 0x4119b8
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.004042fc
lea edi, [ebp - 8]
xor eax, eax
push ebp
push 0x411fcc
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 0x411fb6
mov eax, dword [ebp + 8]
call fcn.00406b7c
mov byte [ebp - 0x21], al
xor eax, eax
mov dword [edi], eax
call fcn.004118c0
test al, al
jne 0x411a33
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.0040430c
push eax
call sub.ADVAPI32.DLL_GetNamedSecurityInfoA
call fcn.004118ac
test al, al
je 0x411fb6
jmp 0x411a9b
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 4
mov eax, dword [ebp + 8]
call fcn.0040430c
mov ebx, eax
push ebx
call sub.advapi32.dll_GetFileSecurityA
mov eax, dword [ebp - 0x18]
call fcn.00402c60
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov edx, dword [ebp - 0x18]
call fcn.004030ec
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 0x411fb6
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 0x411fb6
xor ecx, ecx
push ebp
push 0x411faf
push dword fs:[ecx]
mov dword fs:[ecx], esp
cmp dword [edi], 0
jne 0x411ab8
call fcn.0040397c
jmp 0x411fb6
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 0x411ad7
call fcn.0040397c
jmp 0x411fb6
movzx eax, word [ebp - 0x1a]
and ax, 4
cmp ax, 4
je 0x411aef
call fcn.0040397c
jmp 0x411fb6
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 0x411b0d
call fcn.0040397c
jmp 0x411fb6
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 0x411b2b
call fcn.0040397c
jmp 0x411fb6
mov ebx, dword [ebp - 0x4c]
dec ebx
cmp ebx, 0
jl 0x411b68
lea eax, [ebp - 0x30]
push eax
push ebx
mov eax, dword [edi]
push eax
call sub.advapi32.dll_GetAce
test eax, eax
je 0x411b62
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 0x411b62
push ebx
mov eax, dword [edi]
push eax
call sub.advapi32.dll_DeleteAce
dec ebx
cmp ebx, 0xffffffff
jne 0x411b34
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 0x411b86
call fcn.0040397c
jmp 0x411fb6
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 0x411ba4
call fcn.0040397c
jmp 0x411fb6
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
add ecx, edx
mov dword [ebp - 0x34], ecx
cmp ebx, dword [ebp - 0x34]
jbe 0x411bd4
mov dword [ebp - 0x34], ebx
mov eax, dword [ebp - 0x34]
call fcn.00402c60
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x411f91
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.004030ec
mov edx, esi
mov eax, dword [edi]
mov ecx, ebx
call fcn.00402d9c
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 0x411c36
call fcn.0040397c
call fcn.0040397c
jmp 0x411fb6
xor eax, eax
mov dword [ebp - 0x28], eax
call fcn.004118c0
test al, al
jne 0x411d12
mov eax, dword [ebp - 0x38]
call fcn.00402c60
mov dword [ebp - 0x30], eax
xor eax, eax
push ebp
push 0x411d0b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x30]
xor ecx, ecx
mov edx, dword [ebp - 0x38]
call fcn.004030ec
mov eax, dword [ebp - 0x30]
mov byte [eax], 0
cmp byte [ebp - 0x21], 0
jne 0x411c81
mov eax, dword [ebp - 0x30]
mov byte [eax + 1], 3
cmp byte [ebp + 0x14], 0
je 0x411c97
call fcn.004118c0
test al, al
jne 0x411c97
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.00402d9c
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 0x411cf2
call fcn.0040397c
call fcn.0040397c
call fcn.0040397c
jmp 0x411fb6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411e80
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x30]
call fcn.00402c7c
ret
xor eax, eax
mov dword [ebp - 0x28], eax
cmp byte [ebp - 0x21], 0
jne 0x411dcf
mov eax, dword [ebp - 0x38]
call fcn.00402c60
mov dword [ebp - 0x30], eax
xor eax, eax
push ebp
push 0x411dc8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x30]
xor ecx, ecx
mov edx, dword [ebp - 0x38]
call fcn.004030ec
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.00402d9c
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 0x411daf
call fcn.0040397c
call fcn.0040397c
call fcn.0040397c
jmp 0x411fb6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411dcf
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x30]
call fcn.00402c7c
ret
mov eax, dword [ebp - 0x38]
call fcn.00402c60
mov dword [ebp - 0x30], eax
xor eax, eax
push ebp
push 0x411e79
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x30]
xor ecx, ecx
mov edx, dword [ebp - 0x38]
call fcn.004030ec
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.00402d9c
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 0x411e60
call fcn.0040397c
call fcn.0040397c
call fcn.0040397c
jmp 0x411fb6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411e80
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x30]
call fcn.00402c7c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411fd3
lea eax, [ebp + 8]
call fcn.00403ec4
ret