Function at 0x439e2a
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 [0x4834b4]
mov dword [ebp - 0xc], ebx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x43a026
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 0x43a01d
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 0x43a014
push esi
xor esi, esi
cmp dword [ebp - 0x20], ebx
push edi
jbe 0x439f6f
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 0x439f61
cmp dword [eax + 4], 3
jne 0x439f61
cmp dword [eax + 0x18], ebx
jne 0x439f61
cmp dword [eax + 0x14], ebx
jne 0x439f61
mov edi, dword [ebp + 0xc]
mov ecx, dword [edi]
cmp ecx, ebx
jne 0x439f52
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 0x439f49
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 0x439f40
push dword [ebp - 8]
call fcn.004475e8
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 0x439f40
push dword [edi]
call fcn.0044876d
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 0x439f61
mov eax, dword [ebp - 0x28]
push dword [ecx]
push dword [eax + 0x1c]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x439f6f
add dword [ebp - 0x1c], 0x20
inc esi
cmp esi, dword [ebp - 0x20]
jb 0x439ea8
cmp esi, dword [ebp - 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_SetEntriesInAclA]
mov byte [ebp - 1], bl
jae 0x439fc1
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 0x439fc1
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 0x439fb8
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 0x43a009
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 0x43a009
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