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

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x1f8]
sub rsp, 0x2d0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x14006b3d0]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov rdi, rcx
xor eax, eax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rax
lea r8, str.CFnPowerPlan::LoadPowrProfDll
mov qword [rbp - 0x80], r8
lea r14, str.HotkeyFnPowerPlan.cpp
mov qword [rbp - 0x78], r14
mov dword [rbp - 0x70], 0xc5
lea r15, str.__CFnPowerPlan::LoadPowrProfDll_
mov qword [rbp - 0x68], r15
lea r12, [0x14004b4ac]
mov qword [rbp - 0x60], r12
mov dword [rbp - 0x58], 3
lea rdx, str.ENTER__s
lea rcx, [rbp - 0x78]
call fcn.1400028a0
nop
xor esi, esi
mov word [rbp - 0x50], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp - 0x4e]
call fcn.140032580
call fcn.140006120
mov rdx, rax
mov ecx, esi
test rax, rax
setne cl
test ecx, ecx
jne 0x140023649
mov ecx, 0x80004005
call fcn.140006240
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x78], rax
mov edx, 0x208
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rcx, [rsp + 0x78]
test eax, eax
jne 0x140023688
lea r8, str.Powrprof.dll
lea rdx, str.C:WindowsSystem32_s
call fcn.140023e40
jmp 0x14002369f
lea r9, str.Powrprof.dll
lea r8, [rbp - 0x50]
lea rdx, str._s_s
call fcn.140023e40
mov rcx, qword [rdi + 0x68]
test rcx, rcx
je 0x1400236b2
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rdi + 0x68], rsi
mov rbx, qword [rsp + 0x78]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rdi + 0x68], rax
test rax, rax
jne 0x1400236f3
mov edi, 0x80004003
mov qword [rsp + 0x20], r14
mov dword [rsp + 0x28], 0xd3
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x40], esi
lea rcx, [rsp + 0x20]
jmp 0x1400237c7
lea rdx, str.PowerReadFriendlyName
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x78], rax
lea rdx, str.PowerGetActiveScheme
mov rcx, qword [rdi + 0x68]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x80], rax
lea rdx, str.PowerSetActiveScheme
mov rcx, qword [rdi + 0x68]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x88], rax
lea rdx, str.PowerEnumerate
mov rcx, qword [rdi + 0x68]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x70], rax
lea rdx, str.PowerReadACValueIndex
mov rcx, qword [rdi + 0x68]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x90], rax
cmp qword [rdi + 0x78], 0
je 0x14002378f
cmp qword [rdi + 0x80], 0
je 0x14002378f
cmp qword [rdi + 0x88], 0
je 0x14002378f
cmp qword [rdi + 0x70], 0
je 0x14002378f
test rax, rax
je 0x14002378f
mov edi, esi
jmp 0x1400237d7
mov rcx, qword [rdi + 0x68]
test rcx, rcx
je 0x1400237a2
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rdi + 0x68], rsi
mov edi, 0x80004005
mov qword [rsp + 0x48], r14
mov dword [rsp + 0x50], 0xe2
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], r12
mov dword [rsp + 0x68], esi
lea rcx, [rsp + 0x48]
mov r8d, edi
lea rdx, str.Error_Code:_0x_X
call fcn.1400028a0
nop
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x1400237ed
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
mov r8, qword [rbp - 0x80]
lea rdx, str.LEAVE__s
lea rcx, [rbp - 0x78]
call fcn.1400028a0
mov eax, edi
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.14002f400
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret