Function at 0x140027d60
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x14035dc30]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
add rcx, 8
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp qword [rbx], 0
jne 0x140028034
mov edx, 0x104
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r8, str._advapi32.dll
mov edx, 0x104
lea rcx, [rsp + 0x20]
call fcn.140278c0c
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rbx], rax
test rax, rax
jne 0x140027dfc
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140269300
mov rbx, qword [rsp + 0x258]
add rsp, 0x240
pop rdi
ret
lea rdx, str.SetEntriesInAclW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.GetFileSecurityW
mov qword [rbx + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.SetFileSecurityW
mov qword [rbx + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.LookupAccountSidW
mov qword [rbx + 0x70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.GetExplicitEntriesFromAclW
mov qword [rbx + 0xc8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, [0x1402f7e20]
mov qword [rbx + 0xf8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, [0x1402f7e38]
mov qword [rbx + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.InitializeSecurityDescriptor
mov qword [rbx + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.SetSecurityDescriptorDacl
mov qword [rbx + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.GetSecurityDescriptorDacl
mov qword [rbx + 0x58], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, [0x1402f7eb0]
mov qword [rbx + 0x60], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, [0x1402f7ed0]
mov qword [rbx + 0x68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.OpenThreadToken
mov qword [rbx + 0x78], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, [0x1402f7ee8]
mov qword [rbx + 0xb8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.InitializeAcl
mov qword [rbx + 0xc0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.InitializeSid
mov qword [rbx + 0x80], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.GetSidSubAuthority
mov qword [rbx + 0x88], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.AddAccessAllowedAce
mov qword [rbx + 0x90], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.GetSecurityInfo
mov qword [rbx + 0x98], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.SetSecurityInfo
mov qword [rbx + 0xa0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0xa8], rax
lea rdx, str.QueryServiceStatusEx
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.GetAce
mov qword [rbx + 0xb0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.DeleteAce
mov qword [rbx + 0xd0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, [0x1402f7fa0]
mov qword [rbx + 0xd8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.GetAclInformation
mov qword [rbx + 0xe0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.SetSecurityDescriptorControl
mov qword [rbx + 0xe8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0xf0], rax
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp qword [rbx + 0x30], 0
je 0x140027dd9
cmp qword [rbx + 0x38], 0
je 0x140027dd9
cmp qword [rbx + 0x40], 0
je 0x140027dd9
cmp qword [rbx + 0x48], 0
je 0x140027dd9
cmp qword [rbx + 0x50], 0
je 0x140027dd9
cmp qword [rbx + 0x58], 0
je 0x140027dd9
cmp qword [rbx + 0x60], 0
je 0x140027dd9
cmp qword [rbx + 0x68], 0
je 0x140027dd9
cmp qword [rbx + 0x70], 0
je 0x140027dd9
cmp qword [rbx + 0x78], 0
je 0x140027dd9
cmp qword [rbx + 0x80], 0
je 0x140027dd9
cmp qword [rbx + 0x88], 0
je 0x140027dd9
cmp qword [rbx + 0x90], 0
je 0x140027dd9
cmp qword [rbx + 0x98], 0
je 0x140027dd9
cmp qword [rbx + 0xa0], 0
je 0x140027dd9
cmp qword [rbx + 0xa8], 0
je 0x140027dd9
cmp qword [rbx + 0xb0], 0
je 0x140027dd9
cmp qword [rbx + 0xb8], 0
je 0x140027dd9
cmp qword [rbx + 0xc0], 0
je 0x140027dd9
cmp qword [rbx + 0xc8], 0
je 0x140027dd9
cmp qword [rbx + 0xe8], 0
je 0x140027dd9
cmp qword [rbx + 0xd0], 0
je 0x140027dd9
cmp qword [rbx + 0xd8], 0
je 0x140027dd9
cmp qword [rbx + 0xe0], 0
je 0x140027dd9
cmp qword [rbx + 0xf0], 0
je 0x140027dd9
cmp qword [rbx + 0xf8], 0
je 0x140027dd9
mov eax, 1
jmp 0x140027ddb