Function at 0x405e55
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44a856
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
push ebx
push esi
push edi
mov eax, dword [0x465d44]
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 0x405f0c
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 0x405ee4
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x405f0c
mov esi, dword [esp + 0x1c]
cmp esi, ebx
je 0x405f02
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0x54]
call dword [eax + 8]
mov edx, esi
lea ecx, [esp + 0x54]
call fcn.00405688
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.00405270
mov dword [esp + 0x18], ebx
cmp dword [esp + 0x24], ebx
jbe 0x406033
mov dword [esp + 0x1c], ebx
lea eax, [esp + 0x74]
push eax
call fcn.0040522a
pop ecx
mov byte [esp + 0xe0], 4
mov ecx, dword [esp + 0x18]
cmp ecx, dword [esp + 0x24]
jae 0x4060eb
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
lea edi, [eax + 4]
lea esi, [edx + ecx]
cmp edi, ebx
je 0x405fd5
lea ecx, [esi + 4]
mov dword [esp + 0x50], ecx
cmp ecx, ebx
je 0x405fd5
call fcn.004051c3
test al, al
je 0x405fd5
mov eax, esi
call fcn.004051c3
test al, al
je 0x405fd5
push dword [esp + 0x50]
push edi
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne byte [esp + 0x17]
jmp 0x405fd9
mov byte [esp + 0x17], bl
lea ecx, [esp + 0x74]
mov byte [esp + 0xe0], 3
call fcn.0040509a
mov eax, dword [esp + 0x18]
cmp byte [esp + 0x17], bl
je 0x40601f
cmp eax, dword [esp + 0x34]
jae 0x4060eb
mov ecx, dword [esp + 0x30]
test dword [ecx + eax*4], 0x1f01ff
je 0x40601f
cmp eax, dword [esp + 0x44]
jae 0x4060eb
mov ecx, dword [esp + 0x40]
test byte [ecx + eax], 3
jne 0x406091
add dword [esp + 0x1c], 0x60
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x24]
jb 0x405f6f
lea ecx, [esp + 0x54]
call fcn.004055e4
lea eax, [esp + 0x74]
push eax
call fcn.0040522a
pop ecx
push eax
lea eax, [esp + 0x58]
push eax
mov byte [esp + 0xe8], 5
call fcn.00405525
lea ecx, [esp + 0x74]
mov byte [esp + 0xe0], 3
call fcn.0040509a
cmp dword [ebp + 8], ebx
je 0x406091
push ebx
lea esi, [esp + 0x58]
call fcn.004053b7
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]
cmp dword [esp + 0x40], ebx
je 0x4060a1
push dword [esp + 0x40]
call fcn.0043343c
pop ecx
cmp dword [esp + 0x30], ebx
je 0x4060b1
push dword [esp + 0x30]
call fcn.0043343c
pop ecx
mov ecx, dword [esp + 0x20]
cmp ecx, ebx
je 0x4060cc
mov eax, dword [esp + 0x24]
call fcn.00406621
push dword [esp + 0x20]
call fcn.0043343c
pop ecx
lea ecx, [esp + 0x54]
call fcn.004054fc
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.004068a6
int3