Function at 0x404f30
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x46f20c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x20]
mov dword [ebp - 0x28], ebx
xor ebx, ebx
mov word [esi], bx
mov word [eax], bx
mov ebx, dword [ebp - 0x28]
mov dword [ebp - 0x3c], eax
xor eax, eax
mov word [ecx], ax
push 2
mov word [edx], ax
mov word [edi], ax
lea eax, [ebp - 0x10]
push 0xc
push eax
mov dword [ebp - 0x30], edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetAclInformation]
push ebx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], edx
call edi
test eax, eax
jne 0x404fb9
push str.Could_not_get_AclSizeInformation
push esi
call fcn.004044a0
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409118
mov esp, ebp
pop ebp
ret
push 1
push 4
lea eax, [ebp - 0x48]
push eax
push ebx
call edi
test eax, eax
jne 0x404fe9
push str.Could_not_get_AclRevisionInformation
push esi
call fcn.004044a0
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409118
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov edx, 0x24
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00409126
mov edi, eax
add esp, 4
xor eax, eax
mov dword [ebp - 0x20], edi
xor ebx, ebx
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x10], eax
jbe 0x4051c2
nop word [eax + eax]
lea ecx, [ebp - 0x34]
push ecx
push eax
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x4050cd
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x18], ecx
mov al, byte [ecx]
test al, al
jne 0x40504a
mov esi, dword [ecx + 4]
mov dword [ebp - 0x2c], esi
jmp 0x405054
cmp al, 1
jne 0x4050bd
mov eax, dword [ecx + 4]
mov dword [ebp - 0x2c], eax
lea eax, [ecx + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x4050bd
xor esi, esi
test ebx, ebx
je 0x40508c
mov eax, dword [ebp - 0x18]
add eax, 8
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x405085
inc esi
add edi, 0x24
cmp esi, ebx
jb 0x405068
jmp 0x405089
cmp esi, ebx
jb 0x4050a8
mov edi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x18]
lea eax, [esi + esi*8]
add ecx, 8
xorps xmm0, xmm0
mov dword [edi + eax*4], ecx
inc ebx
movups xmmword [edi + eax*4 + 4], xmm0
movups xmmword [edi + eax*4 + 0x14], xmm0
jmp 0x4050ab
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x18]
lea ecx, [esi + esi*8]
movzx eax, byte [eax]
add ecx, eax
mov eax, dword [ebp - 0x2c]
or dword [edi + ecx*4 + 4], eax
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp eax, dword [ebp - 0x10]
jb 0x405020
test ebx, ebx
je 0x4051c2
call fcn.00405860
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x4050ef
lea esi, [ebp - 0x38]
lea eax, [ebp - 0x3c]
jmp 0x4050f5
lea esi, [ebp - 0x40]
lea eax, [ebp - 0x44]
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x1c], esi
test eax, eax
je 0x40516e
lea ecx, [ebp - 0x12]
push ecx
lea ecx, [ebp - 0x11]
push ecx
push eax
call fcn.00405d20
add esp, 0xc
cmp byte [ebp - 0x11], 0
je 0x40513f
push dword [edi]
mov esi, dword [esi]
push dword [ebp - 0x24]
push esi
call fcn.00405b60
push 0x460f7c
lea esi, [esi + eax*2]
push esi
call fcn.004044a0
mov ecx, dword [ebp - 0x1c]
add esp, 0x14
lea eax, [esi + eax*2]
mov dword [ecx], eax
cmp byte [ebp - 0x12], 0
je 0x40516e
push dword [edi]
mov eax, dword [ebp - 0x18]
push dword [ebp - 0x24]
mov esi, dword [eax]
push esi
call fcn.00405b60
push 0x460f7c
lea esi, [esi + eax*2]
push esi
call fcn.004044a0
mov ecx, dword [ebp - 0x18]
add esp, 0x14
lea eax, [esi + eax*2]
mov dword [ecx], eax
cmp dword [edi + 8], 0
je 0x4051b3
push dword [edi]
mov esi, dword [ebp - 0x30]
push dword [ebp - 0x24]
push esi
call fcn.00405b60
push 0x460f84
lea esi, [esi + eax*2]
push esi
call fcn.004044a0
push dword [edi + 8]
lea esi, [esi + eax*2]
push esi
call fcn.00405cb0
push 0x460f88
lea esi, [esi + eax*2]
push esi
call fcn.004044a0
add esp, 0x24
lea eax, [esi + eax*2]
mov dword [ebp - 0x30], eax
add edi, 0x24
sub ebx, 1
jne 0x4050d5
mov edi, dword [ebp - 0x20]
push edi
call fcn.0040912f
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov al, 1
pop edi
pop esi
pop ebx
call fcn.00409118
mov esp, ebp
pop ebp
ret