Function at 0x140083cac
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 [0x140173048]
lea rbp, [0x140173048]
cmp rcx, rbp
je 0x140083cf4
test byte [rcx + 0x1c], 1
je 0x140083cf4
cmp byte [rcx + 0x19], 4
jb 0x140083cf4
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155558]
mov edx, 0xa
call fcn.14000c328
xor edi, edi
test rsi, rsi
jne 0x140083d11
lea r8, str.pPerformanceSettings
lea edx, [rdi + 0x53]
lea rcx, str.base_stor_blbengine_serviceperformancemanager.cpp
call fcn.1400906e0
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 0x14008436c
test rax, rax
je 0x14008436c
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 [0x140173048]
cmp rcx, rbp
je 0x140083dcf
test byte [rcx + 0x1c], 1
je 0x140083dcf
cmp byte [rcx + 0x19], 4
jb 0x140083dcf
mov eax, dword [rsi + 4]
lea r8, [0x140155558]
mov r9d, dword [rsi]
mov edx, 0xc
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x20], eax
call fcn.14003f558
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 0x140083e53
mov rcx, qword [0x140173048]
lea rax, [0x140173048]
cmp rcx, rax
je 0x140083e38
test byte [rcx + 0x1c], 1
je 0x140083e38
cmp byte [rcx + 0x19], dil
jb 0x140083e38
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0xb]
lea r8, [0x140155558]
call fcn.14000c328
xor eax, eax
test ebp, ebp
jg 0x140083e45
mov ebx, ebp
jmp 0x140083fa3
movzx ebx, bp
or ebx, 0x80070000
jmp 0x140083fa3
mov r14d, ecx
cmp r14d, dword [rsi + 4]
jae 0x1400840c2
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 0x14008407c
mov rax, qword [rsi + 0x10]
mov ecx, dword [rax + rbp*4]
dec ecx
cmp ecx, 1
jbe 0x140083ead
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.1400906e0
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 0x14008403e
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.140014420
mov ebx, eax
test eax, eax
js 0x140083f55
mov r12, qword [rsp + 0xa0]
inc r15d
add r15d, r13d
inc r14d
mov dword [r12 + rbp*4], r13d
jmp 0x140083e56
mov rcx, qword [0x140173048]
lea rax, [0x140173048]
cmp rcx, rax
je 0x140083f89
test byte [rcx + 0x1c], 1
je 0x140083f89
cmp byte [rcx + 0x19], dil
jb 0x140083f89
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155558]
mov edx, 0x10
call fcn.14000c328
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 0x140083fc3
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 0x140083faa
mov rcx, r14
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
lea rbp, [0x140173048]
mov rcx, qword [rsp + 0x30]
xor r14d, r14d
test rcx, rcx
je 0x1400843bf
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov esi, eax
test eax, eax
je 0x1400843ba
mov rcx, qword [0x140173048]
cmp rcx, rbp
je 0x14008402f
test byte [rcx + 0x1c], 1
je 0x14008402f
cmp byte [rcx + 0x19], dil
jb 0x14008402f
mov rcx, qword [rcx + 0x10]
lea edx, [r14 + 0x16]
mov r9d, eax
lea r8, [0x140155558]
call fcn.14000c354
test esi, esi
jg 0x1400843b1
mov ebx, esi
jmp 0x1400843ba
mov rcx, qword [0x140173048]
lea rax, [0x140173048]
cmp rcx, rax
je 0x140084072
test byte [rcx + 0x1c], 1
je 0x140084072
cmp byte [rcx + 0x19], dil
jb 0x140084072
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155558]
mov edx, 0xf
call fcn.14000c328
mov ebx, 0x8007000e
jmp 0x140083f89
mov rcx, qword [0x140173048]
lea rax, [0x140173048]
cmp rcx, rax
je 0x1400840b0
test byte [rcx + 0x1c], 1
je 0x1400840b0
cmp byte [rcx + 0x19], dil
jb 0x1400840b0
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155558]
mov edx, 0xe
call fcn.14000c328
mov r13, qword [rsp + 0xa8]
mov ebx, 0x8007000e
jmp 0x140083f99
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 0x14008411d
mov rcx, qword [0x140173048]
lea rax, [0x140173048]
cmp rcx, rax
je 0x140084113
test byte [rcx + 0x1c], 1
je 0x140084113
cmp byte [rcx + 0x19], dil
jb 0x140084113
mov rcx, qword [rcx + 0x10]
lea edx, [r13 + 0x11]
lea r8, [0x140155558]
call fcn.14000c328
mov ebx, 0x8007000e
jmp 0x140083f91
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 0x140084215
mov rcx, qword [0x140173048]
lea rax, [0x140173048]
cmp rcx, rax
je 0x14008418d
test byte [rcx + 0x1c], 1
je 0x14008418d
cmp byte [rcx + 0x19], 4
jb 0x14008418d
mov rax, qword [rsp + 0xa0]
lea r8, [0x140155558]
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.1400151b8
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.140006530
test eax, eax
js 0x1400841d0
mov rax, qword [rsp + 0xa0]
mov eax, dword [rax + r11*4]
inc eax
inc ebp
lea r14, [r14 + rax*2]
jmp 0x140084131
mov rcx, qword [0x140173048]
lea rax, [0x140173048]
cmp rcx, rax
je 0x140083f91
test byte [rcx + 0x1c], 1
je 0x140083f91
cmp byte [rcx + 0x19], dil
jb 0x140083f91
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155558]
mov edx, 0x13
call fcn.14000c328
jmp 0x140083f91
lea rax, [r13 - 2]
add rax, r12
cmp r14, rax
je 0x140084239
lea r8, str.wszTempCustomPerformanceSetting___wszCustomPerformanceSetting__dwcCustomPerformanceSetting__1_
mov edx, 0xbe
lea rcx, str.base_stor_blbengine_serviceperformancemanager.cpp
call fcn.1400906e0
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 0x1400842d0
mov rcx, qword [0x140173048]
lea rax, [0x140173048]
cmp rcx, rax
je 0x1400842a7
test byte [rcx + 0x1c], 1
je 0x1400842a7
cmp byte [rcx + 0x19], dil
jb 0x1400842a7
lea edx, [r12 + 0x14]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155558]
call fcn.14000c328
mov r12, qword [rsp + 0xa0]
mov r14, qword [rsp + 0x98]
test ebp, ebp
jg 0x1400842c2
mov ebx, ebp
jmp 0x140083fa1
movzx ebx, bp
or ebx, 0x80070000
jmp 0x140083fa1
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 0x14008432f
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.1400906e0
test ebp, ebp
je 0x140083f91
mov rcx, qword [0x140173048]
lea rax, [0x140173048]
cmp rcx, rax
je 0x1400842a7
test byte [rcx + 0x1c], 1
je 0x1400842a7
cmp byte [rcx + 0x19], dil
jb 0x1400842a7
mov edx, 0x15
jmp 0x140084297
mov rcx, qword [0x140173048]
mov edi, 2
cmp rcx, rbp
je 0x14008439c
test byte [rcx + 0x1c], 1
je 0x14008439c
cmp byte [rcx + 0x19], dil
jb 0x14008439c
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 9]
lea r8, [0x140155558]
call fcn.14000c328
xor eax, eax
mov ebx, 0x8007000e
test r14, r14
je 0x140083fd9
jmp 0x140083fa3
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 0x140084411
mov rcx, qword [0x140173048]
cmp rcx, rbp
je 0x14008443e
test byte [rcx + 0x1c], 1
je 0x140084418
cmp byte [rcx + 0x19], dil
jb 0x140084418
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155558]
mov edx, 0x17
mov r9d, ebx
call fcn.14000c354
mov rcx, qword [0x140173048]
cmp rcx, rbp
je 0x14008443e
test byte [rcx + 0x1c], 1
je 0x14008443e
cmp byte [rcx + 0x19], 4
jb 0x14008443e
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155558]
mov edx, 0x18
call fcn.14000c328
mov eax, ebx
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret