Function at 0x434625
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4434f4]
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 0x4346b0
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 0x434682
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x4346b0
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 0x4346b0
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 0x434815
xor edi, edi
cmp dword [ebp - 0x10], ebx
jbe 0x434712
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 0x434815
mov ecx, dword [ebp - 0x1c]
cmp byte [ecx], bl
jne 0x434707
mov eax, dword [ebp + 8]
cmp dword [ecx + 4], eax
jne 0x434707
mov al, byte [ecx + 1]
and al, byte [ebp + 0xc]
cmp al, byte [ebp + 0xc]
jne 0x434707
push dword [ebp - 0x18]
lea eax, [ecx + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x43470f
inc edi
cmp edi, dword [ebp - 0x10]
jb 0x4346c1
jmp 0x434712
xor ebx, ebx
inc ebx
test esi, esi
je 0x434815
test ebx, ebx
jne 0x43480d
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
lea ebx, [eax + 8]
cmp ebx, 8
jae 0x434741
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 0x434761
push 0x216
or esi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
xor ebx, ebx
test edi, edi
je 0x43478f
push esi
call fcn.0044183a
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x43477e
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
test edi, edi
je 0x43478f
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 0x4347cd
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 0x434815
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 0x434815
inc esi
cmp esi, dword [ebp - 0x10]
jb 0x434796
test edi, edi
je 0x434815
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 0x434815
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 0x43480d
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
test esi, esi
je 0x434815
xor esi, esi
jmp 0x43481d
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.00441b90
mov esp, ebp
pop ebp
ret 8