Function at 0x1400088f0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x780]
sub rsp, 0x880
mov rax, qword [0x140214eb8]
xor rax, rsp
mov qword [rbp + 0x770], rax
mov rax, qword [0x1401ccbf0]
mov rbx, rcx
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x60], rax
mov rax, qword [0x1401ccbf8]
xor esi, esi
xor ecx, ecx
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x68], rax
call qword [sym.imp.POWRPROF.dll_PowerSetActiveScheme]
lea rdx, [rsp + 0x30]
mov r9d, 0x20019
mov qword [rsp + 0x20], rdx
lea rdx, str.SYSTEMCurrentControlSetControlPowerUserDefaultPowerSchemes3b95affe_13a8_4a92_a8d8_858ba0d5dcb9
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140008bca
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [0x1401ccc10]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x60], rax
mov rax, qword [0x1401ccc18]
xor ecx, ecx
mov qword [rsp + 0x68], rax
call qword [sym.imp.POWRPROF.dll_PowerDeleteScheme]
test eax, eax
je 0x140008a2e
cmp qword [rbx + 8], rsi
je 0x140008a2e
lea rcx, [rsp + 0x72]
xor edx, edx
mov r8d, 0x7fe
mov word [rsp + 0x70], si
call fcn.140152380
lea rdx, str.PowerDeleteScheme___for_HIGH_Scheme_Fail__d_n
lea rcx, [rsp + 0x70]
call fcn.140008860
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x70]
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x50], 7
repne scasw ax, word [rdi]
mov qword [rsp + 0x48], rsi
mov word [rsp + 0x38], si
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x38]
call fcn.140008390
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0x38]
mov r8d, eax
call fcn.140012d80
lea rax, [rsp + 0x30]
lea rdx, str.SYSTEMCurrentControlSetControlPowerUserPowerSchemes3b95affe_13a8_4a92_a8d8_858ba0d5dcb9
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140008afc
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.SYSTEMCurrentControlSetControlPowerUserPowerSchemes3b95affe_13a8_4a92_a8d8_858ba0d5dcb9
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
test eax, eax
je 0x140008afc
cmp qword [rbx + 8], rsi
je 0x140008afc
lea rcx, [rsp + 0x72]
xor edx, edx
mov r8d, 0x7fe
mov word [rsp + 0x70], si
call fcn.140152380
lea rdx, str.Reg_Delete_High_Scheme_Fail__d_n
lea rcx, [rsp + 0x70]
call fcn.140008860
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x70]
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x50], 7
repne scasw ax, word [rdi]
mov qword [rsp + 0x48], rsi
mov word [rsp + 0x38], si
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x38]
call fcn.140008390
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0x38]
mov r8d, eax
call fcn.140012d80
lea rax, [rsp + 0x30]
lea rdx, str.SYSTEMCurrentControlSetControlPowerUserDefaultPowerSchemes3b95affe_13a8_4a92_a8d8_858ba0d5dcb9
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140008bca
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.SYSTEMCurrentControlSetControlPowerUserDefaultPowerSchemes3b95affe_13a8_4a92_a8d8_858ba0d5dcb9
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
test eax, eax
je 0x140008bca
cmp qword [rbx + 8], rsi
je 0x140008bca
lea rcx, [rsp + 0x72]
xor edx, edx
mov r8d, 0x7fe
mov word [rsp + 0x70], si
call fcn.140152380
lea rdx, str.Reg_Delete_Default_High_Scheme_Fail__d_n
lea rcx, [rsp + 0x70]
call fcn.140008860
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x70]
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x50], 7
repne scasw ax, word [rdi]
mov qword [rsp + 0x48], rsi
mov word [rsp + 0x38], si
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x38]
call fcn.140008390
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0x38]
mov r8d, eax
call fcn.140012d80
lea rax, [rsp + 0x30]
lea rdx, str.SYSTEMCurrentControlSetControlPowerUserDefaultPowerSchemesdb81ff77_a9c6_451c_95a6_824e6c4e0291
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140008e3a
mov rax, qword [0x1401ccc20]
lea rdx, [rsp + 0x60]
xor ecx, ecx
mov qword [rsp + 0x60], rax
mov rax, qword [0x1401ccc28]
mov qword [rsp + 0x68], rax
call qword [sym.imp.POWRPROF.dll_PowerDeleteScheme]
test eax, eax
je 0x140008c9e
cmp qword [rbx + 8], rsi
je 0x140008c9e
lea rcx, [rsp + 0x72]
xor edx, edx
mov r8d, 0x7fe
mov word [rsp + 0x70], si
call fcn.140152380
lea rdx, str.PowerDeleteScheme___for_LOW_Scheme_Fail__d_n
lea rcx, [rsp + 0x70]
call fcn.140008860
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x70]
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x50], 7
repne scasw ax, word [rdi]
mov qword [rsp + 0x48], rsi
mov word [rsp + 0x38], si
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x38]
call fcn.140008390
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0x38]
mov r8d, eax
call fcn.140012d80
lea rax, [rsp + 0x30]
lea rdx, str.SYSTEMCurrentControlSetControlPowerUserPowerSchemesdb81ff77_a9c6_451c_95a6_824e6c4e0291
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140008d6c
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.SYSTEMCurrentControlSetControlPowerUserPowerSchemesdb81ff77_a9c6_451c_95a6_824e6c4e0291
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
test eax, eax
je 0x140008d6c
cmp qword [rbx + 8], rsi
je 0x140008d6c
lea rcx, [rsp + 0x72]
xor edx, edx
mov r8d, 0x7fe
mov word [rsp + 0x70], si
call fcn.140152380
lea rdx, str.Reg_Delete_Low_Scheme_Fail__d_n
lea rcx, [rsp + 0x70]
call fcn.140008860
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x70]
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x50], 7
repne scasw ax, word [rdi]
mov qword [rsp + 0x48], rsi
mov word [rsp + 0x38], si
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x38]
call fcn.140008390
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0x38]
mov r8d, eax
call fcn.140012d80
lea rax, [rsp + 0x30]
lea rdx, str.SYSTEMCurrentControlSetControlPowerUserDefaultPowerSchemesdb81ff77_a9c6_451c_95a6_824e6c4e0291
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140008e3a
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.SYSTEMCurrentControlSetControlPowerUserDefaultPowerSchemesdb81ff77_a9c6_451c_95a6_824e6c4e0291
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
test eax, eax
je 0x140008e3a
cmp qword [rbx + 8], rsi
je 0x140008e3a
lea rcx, [rsp + 0x72]
xor edx, edx
mov r8d, 0x7fe
mov word [rsp + 0x70], si
call fcn.140152380
lea rdx, str.Reg_Delete_Default_Low_Scheme_Fail__d_n
lea rcx, [rsp + 0x70]
call fcn.140008860
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x70]
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x50], 7
repne scasw ax, word [rdi]
mov qword [rsp + 0x48], rsi
mov word [rsp + 0x38], si
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x38]
call fcn.140008390
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0x38]
mov r8d, eax
call fcn.140012d80
mov rcx, qword [rbp + 0x770]
xor rcx, rsp
call fcn.14014e4d0
lea r11, [rsp + 0x880]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret