Function at 0x433fe2
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4424f4]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x18]
and dword [ebp - 0x18], 0
and dword [ebp - 0x24], 0
push ebx
push esi
push edi
push eax
mov ebx, ecx
push edx
mov dword [ebp - 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
mov esi, eax
test esi, esi
je 0x43406d
lea eax, [ebp - 0x24]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 4
push 4
push ebx
call dword [sym.imp.ADVAPI32.dll_GetSecurityInfo]
test eax, eax
je 0x43403f
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x43406d
push 2
push 0xc
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_GetAclInformation]
mov esi, eax
test esi, esi
je 0x43406d
push 1
push 4
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_GetAclInformation]
mov esi, eax
xor ebx, ebx
test esi, esi
je 0x4341d2
xor edi, edi
cmp dword [ebp - 0x10], ebx
jbe 0x4340cf
and dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x1c]
push eax
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_GetAce]
mov esi, eax
test esi, esi
je 0x4341d2
mov ecx, dword [ebp - 0x1c]
cmp byte [ecx], bl
jne 0x4340c4
mov eax, dword [ebp + 8]
cmp dword [ecx + 4], eax
jne 0x4340c4
mov al, byte [ecx + 1]
and al, byte [ebp + 0xc]
cmp al, byte [ebp + 0xc]
jne 0x4340c4
push dword [ebp - 0x18]
lea eax, [ecx + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x4340cc
inc edi
cmp edi, dword [ebp - 0x10]
jb 0x43407e
jmp 0x4340cf
xor ebx, ebx
inc ebx
test esi, esi
je 0x4341d2
test ebx, ebx
jne 0x4341ca
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
lea ebx, [eax + 8]
cmp ebx, 8
jae 0x4340fe
push 0x216
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp ebx, 8
mov eax, dword [ebp - 0xc]
sbb edi, edi
not edi
and edi, esi
lea esi, [eax + ebx]
cmp esi, eax
jae 0x43411e
push 0x216
or esi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
xor ebx, ebx
test edi, edi
je 0x43414c
push esi
call fcn.00440dea
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x43413b
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
test edi, edi
je 0x43414c
push dword [ebp - 0x20]
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
mov edi, eax
xor esi, esi
cmp dword [ebp - 0x10], esi
jbe 0x43418a
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x4341d2
mov ecx, dword [ebp - 0x1c]
movzx eax, word [ecx + 2]
push eax
push ecx
push 0xffffffffffffffff
push dword [ebp - 0x20]
push ebx
call dword [sym.imp.ADVAPI32.dll_AddAce]
mov edi, eax
test edi, edi
je 0x4341d2
inc esi
cmp esi, dword [ebp - 0x10]
jb 0x434153
test edi, edi
je 0x4341d2
push dword [ebp - 0x18]
movzx eax, byte [ebp + 0xc]
push dword [ebp + 8]
push eax
push dword [ebp - 0x20]
push ebx
call dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAceEx]
mov esi, eax
test esi, esi
je 0x4341d2
push 0
push ebx
push 0
push 0
push 4
push 4
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
test eax, eax
je 0x4341ca
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
test esi, esi
je 0x4341d2
xor esi, esi
jmp 0x4341da
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x24]
and dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x18]
and dword [ebp - 0x24], 0
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00441130
leave
ret 8