Function at 0x1400d7f70
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:jenkinsworkspacedptf_2SrcESIFProductsESIF_UFSourceswindppe.c
lea r13, str.power_slider_init
cmp eax, 0xffffffff
je 0x1400d7ff4
bt eax, 0xa
jae 0x1400d7ff4
lea rcx, str.powrprof.dll
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400d7fe0
test al, 0x10
je 0x1400d7fe0
lea rcx, str.powrprof.dll
call fcn.14012fc74
jmp 0x1400d7fec
lea rcx, str.powrprof.dll
call fcn.140114a3c
test eax, eax
jne 0x1400d81cf
mov ecx, 0x18
call fcn.1401120e8
mov rbx, rax
test rax, rax
je 0x1400d81cf
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 0x1400d81d4
lea rdx, str.PowerRegisterForEffectivePowerModeNotifications
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov rsi, rax
test rax, rax
jne 0x1400d8064
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 0x1400d81d4
test rbx, rbx
je 0x1400d80a1
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400d80a1
lea rdx, str.PowerUnregisterFromEffectivePowerModeNotifications
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov rsi, rax
test rax, rax
jne 0x1400d80a3
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rbx + 8], eax
jmp 0x1400d80a3
xor esi, esi
mov qword [rdi + 0x28], rsi
test rsi, rsi
jne 0x1400d80b4
mov rbx, qword [rdi]
jmp 0x1400d81d4
mov rax, qword [rdi + 0x20]
lea r9, [rdi + 8]
mov r8, rdi
lea rdx, [0x1400d96a0]
mov ecx, 2
call qword [case.0x140059157.0]
test eax, eax
je 0x1400d81ea
cmp dword [0x140277860], 3
jl 0x1400d80f3
test dword [0x1402778c4], 0x10000
je 0x1400d80f3
mov ebx, r14d
jmp 0x1400d80f5
xor ebx, ebx
mov edx, 3
mov ecx, 0x10000
call fcn.1400e3b80
test ebx, ebx
jne 0x1400d810c
test eax, eax
je 0x1400d813f
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.1400bb960
mov rax, qword [rdi + 0x20]
lea r9, [rdi + 8]
mov r8, rdi
lea rdx, [0x1400d96a0]
mov ecx, r14d
call qword [case.0x140059157.0]
test eax, eax
je 0x1400d81ea
cmp dword [0x140277860], 3
jl 0x1400d817c
test dword [0x1402778c4], 0x10000
je 0x1400d817c
mov ebx, r14d
jmp 0x1400d817e
xor ebx, ebx
mov edx, 3
mov ecx, 0x10000
call fcn.1400e3b80
test ebx, ebx
jne 0x1400d8195
test eax, eax
je 0x1400d81c8
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.1400bb960
mov ebp, 0x3ea
jmp 0x1400d81e2
xor ebx, ebx
mov qword [rdi], rbx
mov rcx, rbx
call fcn.1400d72f0
mov ebp, eax
test eax, eax
je 0x1400d81ea
mov rcx, rdi
call fcn.1400d7f00
cmp dword [0x140277860], 3
mov rdi, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
jl 0x1400d8211
test dword [0x1402778c4], 0x400000
jne 0x1400d8214
xor r14d, r14d
mov edx, 3
mov ecx, 0x400000
call fcn.1400e3b80
test r14d, r14d
jne 0x1400d822c
test eax, eax
je 0x1400d8264
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.1400bb960
mov eax, ebp
mov rbp, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop r13
pop r12
ret