Function at 0x14008c0a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x50], rbx
xor edi, edi
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov rsi, rcx
lea rcx, str.powrprof.dll
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14008c10a
bt eax, 0xa
jae 0x14008c10a
lea rcx, str.powrprof.dll
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14008c0f6
test al, 0x10
je 0x14008c0f6
lea rcx, str.powrprof.dll
call fcn.1400d89e4
jmp 0x14008c102
lea rcx, str.powrprof.dll
call fcn.1400bd7ac
test eax, eax
jne 0x14008c2a4
mov ecx, 0x18
call fcn.1400bae58
mov rbx, rax
test rax, rax
je 0x14008c2a4
xorps xmm0, xmm0
lea rcx, str.powrprof.dll
xor eax, eax
xor edx, edx
movups xmmword [rbx], xmm0
mov r8d, 0x1000
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.DLL_LoadLibraryExA]
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rbx + 8], eax
mov qword [rsi], rbx
mov rcx, qword [rbx]
test rcx, rcx
je 0x14008c2aa
lea rdx, str.PowerRegisterForEffectivePowerModeNotifications
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov rbp, rax
test rax, rax
jne 0x14008c17a
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rbx + 8], eax
mov rbx, qword [rsi]
mov qword [rsi + 0x20], rbp
test rbp, rbp
je 0x14008c2aa
test rbx, rbx
je 0x14008c1b7
mov rcx, qword [rbx]
test rcx, rcx
je 0x14008c1b7
lea rdx, str.PowerUnregisterFromEffectivePowerModeNotifications
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov rbp, rax
test rax, rax
jne 0x14008c1ba
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rbx + 8], eax
jmp 0x14008c1ba
mov rbp, rdi
mov qword [rsi + 0x28], rbp
test rbp, rbp
jne 0x14008c1cb
mov rbx, qword [rsi]
jmp 0x14008c2aa
mov rax, qword [rsi + 0x20]
lea r9, [rsi + 8]
mov r8, rsi
lea rdx, [0x14008d430]
mov ecx, 2
call qword [case.0x140023f47.0]
test eax, eax
je 0x14008c2c0
cmp dword [0x14020e430], 3
jl 0x14008c236
test dword [0x14020e494], 0x10000
je 0x14008c236
lea rax, str.Unable_to_register_for_V2_power_slider_notifications_n
mov edx, 3
mov qword [rsp + 0x28], rax
lea r9, str.C:jenkinsworkspacedptfSrcESIFProductsESIF_UFSourceswindppe.c
lea r8, str.power_slider_init
mov dword [rsp + 0x20], 0xfb
mov ecx, 0x10000
call fcn.140078130
mov rax, qword [rsi + 0x20]
lea r9, [rsi + 8]
mov r8, rsi
lea rdx, [0x14008d430]
mov ecx, 1
call qword [case.0x140023f47.0]
test eax, eax
je 0x14008c2c0
cmp dword [0x14020e430], 3
jl 0x14008c29d
test dword [0x14020e494], 0x10000
je 0x14008c29d
lea rax, str.Unable_to_register_for_V1_power_slider_notifications_n
mov edx, 3
mov qword [rsp + 0x28], rax
lea r9, str.C:jenkinsworkspacedptfSrcESIFProductsESIF_UFSourceswindppe.c
lea r8, str.power_slider_init
mov dword [rsp + 0x20], 0xff
mov ecx, 0x10000
call fcn.140078130
mov edi, 0x3ea
jmp 0x14008c2b8
mov qword [rsi], rdi
mov rbx, rdi
mov rcx, rbx
call fcn.14008b5b0
mov edi, eax
test eax, eax
je 0x14008c2c0
mov rcx, rsi
call fcn.14008c030
cmp dword [0x14020e430], 3
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
jl 0x14008c319
test dword [0x14020e494], 0x400000
je 0x14008c319
lea rax, str.Exiting_function:_Exit_code__0x_08X...
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x28], rax
lea r9, str.C:jenkinsworkspacedptfSrcESIFProductsESIF_UFSourceswindppe.c
lea r8, str.power_slider_init
mov dword [rsp + 0x20], 0x108
mov edx, 3
mov ecx, 0x400000
call fcn.140078130
mov eax, edi
add rsp, 0x40
pop rdi
ret