Function at 0x1400085d0
Capabilities:
Set registry value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rdi, rdx
mov rsi, rcx
mov r14, qword [0x1400f74a8]
mov rax, qword [r14]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp byte [0x140134010], 0
je 0x140008626
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x140008643
cmp byte [rdi + 8], 0
je 0x140008730
movzx ecx, byte [rdi + 0x70]
mov eax, ecx
and al, 1
je 0x1400086aa
mov rcx, qword [rdi + 0x78]
jmp 0x1400086ad
cmp byte [rdi + 0x18], 0
je 0x140008630
mov byte [rdi + 0x18], 0
movzx eax, byte [rdi + 0x18]
mov byte [rdi + 8], al
mov rax, qword [rdi + 0x10]
mov qword [rdi], rax
jmp 0x140008839
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], 0
lea rdx, str.SOFTWARETor_ProjectFirefoxLauncher
mov rcx, 0xffffffff80000001
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x14000874a
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov eax, 0xa5
jmp 0x14000877b
shr rcx, 1
mov r15, qword [rdi]
test rcx, rcx
jne 0x1400086e4
lea rbx, [rdi + 0x70]
lea rdx, [rdi + 0x28]
mov rcx, rbx
call fcn.14007ef80
lea rdx, str.Launcher
mov r8d, 9
mov rcx, rbx
call fcn.14007dda0
movzx eax, byte [rdi + 0x70]
and al, 1
mov rbx, qword [rdi + 0x20]
mov qword [rsp + 0x50], r15
test al, al
je 0x1400086f6
mov rdx, qword [rdi + 0x80]
jmp 0x1400086fa
lea rdx, [rdi + 0x72]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 8
mov rcx, rbx
xor r8d, r8d
mov r9d, 0xb
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140008807
cmp byte [rdi + 8], 0
je 0x140008730
mov byte [rdi + 8], 0
cmp byte [rdi + 0x18], 0
je 0x140008839
movzx ecx, byte [rdi + 0x58]
mov eax, ecx
and al, 1
je 0x140008794
mov rcx, qword [rdi + 0x60]
jmp 0x140008797
mov rbx, qword [rsp + 0x50]
mov rcx, qword [rdi + 0x20]
test rcx, rcx
je 0x14000875e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rdi + 0x20], rbx
mov eax, dword [rsp + 0x4c]
dec eax
cmp eax, 1
jbe 0x140008605
mov ecx, 0x80070507
mov eax, 0xb4
mov byte [rsi + 0x10], 1
lea rdx, str._var_tmp_build_firefox_d8b47d80163d_toolkit_xre_LauncherRegistryInfo.cpp
mov qword [rsi], rdx
mov dword [rsi + 8], eax
mov dword [rsi + 0xc], ecx
jmp 0x14000883d
shr rcx, 1
mov r15, qword [rdi + 0x10]
test rcx, rcx
jne 0x1400087cb
lea rbx, [rdi + 0x58]
lea rdx, [rdi + 0x28]
mov rcx, rbx
call fcn.14007ef80
lea rdx, str.Browser
mov r8d, 8
mov rcx, rbx
call fcn.14007dda0
movzx eax, byte [rdi + 0x58]
and al, 1
mov qword [rsp + 0x50], r15
mov rcx, qword [rdi + 0x20]
test al, al
je 0x1400087de
mov rdx, qword [rdi + 0x68]
jmp 0x1400087e2
lea rdx, [rdi + 0x5a]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 8
xor r8d, r8d
mov r9d, 0xb
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x14000882f
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov byte [rsi + 0x10], 1
lea rax, str._var_tmp_build_firefox_d8b47d80163d_toolkit_xre_LauncherRegistryInfo.cpp
mov qword [rsi], rax
mov dword [rsi + 8], 0x79
mov dword [rsi + 0xc], ecx
jmp 0x14000883d
cmp byte [rdi + 0x18], 0
je 0x140008839
mov byte [rdi + 0x18], 0
mov byte [rsi + 0x10], 0
mov rax, qword [rsp + 0x58]
xor rax, rsp
mov rcx, qword [r14]
cmp rcx, rax
jne 0x14000885c
mov rax, rsi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1400c8850
int3