Function at 0x140015af0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x48
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rbx, rdx
mov rbp, rcx
mov rdx, qword [rcx + 0xb8]
lea rcx, [rsp + 0xa8]
call fcn.140005d30
nop
mov r8, rax
lea rdx, [0x14005cc80]
lea rcx, [rsp + 0xa0]
call fcn.140007ae0
nop
mov r12, qword [rax]
movsxd r14, dword [r12 - 0x10]
mov rax, qword [rbx]
mov rsi, r12
sub rsi, rax
sar rsi, 1
mov r13d, dword [rax - 0x10]
lea edi, [r13 + r14]
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, edi
or eax, ecx
jge 0x140015b79
mov edx, edi
mov rcx, rbx
call fcn.140009290
mov rax, qword [rbx]
cmp rsi, r13
ja 0x140015b85
lea r12, [rax + rsi*2]
mov rdx, r14
add rdx, rdx
lea rcx, [rax + r13*2]
mov r9, rdx
mov r8, r12
call fcn.14003b8f0
test edi, edi
js 0x140015eb4
mov rax, qword [rbx]
cmp edi, dword [rax - 0xc]
jg 0x140015eb4
mov dword [rax - 0x10], edi
movsxd rcx, edi
mov rax, qword [rbx]
mov word [rax + rcx*2], 0
mov rdx, qword [rsp + 0xa0]
add rdx, 0xffffffffffffffe8
or rsi, 0xffffffffffffffff
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x140015be4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0xa8]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140015c07
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rbx]
test rdx, rdx
jne 0x140015c13
xor ecx, ecx
jmp 0x140015c2d
xor eax, eax
mov rcx, rsi
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
test ecx, ecx
js 0x140015ea9
cmp ecx, dword [rdx - 0xc]
jg 0x140015ea9
mov dword [rdx - 0x10], ecx
movsxd rcx, ecx
mov rax, qword [rbx]
mov word [rax + rcx*2], 0
mov rax, qword [rbx]
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
or eax, ecx
jge 0x140015c61
xor edx, edx
mov rcx, rbx
call fcn.140009290
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, qword [rbx]
mov rcx, qword [rbp + 0x248]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140015e89
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, rsi
lea r13, str.SourceList
mov rdi, r13
repne scasw ax, word [rdi]
not rcx
lea r15, [rcx - 1]
mov rax, qword [rbx]
mov r12, r13
sub r12, rax
sar r12, 1
mov r14d, dword [rax - 0x10]
lea edi, [r14 + rcx - 1]
mov edx, 1
sub edx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, edi
or eax, edx
jge 0x140015ce0
mov edx, edi
mov rcx, rbx
call fcn.140009290
mov rax, qword [rbx]
cmp r12, r14
ja 0x140015cec
lea r13, [rax + r12*2]
movsxd rdx, r15d
add rdx, rdx
lea rcx, [rax + r14*2]
mov r9, rdx
mov r8, r13
call fcn.14003b8f0
test edi, edi
js 0x140015e7e
mov rax, qword [rbx]
cmp edi, dword [rax - 0xc]
jg 0x140015e7e
mov dword [rax - 0x10], edi
movsxd rcx, edi
mov rax, qword [rbx]
mov word [rax + rcx*2], 0
mov rax, qword [rbx]
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
or eax, ecx
jge 0x140015d40
xor edx, edx
mov rcx, rbx
call fcn.140009290
lea r8, [rsp + 0x90]
mov rdx, qword [rbx]
mov rcx, qword [rbp + 0x248]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x140015d8b
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdi, [rbp + 0x38]
mov rax, qword [rdi]
mov r9, qword [rbx]
lea r8, str.Added_SourceList_key_to_registry:__s
mov edx, 0xa
mov rcx, rdi
call qword [rax + 0xd0]
jmp 0x140015daa
lea rdi, [rbp + 0x38]
mov rax, qword [rdi]
mov r9, qword [rbx]
lea r8, str.Cannot_add_SourceList_to_registry:__s
mov edx, 1
mov rcx, rdi
call qword [rax + 0xd0]
mov rax, qword [rbx]
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
or eax, ecx
jge 0x140015dc6
xor edx, edx
mov rcx, rbx
call fcn.140009290
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, qword [rbx]
mov rcx, qword [rbp + 0x248]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140015e89
mov rax, qword [rbp + 0x90]
mov r12d, dword [rax - 0x10]
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
or eax, ecx
jge 0x140015e1c
xor edx, edx
lea rcx, [rbp + 0x90]
call fcn.140009290
mov rcx, qword [rbp + 0x90]
lea eax, [r12 + r12 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, str.PackageName
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [rdi]
mov r9, qword [rbp + 0x90]
lea r8, str.Added_SourceList_value_to_registry:__s
mov edx, 0xa
mov rcx, rdi
call qword [rax + 0xd0]
jmp 0x140015e89
mov ecx, 0x80070057
call fcn.140007cd0
nop
mov rdx, qword [rbx]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], esi
add esi, 0xffffffff
test esi, esi
jg 0x140015ea5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x140015ebf
mov ecx, 0x80070057
call fcn.140007cd0
nop
mov ecx, 0x80070057
call fcn.140007cd0
nop
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret