Function at 0x43f2d1
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 [0x48d5cc]
mov dword [ebp - 0xc], ebx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x43f4cd
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 0x43f4c4
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 0x43f4bb
push esi
xor esi, esi
cmp dword [ebp - 0x20], ebx
push edi
jbe 0x43f416
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 0x43f408
cmp dword [eax + 4], 3
jne 0x43f408
cmp dword [eax + 0x18], ebx
jne 0x43f408
cmp dword [eax + 0x14], ebx
jne 0x43f408
mov edi, dword [ebp + 0xc]
mov ecx, dword [edi]
cmp ecx, ebx
jne 0x43f3f9
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 0x43f3f0
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 0x43f3e7
push dword [ebp - 8]
call fcn.0044d808
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 0x43f3e7
push dword [edi]
call fcn.0044e99d
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 0x43f408
mov eax, dword [ebp - 0x28]
push dword [ecx]
push dword [eax + 0x1c]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x43f416
add dword [ebp - 0x1c], 0x20
inc esi
cmp esi, dword [ebp - 0x20]
jb 0x43f34f
cmp esi, dword [ebp - 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_SetEntriesInAclA]
mov byte [ebp - 1], bl
jae 0x43f468
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 0x43f468
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 0x43f45f
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 0x43f4b0
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 0x43f4b0
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