Function at 0x140018c70
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x2a0
mov rax, qword [0x14008f060]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rbx, rcx
mov qword [rsp + 0x58], rcx
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x140018cb5
lea r9, str.Start
lea r8, str.IsPreloadEULA
xor edx, edx
call fcn.140003290
mov dword [rsp + 0x80], 0x30
xor edx, edx
mov r8d, 0x204
lea rcx, [rsp + 0x84]
call fcn.140039940
mov dword [rsp + 0x70], 0x104
xor dil, dil
mov qword [rsp + 0x60], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, str.SoftwareOEMMetadata
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140018db1
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140018d36
lea r9, str.Registry_found
lea r8, str.IsPreloadEULA__SoftwareOEMMetadata
xor edx, edx
call fcn.140003290
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.AcerBoxTicked
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rbx + 8]
test eax, eax
jne 0x140018d8c
test rcx, rcx
je 0x140018d87
lea r9, str.Registry_found
lea r8, str.IsPreloadEULA__AcerBoxTicked
xor edx, edx
call fcn.140003290
mov dil, 1
jmp 0x140018da6
test rcx, rcx
je 0x140018da6
lea r9, str.Invalid
lea r8, str.IsPreloadEULA__AcerBoxTicked
xor edx, edx
call fcn.140003290
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140018dcf
lea r9, [0x14007a9b8]
lea r8, str.IsPreloadEULA
xor edx, edx
call fcn.140003290
mov rcx, qword [rbx + 8]
test dil, dil
je 0x140018ecf
test rcx, rcx
je 0x140018df6
lea r9, str.True
lea r8, str.IsPreloadEULA
xor edx, edx
call fcn.140003290
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SoftwareOEMADESV2
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140018f11
mov dword [rsp + 0x70], 0x31
lea rcx, [rsp + 0x70]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140018e60
add eax, eax
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [0x14007ad98]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140018f42
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140018ebb
lea r9, [0x14007ad94]
lea r8, str.CheckEULA__SoftwareOEMADESV2Consensus
xor edx, edx
call fcn.140003290
mov byte [0x140093d45], 1
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140018ef0
test rcx, rcx
je 0x140018ee9
lea r9, str.False
lea r8, str.IsPreloadEULA
xor edx, edx
call fcn.140003290
mov byte [0x140093d45], 0
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.140036cc0
mov rbx, qword [rsp + 0x2b8]
add rsp, 0x2a0
pop rdi
ret
lea r8, str.Fail
lea rdx, str.CheckEULA__SoftwareOEMADESV2
mov rcx, rbx
call fcn.140016e50
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x50], eax
lea rdx, [0x14008ca80]
lea rcx, [rsp + 0x50]
call fcn.14003919c
lea r8, str.Fail
lea rdx, str.CheckEULA__SoftwareOEMADESV2Consensus
mov rcx, rbx
call fcn.140016e50
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x54], eax
lea rdx, [0x14008ca80]
lea rcx, [rsp + 0x54]
call fcn.14003919c
int3