Function at 0x1400e04a0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x100
mov rax, qword [0x1403486d0]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r13, rdx
mov r15, rcx
xorps xmm0, xmm0
movups xmmword [rbp - 0x71], xmm0
xor esi, esi
mov qword [rbp - 0x71], rsi
mov dword [rbp - 0x69], esi
mov qword [rbp - 0x61], rsi
mov r9d, 0x2001f
mov r8, qword [str.SoftwareApple_Inc.Internet_ServicesiCloud_PhotosSettings]
mov rdx, 0xffffffff80000001
lea rcx, [rbp - 0x71]
call fcn.140054a30
mov ebx, eax
test eax, eax
je 0x1400e0613
call fcn.1400c1f80
cmp dword [rax + 0x78], 4
jl 0x1400e0608
call fcn.1400c1f80
mov rdi, rax
mov qword [rbp - 0x59], rsi
movdqa xmm0, xmmword [0x140272430]
movdqu xmmword [rbp - 0x49], xmm0
mov word [rbp - 0x59], si
mov r8b, 1
mov edx, ebx
lea rcx, [rbp - 0x39]
call fcn.140078e10
mov rdx, rax
lea rcx, [rbp - 0x59]
call fcn.140059ac0
mov rdx, qword [rbp - 0x21]
cmp rdx, 8
jb 0x1400e059c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400e0597
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400e0597
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e6a28
mov qword [rbp - 0x29], rsi
mov qword [rbp - 0x21], 7
mov word [rbp - 0x39], si
lea rax, [rbp - 0x59]
cmp qword [rbp - 0x41], 8
cmovae rax, qword [rbp - 0x59]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], ebx
mov rax, qword [str.SoftwareApple_Inc.Internet_ServicesiCloud_PhotosSettings]
mov qword [rsp + 0x30], rax
lea rax, str.Failed_to_open_registry_key__READ__WRITE_:_HKCU_S__error:___d___S_
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x225
lea r9, str.D:BWA6FBB69CA_F410_0iCloudCommon_131_srcrootQuarkQuarkSettings.cpp
lea r8, str.QuarkSettings::SaveSettings
mov edx, 4
mov rcx, rdi
call fcn.1400c23b0
nop
lea rcx, [rbp - 0x59]
call fcn.140052120
xor bl, bl
mov rsi, qword [rbp - 0x71]
jmp 0x1400e0b81
mov rbx, qword [0x140348630]
movzx eax, byte [r13]
mov dword [rbp - 0x19], eax
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [rbp - 0x71]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r9, rbx
mov r8b, 1
mov edx, eax
mov rcx, r15
call fcn.1400e1330
movzx r12d, al
mov qword [rbp + 0xf], rsi
mov qword [rbp + 0x1f], rsi
mov qword [rbp + 0x27], 7
mov word [rbp + 0xf], si
lea r8, [rbp + 0xf]
mov rdx, qword [str._0_]
lea rcx, [rbp - 0x71]
call fcn.1400dfad0
mov rsi, qword [str._0_]
lea rdi, [r13 + 8]
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x1400e069d
mov rcx, qword [rdi]
mov rbx, 0xffffffffffffffff
lea r14d, [rbx + 0xe]
test rcx, rcx
jne 0x1400e06b2
mov eax, r14d
jmp 0x1400e06e6
mov rax, rbx
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x1400e06b5
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rbp - 0x71]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r9, rsi
movzx r8d, r12b
mov edx, eax
mov rcx, r15
call fcn.1400e1330
mov byte [rbp - 0x79], al
lea rsi, str.Updated__s_to__s__was__s_
test al, al
je 0x1400e077e
mov rdx, rdi
lea rcx, [rbp + 0xf]
call fcn.1400df8f0
test al, al
jne 0x1400e077e
call fcn.1400c1f80
cmp dword [rax + 0x78], 6
jl 0x1400e077e
call fcn.1400c1f80
mov r10, rax
lea rcx, [rbp + 0xf]
cmp qword [rbp + 0x27], 8
cmovae rcx, qword [rbp + 0xf]
cmp qword [rdi + 0x18], 8
jb 0x1400e0740
mov rdi, qword [rdi]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rdi
mov rax, qword [str._0_]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], 0x232
lea r9, str.D:BWA6FBB69CA_F410_0iCloudCommon_131_srcrootQuarkQuarkSettings.cpp
lea r8, str.QuarkSettings::SaveSettings
mov edx, 6
mov rcx, r10
call fcn.1400c2500
xor eax, eax
mov qword [rbp - 0x11], rax
mov qword [rbp - 1], rax
mov qword [rbp + 7], 7
mov word [rbp - 0x11], ax
lea r8, [rbp - 0x11]
mov rdx, qword [str.SharingPath]
lea rcx, [rbp - 0x71]
call fcn.1400dfad0
mov r12, qword [str.SharingPath]
lea rdi, [r13 + 0x28]
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x1400e07c0
mov rcx, qword [rdi]
mov rsi, qword [rbp - 0x71]
test rcx, rcx
je 0x1400e0803
nop dword [rax]
lea rbx, [rbx + 1]
cmp word [rcx + rbx*2], 0
jne 0x1400e07d0
lea eax, [rbx*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r14d, eax
mov r9, r12
movzx r8d, byte [rbp - 0x79]
mov edx, r14d
mov rcx, r15
call fcn.1400e1330
movzx r14d, al
test al, al
je 0x1400e08a2
mov rdx, rdi
lea rcx, [rbp - 0x11]
call fcn.1400df8f0
test al, al
jne 0x1400e08a2
call fcn.1400c1f80
cmp dword [rax + 0x78], 6
jl 0x1400e08a2
call fcn.1400c1f80
mov r10, rax
lea rcx, [rbp - 0x11]
cmp qword [rbp + 7], 8
cmovae rcx, qword [rbp - 0x11]
cmp qword [rdi + 0x18], 8
jb 0x1400e085d
mov rdi, qword [rdi]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rdi
mov rax, qword [str.SharingPath]
mov qword [rsp + 0x30], rax
lea rax, str.Updated__s_to__s__was__s_
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x23a
lea r9, str.D:BWA6FBB69CA_F410_0iCloudCommon_131_srcrootQuarkQuarkSettings.cpp
lea r8, str.QuarkSettings::SaveSettings
mov edx, 6
mov rcx, r10
call fcn.1400c2500
mov rbx, qword [str.RampState]
mov eax, dword [r13 + 0x48]
mov dword [rbp - 0x19], eax
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r9, rbx
movzx r8d, r14b
mov edx, eax
mov rcx, r15
call fcn.1400e1330
movzx edi, al
mov rbx, qword [str.ExitState]
lea rcx, [r13 + 0x50]
mov dword [rsp + 0x28], 8
mov qword [rsp + 0x20], rcx
mov r9d, 3
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r9, rbx
movzx r8d, dil
mov edx, eax
mov rcx, r15
call fcn.1400e1330
movzx edi, al
mov rbx, qword [str._1_]
movzx ecx, byte [r13 + 0x58]
mov dword [rbp - 0x19], ecx
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r9, rbx
movzx r8d, dil
mov edx, eax
mov rcx, r15
call fcn.1400e1330
movzx edi, al
mov rbx, qword [str.OverQuota]
movzx ecx, byte [r13 + 0x59]
mov dword [rbp - 0x19], ecx
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r9, rbx
movzx r8d, dil
mov edx, eax
mov rcx, r15
call fcn.1400e1330
movzx edi, al
mov rbx, qword [str.H1_]
movzx ecx, byte [r13 + 0x5a]
mov dword [rbp - 0x19], ecx
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r9, rbx
movzx r8d, dil
mov edx, eax
mov rcx, r15
call fcn.1400e1330
movzx edi, al
mov rbx, qword [str.p1_]
lea rcx, [r13 + 0x60]
mov dword [rsp + 0x28], 8
mov qword [rsp + 0x20], rcx
mov r9d, 3
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r9, rbx
movzx r8d, dil
mov edx, eax
mov rcx, r15
call fcn.1400e1330
movzx edi, al
mov rbx, qword [str.DownloadHEIF]
movzx ecx, byte [r13 + 0x68]
mov dword [rbp - 0x19], ecx
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r9, rbx
movzx r8d, dil
mov edx, eax
mov rcx, r15
call fcn.1400e1330
movzx edi, al
mov rbx, qword [str.DownloadHDR]
movzx ecx, byte [r13 + 0x69]
mov dword [rbp - 0x19], ecx
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r9, rbx
movzx r8d, dil
mov edx, eax
mov rcx, r15
call fcn.1400e1330
movzx ebx, al
mov rdx, qword [rbp + 7]
cmp rdx, 8
jb 0x1400e0b1c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400e0b17
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400e0b17
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e6a28
xor edi, edi
mov qword [rbp - 1], rdi
mov qword [rbp + 7], 7
mov word [rbp - 0x11], di
mov rdx, qword [rbp + 0x27]
cmp rdx, 8
jb 0x1400e0b71
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400e0b6c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400e0b6c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e6a28
mov qword [rbp + 0x1f], rdi
mov qword [rbp + 0x27], 7
mov word [rbp + 0xf], di
test rsi, rsi
je 0x1400e0b8f
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1400e6b50
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret