Function at 0x41ca40
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x28]
xor ebp, ebp
xor esi, esi
cmp eax, ebp
mov dword [esp + 0x10], ebp
mov dword [edi], ebp
je 0x41cc07
xor ecx, ecx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ecx
mov dword [esp + 0x18], 8
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x2c]
cmp ecx, ebp
mov dword [esp + 0x1c], ebp
je 0x41ca9d
push 2
lea edx, [esp + 0x18]
push 0xc
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_GetAclInformation]
mov esi, eax
cmp esi, ebp
je 0x41cc11
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov ecx, dword [esp + 0x18]
lea ebx, [eax + ecx + 8]
push ebx
call fcn.005df898
add esp, 4
cmp eax, ebp
mov dword [edi], eax
je 0x41cc1b
mov dword [eax], ebp
mov edx, dword [edi]
push 2
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
mov esi, eax
cmp esi, ebp
je 0x41cc25
mov eax, dword [esp + 0x2c]
xor ebx, ebx
cmp eax, ebp
mov dword [esp + 0x28], ebp
je 0x41cb5d
mov eax, dword [esp + 0x14]
cmp eax, ebp
jbe 0x41cb5d
cmp eax, ebp
jbe 0x41cb5d
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x28]
push eax
push ebx
push ecx
mov dword [esp + 0x34], ebp
call dword [sym.imp.ADVAPI32.dll_GetAce]
mov esi, eax
cmp esi, ebp
je 0x41cbdf
mov eax, dword [esp + 0x28]
test byte [eax + 1], 0x10
jne 0x41cb5d
mov edx, dword [esp + 0x30]
add eax, 8
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
cmp eax, ebp
jne 0x41cb54
mov eax, dword [esp + 0x28]
mov edx, dword [edi]
xor ecx, ecx
mov cx, word [eax + 2]
push ecx
push eax
push 0xffffffffffffffff
push 2
push edx
call dword [sym.imp.ADVAPI32.dll_AddAce]
mov esi, eax
cmp esi, ebp
je 0x41cbe9
mov eax, dword [esp + 0x14]
inc ebx
cmp ebx, eax
jb 0x41caf5
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [edi]
push eax
push ecx
push 2
push edx
call dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
mov esi, eax
cmp esi, ebp
je 0x41cc2f
cmp dword [esp + 0x2c], ebp
je 0x41cc37
mov eax, dword [esp + 0x14]
cmp eax, ebp
jbe 0x41cc37
cmp ebx, eax
jae 0x41cc37
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x28]
push eax
push ebx
push ecx
mov dword [esp + 0x34], ebp
call dword [sym.imp.ADVAPI32.dll_GetAce]
mov esi, eax
cmp esi, ebp
je 0x41cbf3
mov eax, dword [esp + 0x28]
xor edx, edx
mov dx, word [eax + 2]
push edx
push eax
mov eax, dword [edi]
push 0xffffffffffffffff
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_AddAce]
mov esi, eax
cmp esi, ebp
je 0x41cbfd
mov eax, dword [esp + 0x14]
inc ebx
cmp ebx, eax
jb 0x41cb9a
jmp 0x41cc37
mov dword [esp + 0x10], 5
jmp 0x41cc3b
mov dword [esp + 0x10], 6
jmp 0x41cc3b
mov dword [esp + 0x10], 8
jmp 0x41cc3b
mov dword [esp + 0x10], 9
jmp 0x41cc3b
mov dword [esp + 0x10], 1
jmp 0x41cc3b
mov dword [esp + 0x10], 2
jmp 0x41cc37
mov dword [esp + 0x10], 3
jmp 0x41cc37
mov dword [esp + 0x10], 4
jmp 0x41cc37
mov dword [esp + 0x10], 7
cmp esi, ebp
jne 0x41cc4c
mov eax, dword [edi]
cmp eax, ebp
je 0x41cc4c
push eax
call fcn.005df8c1
add esp, 4
mov dword [edi], ebp
cmp dword [0x6844b0], ebp
je 0x41cc8a
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [edi]
push edx
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x1c]
push ecx
push edx
push eax
push esi
push str.CKSecurity::CopyAcl_____Inner___ret:__d___myerror:__d___SrcAcl:__08x___DstAcl:__08x___b:__08x___Sid:__08x___Mask:__08x_
push str.Security
push 0xf
push 0x684444
call fcn.00431aa0
add esp, 0x2c
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret