Function at 0x1400189e0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x1e8], rbx
mov rax, qword [0x14007a8d0]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov r12, r8
mov r15, rdx
mov r14, rcx
xor r13d, r13d
mov esi, r13d
mov qword [rsp + 0x40], r13
mov dword [rsp + 0x48], r13d
mov qword [rsp + 0x50], r13
lea r8, [0x140056122]
lea rdx, str.CItunesDevice::DoLaunchITunesCheck__
lea ecx, [r13 + 4]
call fcn.140028400
cmp dword [r14 + 0x34], 2
jne 0x140018d7a
mov rax, qword [r14]
xor r8d, r8d
lea rdx, [rsp + 0x58]
mov rcx, r14
call qword [rax + 0x60]
test eax, eax
je 0x140018d7a
mov eax, dword [rsp + 0x58]
cmp eax, 1
jbe 0x140018aa3
mov dword [rsp + 0x20], eax
mov r9d, dword [r14 + 0x30]
lea r8, str.__d__device_is_not_FAT32__format_is__d
lea rdx, str.CItunesDevice::DoLaunchITunesCheck__
lea ecx, [r13 + 2]
call fcn.140028400
jmp 0x140018d7a
mov ebx, r13d
cmp byte [r14 + 0x251], bl
setne bl
test ebx, ebx
jne 0x140018ac9
mov ebx, r13d
cmp byte [r14 + 0x250], bl
sete bl
test ebx, ebx
je 0x140018c06
mov r9d, 0x20219
mov r8, qword [str.SoftwareClientsMediaiTunesInstallInfo]
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x40]
call fcn.140005000
test eax, eax
jne 0x140018b66
mov dword [rsp + 0x30], 4
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rdx, qword [str.IconsVisible]
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140018b4e
cmp dword [rsp + 0x38], 4
jne 0x140018b4e
cmp dword [rsp + 0x34], eax
jne 0x140018b4e
lea r8, str.iTunes_disabled_in__Set_Program_Access_and_Defaults__page
lea rdx, str.CItunesDevice::DoLaunchITunesCheck__
lea ecx, [rax + 2]
call fcn.140028400
mov ebx, r13d
test rdi, rdi
je 0x140018b61
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], r13
mov dword [rsp + 0x48], r13d
mov r9d, 0x20019
mov r8, qword [str.SoftwareApple_Computer__Inc.iTunesPreferences]
mov rdx, 0xffffffff80000001
lea rcx, [rsp + 0x40]
call fcn.140005000
mov rsi, qword [rsp + 0x40]
test eax, eax
jne 0x140018c06
mov dword [rsp + 0x34], 4
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rdx, qword [str.dontAutomaticallySyncIPods]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140018beb
cmp dword [rsp + 0x38], 4
jne 0x140018beb
cmp dword [rsp + 0x30], eax
jne 0x140018beb
lea r8, str.Auto_sync_of_iPods_is_disabled_in_user_prefs
lea rdx, str.CItunesDevice::DoLaunchITunesCheck__
lea ecx, [rax + 2]
call fcn.140028400
mov ebx, r13d
test rsi, rsi
je 0x140018c01
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, r13
mov qword [rsp + 0x40], r13
mov dword [rsp + 0x48], r13d
test dword [r14 + 0xa0], 0xfffffffd
jne 0x140018d5d
test ebx, ebx
je 0x140018d5d
mov edi, r13d
mov r9d, dword [r14 + 0x30]
lea r8, str.__d__Auto_launch_iTunes_ENABLED
lea rdx, str.CItunesDevice::DoLaunchITunesCheck__
mov ecx, 2
call fcn.140028400
mov r9d, 0x20219
mov r8, qword [str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsiTunes.exe]
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x40]
call fcn.140005000
mov rsi, qword [rsp + 0x40]
test eax, eax
jne 0x140018d48
mov dword [rsp + 0x30], 0x104
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, [0x140056122]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140018d29
mov eax, dword [rsp + 0x34]
dec eax
cmp eax, 1
ja 0x140018d29
mov ebx, dword [rsp + 0x30]
test ebx, ebx
je 0x140018cc1
cmp byte [rsp + rbx + 0x6f], dil
je 0x140018cc6
jmp 0x140018d29
mov byte [rsp + 0x70], dil
lea r9, [rsp + 0x70]
lea r8, str.iTunes_located_at__s
lea rdx, str.CItunesDevice::DoLaunchITunesCheck__
mov ecx, 2
call fcn.140028400
lea ecx, [rbx + 1]
call fcn.14003cc90
mov rdi, rax
mov r8, rbx
lea rdx, [rsp + 0x70]
mov rcx, rax
call fcn.14003f9f0
mov byte [rbx + rdi], 0
mov qword [rsp + 0x28], rdi
mov eax, dword [r12]
mov dword [rsp + 0x20], eax
mov r9d, dword [r14 + 0x30]
mov r8d, dword [r14 + 0x60]
mov edx, 8
mov rcx, r15
call fcn.14002ab30
mov edi, 1
test rsi, rsi
je 0x140018d3f
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, r13
mov qword [rsp + 0x40], r13
mov dword [rsp + 0x48], r13d
test edi, edi
jne 0x140018d7a
lea rdx, str.Couldnt_get_path_to_iTunes_
lea rcx, str.CItunesDevice::DoLaunchITunesCheck__
call fcn.140027ba0
jmp 0x140018d7a
mov r9d, dword [r14 + 0x30]
lea r8, str.__d__Auto_launch_iTunes_DISABLED
lea rdx, str.CItunesDevice::DoLaunchITunesCheck__
mov ecx, 2
call fcn.140028400
nop
test rsi, rsi
je 0x140018d88
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.14003eed0
mov rbx, qword [rsp + 0x1e8]
add rsp, 0x190
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret