Function at 0x14000e890
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xf0
mov rax, qword [0x140025040]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rsi, rcx
xorps xmm0, xmm0
movups xmmword [rbp - 0x79], xmm0
xor r15d, r15d
mov qword [rbp - 0x69], r15
mov qword [rbp - 0x61], r15
lea r8d, [r15 + 0x13]
lea rdx, str.enabling_power_plan
lea rcx, [rbp - 0x79]
call fcn.140005ef0
nop
xor r8d, r8d
lea rdx, [rbp - 0x79]
call fcn.14000ba70
nop
mov rdx, qword [rbp - 0x61]
cmp rdx, 0xf
jbe 0x14000e933
inc rdx
mov rcx, qword [rbp - 0x79]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000e92e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000e92e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140017140
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
mov r14, 0xffffffffffffffff
mov r9d, r14d
mov r8, rsi
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rdi, eax
mov eax, 2
mul rdi
cmovo rax, r14
mov rcx, rax
call fcn.1400171b0
mov rbx, rax
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
mov r9d, r14d
mov r8, rsi
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rdx, rbx
lea rcx, [rbp + 0x17]
call fcn.140002480
nop
lea rdx, [rbp + 0x17]
lea rcx, [rbp - 0x59]
call fcn.1400025d0
mov rdx, rax
call fcn.14000da90
mov qword [rbp + 0xf], r15
lea rdx, [rbp + 0x17]
cmp qword [rbp + 0x2f], 7
cmova rdx, qword [rbp + 0x17]
lea r8, [rbp + 0xf]
xor ecx, ecx
call qword [sym.imp.POWRPROF.dll_PowerImportPowerScheme]
test eax, eax
jne 0x14000ea81
lea rdx, str.Power_plan_loaded_successfully_from_resource._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.14000eb70
mov rdx, qword [rbp + 0xf]
xor ecx, ecx
call qword [sym.imp.POWRPROF.dll_PowerSetActiveScheme]
mov rcx, qword [rbp + 0xf]
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea rcx, [rbp + 0x17]
cmp qword [rbp + 0x2f], 7
cmova rcx, qword [rbp + 0x17]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
mov rdx, qword [rbp + 0x2f]
cmp rdx, 7
jbe 0x14000ea56
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x17]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000ea51
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000ea51
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140017140
mov al, 1
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140017120
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
lea rcx, [rbp + 0x17]
call fcn.140002a00
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rbp - 0x79]
call fcn.14000d6f0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rbp - 0x59]
call fcn.1400013a0
nop
mov r8, rax
lea rdx, str.Failed_to_load_power_plan_from_resource._Error:
lea rcx, [rbp - 0x11]
call fcn.14000b790
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp - 0x39]
call fcn.14000d7a0
lea rdx, [0x140021cd8]
lea rcx, [rbp - 0x39]
call sub.VCRUNTIME140.dll__CxxThrowException
int3