Function at 0x14008c350
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 0x14008c3ba
bt eax, 0xa
jae 0x14008c3ba
lea rcx, str.powrprof.dll
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14008c3a6
test al, 0x10
je 0x14008c3a6
lea rcx, str.powrprof.dll
call fcn.1400d8df4
jmp 0x14008c3b2
lea rcx, str.powrprof.dll
call fcn.1400bdbbc
test eax, eax
jne 0x14008c554
mov ecx, 0x18
call fcn.1400bb268
mov rbx, rax
test rax, rax
je 0x14008c554
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 0x14008c55a
lea rdx, str.PowerRegisterForEffectivePowerModeNotifications
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov rbp, rax
test rax, rax
jne 0x14008c42a
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 0x14008c55a
test rbx, rbx
je 0x14008c467
mov rcx, qword [rbx]
test rcx, rcx
je 0x14008c467
lea rdx, str.PowerUnregisterFromEffectivePowerModeNotifications
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov rbp, rax
test rax, rax
jne 0x14008c46a
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rbx + 8], eax
jmp 0x14008c46a
mov rbp, rdi
mov qword [rsi + 0x28], rbp
test rbp, rbp
jne 0x14008c47b
mov rbx, qword [rsi]
jmp 0x14008c55a
mov rax, qword [rsi + 0x20]
lea r9, [rsi + 8]
mov r8, rsi
lea rdx, [0x14008d6e0]
mov ecx, 2
call qword [case.0x140023f87.0]
test eax, eax
je 0x14008c570
cmp dword [0x14020e430], 3
jl 0x14008c4e6
test dword [0x14020e494], 0x10000
je 0x14008c4e6
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.140078180
mov rax, qword [rsi + 0x20]
lea r9, [rsi + 8]
mov r8, rsi
lea rdx, [0x14008d6e0]
mov ecx, 1
call qword [case.0x140023f87.0]
test eax, eax
je 0x14008c570
cmp dword [0x14020e430], 3
jl 0x14008c54d
test dword [0x14020e494], 0x10000
je 0x14008c54d
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.140078180
mov edi, 0x3ea
jmp 0x14008c568
mov qword [rsi], rdi
mov rbx, rdi
mov rcx, rbx
call fcn.14008b860
mov edi, eax
test eax, eax
je 0x14008c570
mov rcx, rsi
call fcn.14008c2e0
cmp dword [0x14020e430], 3
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
jl 0x14008c5c9
test dword [0x14020e494], 0x400000
je 0x14008c5c9
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.140078180
mov eax, edi
add rsp, 0x40
pop rdi
ret