Function at 0x140089670
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 0x1400896da
bt eax, 0xa
jae 0x1400896da
lea rcx, str.powrprof.dll
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400896c6
test al, 0x10
je 0x1400896c6
lea rcx, str.powrprof.dll
call fcn.1400d246c
jmp 0x1400896d2
lea rcx, str.powrprof.dll
call fcn.1400b5fcc
test eax, eax
jne 0x140089874
mov ecx, 0x18
call fcn.1400b45e8
mov rbx, rax
test rax, rax
je 0x140089874
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 0x14008987a
lea rdx, str.PowerRegisterForEffectivePowerModeNotifications
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbp, rax
test rax, rax
jne 0x14008974a
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 0x14008987a
test rbx, rbx
je 0x140089787
mov rcx, qword [rbx]
test rcx, rcx
je 0x140089787
lea rdx, str.PowerUnregisterFromEffectivePowerModeNotifications
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbp, rax
test rax, rax
jne 0x14008978a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 8], eax
jmp 0x14008978a
mov rbp, rdi
mov qword [rsi + 0x28], rbp
test rbp, rbp
jne 0x14008979b
mov rbx, qword [rsi]
jmp 0x14008987a
mov rax, qword [rsi + 0x20]
lea r9, [rsi + 8]
mov r8, rsi
lea rdx, [0x14008aa00]
mov ecx, 2
call qword [case.0x1400246b7.0]
test eax, eax
je 0x140089890
cmp dword [0x140209140], 3
jl 0x140089806
test dword [0x1402091a4], 0x10000
je 0x140089806
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], 0xf9
mov ecx, 0x10000
call fcn.140077c20
mov rax, qword [rsi + 0x20]
lea r9, [rsi + 8]
mov r8, rsi
lea rdx, [0x14008aa00]
mov ecx, 1
call qword [case.0x1400246b7.0]
test eax, eax
je 0x140089890
cmp dword [0x140209140], 3
jl 0x14008986d
test dword [0x1402091a4], 0x10000
je 0x14008986d
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], 0xfd
mov ecx, 0x10000
call fcn.140077c20
mov edi, 0x3ea
jmp 0x140089888
mov qword [rsi], rdi
mov rbx, rdi
mov rcx, rbx
call fcn.140088b80
mov edi, eax
test eax, eax
je 0x140089890
mov rcx, rsi
call fcn.140089600
cmp dword [0x140209140], 3
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
jl 0x1400898e9
test dword [0x1402091a4], 0x400000
je 0x1400898e9
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], 0x106
mov edx, 3
mov ecx, 0x400000
call fcn.140077c20
mov eax, edi
add rsp, 0x40
pop rdi
ret