Function at 0x14007c52c
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x48
mov rsi, rcx
mov rcx, qword [0x14016a048]
lea rbp, [0x14016a048]
cmp rcx, rbp
je 0x14007c574
test byte [rcx + 0x1c], 1
je 0x14007c574
cmp byte [rcx + 0x19], 4
jb 0x14007c574
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014ceb8]
mov edx, 0xa
call fcn.14000c0e8
xor edi, edi
test rsi, rsi
jne 0x14007c591
lea r8, str.pPerformanceSettings
lea edx, [rdi + 0x53]
lea rcx, str.base_stor_blbengine_serviceperformancemanager.cpp
call fcn.140088f60
mov ecx, dword [rsi + 4]
mov ebx, edi
shl rcx, 3
mov r13, rdi
mov qword [rsp + 0x30], rdi
mov r15d, edi
mov qword [rsp + 0xa8], rdi
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov ecx, dword [rsi + 4]
mov r14, rax
shl rcx, 2
mov qword [rsp + 0x98], rax
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov qword [rsp + 0xa0], rax
mov r12, rax
test r14, r14
je 0x14007cbec
test rax, rax
je 0x14007cbec
mov r8d, dword [rsi + 4]
xor edx, edx
shl r8, 3
mov rcx, r14
call sub.msvcrt.dll_memset
mov r8d, dword [rsi + 4]
xor edx, edx
shl r8, 2
mov rcx, r12
call sub.msvcrt.dll_memset
mov rcx, qword [0x14016a048]
cmp rcx, rbp
je 0x14007c64f
test byte [rcx + 0x1c], 1
je 0x14007c64f
cmp byte [rcx + 0x19], 4
jb 0x14007c64f
mov eax, dword [rsi + 4]
lea r8, [0x14014ceb8]
mov r9d, dword [rsi]
mov edx, 0xc
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x20], eax
call fcn.14003f318
lea rax, [rsp + 0x30]
mov edi, 2
mov r9d, edi
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionWindows_Block_Level_Backup
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
xor ecx, ecx
mov ebp, eax
test eax, eax
je 0x14007c6d3
mov rcx, qword [0x14016a048]
lea rax, [0x14016a048]
cmp rcx, rax
je 0x14007c6b8
test byte [rcx + 0x1c], 1
je 0x14007c6b8
cmp byte [rcx + 0x19], dil
jb 0x14007c6b8
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0xb]
lea r8, [0x14014ceb8]
call fcn.14000c0e8
xor eax, eax
test ebp, ebp
jg 0x14007c6c5
mov ebx, ebp
jmp 0x14007c823
movzx ebx, bp
or ebx, 0x80070000
jmp 0x14007c823
mov r14d, ecx
cmp r14d, dword [rsi + 4]
jae 0x14007c942
mov ecx, r14d
lea rdx, [rsp + 0x38]
shl rcx, 4
add rcx, qword [rsi + 8]
mov ebp, r14d
call qword [sym.imp.RPCRT4.dll_UuidToStringW]
nop dword [rax + rax]
test eax, eax
jne 0x14007c8fc
mov rax, qword [rsi + 0x10]
mov ecx, dword [rax + rbp*4]
dec ecx
cmp ecx, 1
jbe 0x14007c72d
lea r8, str._pPerformanceSettings__m_rgePerformanceSettingType_i___BLB_PST_ALWAYS_FULL____pPerformanceSettings__m_rgePerformanceSettingType_i___BLB_PST_ALWAYS_INCREMENTAL_
mov edx, 0x85
lea rcx, str.base_stor_blbengine_serviceperformancemanager.cpp
call fcn.140088f60
mov rax, qword [rsi + 0x10]
lea rcx, str._s__u
mov rdx, qword [rsp + 0x38]
mov r8d, dword [rax + rbp*4]
call qword [sym.imp.msvcrt.dll__scwprintf]
nop dword [rax + rax]
mov r13d, eax
inc eax
movsxd rbx, eax
lea r12, [rbx + rbx]
mov rcx, r12
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x98]
mov qword [rcx + rbp*8], rax
test rax, rax
je 0x14007c8be
mov r8, r12
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov rax, qword [rsi + 0x10]
lea r8, str._s__u
mov r9, qword [rsp + 0x38]
mov rdx, rbx
mov ecx, dword [rax + rbp*4]
mov rax, qword [rsp + 0x98]
mov dword [rsp + 0x20], ecx
mov rcx, qword [rax + rbp*8]
call fcn.1400141e0
mov ebx, eax
test eax, eax
js 0x14007c7d5
mov r12, qword [rsp + 0xa0]
inc r15d
add r15d, r13d
inc r14d
mov dword [r12 + rbp*4], r13d
jmp 0x14007c6d6
mov rcx, qword [0x14016a048]
lea rax, [0x14016a048]
cmp rcx, rax
je 0x14007c809
test byte [rcx + 0x1c], 1
je 0x14007c809
cmp byte [rcx + 0x19], dil
jb 0x14007c809
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014ceb8]
mov edx, 0x10
call fcn.14000c0e8
mov r13, qword [rsp + 0xa8]
mov r12, qword [rsp + 0xa0]
mov r14, qword [rsp + 0x98]
xor eax, eax
mov ebp, eax
cmp dword [rsi + 4], eax
jbe 0x14007c843
mov ecx, ebp
mov rcx, qword [r14 + rcx*8]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
inc ebp
cmp ebp, dword [rsi + 4]
jb 0x14007c82a
mov rcx, r14
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
lea rbp, [0x14016a048]
mov rcx, qword [rsp + 0x30]
xor r14d, r14d
test rcx, rcx
je 0x14007cc3f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov esi, eax
test eax, eax
je 0x14007cc3a
mov rcx, qword [0x14016a048]
cmp rcx, rbp
je 0x14007c8af
test byte [rcx + 0x1c], 1
je 0x14007c8af
cmp byte [rcx + 0x19], dil
jb 0x14007c8af
mov rcx, qword [rcx + 0x10]
lea edx, [r14 + 0x16]
mov r9d, eax
lea r8, [0x14014ceb8]
call fcn.14000c114
test esi, esi
jg 0x14007cc31
mov ebx, esi
jmp 0x14007cc3a
mov rcx, qword [0x14016a048]
lea rax, [0x14016a048]
cmp rcx, rax
je 0x14007c8f2
test byte [rcx + 0x1c], 1
je 0x14007c8f2
cmp byte [rcx + 0x19], dil
jb 0x14007c8f2
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014ceb8]
mov edx, 0xf
call fcn.14000c0e8
mov ebx, 0x8007000e
jmp 0x14007c809
mov rcx, qword [0x14016a048]
lea rax, [0x14016a048]
cmp rcx, rax
je 0x14007c930
test byte [rcx + 0x1c], 1
je 0x14007c930
cmp byte [rcx + 0x19], dil
jb 0x14007c930
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014ceb8]
mov edx, 0xe
call fcn.14000c0e8
mov r13, qword [rsp + 0xa8]
mov ebx, 0x8007000e
jmp 0x14007c819
inc r15d
lea r12, [r15 + r15]
mov rcx, r12
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov r13, rax
test rax, rax
jne 0x14007c99d
mov rcx, qword [0x14016a048]
lea rax, [0x14016a048]
cmp rcx, rax
je 0x14007c993
test byte [rcx + 0x1c], 1
je 0x14007c993
cmp byte [rcx + 0x19], dil
jb 0x14007c993
mov rcx, qword [rcx + 0x10]
lea edx, [r13 + 0x11]
lea r8, [0x14014ceb8]
call fcn.14000c0e8
mov ebx, 0x8007000e
jmp 0x14007c811
mov r8, r12
xor edx, edx
mov rcx, r13
call sub.msvcrt.dll_memset
xor eax, eax
mov r14, r13
mov ebp, eax
cmp ebp, dword [rsi + 4]
jae 0x14007ca95
mov rcx, qword [0x14016a048]
lea rax, [0x14016a048]
cmp rcx, rax
je 0x14007ca0d
test byte [rcx + 0x1c], 1
je 0x14007ca0d
cmp byte [rcx + 0x19], 4
jb 0x14007ca0d
mov rax, qword [rsp + 0xa0]
lea r8, [0x14014ceb8]
mov rcx, qword [rcx + 0x10]
mov edx, 0x12
mov r9d, ebp
mov eax, dword [rax + r9*4]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x98]
mov r9, qword [rax + r9*8]
call fcn.140014f78
mov rax, qword [rsp + 0xa0]
mov rcx, r14
mov r11d, ebp
mov edx, dword [rax + r11*4]
mov rax, qword [rsp + 0x98]
inc rdx
mov r8, qword [rax + r11*8]
call fcn.140006300
test eax, eax
js 0x14007ca50
mov rax, qword [rsp + 0xa0]
mov eax, dword [rax + r11*4]
inc eax
inc ebp
lea r14, [r14 + rax*2]
jmp 0x14007c9b1
mov rcx, qword [0x14016a048]
lea rax, [0x14016a048]
cmp rcx, rax
je 0x14007c811
test byte [rcx + 0x1c], 1
je 0x14007c811
cmp byte [rcx + 0x19], dil
jb 0x14007c811
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014ceb8]
mov edx, 0x13
call fcn.14000c0e8
jmp 0x14007c811
lea rax, [r13 - 2]
add rax, r12
cmp r14, rax
je 0x14007cab9
lea r8, str.wszTempCustomPerformanceSetting___wszCustomPerformanceSetting__dwcCustomPerformanceSetting__1_
mov edx, 0xbe
lea rcx, str.base_stor_blbengine_serviceperformancemanager.cpp
call fcn.140088f60
xor r12d, r12d
lea eax, [r15 + r15]
mov word [r14], r12w
lea rdx, str.CustomPerformanceSettings
mov rcx, qword [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x28], eax
lea r9d, [r12 + 7]
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov ebp, eax
test eax, eax
je 0x14007cb50
mov rcx, qword [0x14016a048]
lea rax, [0x14016a048]
cmp rcx, rax
je 0x14007cb27
test byte [rcx + 0x1c], 1
je 0x14007cb27
cmp byte [rcx + 0x19], dil
jb 0x14007cb27
lea edx, [r12 + 0x14]
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014ceb8]
call fcn.14000c0e8
mov r12, qword [rsp + 0xa0]
mov r14, qword [rsp + 0x98]
test ebp, ebp
jg 0x14007cb42
mov ebx, ebp
jmp 0x14007c821
movzx ebx, bp
or ebx, 0x80070000
jmp 0x14007c821
mov eax, dword [rsi]
lea rdx, str.OverallPerformanceSetting
mov ecx, 4
mov dword [rsp + 0x90], eax
mov dword [rsp + 0x28], ecx
lea rax, [rsp + 0x90]
mov r9d, ecx
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x30]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov edx, dword [rsi]
mov ebp, eax
dec edx
cmp edx, edi
jbe 0x14007cbaf
lea r8, str._pPerformanceSettings__m_eOverallPerformanceSettingType__BLB_PST_ALWAYS_FULL____pPerformanceSettings__m_eOverallPerformanceSettingType__BLB_PST_ALWAYS_INCREMENTAL____pPerformanceSettings__m_eOverallPerformanceSettingType__BLB_PST_CUSTOM_
mov edx, 0xde
lea rcx, str.base_stor_blbengine_serviceperformancemanager.cpp
call fcn.140088f60
test ebp, ebp
je 0x14007c811
mov rcx, qword [0x14016a048]
lea rax, [0x14016a048]
cmp rcx, rax
je 0x14007cb27
test byte [rcx + 0x1c], 1
je 0x14007cb27
cmp byte [rcx + 0x19], dil
jb 0x14007cb27
mov edx, 0x15
jmp 0x14007cb17
mov rcx, qword [0x14016a048]
mov edi, 2
cmp rcx, rbp
je 0x14007cc1c
test byte [rcx + 0x1c], 1
je 0x14007cc1c
cmp byte [rcx + 0x19], dil
jb 0x14007cc1c
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 9]
lea r8, [0x14014ceb8]
call fcn.14000c0e8
xor eax, eax
mov ebx, 0x8007000e
test r14, r14
je 0x14007c859
jmp 0x14007c823
movzx ebx, si
or ebx, 0x80070000
mov qword [rsp + 0x30], r14
mov rcx, r12
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, r13
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
test ebx, ebx
jns 0x14007cc91
mov rcx, qword [0x14016a048]
cmp rcx, rbp
je 0x14007ccbe
test byte [rcx + 0x1c], 1
je 0x14007cc98
cmp byte [rcx + 0x19], dil
jb 0x14007cc98
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014ceb8]
mov edx, 0x17
mov r9d, ebx
call fcn.14000c114
mov rcx, qword [0x14016a048]
cmp rcx, rbp
je 0x14007ccbe
test byte [rcx + 0x1c], 1
je 0x14007ccbe
cmp byte [rcx + 0x19], 4
jb 0x14007ccbe
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014ceb8]
mov edx, 0x18
call fcn.14000c0e8
mov eax, ebx
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret