Function at 0x140018eb0
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rax, qword [rsp + 0x40]
add rax, 0x18
mov rcx, rax
call fcn.140004310
nop
mov rax, qword [rsp + 0x40]
add rax, 0x38
mov rcx, rax
call fcn.140004310
nop
mov rax, qword [rsp + 0x40]
add rax, 0x40
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rcx, rax
call fcn.1400337f0
nop
call fcn.140015300
movzx eax, al
cmp eax, 1
jne 0x140019230
mov rax, qword [rsp + 0x40]
add rax, 0x24
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x40]
mov dword [rax + 4], 0x8baa4a8a
mov eax, 0x14c6
mov rcx, qword [rsp + 0x40]
mov word [rcx + 8], ax
mov eax, 0x4451
mov rcx, qword [rsp + 0x40]
mov word [rcx + 0xa], ax
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
mov byte [rcx + rax + 0xc], 0x8e
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 0x40]
mov byte [rcx + rax + 0xc], 0x8b
mov eax, 1
imul rax, rax, 2
mov rcx, qword [rsp + 0x40]
mov byte [rcx + rax + 0xc], 0x14
mov eax, 1
imul rax, rax, 3
mov rcx, qword [rsp + 0x40]
mov byte [rcx + rax + 0xc], 0xbd
mov eax, 1
imul rax, rax, 4
mov rcx, qword [rsp + 0x40]
mov byte [rcx + rax + 0xc], 0xbd
mov eax, 1
imul rax, rax, 5
mov rcx, qword [rsp + 0x40]
mov byte [rcx + rax + 0xc], 0x19
mov eax, 1
imul rax, rax, 6
mov rcx, qword [rsp + 0x40]
mov byte [rcx + rax + 0xc], 0x75
mov eax, 1
imul rax, rax, 7
mov rcx, qword [rsp + 0x40]
mov byte [rcx + rax + 0xc], 0x37
mov qword [rsp + 0x20], 0
cmp qword [0x14007b7a8], 0
jne 0x140019169
lea rcx, str.powrprof.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0x20], rax
lea rdx, str.PowerSetActiveScheme
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14007b7b0], rax
lea rdx, str.PowerGetActiveScheme
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14007b798], rax
lea rdx, str.PowerEnumerate
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14007b7a0], rax
lea rdx, str.PowerReadFriendlyName
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14007b788], rax
lea rdx, str.PowerDuplicateScheme
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14007b790], rax
lea rdx, str.PowerWriteFriendlyName
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14007b778], rax
lea rdx, str.PowerWriteDescription
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14007b780], rax
lea rdx, str.PowerDeleteScheme
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14007b768], rax
lea rdx, str.PowerReadACValueIndex
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14007b758], rax
lea rdx, str.PowerReadDCValueIndex
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14007b760], rax
lea rdx, str.PowerWriteACValueIndex
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14007b748], rax
lea rdx, str.PowerWriteDCValueIndex
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14007b750], rax
lea rdx, str.PowerReadPossibleValue
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14007b770], rax
lea rdx, str.PowerWriteSettingAttributes
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14007b740], rax
jmp 0x140019176
lea rcx, str.powrprof.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp qword [0x14007b7b0], 0
je 0x140019206
cmp qword [0x14007b788], 0
je 0x140019206
cmp qword [0x14007b7a0], 0
je 0x140019206
cmp qword [0x14007b798], 0
je 0x140019206
cmp qword [0x14007b770], 0
je 0x140019206
cmp qword [0x14007b740], 0
je 0x140019206
cmp qword [0x14007b790], 0
je 0x140019206
cmp qword [0x14007b778], 0
je 0x140019206
cmp qword [0x14007b780], 0
je 0x140019206
cmp qword [0x14007b768], 0
je 0x140019206
cmp qword [0x14007b758], 0
je 0x140019206
cmp qword [0x14007b760], 0
je 0x140019206
cmp qword [0x14007b748], 0
je 0x140019206
cmp qword [0x14007b750], 0
jne 0x140019210
mov rax, qword [rsp + 0x40]
mov byte [rax], 0
jmp 0x14001922e
mov rax, qword [rsp + 0x40]
mov byte [rax], 1
cmp qword [0x14007b7a8], 0
jne 0x14001922e
mov rax, qword [rsp + 0x20]
mov qword [0x14007b7a8], rax
jmp 0x140019238
mov rax, qword [rsp + 0x40]
mov byte [rax], 0
mov rax, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret