Function at 0x415485
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x433625
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 0x41553c
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 0x415514
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x41553c
mov esi, dword [esp + 0x1c]
cmp esi, ebx
je 0x415532
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0x54]
call dword [eax + 8]
mov edx, esi
lea ecx, [esp + 0x54]
call fcn.00414af1
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.004146ce
mov dword [esp + 0x18], ebx
cmp dword [esp + 0x24], ebx
jbe 0x415661
mov dword [esp + 0x1c], ebx
lea eax, [esp + 0x74]
call fcn.00414689
mov byte [esp + 0xe0], 4
mov ecx, dword [esp + 0x18]
cmp ecx, dword [esp + 0x24]
jae 0x415714
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
lea edi, [eax + 4]
lea esi, [edx + ecx]
cmp edi, ebx
je 0x415603
lea ecx, [esi + 4]
mov dword [esp + 0x50], ecx
cmp ecx, ebx
je 0x415603
call fcn.00414622
test al, al
je 0x415603
mov eax, esi
call fcn.00414622
test al, al
je 0x415603
push dword [esp + 0x50]
push edi
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne byte [esp + 0x17]
jmp 0x415607
mov byte [esp + 0x17], bl
lea ecx, [esp + 0x74]
mov byte [esp + 0xe0], 3
call fcn.00414502
mov eax, dword [esp + 0x18]
cmp byte [esp + 0x17], bl
je 0x41564d
cmp eax, dword [esp + 0x34]
jae 0x415714
mov ecx, dword [esp + 0x30]
test dword [ecx + eax*4], 0x1f01ff
je 0x41564d
cmp eax, dword [esp + 0x44]
jae 0x415714
mov ecx, dword [esp + 0x40]
test byte [ecx + eax], 3
jne 0x4156bd
add dword [esp + 0x1c], 0x60
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x24]
jb 0x41559f
lea ecx, [esp + 0x54]
call fcn.00414a4b
lea eax, [esp + 0x74]
call fcn.00414689
push eax
lea eax, [esp + 0x58]
push eax
mov byte [esp + 0xe8], 5
call fcn.0041498b
lea ecx, [esp + 0x74]
mov byte [esp + 0xe0], 3
call fcn.00414502
cmp dword [ebp + 8], ebx
je 0x4156bd
push ebx
lea esi, [esp + 0x58]
call fcn.00414819
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 0x4156d0
push dword [esp + 0x40]
call esi
pop ecx
cmp dword [esp + 0x30], ebx
je 0x4156dd
push dword [esp + 0x30]
call esi
pop ecx
mov ecx, dword [esp + 0x20]
cmp ecx, ebx
je 0x4156f5
mov eax, dword [esp + 0x24]
call fcn.00415b34
push dword [esp + 0x20]
call esi
pop ecx
lea ecx, [esp + 0x54]
call fcn.00414961
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.0040cdb8
int3