Function at 0x1400defa0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x78]
sub rsp, 0x160
movaps xmmword [rax - 0x28], xmm6
mov rax, qword [0x1403486d0]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov rdi, rdx
mov rbx, rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xor r15d, r15d
mov qword [rsp + 0x50], r15
mov dword [rsp + 0x58], r15d
mov qword [rsp + 0x60], r15
mov r9d, 0x20019
mov r8, qword [str.SoftwareApple_Inc.Internet_ServicesiCloud_PhotosSettings]
mov rdx, 0xffffffff80000001
lea rcx, [rsp + 0x50]
call fcn.140054a30
mov esi, eax
test eax, eax
je 0x1400df122
call fcn.1400c1f80
cmp dword [rax + 0x78], 4
jl 0x1400df116
call fcn.1400c1f80
mov rbx, rax
mov qword [rsp + 0x78], r15
movdqa xmm0, xmmword [0x140272430]
movdqu xmmword [rbp - 0x78], xmm0
mov word [rsp + 0x78], r15w
mov r8b, 1
mov edx, esi
lea rcx, [rbp - 0x68]
call fcn.140078e10
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.140059ac0
mov rdx, qword [rbp - 0x50]
cmp rdx, 8
jb 0x1400df0a6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400df0a1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400df0a1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e6a28
mov qword [rbp - 0x58], r15
mov qword [rbp - 0x50], 7
mov word [rbp - 0x68], r15w
lea rax, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rax, qword [rsp + 0x78]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], esi
mov rax, qword [str.SoftwareApple_Inc.Internet_ServicesiCloud_PhotosSettings]
mov qword [rsp + 0x30], rax
lea rax, str.Failed_to_open_registry_key__READ_:_HKCU_S__error:___d___S_
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x1bc
lea r9, str.D:BWA6FBB69CA_F410_0iCloudCommon_131_srcrootQuarkQuarkSettings.cpp
lea r8, str.QuarkSettings::LoadSettings
mov edx, 4
mov rcx, rbx
call fcn.1400c23b0
nop
lea rcx, [rsp + 0x78]
call fcn.140052120
xor bl, bl
mov r14, qword [rsp + 0x50]
jmp 0x1400df708
lea rdx, [rbp - 0x30]
mov rcx, rbx
call fcn.1400deb10
nop
mov dword [rsp + 0x6c], r15d
mov dword [rsp + 0x70], 4
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x68]
xor r8d, r8d
mov rdx, qword [0x140348630]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400df188
cmp dword [rsp + 0x68], 4
je 0x1400df17c
mov eax, SafeArrayGetDim
jmp 0x1400df188
mov eax, r15d
cmp dword [rsp + 0x6c], r15d
setne byte [rbp - 0x30]
mov r9, qword [0x140348630]
mov r8b, 1
mov edx, eax
mov rcx, rbx
call fcn.1400e11d0
movzx r14d, al
mov qword [rsp + 0x78], r15
mov qword [rbp - 0x78], r15
mov qword [rbp - 0x70], 7
mov word [rsp + 0x78], r15w
lea r8, [rsp + 0x78]
mov rdx, qword [str._0_]
lea rcx, [rsp + 0x50]
call fcn.1400dfad0
mov esi, eax
test eax, eax
jne 0x1400df1f0
lea rdx, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rdx, qword [rsp + 0x78]
mov r8, qword [rbp - 0x78]
lea rcx, [rbp - 0x28]
call fcn.1400523d0
mov r9, qword [str._0_]
movzx r8d, r14b
mov edx, esi
mov rcx, rbx
call fcn.1400e11d0
movzx r14d, al
mov qword [rbp - 0x68], r15
mov qword [rbp - 0x58], r15
mov qword [rbp - 0x50], 7
mov word [rbp - 0x68], r15w
lea r8, [rbp - 0x68]
mov rdx, qword [str.SharingPath]
lea rcx, [rsp + 0x50]
call fcn.1400dfad0
mov esi, eax
test eax, eax
jne 0x1400df254
lea rdx, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae rdx, qword [rbp - 0x68]
mov r8, qword [rbp - 0x58]
lea rcx, [rbp - 8]
call fcn.1400523d0
mov r9, qword [str.SharingPath]
movzx r8d, r14b
mov edx, esi
mov rcx, rbx
call fcn.1400e11d0
movzx esi, al
mov dword [rsp + 0x6c], r15d
mov dword [rsp + 0x68], 4
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
xor r8d, r8d
mov rdx, qword [str.RampState]
mov r14, qword [rsp + 0x50]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, eax
test eax, eax
jne 0x1400df2c6
cmp dword [rsp + 0x70], 4
je 0x1400df2bc
lea edx, [rax + 0xd]
jmp 0x1400df2c6
mov edx, r15d
mov eax, dword [rsp + 0x6c]
mov dword [rbp + 0x18], eax
mov r9, qword [str.RampState]
movzx r8d, sil
mov rcx, rbx
call fcn.1400e11d0
movzx esi, al
xorps xmm6, xmm6
movsd qword [rbp - 0x40], xmm6
mov dword [rbp - 0x48], 8
lea rax, [rbp - 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x68]
xor r8d, r8d
mov rdx, qword [str.ExitState]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400df334
cmp dword [rsp + 0x68], 3
je 0x1400df327
mov eax, SafeArrayGetDim
jmp 0x1400df334
mov eax, r15d
movsd xmm0, qword [rbp - 0x40]
movsd qword [rbp + 0x20], xmm0
mov r9, qword [str.ExitState]
movzx r8d, sil
mov edx, eax
mov rcx, rbx
call fcn.1400e11d0
movzx esi, al
mov dword [rsp + 0x68], 4
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
xor r8d, r8d
mov rdx, qword [str._1_]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400df39e
cmp dword [rsp + 0x70], 4
je 0x1400df392
mov eax, SafeArrayGetDim
jmp 0x1400df39e
mov eax, r15d
cmp dword [rsp + 0x6c], r15d
setne byte [rbp + 0x28]
mov r9, qword [str._1_]
movzx r8d, sil
mov edx, eax
mov rcx, rbx
call fcn.1400e11d0
movzx esi, al
mov dword [rsp + 0x68], 4
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
xor r8d, r8d
mov rdx, qword [str.OverQuota]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400df408
cmp dword [rsp + 0x70], 4
je 0x1400df3fc
mov eax, SafeArrayGetDim
jmp 0x1400df408
mov eax, r15d
cmp dword [rsp + 0x6c], r15d
setne byte [rbp + 0x29]
mov r9, qword [str.OverQuota]
movzx r8d, sil
mov edx, eax
mov rcx, rbx
call fcn.1400e11d0
movzx esi, al
mov dword [rsp + 0x68], 4
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
xor r8d, r8d
mov rdx, qword [str.H1_]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400df472
cmp dword [rsp + 0x70], 4
je 0x1400df466
mov eax, SafeArrayGetDim
jmp 0x1400df472
mov eax, r15d
cmp dword [rsp + 0x6c], r15d
setne byte [rbp + 0x2a]
mov r9, qword [str.H1_]
movzx r8d, sil
mov edx, eax
mov rcx, rbx
call fcn.1400e11d0
movzx esi, al
movsd qword [rbp - 0x38], xmm6
mov dword [rbp - 0x44], 8
lea rax, [rbp - 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x68]
xor r8d, r8d
mov rdx, qword [str.p1_]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400df4df
cmp dword [rsp + 0x68], 3
je 0x1400df4d2
mov eax, SafeArrayGetDim
jmp 0x1400df4df
mov eax, r15d
movsd xmm0, qword [rbp - 0x38]
movsd qword [rbp + 0x30], xmm0
mov r9, qword [str.p1_]
movzx r8d, sil
mov edx, eax
mov rcx, rbx
call fcn.1400e11d0
movzx esi, al
mov dword [rsp + 0x68], 4
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
xor r8d, r8d
mov rdx, qword [str.DownloadHEIF]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r9, qword [str.DownloadHEIF]
movzx r8d, sil
mov rcx, rbx
test eax, eax
je 0x1400df546
mov edx, eax
call fcn.1400e11d0
jmp 0x1400df569
cmp dword [rsp + 0x70], 4
je 0x1400df559
mov edx, SafeArrayGetDim
call fcn.1400e11d0
jmp 0x1400df569
xor edx, edx
call fcn.1400e11d0
cmp dword [rsp + 0x6c], 0
setne byte [rbp + 0x38]
movzx esi, al
mov dword [rsp + 0x68], 4
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
xor r8d, r8d
mov rdx, qword [str.DownloadHDR]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r9, qword [str.DownloadHDR]
movzx r8d, sil
mov rcx, rbx
test eax, eax
je 0x1400df5bb
mov edx, eax
call fcn.1400e11d0
jmp 0x1400df5de
cmp dword [rsp + 0x70], 4
je 0x1400df5ce
mov edx, SafeArrayGetDim
call fcn.1400e11d0
jmp 0x1400df5de
xor edx, edx
call fcn.1400e11d0
cmp dword [rsp + 0x6c], 0
setne byte [rbp + 0x39]
movzx ebx, al
movzx eax, byte [rbp - 0x30]
mov byte [rdi], al
lea rcx, [rdi + 8]
lea rax, [rbp - 0x28]
cmp rcx, rax
je 0x1400df60b
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rdx, qword [rbp - 0x28]
mov r8, qword [rbp - 0x18]
call fcn.1400523d0
lea rcx, [rdi + 0x28]
lea rax, [rbp - 8]
cmp rcx, rax
je 0x1400df62f
lea rdx, [rbp - 8]
cmp qword [rbp + 0x10], 8
cmovae rdx, qword [rbp - 8]
mov r8, qword [rbp + 8]
call fcn.1400523d0
mov eax, dword [rbp + 0x18]
mov dword [rdi + 0x48], eax
movsd xmm0, qword [rbp + 0x20]
movsd qword [rdi + 0x50], xmm0
movzx eax, byte [rbp + 0x28]
mov byte [rdi + 0x58], al
movzx eax, byte [rbp + 0x29]
mov byte [rdi + 0x59], al
movzx eax, byte [rbp + 0x2a]
mov byte [rdi + 0x5a], al
movsd xmm0, qword [rbp + 0x30]
movsd qword [rdi + 0x60], xmm0
movzx eax, byte [rbp + 0x38]
mov byte [rdi + 0x68], al
movzx eax, byte [rbp + 0x39]
mov byte [rdi + 0x69], al
mov rdx, qword [rbp - 0x50]
cmp rdx, 8
jb 0x1400df6b0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400df6aa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400df6aa
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e6a28
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, 8
jb 0x1400df6f5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400df6ef
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400df6ef
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e6a28
nop
lea rcx, [rbp - 8]
call fcn.140052120
lea rcx, [rbp - 0x28]
call fcn.140052120
nop
test r14, r14
je 0x1400df716
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.1400e6b50
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop rbp
ret