Function at 0x140008230
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 [0x1401054a8]
mov rax, qword [r14]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp byte [0x140145010], 0
je 0x140008286
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x1400082a3
cmp byte [rdi + 8], 0
je 0x140008390
movzx ecx, byte [rdi + 0x70]
mov eax, ecx
and al, 1
je 0x14000830a
mov rcx, qword [rdi + 0x78]
jmp 0x14000830d
cmp byte [rdi + 0x18], 0
je 0x140008290
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 0x140008499
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 0x1400083aa
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov eax, 0xa8
jmp 0x1400083db
shr rcx, 1
mov r15, qword [rdi]
test rcx, rcx
jne 0x140008344
lea rbx, [rdi + 0x70]
lea rdx, [rdi + 0x28]
mov rcx, rbx
call fcn.14007f780
lea rdx, str.Launcher
mov r8d, 9
mov rcx, rbx
call fcn.14007e5a0
movzx eax, byte [rdi + 0x70]
and al, 1
mov rbx, qword [rdi + 0x20]
mov qword [rsp + 0x50], r15
test al, al
je 0x140008356
mov rdx, qword [rdi + 0x80]
jmp 0x14000835a
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 0x140008467
cmp byte [rdi + 8], 0
je 0x140008390
mov byte [rdi + 8], 0
cmp byte [rdi + 0x18], 0
je 0x140008499
movzx ecx, byte [rdi + 0x58]
mov eax, ecx
and al, 1
je 0x1400083f4
mov rcx, qword [rdi + 0x60]
jmp 0x1400083f7
mov rbx, qword [rsp + 0x50]
mov rcx, qword [rdi + 0x20]
test rcx, rcx
je 0x1400083be
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rdi + 0x20], rbx
mov eax, dword [rsp + 0x4c]
dec eax
cmp eax, 1
jbe 0x140008265
mov ecx, 0x80070507
mov eax, 0xb7
mov byte [rsi + 0x10], 1
lea rdx, str._var_tmp_build_firefox_1d8abcb1f7a7_toolkit_xre_LauncherRegistryInfo.cpp
mov qword [rsi], rdx
mov dword [rsi + 8], eax
mov dword [rsi + 0xc], ecx
jmp 0x14000849d
shr rcx, 1
mov r15, qword [rdi + 0x10]
test rcx, rcx
jne 0x14000842b
lea rbx, [rdi + 0x58]
lea rdx, [rdi + 0x28]
mov rcx, rbx
call fcn.14007f780
lea rdx, str.Browser
mov r8d, 8
mov rcx, rbx
call fcn.14007e5a0
movzx eax, byte [rdi + 0x58]
and al, 1
mov qword [rsp + 0x50], r15
mov rcx, qword [rdi + 0x20]
test al, al
je 0x14000843e
mov rdx, qword [rdi + 0x68]
jmp 0x140008442
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 0x14000848f
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov byte [rsi + 0x10], 1
lea rax, str._var_tmp_build_firefox_1d8abcb1f7a7_toolkit_xre_LauncherRegistryInfo.cpp
mov qword [rsi], rax
mov dword [rsi + 8], 0x7c
mov dword [rsi + 0xc], ecx
jmp 0x14000849d
cmp byte [rdi + 0x18], 0
je 0x140008499
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 0x1400084bc
mov rax, rsi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1400d58e0
int3