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

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbp
push r12
push r13
push r14
sub rsp, 0x50
mov qword [rax + 8], rbx
xor ebp, ebp
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rdi, rcx
lea rcx, str.powrprof.dll
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
lea r14d, [rbp + 1]
lea r12, str.C:jenkinsworkspacedptfSrcESIFProductsESIF_UFSourceswindppe.c
lea r13, str.power_slider_init
cmp eax, 0xffffffff
je 0x1400deaa4
bt eax, 0xa
jae 0x1400deaa4
lea rcx, str.powrprof.dll
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400dea90
test al, 0x10
je 0x1400dea90
lea rcx, str.powrprof.dll
call fcn.1401338c4
jmp 0x1400dea9c
lea rcx, str.powrprof.dll
call fcn.14011868c
test eax, eax
jne 0x1400dec7f
mov ecx, 0x18
call fcn.140115d38
mov rbx, rax
test rax, rax
je 0x1400dec7f
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 [rdi], rbx
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400dec84
lea rdx, str.PowerRegisterForEffectivePowerModeNotifications
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov rsi, rax
test rax, rax
jne 0x1400deb14
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rbx + 8], eax
mov rbx, qword [rdi]
mov qword [rdi + 0x20], rsi
test rsi, rsi
je 0x1400dec84
test rbx, rbx
je 0x1400deb51
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400deb51
lea rdx, str.PowerUnregisterFromEffectivePowerModeNotifications
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov rsi, rax
test rax, rax
jne 0x1400deb53
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rbx + 8], eax
jmp 0x1400deb53
xor esi, esi
mov qword [rdi + 0x28], rsi
test rsi, rsi
jne 0x1400deb64
mov rbx, qword [rdi]
jmp 0x1400dec84
mov rax, qword [rdi + 0x20]
lea r9, [rdi + 8]
mov r8, rdi
lea rdx, [0x1400e0150]
mov ecx, 2
call qword [case.0x14005bcf7.0]
test eax, eax
je 0x1400dec9a
cmp dword [0x14027edf0], 3
jl 0x1400deba3
test dword [0x14027ee54], 0x10000
je 0x1400deba3
mov ebx, r14d
jmp 0x1400deba5
xor ebx, ebx
mov edx, 3
mov ecx, 0x10000
call fcn.1400e8cc0
test ebx, ebx
jne 0x1400debbc
test eax, eax
je 0x1400debef
lea rcx, str.Unable_to_register_for_V2_power_slider_notifications_n
mov r9d, 3
mov qword [rsp + 0x38], rcx
mov r8d, 0x10000
mov dword [rsp + 0x30], 0xfa
mov edx, eax
mov qword [rsp + 0x28], r12
mov ecx, ebx
mov qword [rsp + 0x20], r13
call fcn.1400bfc30
mov rax, qword [rdi + 0x20]
lea r9, [rdi + 8]
mov r8, rdi
lea rdx, [0x1400e0150]
mov ecx, r14d
call qword [case.0x14005bcf7.0]
test eax, eax
je 0x1400dec9a
cmp dword [0x14027edf0], 3
jl 0x1400dec2c
test dword [0x14027ee54], 0x10000
je 0x1400dec2c
mov ebx, r14d
jmp 0x1400dec2e
xor ebx, ebx
mov edx, 3
mov ecx, 0x10000
call fcn.1400e8cc0
test ebx, ebx
jne 0x1400dec45
test eax, eax
je 0x1400dec78
lea rcx, str.Unable_to_register_for_V1_power_slider_notifications_n
mov r9d, 3
mov qword [rsp + 0x38], rcx
mov r8d, 0x10000
mov dword [rsp + 0x30], 0xfe
mov edx, eax
mov qword [rsp + 0x28], r12
mov ecx, ebx
mov qword [rsp + 0x20], r13
call fcn.1400bfc30
mov ebp, 0x3ea
jmp 0x1400dec92
xor ebx, ebx
mov qword [rdi], rbx
mov rcx, rbx
call fcn.1400ddda0
mov ebp, eax
test eax, eax
je 0x1400dec9a
mov rcx, rdi
call fcn.1400de9b0
cmp dword [0x14027edf0], 3
mov rdi, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
jl 0x1400decc1
test dword [0x14027ee54], 0x400000
jne 0x1400decc4
xor r14d, r14d
mov edx, 3
mov ecx, 0x400000
call fcn.1400e8cc0
test r14d, r14d
jne 0x1400decdc
test eax, eax
je 0x1400ded14
mov dword [rsp + 0x40], ebp
lea rcx, str.Exiting_function:_Exit_code__0x_08X...
mov qword [rsp + 0x38], rcx
mov r9d, 3
mov dword [rsp + 0x30], 0x107
mov r8d, 0x400000
mov qword [rsp + 0x28], r12
mov edx, eax
mov ecx, r14d
mov qword [rsp + 0x20], r13
call fcn.1400bfc30
mov eax, ebp
mov rbp, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop r13
pop r12
ret