Function at 0x41519e
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4332e2
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
push ebx
push esi
push edi
mov eax, dword [0x445bbc]
xor eax, esp
push eax
lea eax, [esp + 0xd8]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x58], ebx
mov byte [esp + 0x5c], bl
mov dword [esp + 0x60], 2
mov dword [esp + 0x54], vtable.ATL::CDacl.0
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0xe0], ebx
cmp dword [ebp + 8], ebx
je 0x415255
lea eax, [esp + 0x18]
push eax
push ebx
lea eax, [esp + 0x24]
push eax
push ebx
push ebx
push 4
push 1
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
cmp eax, ebx
je 0x41522d
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x415255
mov esi, dword [esp + 0x1c]
cmp esi, ebx
je 0x41524b
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0x54]
call dword [eax + 8]
mov edx, esi
lea ecx, [esp + 0x54]
call fcn.00414809
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x60]
push eax
mov byte [esp + 0xf0], 3
call fcn.004143e6
mov dword [esp + 0x18], ebx
cmp dword [esp + 0x24], ebx
jbe 0x41537a
mov dword [esp + 0x1c], ebx
lea eax, [esp + 0x74]
call fcn.004143a1
mov byte [esp + 0xe0], 4
mov ecx, dword [esp + 0x18]
cmp ecx, dword [esp + 0x24]
jae 0x41542d
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
lea edi, [eax + 4]
lea esi, [edx + ecx]
cmp edi, ebx
je 0x41531c
lea ecx, [esi + 4]
mov dword [esp + 0x50], ecx
cmp ecx, ebx
je 0x41531c
call fcn.0041433a
test al, al
je 0x41531c
mov eax, esi
call fcn.0041433a
test al, al
je 0x41531c
push dword [esp + 0x50]
push edi
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne byte [esp + 0x17]
jmp 0x415320
mov byte [esp + 0x17], bl
lea ecx, [esp + 0x74]
mov byte [esp + 0xe0], 3
call fcn.0041421a
mov eax, dword [esp + 0x18]
cmp byte [esp + 0x17], bl
je 0x415366
cmp eax, dword [esp + 0x34]
jae 0x41542d
mov ecx, dword [esp + 0x30]
test dword [ecx + eax*4], 0x1f01ff
je 0x415366
cmp eax, dword [esp + 0x44]
jae 0x41542d
mov ecx, dword [esp + 0x40]
test byte [ecx + eax], 3
jne 0x4153d6
add dword [esp + 0x1c], 0x60
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x24]
jb 0x4152b8
lea ecx, [esp + 0x54]
call fcn.00414763
lea eax, [esp + 0x74]
call fcn.004143a1
push eax
lea eax, [esp + 0x58]
push eax
mov byte [esp + 0xe8], 5
call fcn.004146a3
lea ecx, [esp + 0x74]
mov byte [esp + 0xe0], 3
call fcn.0041421a
cmp dword [ebp + 8], ebx
je 0x4153d6
push ebx
lea esi, [esp + 0x58]
call fcn.00414531
push eax
push ebx
push ebx
push 4
push 1
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [sym.imp.MSVCR90.dll_free]
cmp dword [esp + 0x40], ebx
je 0x4153e9
push dword [esp + 0x40]
call esi
pop ecx
cmp dword [esp + 0x30], ebx
je 0x4153f6
push dword [esp + 0x30]
call esi
pop ecx
mov ecx, dword [esp + 0x20]
cmp ecx, ebx
je 0x41540e
mov eax, dword [esp + 0x24]
call fcn.0041584d
push dword [esp + 0x20]
call esi
pop ecx
lea ecx, [esp + 0x54]
call fcn.00414679
mov ecx, dword [esp + 0xd8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.0040c878
int3