Function at 0x140017330
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov r14, r8
mov rsi, rdx
mov r15, rcx
test rdx, rdx
je 0x1400174bb
mov rbx, qword [rbp + 0x50]
xor r12d, r12d
mov qword [rbp - 0x18], r12
mov edi, r12d
mov dword [rbp + 0x38], r12d
test rbx, rbx
je 0x140017576
mov rbx, qword [rbx]
test rbx, rbx
je 0x140017576
movzx eax, word [rbx]
test ax, ax
je 0x140017576
lea r13d, [r12 + 1]
cmp ax, 0x2b
je 0x1400173bf
cmp ax, 0x2d
je 0x1400173b8
cmp ax, 0x3a
jne 0x140017446
add rbx, 2
jmp 0x140017446
mov edi, 0xffffffff
jmp 0x1400173c2
mov edi, r13d
lea rax, [rbp - 0x20]
mov qword [rbp - 0x10], r12
lea r9, [rbp - 0x10]
mov qword [rsp + 0x20], rax
add rbx, 2
call fcn.14000c980
test eax, eax
jne 0x1400174bb
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x14001743b
mov edx, dword [rbp - 0x20]
lea rax, [rbp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x18]
mov r8, rbx
test edi, edi
jle 0x14001740b
call fcn.140001e60
jmp 0x140017410
call fcn.140002160
mov ebx, eax
cmp dword [rbp - 0x20], r12d
je 0x14001742d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rbp - 0x10]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, ebx
jne 0x1400174bb
mov rbx, qword [rbp - 0x18]
jmp 0x140017446
test edi, edi
js 0x1400175ba
mov edi, r12d
test rbx, rbx
je 0x140017576
cmp word [rbx], r12w
je 0x140017576
test edi, edi
jne 0x140017482
mov rdx, 0xffffffffffffffff
inc rdx
cmp word [rbx + rdx*2], r12w
jne 0x140017464
lea r9, [rbp + 0x38]
mov rcx, rbx
lea r8, [rbp - 0x18]
call fcn.14000e380
test eax, eax
jne 0x1400174bb
mov rcx, qword [rbp - 0x18]
call fcn.1400023e0
test eax, eax
je 0x1400174de
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rbp - 0x18]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, 2
call fcn.14001c1d0
mov rcx, rax
mov edx, 0x40000238
call fcn.140002950
mov eax, 0xffffffff
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov eax, dword [rbp + 0x38]
mov r9d, 7
add eax, eax
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov rdx, r14
mov rax, qword [rbp - 0x18]
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x140017553
cmp dword [rbp + 0x38], r12d
je 0x140017524
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rbp - 0x18]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140002510
mov r9, rax
movzx ecx, r13w
lea r8, str.AppEnvironment
mov qword [rsp + 0x20], r12
mov edx, 0xc00003fb
call fcn.140002610
jmp 0x1400174bb
cmp dword [rbp + 0x38], r12d
je 0x14001756e
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rbp - 0x18]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, r13d
jmp 0x1400174c0
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, 0xfffffffd
je 0x1400175ba
mov ecx, eax
call fcn.140002510
mov ecx, 2
mov rbx, rax
call fcn.14001c1d0
mov rcx, rax
mov qword [rsp + 0x20], rbx
mov r9, r15
mov r8, r14
mov edx, 0x4000020d
call fcn.140002950
jmp 0x1400174bb
xor eax, eax
jmp 0x1400174c0