Function at 0x4152d7
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4334e9
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 0x41538e
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 0x415366
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x41538e
mov esi, dword [esp + 0x1c]
cmp esi, ebx
je 0x415384
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0x54]
call dword [eax + 8]
mov edx, esi
lea ecx, [esp + 0x54]
call fcn.00414942
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.0041451f
mov dword [esp + 0x18], ebx
cmp dword [esp + 0x24], ebx
jbe 0x4154b3
mov dword [esp + 0x1c], ebx
lea eax, [esp + 0x74]
call fcn.004144da
mov byte [esp + 0xe0], 4
mov ecx, dword [esp + 0x18]
cmp ecx, dword [esp + 0x24]
jae 0x415566
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
lea edi, [eax + 4]
lea esi, [edx + ecx]
cmp edi, ebx
je 0x415455
lea ecx, [esi + 4]
mov dword [esp + 0x50], ecx
cmp ecx, ebx
je 0x415455
call fcn.00414473
test al, al
je 0x415455
mov eax, esi
call fcn.00414473
test al, al
je 0x415455
push dword [esp + 0x50]
push edi
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne byte [esp + 0x17]
jmp 0x415459
mov byte [esp + 0x17], bl
lea ecx, [esp + 0x74]
mov byte [esp + 0xe0], 3
call fcn.00414353
mov eax, dword [esp + 0x18]
cmp byte [esp + 0x17], bl
je 0x41549f
cmp eax, dword [esp + 0x34]
jae 0x415566
mov ecx, dword [esp + 0x30]
test dword [ecx + eax*4], 0x1f01ff
je 0x41549f
cmp eax, dword [esp + 0x44]
jae 0x415566
mov ecx, dword [esp + 0x40]
test byte [ecx + eax], 3
jne 0x41550f
add dword [esp + 0x1c], 0x60
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x24]
jb 0x4153f1
lea ecx, [esp + 0x54]
call fcn.0041489c
lea eax, [esp + 0x74]
call fcn.004144da
push eax
lea eax, [esp + 0x58]
push eax
mov byte [esp + 0xe8], 5
call fcn.004147dc
lea ecx, [esp + 0x74]
mov byte [esp + 0xe0], 3
call fcn.00414353
cmp dword [ebp + 8], ebx
je 0x41550f
push ebx
lea esi, [esp + 0x58]
call fcn.0041466a
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 0x415522
push dword [esp + 0x40]
call esi
pop ecx
cmp dword [esp + 0x30], ebx
je 0x41552f
push dword [esp + 0x30]
call esi
pop ecx
mov ecx, dword [esp + 0x20]
cmp ecx, ebx
je 0x415547
mov eax, dword [esp + 0x24]
call fcn.00415986
push dword [esp + 0x20]
call esi
pop ecx
lea ecx, [esp + 0x54]
call fcn.004147b2
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.0040c9c1
int3