Function at 0x5280e0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x654c54]
xor eax, ebp
mov dword [ebp - 0xc], eax
push str.advapi32.dll
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x52810b
xor al, al
jmp 0x5282b9
push str.SetFileSecurityA
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [ebp - 0x30], eax
push str.SetSecurityDescriptorDacl
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [ebp - 0x1c], eax
push str.InitializeSecurityDescriptor
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [ebp - 8], eax
push str.AllocateAndInitializeSid
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [ebp - 4], eax
push str.SetEntriesInAclA
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [ebp - 0x24], eax
push str.FreeSid
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x30], 0
je 0x52819b
cmp dword [ebp - 0x1c], 0
je 0x52819b
cmp dword [ebp - 8], 0
je 0x52819b
cmp dword [ebp - 4], 0
je 0x52819b
cmp dword [ebp - 0x24], 0
je 0x52819b
cmp dword [ebp - 0x20], 0
jne 0x5281ac
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.kernel32.dll_FreeLibrary]
xor al, al
jmp 0x5282b9
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x14], 0
mov byte [ebp - 0x13], 0
mov byte [ebp - 0x12], 0
mov byte [ebp - 0x11], 0
mov byte [ebp - 0x10], 0
mov byte [ebp - 0xf], 1
mov byte [ebp - 0x29], 0
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 1
lea edx, [ebp - 0x14]
push edx
call dword [ebp - 4]
test eax, eax
je 0x5282ac
push 0x20
push 0
lea eax, [ebp - 0x54]
push eax
call fcn.005ccbd0
add esp, 0xc
mov dword [ebp - 0x54], 0x1fffff
mov dword [ebp - 0x50], 2
mov dword [ebp - 0x4c], 3
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 5
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], 0
lea edx, [ebp - 0x34]
push edx
push 0
lea eax, [ebp - 0x54]
push eax
push 1
call dword [ebp - 0x24]
test eax, eax
jne 0x5282ac
push 0x14
call fcn.005b97ec
add esp, 4
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x58], ecx
push 1
mov edx, dword [ebp - 0x58]
push edx
call dword [ebp - 8]
test eax, eax
je 0x5282ac
push 0
mov eax, dword [ebp - 0x34]
push eax
push 1
mov ecx, dword [ebp - 0x58]
push ecx
call dword [ebp - 0x1c]
test eax, eax
je 0x5282ac
mov edx, dword [ebp + 8]
cmp dword [edx + 0x18], 0x10
jb 0x52828e
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x60], ecx
jmp 0x528297
mov edx, dword [ebp + 8]
add edx, 4
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 0x58]
push eax
push 4
mov ecx, dword [ebp - 0x60]
push ecx
call dword [ebp - 0x30]
test eax, eax
je 0x5282ac
mov byte [ebp - 0x29], 1
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.kernel32.dll_FreeLibrary]
mov al, byte [ebp - 0x29]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.005cbcb1
mov esp, ebp
pop ebp
ret