Function at 0x440aad
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 [0x48e654]
mov dword [ebp - 0xc], ebx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x440ca9
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 0x440ca0
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 0x440c97
push esi
xor esi, esi
cmp dword [ebp - 0x20], ebx
push edi
jbe 0x440bf2
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 0x440be4
cmp dword [eax + 4], 3
jne 0x440be4
cmp dword [eax + 0x18], ebx
jne 0x440be4
cmp dword [eax + 0x14], ebx
jne 0x440be4
mov edi, dword [ebp + 0xc]
mov ecx, dword [edi]
cmp ecx, ebx
jne 0x440bd5
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 0x440bcc
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 0x440bc3
push dword [ebp - 8]
call fcn.0044ea28
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 0x440bc3
push dword [edi]
call fcn.0044fbbd
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 0x440be4
mov eax, dword [ebp - 0x28]
push dword [ecx]
push dword [eax + 0x1c]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x440bf2
add dword [ebp - 0x1c], 0x20
inc esi
cmp esi, dword [ebp - 0x20]
jb 0x440b2b
cmp esi, dword [ebp - 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_SetEntriesInAclA]
mov byte [ebp - 1], bl
jae 0x440c44
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 0x440c44
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 0x440c3b
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 0x440c8c
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 0x440c8c
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