Function at 0x14007d918
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 [0x14017a048]
lea rbp, [0x14017a048]
cmp rcx, rbp
je 0x14007d960
test byte [rcx + 0x1c], 1
je 0x14007d960
cmp byte [rcx + 0x19], 4
jb 0x14007d960
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015cc68]
mov edx, 0xa
call fcn.140006b98
xor esi, esi
test rdi, rdi
jne 0x14007d97d
lea r8, str.pPerformanceSettings
lea edx, [rsi + 0x53]
lea rcx, str.base_stor_blbengine_serviceperformancemanager.cpp
call fcn.14008ac24
mov ecx, dword [rdi + 4]
mov ebx, esi
shl rcx, 3
mov r13, rsi
mov qword [rsp + 0x30], rsi
mov r15d, esi
mov qword [rsp + 0xa8], rsi
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov ecx, dword [rdi + 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 0x14007dfeb
test rax, rax
je 0x14007dfeb
mov r8d, dword [rdi + 4]
xor edx, edx
shl r8, 3
mov rcx, r14
call sub.msvcrt.dll_memset
mov r8d, dword [rdi + 4]
xor edx, edx
shl r8, 2
mov rcx, r12
call sub.msvcrt.dll_memset
mov rcx, qword [0x14017a048]
cmp rcx, rbp
je 0x14007da3b
test byte [rcx + 0x1c], 1
je 0x14007da3b
cmp byte [rcx + 0x19], 4
jb 0x14007da3b
mov eax, dword [rdi + 4]
lea r8, [0x14015cc68]
mov r9d, dword [rdi]
mov edx, 0xc
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x20], eax
call fcn.14003c7a4
lea rax, [rsp + 0x30]
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]
xor ecx, ecx
mov ebp, eax
test eax, eax
je 0x14007dabf
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
cmp rcx, rax
je 0x14007daa4
test byte [rcx + 0x1c], 1
je 0x14007daa4
cmp byte [rcx + 0x19], sil
jb 0x14007daa4
mov rcx, qword [rcx + 0x10]
lea edx, [rsi + 0xb]
lea r8, [0x14015cc68]
call fcn.140006b98
xor eax, eax
test ebp, ebp
jg 0x14007dab1
mov ebx, ebp
jmp 0x14007dc71
movzx ebx, bp
or ebx, 0x80070000
jmp 0x14007dc71
mov r14d, ecx
cmp dword [rdi + 4], ecx
jbe 0x14007dbc7
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 0x14007dd4a
mov rax, qword [rdi + 0x10]
mov ecx, dword [rax + rbp*4]
cmp ecx, 1
je 0x14007db1e
cmp ecx, esi
je 0x14007db1e
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.14008ac24
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 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 0x14007dd0c
mov r8, 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, 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.1400102c4
mov ebx, eax
test eax, eax
js 0x14007dc23
mov r12, qword [rsp + 0xa0]
inc r15d
add r15d, r13d
inc r14d
mov dword [r12 + rbp*4], r13d
cmp r14d, dword [rdi + 4]
jb 0x14007dacb
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 0x14007dd90
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
cmp rcx, rax
je 0x14007dc1c
test byte [rcx + 0x1c], 1
je 0x14007dc1c
cmp byte [rcx + 0x19], sil
jb 0x14007dc1c
mov rcx, qword [rcx + 0x10]
lea edx, [r13 + 0x11]
lea r8, [0x14015cc68]
call fcn.140006b98
mov ebx, 0x8007000e
jmp 0x14007dc5f
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
cmp rcx, rax
je 0x14007dc57
test byte [rcx + 0x1c], 1
je 0x14007dc57
cmp byte [rcx + 0x19], sil
jb 0x14007dc57
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015cc68]
mov edx, 0x10
call fcn.140006b98
mov r13, qword [rsp + 0xa8]
mov r12, qword [rsp + 0xa0]
mov r14, qword [rsp + 0x98]
xor eax, eax
mov ebp, eax
cmp dword [rdi + 4], eax
jbe 0x14007dc91
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 0x14007dc78
mov rcx, r14
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
lea rbp, [0x14017a048]
mov rcx, qword [rsp + 0x30]
xor r14d, r14d
test rcx, rcx
je 0x14007e03e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov edi, eax
test eax, eax
je 0x14007e039
mov rcx, qword [0x14017a048]
cmp rcx, rbp
je 0x14007dcfd
test byte [rcx + 0x1c], 1
je 0x14007dcfd
cmp byte [rcx + 0x19], sil
jb 0x14007dcfd
mov rcx, qword [rcx + 0x10]
lea edx, [r14 + 0x16]
mov r9d, eax
lea r8, [0x14015cc68]
call fcn.140006bc4
test edi, edi
jg 0x14007e030
mov ebx, edi
jmp 0x14007e039
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
cmp rcx, rax
je 0x14007dd40
test byte [rcx + 0x1c], 1
je 0x14007dd40
cmp byte [rcx + 0x19], sil
jb 0x14007dd40
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015cc68]
mov edx, 0xf
call fcn.140006b98
mov ebx, 0x8007000e
jmp 0x14007dc57
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
cmp rcx, rax
je 0x14007dd7e
test byte [rcx + 0x1c], 1
je 0x14007dd7e
cmp byte [rcx + 0x19], sil
jb 0x14007dd7e
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015cc68]
mov edx, 0xe
call fcn.140006b98
mov r13, qword [rsp + 0xa8]
mov ebx, 0x8007000e
jmp 0x14007dc67
mov r8, r12
xor edx, edx
mov rcx, r13
call sub.msvcrt.dll_memset
xor eax, eax
mov r14, r13
mov ebp, eax
cmp dword [rdi + 4], eax
jbe 0x14007de4b
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
cmp rcx, rax
je 0x14007de00
test byte [rcx + 0x1c], 1
je 0x14007de00
cmp byte [rcx + 0x19], 4
jb 0x14007de00
mov rax, qword [rsp + 0xa0]
lea r8, [0x14015cc68]
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.140011330
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.140038040
test eax, eax
js 0x14007defc
mov rax, qword [rsp + 0xa0]
inc ebp
mov eax, dword [rax + r11*4]
inc eax
lea r14, [r14 + rax*2]
cmp ebp, dword [rdi + 4]
jb 0x14007ddad
lea rax, [r13 - 2]
add rax, r12
cmp r14, rax
je 0x14007de6f
lea r8, str.wszTempCustomPerformanceSetting___wszCustomPerformanceSetting__dwcCustomPerformanceSetting__1_
mov edx, 0xbe
lea rcx, str.base_stor_blbengine_serviceperformancemanager.cpp
call fcn.14008ac24
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 0x14007df4f
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
cmp rcx, rax
je 0x14007dee1
test byte [rcx + 0x1c], 1
je 0x14007dee1
cmp byte [rcx + 0x19], sil
jb 0x14007dee1
lea edx, [r12 + 0x14]
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015cc68]
call fcn.140006b98
mov r12, qword [rsp + 0xa0]
mov r14, qword [rsp + 0x98]
test ebp, ebp
jg 0x14007df41
mov ebx, ebp
jmp 0x14007dc6f
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
cmp rcx, rax
je 0x14007dc5f
test byte [rcx + 0x1c], 1
je 0x14007dc5f
cmp byte [rcx + 0x19], sil
jb 0x14007dc5f
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015cc68]
mov edx, 0x13
call fcn.140006b98
jmp 0x14007dc5f
movzx ebx, bp
or ebx, 0x80070000
jmp 0x14007dc6f
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 + 0x30]
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 0x14007dfae
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.14008ac24
test ebp, ebp
je 0x14007dc5f
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
cmp rcx, rax
je 0x14007dee1
test byte [rcx + 0x1c], 1
je 0x14007dee1
cmp byte [rcx + 0x19], sil
jb 0x14007dee1
mov edx, 0x15
jmp 0x14007ded1
mov rcx, qword [0x14017a048]
mov esi, 2
cmp rcx, rbp
je 0x14007e01b
test byte [rcx + 0x1c], 1
je 0x14007e01b
cmp byte [rcx + 0x19], sil
jb 0x14007e01b
mov rcx, qword [rcx + 0x10]
lea edx, [rsi + 9]
lea r8, [0x14015cc68]
call fcn.140006b98
xor eax, eax
mov ebx, 0x8007000e
test r14, r14
je 0x14007dca7
jmp 0x14007dc71
movzx ebx, di
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 0x14007e090
mov rcx, qword [0x14017a048]
cmp rcx, rbp
je 0x14007e0bd
test byte [rcx + 0x1c], 1
je 0x14007e097
cmp byte [rcx + 0x19], sil
jb 0x14007e097
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015cc68]
mov edx, 0x17
mov r9d, ebx
call fcn.140006bc4
mov rcx, qword [0x14017a048]
cmp rcx, rbp
je 0x14007e0bd
test byte [rcx + 0x1c], 1
je 0x14007e0bd
cmp byte [rcx + 0x19], 4
jb 0x14007e0bd
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015cc68]
mov edx, 0x18
call fcn.140006b98
mov eax, ebx
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret