Function at 0x441019
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
lea eax, [ebp - 0xc]
push eax
push 0x20019
xor ebx, ebx
push ebx
push dword [0x48f654]
mov dword [ebp - 0xc], ebx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x441215
lea eax, [ebp - 0x24]
push eax
push ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push 4
push 4
push dword [ebp - 0xc]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_GetSecurityInfo]
test eax, eax
jne 0x44120c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_GetExplicitEntriesFromAclA]
test eax, eax
jne 0x441203
push esi
xor esi, esi
cmp dword [ebp - 0x20], ebx
push edi
jbe 0x44115e
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
add eax, ecx
cmp dword [eax], 2
mov dword [ebp - 0x28], eax
jne 0x441150
cmp dword [eax + 4], 3
jne 0x441150
cmp dword [eax + 0x18], ebx
jne 0x441150
cmp dword [eax + 0x14], ebx
jne 0x441150
mov edi, dword [ebp + 0xc]
mov ecx, dword [edi]
cmp ecx, ebx
jne 0x441141
lea eax, [ebp - 0x10]
push eax
push 8
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x441138
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 1
push dword [ebp - 0x10]
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
cmp dword [ebp - 8], ebx
jbe 0x44112f
push dword [ebp - 8]
call fcn.0044ef98
pop ecx
lea ecx, [ebp - 8]
push ecx
push dword [ebp - 8]
mov dword [edi], eax
push eax
push 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x44112f
push dword [edi]
call fcn.0045012d
pop ecx
mov dword [edi], ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [edi]
cmp ecx, ebx
je 0x441150
mov eax, dword [ebp - 0x28]
push dword [ecx]
push dword [eax + 0x1c]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x44115e
add dword [ebp - 0x1c], 0x20
inc esi
cmp esi, dword [ebp - 0x20]
jb 0x441097
cmp esi, dword [ebp - 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_SetEntriesInAclA]
mov byte [ebp - 1], bl
jae 0x4411b0
mov eax, esi
shl eax, 5
add eax, dword [ebp - 0x18]
xor ecx, ecx
inc ecx
lea edx, [ebp - 0x1c]
push edx
mov dword [eax + 4], ecx
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], ebx
push eax
push ecx
call edi
test eax, eax
jne 0x4411b0
push ebx
push dword [ebp - 0x1c]
push ebx
push ebx
push 4
push 4
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
test eax, eax
jne 0x4411a7
mov byte [ebp - 1], 1
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_LocalFree]
push dword [ebp + 0xc]
call dword [ebp + 8]
cmp byte [ebp - 1], bl
pop ecx
je 0x4411f8
shl esi, 5
add esi, dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
push eax
mov dword [esi + 4], 3
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], ebx
push esi
push 1
call edi
test eax, eax
jne 0x4411f8
push ebx
push dword [ebp - 0x1c]
push ebx
push ebx
push 4
push 4
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_LocalFree]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_LocalFree]
pop edi
pop esi
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.DLL_LocalFree]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
leave
ret