Function at 0x1401bb2c0
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 0x1401bbc8f
xor r14d, r14d
mov edi, r14d
mov dword [rbp + 0x88], r14d
test eax, eax
jle 0x1401bbc8f
mov esi, r14d
mov qword [rbp + 0x90], r14
lea rbx, [0x14034d1a0]
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.1402075e0
nop
mov rax, qword [r12 + 0x10]
lea r8, str.operation
lea rdx, [rbp - 0x40]
mov rcx, qword [rax + rsi*8]
call fcn.1402075e0
nop
mov rax, qword [r12 + 0x10]
lea r8, str.skip
lea rdx, [rbp - 0x30]
mov rcx, qword [rax + rsi*8]
call fcn.1402075e0
nop
xor r8d, r8d
lea rdx, [0x140351b10]
lea rcx, [rbp - 0x30]
call fcn.140202b80
test al, al
je 0x1401bb3c6
cmp dword [rbp - 0x28], 0
jle 0x1401bb39c
mov rcx, qword [rbp - 0x30]
call fcn.1402bd0e0
nop
cmp dword [rbp - 0x38], 0
jle 0x1401bb3ac
mov rcx, qword [rbp - 0x40]
call fcn.1402bd0e0
nop
cmp dword [rsp + 0x38], 0
jle 0x1401bbc72
mov rcx, qword [rsp + 0x30]
call fcn.1402bd0e0
jmp 0x1401bbc72
cmp dword [rbp - 0x34], 0
je 0x1401bbafe
mov r8d, 1
lea rdx, [0x14035a170]
lea rcx, [rbp - 0x40]
call fcn.140202b80
test al, al
jne 0x1401bbafe
mov r8d, 1
lea rdx, str.rename
lea rcx, [rbp - 0x40]
call fcn.140202b80
test al, al
je 0x1401bb64c
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, [0x14034c088]
lea rcx, [rsp + 0x30]
call fcn.1402043f0
mov r14, qword [rbp - 0x60]
cmp eax, 3
jl 0x1401bb61d
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 0x1401bb477
lea rax, [0x14034d1a0]
mov qword [rsp + 0x70], rax
jmp 0x1401bb49b
lea rcx, [rsp + 0x70]
call fcn.1402028a0
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.1402c06dc
mov edx, dword [rbx + 0xc]
lea rcx, [rsp + 0x70]
call fcn.140203bb0
nop
mov rax, qword [r12 + 0x10]
lea r8, [0x14035d150]
lea rdx, [rbp - 0x20]
mov rcx, qword [rax + rsi*8]
call fcn.1402075e0
nop
cmp dword [rbp - 0x14], 0
jle 0x1401bb5f6
mov edx, edi
lea rcx, [rbp - 0x70]
call fcn.1400c7e30
lea rax, [0x14034d1a0]
mov qword [rsp + 0x50], rax
xor r14d, r14d
mov qword [rsp + 0x58], r14
mov rdi, qword [0x14041eee8]
test rdi, rdi
je 0x1401bb53f
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x1401bb500
test ebx, ebx
jle 0x1401bb53f
mov edx, ebx
lea rcx, [rsp + 0x50]
call fcn.1402028a0
movsxd r9, ebx
mov eax, dword [rsp + 0x58]
inc eax
movsxd rdx, eax
mov r8, rdi
mov rcx, qword [rsp + 0x50]
call fcn.1402c06dc
mov edx, ebx
lea rcx, [rsp + 0x50]
call fcn.140203bb0
mov rbx, r14
mov r14, qword [rbp - 0x60]
mov eax, dword [rbp - 0x68]
test eax, eax
jle 0x1401bb588
mov rdi, r14
mov esi, eax
test rbx, rbx
jle 0x1401bb568
lea rdx, [0x14034c088]
lea rcx, [rsp + 0x50]
call fcn.140200ef0
mov rdx, qword [rdi]
lea rcx, [rsp + 0x50]
call fcn.140200ef0
inc rbx
add rdi, 0x10
dec rsi
jne 0x1401bb552
mov rsi, qword [rbp + 0x90]
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x50]
call fcn.1400ed8e0
mov rbx, rax
test rax, rax
je 0x1401bb5e4
lea r8, [rbp - 0x20]
lea rdx, [rsp + 0x70]
mov rcx, rax
call fcn.1401b52b0
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.1401b5550
mov r15d, 2
mov rax, qword [rbx]
lea edx, [r15 - 1]
mov rcx, rbx
call qword [rax]
nop
cmp dword [rsp + 0x58], 0
jle 0x1401bb5f6
mov rcx, qword [rsp + 0x50]
call fcn.1402bd0e0
nop
cmp dword [rbp - 0x18], 0
jle 0x1401bb606
mov rcx, qword [rbp - 0x20]
call fcn.1402bd0e0
nop
cmp dword [rsp + 0x78], 0
jle 0x1401bb617
mov rcx, qword [rsp + 0x70]
call fcn.1402bd0e0
mov edi, dword [rbp + 0x88]
test r14, r14
je 0x1401bbbed
lea r9, [fcn.140005eb0]
mov r8d, dword [r14 - 8]
mov edx, 0x10
mov rcx, r14
call fcn.1402bda84
lea rcx, [r14 - 8]
call fcn.1402bcebc
jmp 0x1401bbbed
mov r8d, 1
lea rdx, [0x14035b320]
lea rcx, [rbp - 0x40]
call fcn.140202b80
test al, al
je 0x1401bbc16
mov rax, qword [r12 + 0x10]
lea r8, [0x140310488]
lea rdx, [rbp - 0x50]
mov rcx, qword [rax + rsi*8]
call fcn.1402075e0
nop
mov rax, qword [r12 + 0x10]
lea r8, str.value
lea rdx, [rsp + 0x60]
mov rcx, qword [rax + rsi*8]
call fcn.1402075e0
nop
cmp dword [rbp - 0x44], 0
jle 0x1401bbad4
cmp dword [rsp + 0x6c], 0
jle 0x1401bbad4
mov qword [rsp + 0x48], 0
mov edx, dword [rsp + 0x3c]
test edx, edx
jne 0x1401bb6cc
mov qword [rsp + 0x40], rbx
jmp 0x1401bb6f7
lea rcx, [rsp + 0x40]
call fcn.1402028a0
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.1402c06dc
mov edx, dword [rsp + 0x3c]
lea rcx, [rsp + 0x40]
call fcn.140203bb0
nop
mov rdx, qword [0x14041eee8]
lea rcx, [rbp - 0x80]
call fcn.140200840
nop
mov r8d, 1
lea rdx, [0x14034c088]
lea rcx, [rsp + 0x30]
call fcn.140202750
test al, al
jne 0x1401bb804
mov r8d, 1
lea rdx, [0x14034c088]
lea rcx, [rsp + 0x30]
call fcn.140203950
mov edi, eax
test eax, eax
jle 0x1401bb804
lea r9d, [rdi + 1]
xor r8d, r8d
lea rdx, [rbp + 0x18]
lea rcx, [rsp + 0x30]
call fcn.140204ad0
mov rbx, rax
mov edx, dword [rax + 0xc]
lea rcx, [rsp + 0x40]
call fcn.1402028a0
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.1402c06dc
mov edx, dword [rbx + 0xc]
lea rcx, [rsp + 0x40]
call fcn.140203bb0
nop
cmp dword [rbp + 0x20], 0
jle 0x1401bb7af
mov rcx, qword [rbp + 0x18]
call fcn.1402bd0e0
lea r8d, [rdi + 1]
lea rdx, [rbp + 0x28]
lea rcx, [rsp + 0x30]
call fcn.140204810
mov rbx, rax
mov edx, dword [rax + 0xc]
lea rcx, [rbp - 0x80]
call fcn.1402028a0
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.1402c06dc
mov edx, dword [rbx + 0xc]
lea rcx, [rbp - 0x80]
call fcn.140203bb0
nop
cmp dword [rbp + 0x30], 0
jle 0x1401bb804
mov rcx, qword [rbp + 0x28]
call fcn.1402bd0e0
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x40]
call fcn.1400ed8e0
mov rdi, rax
test rax, rax
je 0x1401bbaad
mov r8d, 1
lea rdx, str.REG_DWORD
lea rcx, [rbp - 0x50]
call fcn.140202b80
test al, al
je 0x1401bb8c0
cmp dword [rsp + 0x6c], 0
je 0x1401bb8c0
mov rbx, qword [rsp + 0x60]
mov r8d, 0xa
lea rdx, [rbp + 0x98]
mov rcx, rbx
call fcn.1402c04f0
mov rdx, qword [rbp + 0x98]
sub rdx, rbx
sar rdx, 1
movsxd rcx, dword [rsp + 0x6c]
cmp rdx, rcx
jne 0x1401bb8c0
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 0x1401bb8b5
lea r15d, [rbx - 1]
jmp 0x1401bb8c5
cmp byte [r13 + 8], 0
cmove r15d, ebx
jmp 0x1401bb8c5
mov ebx, 2
mov r8d, 1
lea rdx, str.REG_QWORD
lea rcx, [rbp - 0x50]
call fcn.140202b80
test al, al
je 0x1401bb972
cmp dword [rsp + 0x6c], 0
je 0x1401bba9f
mov rbx, qword [rsp + 0x60]
mov r8d, 0xa
lea rdx, [rbp]
mov rcx, rbx
call fcn.1402c1d38
mov rdx, qword [rbp]
sub rdx, rbx
sar rdx, 1
movsxd rcx, dword [rsp + 0x6c]
cmp rdx, rcx
jne 0x1401bba9f
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 0x1401bb95c
lea r15d, [rax + 1]
jmp 0x1401bba9f
cmp byte [r13 + 8], 0
jne 0x1401bba9f
mov r15d, 2
jmp 0x1401bba9f
mov r8d, 1
lea rdx, str.REG_BINARY
lea rcx, [rbp - 0x50]
call fcn.140202b80
test al, al
je 0x1401bba1b
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.1400ebf70
mov rbx, qword [rbp - 0x60]
test al, al
je 0x1401bb9fe
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 0x1401bb9f0
lea r15d, [rax + 1]
jmp 0x1401bb9fe
cmp byte [r13 + 8], 0
mov eax, 2
cmove r15d, eax
test rbx, rbx
je 0x1401bba9f
mov r8, rbx
xor edx, edx
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1401bba9f
mov r8d, 1
lea rdx, [0x140366c60]
lea rcx, [rbp - 0x50]
call fcn.140202750
test al, al
je 0x1401bba9f
mov r8d, 1
lea rdx, str.REG_MULTI_SZ
lea rcx, [rbp - 0x50]
call fcn.140202b80
test al, al
je 0x1401bba57
mov r9d, 7
jmp 0x1401bba79
mov r8d, 1
lea rdx, str.REG_EXPAND_SZ
lea rcx, [rbp - 0x50]
call fcn.140202b80
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.1401b4f60
test al, al
je 0x1401bba96
mov r15d, 1
jmp 0x1401bba9f
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 0x1401bbabd
mov rcx, qword [rbp - 0x80]
call fcn.1402bd0e0
nop
cmp dword [rsp + 0x48], 0
jle 0x1401bbace
mov rcx, qword [rsp + 0x40]
call fcn.1402bd0e0
mov edi, dword [rbp + 0x88]
cmp dword [rsp + 0x68], 0
jle 0x1401bbae6
mov rcx, qword [rsp + 0x60]
call fcn.1402bd0e0
nop
cmp dword [rbp - 0x48], 0
jle 0x1401bbbf0
mov rcx, qword [rbp - 0x50]
call fcn.1402bd0e0
jmp 0x1401bbbf0
mov rax, qword [r12 + 0x10]
lea r8, str.encodedvalue
lea rdx, [rbp - 0x10]
mov rcx, qword [rax + rsi*8]
call fcn.1402075e0
nop
cmp dword [rbp - 4], 0
jle 0x1401bbb34
mov r9b, 1
lea r8, [rbp - 0x10]
lea rdx, [rsp + 0x30]
call fcn.1401bd1e0
jmp 0x1401bbbd9
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 0x1401bbbc3
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.140202b80
test al, al
je 0x1401bbb58
mov rax, qword [r12 + 0x10]
lea r8, str.value
lea rdx, [rbp + 8]
mov rcx, qword [rax + rsi*8]
call fcn.1402075e0
nop
xor r9d, r9d
lea r8, [rbp + 8]
lea rdx, [rsp + 0x30]
call fcn.1401bd1e0
mov r15d, eax
cmp dword [rbp + 0x10], 0
jle 0x1401bbbdc
mov rcx, qword [rbp + 8]
call fcn.1402bd0e0
jmp 0x1401bbbdc
mov rax, qword [r12 + 0x10]
mov r8, qword [rax + rsi*8]
lea rdx, [rsp + 0x30]
mov rcx, r13
call fcn.1401bbcb0
mov r15d, eax
cmp dword [rbp - 8], 0
jle 0x1401bbbf0
mov rcx, qword [rbp - 0x10]
call fcn.1402bd0e0
jmp 0x1401bbbf0
xor r14d, r14d
cmp r15d, 1
jne 0x1401bbc16
xor r8d, r8d
lea rdx, str.HKLMBCD0
lea rcx, [rsp + 0x30]
call fcn.140205020
test al, al
je 0x1401bbc28
mov eax, 2
mov r15d, eax
cmp byte [r13 + 8], 0
jne 0x1401bbc28
cmp r15d, 2
jne 0x1401bbc28
mov byte [r13 + 0x11], 1
lea rdx, [r13 + 0x40]
mov r9d, r15d
lea r8, [rsp + 0x30]
call fcn.1401bd4a0
nop
cmp dword [rbp - 0x28], 0
jle 0x1401bbc4a
mov rcx, qword [rbp - 0x30]
call fcn.1402bd0e0
nop
cmp dword [rbp - 0x38], 0
jle 0x1401bbc5a
mov rcx, qword [rbp - 0x40]
call fcn.1402bd0e0
nop
cmp dword [rsp + 0x38], 0
jle 0x1401bbc6b
mov rcx, qword [rsp + 0x30]
call fcn.1402bd0e0
lea rbx, [0x14034d1a0]
inc edi
mov dword [rbp + 0x88], edi
inc rsi
mov qword [rbp + 0x90], rsi
cmp edi, dword [r12 + 8]
jl 0x1401bb320
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