Function at 0x1400d6030
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 0x1400d60b4
bt eax, 0xa
jae 0x1400d60b4
lea rcx, str.powrprof.dll
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400d60a0
test al, 0x10
je 0x1400d60a0
lea rcx, str.powrprof.dll
call fcn.14012db94
jmp 0x1400d60ac
lea rcx, str.powrprof.dll
call fcn.14011295c
test eax, eax
jne 0x1400d628f
mov ecx, 0x18
call fcn.140110008
mov rbx, rax
test rax, rax
je 0x1400d628f
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 0x1400d6294
lea rdx, str.PowerRegisterForEffectivePowerModeNotifications
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov rsi, rax
test rax, rax
jne 0x1400d6124
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 0x1400d6294
test rbx, rbx
je 0x1400d6161
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400d6161
lea rdx, str.PowerUnregisterFromEffectivePowerModeNotifications
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov rsi, rax
test rax, rax
jne 0x1400d6163
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rbx + 8], eax
jmp 0x1400d6163
xor esi, esi
mov qword [rdi + 0x28], rsi
test rsi, rsi
jne 0x1400d6174
mov rbx, qword [rdi]
jmp 0x1400d6294
mov rax, qword [rdi + 0x20]
lea r9, [rdi + 8]
mov r8, rdi
lea rdx, [0x1400d7760]
mov ecx, 2
call qword [case.0x140059157.0]
test eax, eax
je 0x1400d62aa
cmp dword [0x140274810], 3
jl 0x1400d61b3
test dword [0x140274874], 0x10000
je 0x1400d61b3
mov ebx, r14d
jmp 0x1400d61b5
xor ebx, ebx
mov edx, 3
mov ecx, 0x10000
call fcn.1400e1c40
test ebx, ebx
jne 0x1400d61cc
test eax, eax
je 0x1400d61ff
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.1400ba210
mov rax, qword [rdi + 0x20]
lea r9, [rdi + 8]
mov r8, rdi
lea rdx, [0x1400d7760]
mov ecx, r14d
call qword [case.0x140059157.0]
test eax, eax
je 0x1400d62aa
cmp dword [0x140274810], 3
jl 0x1400d623c
test dword [0x140274874], 0x10000
je 0x1400d623c
mov ebx, r14d
jmp 0x1400d623e
xor ebx, ebx
mov edx, 3
mov ecx, 0x10000
call fcn.1400e1c40
test ebx, ebx
jne 0x1400d6255
test eax, eax
je 0x1400d6288
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.1400ba210
mov ebp, 0x3ea
jmp 0x1400d62a2
xor ebx, ebx
mov qword [rdi], rbx
mov rcx, rbx
call fcn.1400d53b0
mov ebp, eax
test eax, eax
je 0x1400d62aa
mov rcx, rdi
call fcn.1400d5fc0
cmp dword [0x140274810], 3
mov rdi, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
jl 0x1400d62d1
test dword [0x140274874], 0x400000
jne 0x1400d62d4
xor r14d, r14d
mov edx, 3
mov ecx, 0x400000
call fcn.1400e1c40
test r14d, r14d
jne 0x1400d62ec
test eax, eax
je 0x1400d6324
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.1400ba210
mov eax, ebp
mov rbp, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop r13
pop r12
ret