Function at 0x14008cd20
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 0x14008cd8a
bt eax, 0xa
jae 0x14008cd8a
lea rcx, str.powrprof.dll
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14008cd76
test al, 0x10
je 0x14008cd76
lea rcx, str.powrprof.dll
call fcn.1400d95ec
jmp 0x14008cd82
lea rcx, str.powrprof.dll
call fcn.1400bd14c
test eax, eax
jne 0x14008cf24
mov ecx, 0x18
call fcn.1400bb768
mov rbx, rax
test rax, rax
je 0x14008cf24
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 0x14008cf2a
lea rdx, str.PowerRegisterForEffectivePowerModeNotifications
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbp, rax
test rax, rax
jne 0x14008cdfa
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 0x14008cf2a
test rbx, rbx
je 0x14008ce37
mov rcx, qword [rbx]
test rcx, rcx
je 0x14008ce37
lea rdx, str.PowerUnregisterFromEffectivePowerModeNotifications
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbp, rax
test rax, rax
jne 0x14008ce3a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 8], eax
jmp 0x14008ce3a
mov rbp, rdi
mov qword [rsi + 0x28], rbp
test rbp, rbp
jne 0x14008ce4b
mov rbx, qword [rsi]
jmp 0x14008cf2a
mov rax, qword [rsi + 0x20]
lea r9, [rsi + 8]
mov r8, rsi
lea rdx, [0x14008e0b0]
mov ecx, 2
call qword [case.0x140023ef7.0]
test eax, eax
je 0x14008cf40
cmp dword [0x140213620], 3
jl 0x14008ceb6
test dword [0x140213684], 0x10000
je 0x14008ceb6
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.140079050
mov rax, qword [rsi + 0x20]
lea r9, [rsi + 8]
mov r8, rsi
lea rdx, [0x14008e0b0]
mov ecx, 1
call qword [case.0x140023ef7.0]
test eax, eax
je 0x14008cf40
cmp dword [0x140213620], 3
jl 0x14008cf1d
test dword [0x140213684], 0x10000
je 0x14008cf1d
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.140079050
mov edi, 0x3ea
jmp 0x14008cf38
mov qword [rsi], rdi
mov rbx, rdi
mov rcx, rbx
call fcn.14008c230
mov edi, eax
test eax, eax
je 0x14008cf40
mov rcx, rsi
call fcn.14008ccb0
cmp dword [0x140213620], 3
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
jl 0x14008cf99
test dword [0x140213684], 0x400000
je 0x14008cf99
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.140079050
mov eax, edi
add rsp, 0x40
pop rdi
ret