Function at 0x41597c
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
cmp dword [ebp + 8], 0
jne 0x4159ab
mov dword [ebp - 8], 1
jmp 0x415bfd
mov dword [ebp - 0x14], 0
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 8
cmp dword [ebp + 0x10], 0
je 0x4159fc
push 2
push 0xc
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_GetAclInformation]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4159fc
mov dword [ebp - 8], 2
jmp 0x415bfd
mov ecx, dword [ebp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov edx, dword [ebp - 0x10]
lea eax, [edx + eax + 8]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.005568c8
add esp, 4
mov dword [ebp - 0x24], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x24]
mov dword [edx], eax
mov ecx, dword [ebp + 0xc]
cmp dword [ecx], 0
jne 0x415a3b
mov dword [ebp - 8], 3
jmp 0x415bfd
push 4
push 0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
call fcn.00431600
add esp, 0xc
push 2
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x415a74
mov dword [ebp - 8], 4
jmp 0x415bfd
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
cmp dword [ebp + 0x10], 0
je 0x415b41
cmp dword [ebp - 0x14], 0
jbe 0x415b41
mov dword [ebp - 0x18], 0
jmp 0x415aa8
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 0x14]
jae 0x415b41
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_GetAce]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x415adf
mov dword [ebp - 8], 5
jmp 0x415b41
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov cl, byte [eax + 1]
and ecx, 0x10
test ecx, ecx
je 0x415af0
jmp 0x415b41
mov edx, dword [ebp - 0x1c]
add edx, 8
push edx
mov eax, dword [ebp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x415b0c
jmp 0x415a9f
mov ecx, dword [ebp - 0x1c]
xor edx, edx
mov dx, word [ecx + 2]
push edx
mov eax, dword [ebp - 0x1c]
push eax
push 0xffffffffffffffff
push 2
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_AddAce]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x415b3c
mov dword [ebp - 8], 6
jmp 0x415b41
jmp 0x415a9f
cmp dword [ebp - 8], 0
jbe 0x415b4c
jmp 0x415bfd
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
push 2
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x415b77
mov dword [ebp - 8], 7
jmp 0x415bfd
cmp dword [ebp + 0x10], 0
je 0x415bf3
cmp dword [ebp - 0x14], 0
jbe 0x415bf3
jmp 0x415b8e
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 0x14]
jae 0x415bf3
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_GetAce]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x415bc1
mov dword [ebp - 8], 8
jmp 0x415bf3
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov cx, word [eax + 2]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
push 0xffffffffffffffff
push 2
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_AddAce]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x415bf1
mov dword [ebp - 8], 9
jmp 0x415bf3
jmp 0x415b85
xor edx, edx
test edx, edx
jne 0x415999
cmp dword [ebp - 4], 0
jne 0x415c28
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
je 0x415c28
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
push eax
call fcn.005568f1
add esp, 4
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0
mov ecx, 0x5e2dd8
call fcn.00405660
test eax, eax
je 0x415c6d
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
push str.CKSecurity::CopyAcl_____Inner___ret:__d___myerror:__d___SrcAcl:__08x___DstAcl:__08x___b:__08x___Sid:__08x___Mask:__08x_
push 0x5b92f0
push 0xffffffffffffffff
push 0x5e2ddc
call fcn.00481d20
add esp, 0x2c
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret