Function at 0x1401b90c0
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 0x1401b9a8f
xor r14d, r14d
mov edi, r14d
mov dword [rbp + 0x88], r14d
test eax, eax
jle 0x1401b9a8f
mov esi, r14d
mov qword [rbp + 0x90], r14
lea rbx, [0x140348ca0]
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.140204010
nop
mov rax, qword [r12 + 0x10]
lea r8, str.operation
lea rdx, [rbp - 0x40]
mov rcx, qword [rax + rsi*8]
call fcn.140204010
nop
mov rax, qword [r12 + 0x10]
lea r8, str.skip
lea rdx, [rbp - 0x30]
mov rcx, qword [rax + rsi*8]
call fcn.140204010
nop
xor r8d, r8d
lea rdx, [0x14034d4f0]
lea rcx, [rbp - 0x30]
call fcn.1401ff540
test al, al
je 0x1401b91c6
cmp dword [rbp - 0x28], 0
jle 0x1401b919c
mov rcx, qword [rbp - 0x30]
call fcn.1402b9c20
nop
cmp dword [rbp - 0x38], 0
jle 0x1401b91ac
mov rcx, qword [rbp - 0x40]
call fcn.1402b9c20
nop
cmp dword [rsp + 0x38], 0
jle 0x1401b9a72
mov rcx, qword [rsp + 0x30]
call fcn.1402b9c20
jmp 0x1401b9a72
cmp dword [rbp - 0x34], 0
je 0x1401b98fe
mov r8d, 1
lea rdx, [0x140355b60]
lea rcx, [rbp - 0x40]
call fcn.1401ff540
test al, al
jne 0x1401b98fe
mov r8d, 1
lea rdx, str.rename
lea rcx, [rbp - 0x40]
call fcn.1401ff540
test al, al
je 0x1401b944c
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, [0x140347f58]
lea rcx, [rsp + 0x30]
call fcn.140200db0
mov r14, qword [rbp - 0x60]
cmp eax, 3
jl 0x1401b941d
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 0x1401b9277
lea rax, [0x140348ca0]
mov qword [rsp + 0x70], rax
jmp 0x1401b929b
lea rcx, [rsp + 0x70]
call fcn.1401ff260
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.1402bd21c
mov edx, dword [rbx + 0xc]
lea rcx, [rsp + 0x70]
call fcn.140200570
nop
mov rax, qword [r12 + 0x10]
lea r8, [0x140358af0]
lea rdx, [rbp - 0x20]
mov rcx, qword [rax + rsi*8]
call fcn.140204010
nop
cmp dword [rbp - 0x14], 0
jle 0x1401b93f6
mov edx, edi
lea rcx, [rbp - 0x70]
call fcn.1400c7e30
lea rax, [0x140348ca0]
mov qword [rsp + 0x50], rax
xor r14d, r14d
mov qword [rsp + 0x58], r14
mov rdi, qword [0x14041a158]
test rdi, rdi
je 0x1401b933f
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x1401b9300
test ebx, ebx
jle 0x1401b933f
mov edx, ebx
lea rcx, [rsp + 0x50]
call fcn.1401ff260
movsxd r9, ebx
mov eax, dword [rsp + 0x58]
inc eax
movsxd rdx, eax
mov r8, rdi
mov rcx, qword [rsp + 0x50]
call fcn.1402bd21c
mov edx, ebx
lea rcx, [rsp + 0x50]
call fcn.140200570
mov rbx, r14
mov r14, qword [rbp - 0x60]
mov eax, dword [rbp - 0x68]
test eax, eax
jle 0x1401b9388
mov rdi, r14
mov esi, eax
test rbx, rbx
jle 0x1401b9368
lea rdx, [0x140347f58]
lea rcx, [rsp + 0x50]
call fcn.1401fd8b0
mov rdx, qword [rdi]
lea rcx, [rsp + 0x50]
call fcn.1401fd8b0
inc rbx
add rdi, 0x10
dec rsi
jne 0x1401b9352
mov rsi, qword [rbp + 0x90]
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x50]
call fcn.1400ec370
mov rbx, rax
test rax, rax
je 0x1401b93e4
lea r8, [rbp - 0x20]
lea rdx, [rsp + 0x70]
mov rcx, rax
call fcn.1401b3250
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.1401b34f0
mov r15d, 2
mov rax, qword [rbx]
lea edx, [r15 - 1]
mov rcx, rbx
call qword [rax]
nop
cmp dword [rsp + 0x58], 0
jle 0x1401b93f6
mov rcx, qword [rsp + 0x50]
call fcn.1402b9c20
nop
cmp dword [rbp - 0x18], 0
jle 0x1401b9406
mov rcx, qword [rbp - 0x20]
call fcn.1402b9c20
nop
cmp dword [rsp + 0x78], 0
jle 0x1401b9417
mov rcx, qword [rsp + 0x70]
call fcn.1402b9c20
mov edi, dword [rbp + 0x88]
test r14, r14
je 0x1401b99ed
lea r9, [fcn.140005eb0]
mov r8d, dword [r14 - 8]
mov edx, 0x10
mov rcx, r14
call fcn.1402ba5c4
lea rcx, [r14 - 8]
call fcn.1402b99fc
jmp 0x1401b99ed
mov r8d, 1
lea rdx, [0x140356cb0]
lea rcx, [rbp - 0x40]
call fcn.1401ff540
test al, al
je 0x1401b9a16
mov rax, qword [r12 + 0x10]
lea r8, [0x14030c428]
lea rdx, [rbp - 0x50]
mov rcx, qword [rax + rsi*8]
call fcn.140204010
nop
mov rax, qword [r12 + 0x10]
lea r8, str.value
lea rdx, [rsp + 0x60]
mov rcx, qword [rax + rsi*8]
call fcn.140204010
nop
cmp dword [rbp - 0x44], 0
jle 0x1401b98d4
cmp dword [rsp + 0x6c], 0
jle 0x1401b98d4
mov qword [rsp + 0x48], 0
mov edx, dword [rsp + 0x3c]
test edx, edx
jne 0x1401b94cc
mov qword [rsp + 0x40], rbx
jmp 0x1401b94f7
lea rcx, [rsp + 0x40]
call fcn.1401ff260
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.1402bd21c
mov edx, dword [rsp + 0x3c]
lea rcx, [rsp + 0x40]
call fcn.140200570
nop
mov rdx, qword [0x14041a158]
lea rcx, [rbp - 0x80]
call fcn.1401fd200
nop
mov r8d, 1
lea rdx, [0x140347f58]
lea rcx, [rsp + 0x30]
call fcn.1401ff110
test al, al
jne 0x1401b9604
mov r8d, 1
lea rdx, [0x140347f58]
lea rcx, [rsp + 0x30]
call fcn.140200310
mov edi, eax
test eax, eax
jle 0x1401b9604
lea r9d, [rdi + 1]
xor r8d, r8d
lea rdx, [rbp + 0x18]
lea rcx, [rsp + 0x30]
call fcn.140201490
mov rbx, rax
mov edx, dword [rax + 0xc]
lea rcx, [rsp + 0x40]
call fcn.1401ff260
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.1402bd21c
mov edx, dword [rbx + 0xc]
lea rcx, [rsp + 0x40]
call fcn.140200570
nop
cmp dword [rbp + 0x20], 0
jle 0x1401b95af
mov rcx, qword [rbp + 0x18]
call fcn.1402b9c20
lea r8d, [rdi + 1]
lea rdx, [rbp + 0x28]
lea rcx, [rsp + 0x30]
call fcn.1402011d0
mov rbx, rax
mov edx, dword [rax + 0xc]
lea rcx, [rbp - 0x80]
call fcn.1401ff260
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.1402bd21c
mov edx, dword [rbx + 0xc]
lea rcx, [rbp - 0x80]
call fcn.140200570
nop
cmp dword [rbp + 0x30], 0
jle 0x1401b9604
mov rcx, qword [rbp + 0x28]
call fcn.1402b9c20
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x40]
call fcn.1400ec370
mov rdi, rax
test rax, rax
je 0x1401b98ad
mov r8d, 1
lea rdx, str.REG_DWORD
lea rcx, [rbp - 0x50]
call fcn.1401ff540
test al, al
je 0x1401b96c0
cmp dword [rsp + 0x6c], 0
je 0x1401b96c0
mov rbx, qword [rsp + 0x60]
mov r8d, 0xa
lea rdx, [rbp + 0x98]
mov rcx, rbx
call fcn.1402bd030
mov rdx, qword [rbp + 0x98]
sub rdx, rbx
sar rdx, 1
movsxd rcx, dword [rsp + 0x6c]
cmp rdx, rcx
jne 0x1401b96c0
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 0x1401b96b5
lea r15d, [rbx - 1]
jmp 0x1401b96c5
cmp byte [r13 + 8], 0
cmove r15d, ebx
jmp 0x1401b96c5
mov ebx, 2
mov r8d, 1
lea rdx, str.REG_QWORD
lea rcx, [rbp - 0x50]
call fcn.1401ff540
test al, al
je 0x1401b9772
cmp dword [rsp + 0x6c], 0
je 0x1401b989f
mov rbx, qword [rsp + 0x60]
mov r8d, 0xa
lea rdx, [rbp]
mov rcx, rbx
call fcn.1402be878
mov rdx, qword [rbp]
sub rdx, rbx
sar rdx, 1
movsxd rcx, dword [rsp + 0x6c]
cmp rdx, rcx
jne 0x1401b989f
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 0x1401b975c
lea r15d, [rax + 1]
jmp 0x1401b989f
cmp byte [r13 + 8], 0
jne 0x1401b989f
mov r15d, 2
jmp 0x1401b989f
mov r8d, 1
lea rdx, str.REG_BINARY
lea rcx, [rbp - 0x50]
call fcn.1401ff540
test al, al
je 0x1401b981b
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.1400eaa00
mov rbx, qword [rbp - 0x60]
test al, al
je 0x1401b97fe
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 0x1401b97f0
lea r15d, [rax + 1]
jmp 0x1401b97fe
cmp byte [r13 + 8], 0
mov eax, 2
cmove r15d, eax
test rbx, rbx
je 0x1401b989f
mov r8, rbx
xor edx, edx
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1401b989f
mov r8d, 1
lea rdx, [0x1403623b8]
lea rcx, [rbp - 0x50]
call fcn.1401ff110
test al, al
je 0x1401b989f
mov r8d, 1
lea rdx, str.REG_MULTI_SZ
lea rcx, [rbp - 0x50]
call fcn.1401ff540
test al, al
je 0x1401b9857
mov r9d, 7
jmp 0x1401b9879
mov r8d, 1
lea rdx, str.REG_EXPAND_SZ
lea rcx, [rbp - 0x50]
call fcn.1401ff540
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.1401b2f00
test al, al
je 0x1401b9896
mov r15d, 1
jmp 0x1401b989f
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 0x1401b98bd
mov rcx, qword [rbp - 0x80]
call fcn.1402b9c20
nop
cmp dword [rsp + 0x48], 0
jle 0x1401b98ce
mov rcx, qword [rsp + 0x40]
call fcn.1402b9c20
mov edi, dword [rbp + 0x88]
cmp dword [rsp + 0x68], 0
jle 0x1401b98e6
mov rcx, qword [rsp + 0x60]
call fcn.1402b9c20
nop
cmp dword [rbp - 0x48], 0
jle 0x1401b99f0
mov rcx, qword [rbp - 0x50]
call fcn.1402b9c20
jmp 0x1401b99f0
mov rax, qword [r12 + 0x10]
lea r8, str.encodedvalue
lea rdx, [rbp - 0x10]
mov rcx, qword [rax + rsi*8]
call fcn.140204010
nop
cmp dword [rbp - 4], 0
jle 0x1401b9934
mov r9b, 1
lea r8, [rbp - 0x10]
lea rdx, [rsp + 0x30]
call fcn.1401bafe0
jmp 0x1401b99d9
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 0x1401b99c3
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.1401ff540
test al, al
je 0x1401b9958
mov rax, qword [r12 + 0x10]
lea r8, str.value
lea rdx, [rbp + 8]
mov rcx, qword [rax + rsi*8]
call fcn.140204010
nop
xor r9d, r9d
lea r8, [rbp + 8]
lea rdx, [rsp + 0x30]
call fcn.1401bafe0
mov r15d, eax
cmp dword [rbp + 0x10], 0
jle 0x1401b99dc
mov rcx, qword [rbp + 8]
call fcn.1402b9c20
jmp 0x1401b99dc
mov rax, qword [r12 + 0x10]
mov r8, qword [rax + rsi*8]
lea rdx, [rsp + 0x30]
mov rcx, r13
call fcn.1401b9ab0
mov r15d, eax
cmp dword [rbp - 8], 0
jle 0x1401b99f0
mov rcx, qword [rbp - 0x10]
call fcn.1402b9c20
jmp 0x1401b99f0
xor r14d, r14d
cmp r15d, 1
jne 0x1401b9a16
xor r8d, r8d
lea rdx, str.HKLMBCD0
lea rcx, [rsp + 0x30]
call fcn.1402019e0
test al, al
je 0x1401b9a28
mov eax, 2
mov r15d, eax
cmp byte [r13 + 8], 0
jne 0x1401b9a28
cmp r15d, 2
jne 0x1401b9a28
mov byte [r13 + 0x11], 1
lea rdx, [r13 + 0x40]
mov r9d, r15d
lea r8, [rsp + 0x30]
call fcn.1401bb2a0
nop
cmp dword [rbp - 0x28], 0
jle 0x1401b9a4a
mov rcx, qword [rbp - 0x30]
call fcn.1402b9c20
nop
cmp dword [rbp - 0x38], 0
jle 0x1401b9a5a
mov rcx, qword [rbp - 0x40]
call fcn.1402b9c20
nop
cmp dword [rsp + 0x38], 0
jle 0x1401b9a6b
mov rcx, qword [rsp + 0x30]
call fcn.1402b9c20
lea rbx, [0x140348ca0]
inc edi
mov dword [rbp + 0x88], edi
inc rsi
mov qword [rbp + 0x90], rsi
cmp edi, dword [r12 + 8]
jl 0x1401b9120
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