Function at 0x4126a8
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.004049f0
lea edi, [ebp - 8]
xor eax, eax
push ebp
push 0x412cbc
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 0x412ca6
mov eax, dword [ebp + 8]
call fcn.004078d8
mov byte [ebp - 0x21], al
xor eax, eax
mov dword [edi], eax
call fcn.004125b0
test al, al
jne 0x412723
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.00404a00
push eax
call sub.ADVAPI32.DLL_GetNamedSecurityInfoA
call fcn.0041259c
test al, al
je 0x412ca6
jmp 0x41278b
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 4
mov eax, dword [ebp + 8]
call fcn.00404a00
mov ebx, eax
push ebx
call sub.advapi32.dll_GetFileSecurityA
mov eax, dword [ebp - 0x18]
call fcn.00402da8
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov edx, dword [ebp - 0x18]
call fcn.00403308
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 0x412ca6
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 0x412ca6
xor ecx, ecx
push ebp
push 0x412c9f
push dword fs:[ecx]
mov dword fs:[ecx], esp
cmp dword [edi], 0
jne 0x4127a8
call fcn.00403fdc
jmp 0x412ca6
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 0x4127c7
call fcn.00403fdc
jmp 0x412ca6
movzx eax, word [ebp - 0x1a]
and ax, 4
cmp ax, 4
je 0x4127df
call fcn.00403fdc
jmp 0x412ca6
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 0x4127fd
call fcn.00403fdc
jmp 0x412ca6
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 0x41281b
call fcn.00403fdc
jmp 0x412ca6
mov ebx, dword [ebp - 0x4c]
dec ebx
cmp ebx, 0
jl 0x412858
lea eax, [ebp - 0x30]
push eax
push ebx
mov eax, dword [edi]
push eax
call sub.advapi32.dll_GetAce
test eax, eax
je 0x412852
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 0x412852
push ebx
mov eax, dword [edi]
push eax
call sub.advapi32.dll_DeleteAce
dec ebx
cmp ebx, 0xffffffff
jne 0x412824
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 0x412876
call fcn.00403fdc
jmp 0x412ca6
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 0x412894
call fcn.00403fdc
jmp 0x412ca6
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 0x4128c4
mov dword [ebp - 0x34], ebx
mov eax, dword [ebp - 0x34]
call fcn.00402da8
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x412c81
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.00403308
mov edx, esi
mov eax, dword [edi]
mov ecx, ebx
call fcn.00402f64
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 0x412926
call fcn.00403fdc
call fcn.00403fdc
jmp 0x412ca6
xor eax, eax
mov dword [ebp - 0x28], eax
call fcn.004125b0
test al, al
jne 0x412a02
mov eax, dword [ebp - 0x38]
call fcn.00402da8
mov dword [ebp - 0x30], eax
xor eax, eax
push ebp
push 0x4129fb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x30]
xor ecx, ecx
mov edx, dword [ebp - 0x38]
call fcn.00403308
mov eax, dword [ebp - 0x30]
mov byte [eax], 0
cmp byte [ebp - 0x21], 0
jne 0x412971
mov eax, dword [ebp - 0x30]
mov byte [eax + 1], 3
cmp byte [ebp + 0x14], 0
je 0x412987
call fcn.004125b0
test al, al
jne 0x412987
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.00402f64
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 0x4129e2
call fcn.00403fdc
call fcn.00403fdc
call fcn.00403fdc
jmp 0x412ca6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412b70
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x30]
call fcn.00402dc4
ret
xor eax, eax
mov dword [ebp - 0x28], eax
cmp byte [ebp - 0x21], 0
jne 0x412abf
mov eax, dword [ebp - 0x38]
call fcn.00402da8
mov dword [ebp - 0x30], eax
xor eax, eax
push ebp
push 0x412ab8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x30]
xor ecx, ecx
mov edx, dword [ebp - 0x38]
call fcn.00403308
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.00402f64
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 0x412a9f
call fcn.00403fdc
call fcn.00403fdc
call fcn.00403fdc
jmp 0x412ca6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412abf
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x30]
call fcn.00402dc4
ret
mov eax, dword [ebp - 0x38]
call fcn.00402da8
mov dword [ebp - 0x30], eax
xor eax, eax
push ebp
push 0x412b69
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x30]
xor ecx, ecx
mov edx, dword [ebp - 0x38]
call fcn.00403308
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.00402f64
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 0x412b50
call fcn.00403fdc
call fcn.00403fdc
call fcn.00403fdc
jmp 0x412ca6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412b70
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x30]
call fcn.00402dc4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412cc3
lea eax, [ebp + 8]
call fcn.00404570
ret