Function at 0x14007a124
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 rdi, rcx
mov rcx, qword [0x14017b048]
lea rbp, [0x14017b048]
cmp rcx, rbp
je 0x14007a16c
test byte [rcx + 0x1c], 1
je 0x14007a16c
cmp byte [rcx + 0x19], 4
jb 0x14007a16c
mov rcx, qword [rcx + 0x10]
lea r8, [0x140158b18]
mov edx, 0xa
call fcn.140004c10
xor r14d, r14d
test rdi, rdi
jne 0x14007a18a
lea r8, str.pPerformanceSettings
lea edx, [rdi + 0x53]
lea rcx, str.base_stor_blbengine_serviceperformancemanager.cpp
call fcn.140087b08
mov ecx, dword [rdi + 4]
mov ebx, r14d
shl rcx, 3
mov r12, r14
mov qword [rsp + 0xa8], r14
mov r15d, r14d
mov qword [rsp + 0x98], r14
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov ecx, dword [rdi + 4]
mov r13, rax
shl rcx, 2
mov qword [rsp + 0xa0], rax
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov qword [rsp + 0x30], rax
mov rsi, rax
test r13, r13
je 0x14007a718
test rax, rax
je 0x14007a718
mov r8d, dword [rdi + 4]
xor edx, edx
shl r8, 3
mov rcx, r13
call sub.msvcrt.dll_memset
mov r8d, dword [rdi + 4]
xor edx, edx
shl r8, 2
mov rcx, rsi
call sub.msvcrt.dll_memset
mov rcx, qword [0x14017b048]
cmp rcx, rbp
je 0x14007a249
test byte [rcx + 0x1c], 1
je 0x14007a249
cmp byte [rcx + 0x19], 4
jb 0x14007a249
mov eax, dword [rdi + 4]
lea r8, [0x140158b18]
mov r9d, dword [rdi]
mov edx, 0xc
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x20], eax
call fcn.140010290
lea rax, [rsp + 0xa8]
mov esi, 2
mov r9d, esi
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]
mov ebp, eax
test eax, eax
je 0x14007a2c6
mov rcx, qword [0x14017b048]
lea r15, [0x14017b048]
cmp rcx, r15
je 0x14007a2b3
test byte [rcx + 0x1c], 1
je 0x14007a2b3
cmp byte [rcx + 0x19], sil
jb 0x14007a2b3
lea edx, [rsi + 0xb]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140158b18]
call fcn.140004c10
movzx ebx, bp
or ebx, 0x80070000
test ebp, ebp
cmovle ebx, ebp
jmp 0x14007a754
cmp dword [rdi + 4], r12d
jbe 0x14007a3ce
mov ecx, r14d
lea rdx, [rsp + 0x38]
shl rcx, 4
add rcx, qword [rdi + 8]
mov ebp, r14d
call qword [sym.imp.RPCRT4.dll_UuidToStringW]
nop dword [rax + rax]
test eax, eax
jne 0x14007a496
mov rax, qword [rdi + 0x10]
mov ecx, dword [rax + rbp*4]
cmp ecx, 1
je 0x14007a323
cmp ecx, esi
je 0x14007a323
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.140087b08
mov rax, qword [rdi + 0x10]
mov r8d, dword [rax + rbp*4]
lea rcx, str._s__u
mov rdx, qword [rsp + 0x38]
call qword [sym.imp.msvcrt.dll__scwprintf]
nop dword [rax + rax]
mov r13d, eax
inc eax
movsxd r12, eax
lea rcx, [r12 + r12]
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov rbx, qword [rsp + 0xa0]
mov qword [rbx + rbp*8], rax
test rax, rax
je 0x14007a470
lea r8, [r12 + r12]
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov rax, qword [rdi + 0x10]
lea r8, str._s__u
mov r9, qword [rsp + 0x38]
mov rdx, r12
mov ecx, dword [rax + rbp*4]
mov dword [rsp + 0x20], ecx
mov rcx, qword [rbx + rbp*8]
call fcn.140010188
xor r12d, r12d
mov ebx, eax
test eax, eax
js 0x14007a437
mov rax, qword [rsp + 0x30]
inc r15d
add r15d, r13d
inc r14d
mov dword [rax + rbp*4], r13d
cmp r14d, dword [rdi + 4]
jb 0x14007a2d0
mov r13, qword [rsp + 0xa0]
inc r15d
lea r12, [r15 + r15]
mov rcx, r12
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov qword [rsp + 0x98], rax
mov rbp, rax
test rax, rax
jne 0x14007a4dc
mov rcx, qword [0x14017b048]
lea r15, [0x14017b048]
cmp rcx, r15
je 0x14007a42a
test byte [rcx + 0x1c], 1
je 0x14007a42a
cmp byte [rcx + 0x19], sil
jb 0x14007a42a
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x11]
lea r8, [0x140158b18]
call fcn.140004c10
mov ebx, 0x8007000e
mov r12, rbp
jmp 0x14007a754
mov rcx, qword [0x14017b048]
lea r15, [0x14017b048]
cmp rcx, r15
je 0x14007a46b
test byte [rcx + 0x1c], 1
je 0x14007a46b
cmp byte [rcx + 0x19], sil
jb 0x14007a46b
mov rcx, qword [rcx + 0x10]
lea r8, [0x140158b18]
mov edx, 0x10
call fcn.140004c10
jmp 0x14007a754
mov rcx, qword [0x14017b048]
lea r15, [0x14017b048]
cmp rcx, r15
je 0x14007a4ca
test byte [rcx + 0x1c], 1
je 0x14007a4ca
cmp byte [rcx + 0x19], sil
jb 0x14007a4ca
mov edx, 0xf
jmp 0x14007a4ba
mov rcx, qword [0x14017b048]
lea r15, [0x14017b048]
cmp rcx, r15
je 0x14007a4ca
test byte [rcx + 0x1c], 1
je 0x14007a4ca
cmp byte [rcx + 0x19], sil
jb 0x14007a4ca
mov edx, 0xe
mov rcx, qword [rcx + 0x10]
lea r8, [0x140158b18]
call fcn.140004c10
mov ebx, 0x8007000e
mov r12, qword [rsp + 0x98]
jmp 0x14007a754
mov r8, r12
xor edx, edx
mov rcx, rbp
call sub.msvcrt.dll_memset
xor eax, eax
mov r14, rbp
mov ebp, eax
cmp dword [rdi + 4], eax
ja 0x14007a5a9
mov rax, qword [rsp + 0x98]
add rax, 0xfffffffffffffffe
add rax, r12
cmp r14, rax
je 0x14007a525
lea r8, str.wszTempCustomPerformanceSetting___wszCustomPerformanceSetting__dwcCustomPerformanceSetting__1_
mov edx, 0xbe
lea rcx, str.base_stor_blbengine_serviceperformancemanager.cpp
call fcn.140087b08
mov r12, qword [rsp + 0x98]
lea eax, [r15 + r15]
xor r13d, r13d
mov dword [rsp + 0x28], eax
mov word [r14], r13w
lea rdx, str.CustomPerformanceSettings
mov rcx, qword [rsp + 0xa8]
xor r8d, r8d
mov qword [rsp + 0x20], r12
lea r9d, [r13 + 7]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov ebp, eax
test eax, eax
je 0x14007a67d
mov rcx, qword [0x14017b048]
lea r15, [0x14017b048]
cmp rcx, r15
je 0x14007a2b3
test byte [rcx + 0x1c], 1
je 0x14007a2b3
cmp byte [rcx + 0x19], sil
jb 0x14007a2b3
lea edx, [r13 + 0x14]
jmp 0x14007a2a3
mov r13, qword [rsp + 0xa0]
mov rcx, qword [0x14017b048]
lea rax, [0x14017b048]
cmp rcx, rax
je 0x14007a5f2
test byte [rcx + 0x1c], 1
je 0x14007a5f2
cmp byte [rcx + 0x19], 4
jb 0x14007a5f2
mov rax, qword [rsp + 0x30]
lea r8, [0x140158b18]
mov rcx, qword [rcx + 0x10]
mov edx, 0x12
mov r9d, ebp
mov eax, dword [rax + r9*4]
mov r9, qword [r13 + r9*8]
mov dword [rsp + 0x20], eax
call fcn.140005d40
mov rax, qword [rsp + 0x30]
mov rcx, r14
mov r8, qword [rsp + 0xa0]
mov r13d, ebp
mov edx, dword [rax + r13*4]
mov r8, qword [r8 + r13*8]
inc rdx
call fcn.14003bd58
test eax, eax
js 0x14007a638
mov rax, qword [rsp + 0x30]
inc ebp
mov eax, dword [rax + r13*4]
inc eax
lea r14, [r14 + rax*2]
cmp ebp, dword [rdi + 4]
jb 0x14007a5a1
jmp 0x14007a4f9
mov rcx, qword [0x14017b048]
lea r15, [0x14017b048]
cmp rcx, r15
je 0x14007a4cf
test byte [rcx + 0x1c], 1
je 0x14007a4cf
cmp byte [rcx + 0x19], sil
jb 0x14007a4cf
mov rcx, qword [rcx + 0x10]
lea r8, [0x140158b18]
mov edx, 0x13
call fcn.140004c10
jmp 0x14007a4cf
mov eax, dword [rdi]
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 + 0xa8]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov edx, dword [rdi]
mov ebp, eax
dec edx
cmp edx, esi
jbe 0x14007a6df
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.140087b08
test ebp, ebp
je 0x14007a74d
mov rcx, qword [0x14017b048]
lea r15, [0x14017b048]
cmp rcx, r15
je 0x14007a2b3
test byte [rcx + 0x1c], 1
je 0x14007a2b3
cmp byte [rcx + 0x19], sil
jb 0x14007a2b3
mov edx, 0x15
jmp 0x14007a2a3
mov rcx, qword [0x14017b048]
mov esi, 2
cmp rcx, rbp
je 0x14007a748
test byte [rcx + 0x1c], 1
je 0x14007a748
cmp byte [rcx + 0x19], sil
jb 0x14007a748
mov rcx, qword [rcx + 0x10]
lea edx, [rsi + 9]
lea r8, [0x140158b18]
call fcn.140004c10
mov ebx, 0x8007000e
lea r15, [0x14017b048]
mov r14, qword [rsp + 0xa0]
xor ebp, ebp
test r14, r14
je 0x14007a794
xor eax, eax
cmp dword [rdi + 4], eax
jbe 0x14007a783
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 [rdi + 4]
jb 0x14007a76a
mov rcx, r14
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
xor ebp, ebp
mov rcx, qword [rsp + 0xa8]
test rcx, rcx
je 0x14007a7f9
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov edi, eax
test eax, eax
je 0x14007a7f1
mov rcx, qword [0x14017b048]
cmp rcx, r15
je 0x14007a7e3
test byte [rcx + 0x1c], 1
je 0x14007a7e3
cmp byte [rcx + 0x19], sil
jb 0x14007a7e3
mov rcx, qword [rcx + 0x10]
lea r8, [0x140158b18]
mov edx, 0x16
mov r9d, eax
call fcn.140004c3c
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
mov qword [rsp + 0xa8], rbp
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, r12
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
test ebx, ebx
jns 0x14007a84d
mov rcx, qword [0x14017b048]
cmp rcx, r15
je 0x14007a87a
test byte [rcx + 0x1c], 1
je 0x14007a854
cmp byte [rcx + 0x19], sil
jb 0x14007a854
mov rcx, qword [rcx + 0x10]
lea r8, [0x140158b18]
mov edx, 0x17
mov r9d, ebx
call fcn.140004c3c
mov rcx, qword [0x14017b048]
cmp rcx, r15
je 0x14007a87a
test byte [rcx + 0x1c], 1
je 0x14007a87a
cmp byte [rcx + 0x19], 4
jb 0x14007a87a
mov rcx, qword [rcx + 0x10]
lea r8, [0x140158b18]
mov edx, 0x18
call fcn.140004c10
mov eax, ebx
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret