Function at 0x1401b7ab0
Capabilities:
Set registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov qword [rbp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x180], rbx
mov r12, rdx
mov r13, rcx
mov eax, dword [rdx + 8]
test eax, eax
jle 0x1401b847f
xor r14d, r14d
mov edi, r14d
mov dword [rbp + 0x88], r14d
test eax, eax
jle 0x1401b847f
mov esi, r14d
mov qword [rbp + 0x90], r14
lea rbx, [0x140346ce0]
nop
mov r15d, 3
mov rax, qword [r12 + 0x10]
lea r8, str.path
lea rdx, [rsp + 0x30]
mov rcx, qword [rax + rsi*8]
call fcn.1402018f0
nop
mov rax, qword [r12 + 0x10]
lea r8, str.operation
lea rdx, [rbp - 0x40]
mov rcx, qword [rax + rsi*8]
call fcn.1402018f0
nop
mov rax, qword [r12 + 0x10]
lea r8, str.skip
lea rdx, [rbp - 0x30]
mov rcx, qword [rax + rsi*8]
call fcn.1402018f0
nop
xor r8d, r8d
lea rdx, [0x14034b530]
lea rcx, [rbp - 0x30]
call fcn.1401fce20
test al, al
je 0x1401b7bb6
cmp dword [rbp - 0x28], 0
jle 0x1401b7b8c
mov rcx, qword [rbp - 0x30]
call fcn.1402b7350
nop
cmp dword [rbp - 0x38], 0
jle 0x1401b7b9c
mov rcx, qword [rbp - 0x40]
call fcn.1402b7350
nop
cmp dword [rsp + 0x38], 0
jle 0x1401b8462
mov rcx, qword [rsp + 0x30]
call fcn.1402b7350
jmp 0x1401b8462
cmp dword [rbp - 0x34], 0
je 0x1401b82ee
mov r8d, 1
lea rdx, [0x140353a40]
lea rcx, [rbp - 0x40]
call fcn.1401fce20
test al, al
jne 0x1401b82ee
mov r8d, 1
lea rdx, str.rename
lea rcx, [rbp - 0x40]
call fcn.1401fce20
test al, al
je 0x1401b7e3c
lea rax, vtable.Core::Array_class_Core::String_.0
mov qword [rbp - 0x70], rax
mov dword [rbp - 0x68], r14d
mov qword [rbp - 0x60], r14
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 1
lea rdx, [0x140345f98]
lea rcx, [rsp + 0x30]
call fcn.1401fe690
mov r14, qword [rbp - 0x60]
cmp eax, 3
jl 0x1401b7e0d
mov edi, dword [rbp - 0x68]
dec edi
movsxd rbx, edi
shl rbx, 4
add rbx, r14
xor eax, eax
mov qword [rsp + 0x78], rax
mov edx, dword [rbx + 0xc]
test edx, edx
jne 0x1401b7c67
lea rax, [0x140346ce0]
mov qword [rsp + 0x70], rax
jmp 0x1401b7c8b
lea rcx, [rsp + 0x70]
call fcn.1401fcb40
movsxd r9, dword [rbx + 0xc]
mov eax, dword [rsp + 0x78]
inc eax
movsxd rdx, eax
mov r8, qword [rbx]
mov rcx, qword [rsp + 0x70]
call fcn.1402ba94c
mov edx, dword [rbx + 0xc]
lea rcx, [rsp + 0x70]
call fcn.1401fde50
nop
mov rax, qword [r12 + 0x10]
lea r8, [0x140356a8c]
lea rdx, [rbp - 0x20]
mov rcx, qword [rax + rsi*8]
call fcn.1402018f0
nop
cmp dword [rbp - 0x14], 0
jle 0x1401b7de6
mov edx, edi
lea rcx, [rbp - 0x70]
call fcn.1400c7e30
lea rax, [0x140346ce0]
mov qword [rsp + 0x50], rax
xor r14d, r14d
mov qword [rsp + 0x58], r14
mov rdi, qword [0x140416ee8]
test rdi, rdi
je 0x1401b7d2f
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x1401b7cf0
test ebx, ebx
jle 0x1401b7d2f
mov edx, ebx
lea rcx, [rsp + 0x50]
call fcn.1401fcb40
movsxd r9, ebx
mov eax, dword [rsp + 0x58]
inc eax
movsxd rdx, eax
mov r8, rdi
mov rcx, qword [rsp + 0x50]
call fcn.1402ba94c
mov edx, ebx
lea rcx, [rsp + 0x50]
call fcn.1401fde50
mov rbx, r14
mov r14, qword [rbp - 0x60]
mov eax, dword [rbp - 0x68]
test eax, eax
jle 0x1401b7d78
mov rdi, r14
mov esi, eax
test rbx, rbx
jle 0x1401b7d58
lea rdx, [0x140345f98]
lea rcx, [rsp + 0x50]
call fcn.1401fb190
mov rdx, qword [rdi]
lea rcx, [rsp + 0x50]
call fcn.1401fb190
inc rbx
add rdi, 0x10
dec rsi
jne 0x1401b7d42
mov rsi, qword [rbp + 0x90]
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x50]
call fcn.1400eb0d0
mov rbx, rax
test rax, rax
je 0x1401b7dd4
lea r8, [rbp - 0x20]
lea rdx, [rsp + 0x70]
mov rcx, rax
call fcn.1401b1c10
movzx ecx, al
mov dword [rsp + 0x20], ecx
mov r9, qword [rsp + 0x50]
mov r8, qword [rbp - 0x20]
mov rdx, qword [rsp + 0x70]
lea rcx, str.Renaming__s_to__s_at__s__result___d_
call fcn.1401b1eb0
mov r15d, 2
mov rax, qword [rbx]
lea edx, [r15 - 1]
mov rcx, rbx
call qword [rax]
nop
cmp dword [rsp + 0x58], 0
jle 0x1401b7de6
mov rcx, qword [rsp + 0x50]
call fcn.1402b7350
nop
cmp dword [rbp - 0x18], 0
jle 0x1401b7df6
mov rcx, qword [rbp - 0x20]
call fcn.1402b7350
nop
cmp dword [rsp + 0x78], 0
jle 0x1401b7e07
mov rcx, qword [rsp + 0x70]
call fcn.1402b7350
mov edi, dword [rbp + 0x88]
test r14, r14
je 0x1401b83dd
lea r9, [fcn.140005eb0]
mov r8d, dword [r14 - 8]
mov edx, 0x10
mov rcx, r14
call fcn.1402b7cf4
lea rcx, [r14 - 8]
call fcn.1402b712c
jmp 0x1401b83dd
mov r8d, 1
lea rdx, [0x140354c88]
lea rcx, [rbp - 0x40]
call fcn.1401fce20
test al, al
je 0x1401b8406
mov rax, qword [r12 + 0x10]
lea r8, [0x14030a468]
lea rdx, [rbp - 0x50]
mov rcx, qword [rax + rsi*8]
call fcn.1402018f0
nop
mov rax, qword [r12 + 0x10]
lea r8, str.value
lea rdx, [rsp + 0x60]
mov rcx, qword [rax + rsi*8]
call fcn.1402018f0
nop
cmp dword [rbp - 0x44], 0
jle 0x1401b82c4
cmp dword [rsp + 0x6c], 0
jle 0x1401b82c4
mov qword [rsp + 0x48], 0
mov edx, dword [rsp + 0x3c]
test edx, edx
jne 0x1401b7ebc
mov qword [rsp + 0x40], rbx
jmp 0x1401b7ee7
lea rcx, [rsp + 0x40]
call fcn.1401fcb40
movsxd r9, dword [rsp + 0x3c]
mov eax, dword [rsp + 0x48]
inc eax
movsxd rdx, eax
mov r8, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
call fcn.1402ba94c
mov edx, dword [rsp + 0x3c]
lea rcx, [rsp + 0x40]
call fcn.1401fde50
nop
mov rdx, qword [0x140416ee8]
lea rcx, [rbp - 0x80]
call fcn.1401faae0
nop
mov r8d, 1
lea rdx, [0x140345f98]
lea rcx, [rsp + 0x30]
call fcn.1401fc9f0
test al, al
jne 0x1401b7ff4
mov r8d, 1
lea rdx, [0x140345f98]
lea rcx, [rsp + 0x30]
call fcn.1401fdbf0
mov edi, eax
test eax, eax
jle 0x1401b7ff4
lea r9d, [rdi + 1]
xor r8d, r8d
lea rdx, [rbp + 0x18]
lea rcx, [rsp + 0x30]
call fcn.1401fed70
mov rbx, rax
mov edx, dword [rax + 0xc]
lea rcx, [rsp + 0x40]
call fcn.1401fcb40
movsxd r9, dword [rbx + 0xc]
mov ecx, dword [rsp + 0x48]
inc ecx
movsxd rdx, ecx
mov r8, qword [rbx]
mov rcx, qword [rsp + 0x40]
call fcn.1402ba94c
mov edx, dword [rbx + 0xc]
lea rcx, [rsp + 0x40]
call fcn.1401fde50
nop
cmp dword [rbp + 0x20], 0
jle 0x1401b7f9f
mov rcx, qword [rbp + 0x18]
call fcn.1402b7350
lea r8d, [rdi + 1]
lea rdx, [rbp + 0x28]
lea rcx, [rsp + 0x30]
call fcn.1401feab0
mov rbx, rax
mov edx, dword [rax + 0xc]
lea rcx, [rbp - 0x80]
call fcn.1401fcb40
movsxd r9, dword [rbx + 0xc]
mov ecx, dword [rbp - 0x78]
inc ecx
movsxd rdx, ecx
mov r8, qword [rbx]
mov rcx, qword [rbp - 0x80]
call fcn.1402ba94c
mov edx, dword [rbx + 0xc]
lea rcx, [rbp - 0x80]
call fcn.1401fde50
nop
cmp dword [rbp + 0x30], 0
jle 0x1401b7ff4
mov rcx, qword [rbp + 0x28]
call fcn.1402b7350
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x40]
call fcn.1400eb0d0
mov rdi, rax
test rax, rax
je 0x1401b829d
mov r8d, 1
lea rdx, str.REG_DWORD
lea rcx, [rbp - 0x50]
call fcn.1401fce20
test al, al
je 0x1401b80b0
cmp dword [rsp + 0x6c], 0
je 0x1401b80b0
mov rbx, qword [rsp + 0x60]
mov r8d, 0xa
lea rdx, [rbp + 0x98]
mov rcx, rbx
call fcn.1402ba760
mov rdx, qword [rbp + 0x98]
sub rdx, rbx
sar rdx, 1
movsxd rcx, dword [rsp + 0x6c]
cmp rdx, rcx
jne 0x1401b80b0
mov dword [rbp + 0x90], eax
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rbp - 0x80]
mov rcx, qword [rdi + 8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, 2
test eax, eax
jne 0x1401b80a5
lea r15d, [rbx - 1]
jmp 0x1401b80b5
cmp byte [r13 + 8], 0
cmove r15d, ebx
jmp 0x1401b80b5
mov ebx, 2
mov r8d, 1
lea rdx, str.REG_QWORD
lea rcx, [rbp - 0x50]
call fcn.1401fce20
test al, al
je 0x1401b8162
cmp dword [rsp + 0x6c], 0
je 0x1401b828f
mov rbx, qword [rsp + 0x60]
mov r8d, 0xa
lea rdx, [rbp]
mov rcx, rbx
call fcn.1402bc008
mov rdx, qword [rbp]
sub rdx, rbx
sar rdx, 1
movsxd rcx, dword [rsp + 0x6c]
cmp rdx, rcx
jne 0x1401b828f
mov qword [rbp + 0x90], rax
mov dword [rsp + 0x28], 8
lea rax, [rbp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, 0xb
xor r8d, r8d
mov rdx, qword [rbp - 0x80]
mov rcx, qword [rdi + 8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1401b814c
lea r15d, [rax + 1]
jmp 0x1401b828f
cmp byte [r13 + 8], 0
jne 0x1401b828f
mov r15d, 2
jmp 0x1401b828f
mov r8d, 1
lea rdx, str.REG_BINARY
lea rcx, [rbp - 0x50]
call fcn.1401fce20
test al, al
je 0x1401b820b
lea rax, vtable.Core::ByteArray.0
mov qword [rbp - 0x70], rax
mov dword [rbp - 0x68], r14d
mov qword [rbp - 0x60], r14
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov qword [rbp - 0x58], rax
lea rdx, [rbp - 0x70]
mov rcx, qword [rsp + 0x60]
call fcn.1400e9760
mov rbx, qword [rbp - 0x60]
test al, al
je 0x1401b81ee
mov eax, dword [rbp - 0x68]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, 3
xor r8d, r8d
mov rdx, qword [rbp - 0x80]
mov rcx, qword [rdi + 8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1401b81e0
lea r15d, [rax + 1]
jmp 0x1401b81ee
cmp byte [r13 + 8], 0
mov eax, 2
cmove r15d, eax
test rbx, rbx
je 0x1401b828f
mov r8, rbx
xor edx, edx
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1401b828f
mov r8d, 1
lea rdx, [0x1403600d8]
lea rcx, [rbp - 0x50]
call fcn.1401fc9f0
test al, al
je 0x1401b828f
mov r8d, 1
lea rdx, str.REG_MULTI_SZ
lea rcx, [rbp - 0x50]
call fcn.1401fce20
test al, al
je 0x1401b8247
mov r9d, 7
jmp 0x1401b8269
mov r8d, 1
lea rdx, str.REG_EXPAND_SZ
lea rcx, [rbp - 0x50]
call fcn.1401fce20
mov r9d, r14d
test al, al
setne r9b
inc r9d
mov r8, qword [rsp + 0x60]
mov rdx, qword [rbp - 0x80]
mov rcx, rdi
call fcn.1401b18c0
test al, al
je 0x1401b8286
mov r15d, 1
jmp 0x1401b828f
cmp byte [r13 + 8], 0
cmove r15d, ebx
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax]
nop
cmp dword [rbp - 0x78], 0
jle 0x1401b82ad
mov rcx, qword [rbp - 0x80]
call fcn.1402b7350
nop
cmp dword [rsp + 0x48], 0
jle 0x1401b82be
mov rcx, qword [rsp + 0x40]
call fcn.1402b7350
mov edi, dword [rbp + 0x88]
cmp dword [rsp + 0x68], 0
jle 0x1401b82d6
mov rcx, qword [rsp + 0x60]
call fcn.1402b7350
nop
cmp dword [rbp - 0x48], 0
jle 0x1401b83e0
mov rcx, qword [rbp - 0x50]
call fcn.1402b7350
jmp 0x1401b83e0
mov rax, qword [r12 + 0x10]
lea r8, str.encodedvalue
lea rdx, [rbp - 0x10]
mov rcx, qword [rax + rsi*8]
call fcn.1402018f0
nop
cmp dword [rbp - 4], 0
jle 0x1401b8324
mov r9b, 1
lea r8, [rbp - 0x10]
lea rdx, [rsp + 0x30]
call fcn.1401b99c0
jmp 0x1401b83c9
mov rax, qword [r12 + 0x10]
mov rcx, qword [rax + rsi*8]
mov rax, qword [rcx + 0x48]
add rax, 0x10
lea rcx, vtable.Core::Collection_class_Core::Xml::XmlAttribute____ptr64_::Enumerator.0
mov qword [rbp - 0x70], rcx
mov qword [rbp - 0x68], rax
mov rbx, qword [rax + 0x10]
test rbx, rbx
je 0x1401b83b3
mov rcx, qword [rbx + 0x10]
mov rbx, qword [rbx]
mov qword [rbp - 0x60], rbx
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, rax
xor r8d, r8d
lea rdx, str.value
call fcn.1401fce20
test al, al
je 0x1401b8348
mov rax, qword [r12 + 0x10]
lea r8, str.value
lea rdx, [rbp + 8]
mov rcx, qword [rax + rsi*8]
call fcn.1402018f0
nop
xor r9d, r9d
lea r8, [rbp + 8]
lea rdx, [rsp + 0x30]
call fcn.1401b99c0
mov r15d, eax
cmp dword [rbp + 0x10], 0
jle 0x1401b83cc
mov rcx, qword [rbp + 8]
call fcn.1402b7350
jmp 0x1401b83cc
mov rax, qword [r12 + 0x10]
mov r8, qword [rax + rsi*8]
lea rdx, [rsp + 0x30]
mov rcx, r13
call fcn.1401b84a0
mov r15d, eax
cmp dword [rbp - 8], 0
jle 0x1401b83e0
mov rcx, qword [rbp - 0x10]
call fcn.1402b7350
jmp 0x1401b83e0
xor r14d, r14d
cmp r15d, 1
jne 0x1401b8406
xor r8d, r8d
lea rdx, str.HKLMBCD0
lea rcx, [rsp + 0x30]
call fcn.1401ff2c0
test al, al
je 0x1401b8418
mov eax, 2
mov r15d, eax
cmp byte [r13 + 8], 0
jne 0x1401b8418
cmp r15d, 2
jne 0x1401b8418
mov byte [r13 + 0x11], 1
lea rdx, [r13 + 0x40]
mov r9d, r15d
lea r8, [rsp + 0x30]
call fcn.1401b9c80
nop
cmp dword [rbp - 0x28], 0
jle 0x1401b843a
mov rcx, qword [rbp - 0x30]
call fcn.1402b7350
nop
cmp dword [rbp - 0x38], 0
jle 0x1401b844a
mov rcx, qword [rbp - 0x40]
call fcn.1402b7350
nop
cmp dword [rsp + 0x38], 0
jle 0x1401b845b
mov rcx, qword [rsp + 0x30]
call fcn.1402b7350
lea rbx, [0x140346ce0]
inc edi
mov dword [rbp + 0x88], edi
inc rsi
mov qword [rbp + 0x90], rsi
cmp edi, dword [r12 + 8]
jl 0x1401b7b10
mov al, 1
mov rbx, qword [rsp + 0x180]
add rsp, 0x140
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret