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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x1403cd210]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rsi, [rcx + 0x10]
mov rbx, rcx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor edi, edi
cmp qword [rbx], rdi
jne 0x1400679cb
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.140147c4c
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rbx], rax
test rax, rax
jne 0x140067790
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0x140067ada
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 + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.SetFileSecurityW
mov qword [rbx + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.LookupAccountSidW
mov qword [rbx + 0x78], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.GetExplicitEntriesFromAclW
mov qword [rbx + 0xd0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, [0x1403604d8]
mov qword [rbx + 0x100], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, [0x1403604c0]
mov qword [rbx + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.InitializeSecurityDescriptor
mov qword [rbx + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.SetSecurityDescriptorDacl
mov qword [rbx + 0x58], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.GetSecurityDescriptorDacl
mov qword [rbx + 0x60], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, [0x140360530]
mov qword [rbx + 0x68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, [0x140360580]
mov qword [rbx + 0x70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.OpenThreadToken
mov qword [rbx + 0x80], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, [0x140360598]
mov qword [rbx + 0xc0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.InitializeAcl
mov qword [rbx + 0xc8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.InitializeSid
mov qword [rbx + 0x88], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.GetSidSubAuthority
mov qword [rbx + 0x90], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.AddAccessAllowedAce
mov qword [rbx + 0x98], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.GetSecurityInfo
mov qword [rbx + 0xa0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.SetSecurityInfo
mov qword [rbx + 0xa8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0xb0], 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 + 0xb8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.DeleteAce
mov qword [rbx + 0xd8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, [0x140360658]
mov qword [rbx + 0xe0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.GetAclInformation
mov qword [rbx + 0xe8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.SetSecurityDescriptorControl
mov qword [rbx + 0xf0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0xf8], rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp qword [rbx + 0x38], rdi
je 0x140067ad8
cmp qword [rbx + 0x40], rdi
je 0x140067ad8
cmp qword [rbx + 0x48], rdi
je 0x140067ad8
cmp qword [rbx + 0x50], rdi
je 0x140067ad8
cmp qword [rbx + 0x58], rdi
je 0x140067ad8
cmp qword [rbx + 0x60], rdi
je 0x140067ad8
cmp qword [rbx + 0x68], rdi
je 0x140067ad8
cmp qword [rbx + 0x70], rdi
je 0x140067ad8
cmp qword [rbx + 0x78], rdi
je 0x140067ad8
cmp qword [rbx + 0x80], rdi
je 0x140067ad8
cmp qword [rbx + 0x88], rdi
je 0x140067ad8
cmp qword [rbx + 0x90], rdi
je 0x140067ad8
cmp qword [rbx + 0x98], rdi
je 0x140067ad8
cmp qword [rbx + 0xa0], rdi
je 0x140067ad8
cmp qword [rbx + 0xa8], rdi
je 0x140067ad8
cmp qword [rbx + 0xb0], rdi
je 0x140067ad8
cmp qword [rbx + 0xb8], rdi
je 0x140067ad8
cmp qword [rbx + 0xc0], rdi
je 0x140067ad8
cmp qword [rbx + 0xc8], rdi
je 0x140067ad8
cmp qword [rbx + 0xd0], rdi
je 0x140067ad8
cmp qword [rbx + 0xf0], rdi
je 0x140067ad8
cmp qword [rbx + 0xd8], rdi
je 0x140067ad8
cmp qword [rbx + 0xe0], rdi
je 0x140067ad8
cmp qword [rbx + 0xe8], rdi
je 0x140067ad8
cmp qword [rbx + 0xf8], rdi
je 0x140067ad8
cmp qword [rbx + 0x100], rdi
je 0x140067ad8
mov edi, 1
mov eax, edi
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140119fe0
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret