Function at 0x1401a7d00
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 0x1401a86cf
xor r14d, r14d
mov edi, r14d
mov dword [rbp + 0x88], r14d
test eax, eax
jle 0x1401a86cf
mov esi, r14d
mov qword [rbp + 0x90], r14
lea rbx, [0x140323de0]
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.1401edd30
nop
mov rax, qword [r12 + 0x10]
lea r8, str.operation
lea rdx, [rbp - 0x40]
mov rcx, qword [rax + rsi*8]
call fcn.1401edd30
nop
mov rax, qword [r12 + 0x10]
lea r8, str.skip
lea rdx, [rbp - 0x30]
mov rcx, qword [rax + rsi*8]
call fcn.1401edd30
nop
xor r8d, r8d
lea rdx, [0x140328268]
lea rcx, [rbp - 0x30]
call fcn.1401e9310
test al, al
je 0x1401a7e06
cmp dword [rbp - 0x28], 0
jle 0x1401a7ddc
mov rcx, qword [rbp - 0x30]
call fcn.140298600
nop
cmp dword [rbp - 0x38], 0
jle 0x1401a7dec
mov rcx, qword [rbp - 0x40]
call fcn.140298600
nop
cmp dword [rsp + 0x38], 0
jle 0x1401a86b2
mov rcx, qword [rsp + 0x30]
call fcn.140298600
jmp 0x1401a86b2
cmp dword [rbp - 0x34], 0
je 0x1401a853e
mov r8d, 1
lea rdx, [0x14032fd88]
lea rcx, [rbp - 0x40]
call fcn.1401e9310
test al, al
jne 0x1401a853e
mov r8d, 1
lea rdx, str.rename
lea rcx, [rbp - 0x40]
call fcn.1401e9310
test al, al
je 0x1401a808c
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, [0x1403232c8]
lea rcx, [rsp + 0x30]
call fcn.1401eaad0
mov r14, qword [rbp - 0x60]
cmp eax, 3
jl 0x1401a805d
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 0x1401a7eb7
lea rax, [0x140323de0]
mov qword [rsp + 0x70], rax
jmp 0x1401a7edb
lea rcx, [rsp + 0x70]
call fcn.1401e9030
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.14029b4d8
mov edx, dword [rbx + 0xc]
lea rcx, [rsp + 0x70]
call fcn.1401ea290
nop
mov rax, qword [r12 + 0x10]
lea r8, [0x140332f20]
lea rdx, [rbp - 0x20]
mov rcx, qword [rax + rsi*8]
call fcn.1401edd30
nop
cmp dword [rbp - 0x14], 0
jle 0x1401a8036
mov edx, edi
lea rcx, [rbp - 0x70]
call fcn.1400c7710
lea rax, [0x140323de0]
mov qword [rsp + 0x50], rax
xor r14d, r14d
mov qword [rsp + 0x58], r14
mov rdi, qword [0x1403ec168]
test rdi, rdi
je 0x1401a7f7f
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x1401a7f40
test ebx, ebx
jle 0x1401a7f7f
mov edx, ebx
lea rcx, [rsp + 0x50]
call fcn.1401e9030
movsxd r9, ebx
mov eax, dword [rsp + 0x58]
inc eax
movsxd rdx, eax
mov r8, rdi
mov rcx, qword [rsp + 0x50]
call fcn.14029b4d8
mov edx, ebx
lea rcx, [rsp + 0x50]
call fcn.1401ea290
mov rbx, r14
mov r14, qword [rbp - 0x60]
mov eax, dword [rbp - 0x68]
test eax, eax
jle 0x1401a7fc8
mov rdi, r14
mov esi, eax
test rbx, rbx
jle 0x1401a7fa8
lea rdx, [0x1403232c8]
lea rcx, [rsp + 0x50]
call fcn.1401e7680
mov rdx, qword [rdi]
lea rcx, [rsp + 0x50]
call fcn.1401e7680
inc rbx
add rdi, 0x10
dec rsi
jne 0x1401a7f92
mov rsi, qword [rbp + 0x90]
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x50]
call fcn.1400ecf50
mov rbx, rax
test rax, rax
je 0x1401a8024
lea r8, [rbp - 0x20]
lea rdx, [rsp + 0x70]
mov rcx, rax
call fcn.1401a1dc0
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.1401a2060
mov r15d, 2
mov rax, qword [rbx]
lea edx, [r15 - 1]
mov rcx, rbx
call qword [rax]
nop
cmp dword [rsp + 0x58], 0
jle 0x1401a8036
mov rcx, qword [rsp + 0x50]
call fcn.140298600
nop
cmp dword [rbp - 0x18], 0
jle 0x1401a8046
mov rcx, qword [rbp - 0x20]
call fcn.140298600
nop
cmp dword [rsp + 0x78], 0
jle 0x1401a8057
mov rcx, qword [rsp + 0x70]
call fcn.140298600
mov edi, dword [rbp + 0x88]
test r14, r14
je 0x1401a862d
lea r9, [fcn.140005d80]
mov r8d, dword [r14 - 8]
mov edx, 0x10
mov rcx, r14
call fcn.140298fa4
lea rcx, [r14 - 8]
call fcn.1402983dc
jmp 0x1401a862d
mov r8d, 1
lea rdx, [0x140331260]
lea rcx, [rbp - 0x40]
call fcn.1401e9310
test al, al
je 0x1401a8656
mov rax, qword [r12 + 0x10]
lea r8, [0x1402e8ec8]
lea rdx, [rbp - 0x50]
mov rcx, qword [rax + rsi*8]
call fcn.1401edd30
nop
mov rax, qword [r12 + 0x10]
lea r8, str.value
lea rdx, [rsp + 0x60]
mov rcx, qword [rax + rsi*8]
call fcn.1401edd30
nop
cmp dword [rbp - 0x44], 0
jle 0x1401a8514
cmp dword [rsp + 0x6c], 0
jle 0x1401a8514
mov qword [rsp + 0x48], 0
mov edx, dword [rsp + 0x3c]
test edx, edx
jne 0x1401a810c
mov qword [rsp + 0x40], rbx
jmp 0x1401a8137
lea rcx, [rsp + 0x40]
call fcn.1401e9030
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.14029b4d8
mov edx, dword [rsp + 0x3c]
lea rcx, [rsp + 0x40]
call fcn.1401ea290
nop
mov rdx, qword [0x1403ec168]
lea rcx, [rbp - 0x80]
call fcn.1401e6fd0
nop
mov r8d, 1
lea rdx, [0x1403232c8]
lea rcx, [rsp + 0x30]
call fcn.1401e8ee0
test al, al
jne 0x1401a8244
mov r8d, 1
lea rdx, [0x1403232c8]
lea rcx, [rsp + 0x30]
call fcn.1401ea030
mov edi, eax
test eax, eax
jle 0x1401a8244
lea r9d, [rdi + 1]
xor r8d, r8d
lea rdx, [rbp + 0x18]
lea rcx, [rsp + 0x30]
call fcn.1401eb1b0
mov rbx, rax
mov edx, dword [rax + 0xc]
lea rcx, [rsp + 0x40]
call fcn.1401e9030
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.14029b4d8
mov edx, dword [rbx + 0xc]
lea rcx, [rsp + 0x40]
call fcn.1401ea290
nop
cmp dword [rbp + 0x20], 0
jle 0x1401a81ef
mov rcx, qword [rbp + 0x18]
call fcn.140298600
lea r8d, [rdi + 1]
lea rdx, [rbp + 0x28]
lea rcx, [rsp + 0x30]
call fcn.1401eaef0
mov rbx, rax
mov edx, dword [rax + 0xc]
lea rcx, [rbp - 0x80]
call fcn.1401e9030
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.14029b4d8
mov edx, dword [rbx + 0xc]
lea rcx, [rbp - 0x80]
call fcn.1401ea290
nop
cmp dword [rbp + 0x30], 0
jle 0x1401a8244
mov rcx, qword [rbp + 0x28]
call fcn.140298600
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x40]
call fcn.1400ecf50
mov rdi, rax
test rax, rax
je 0x1401a84ed
mov r8d, 1
lea rdx, str.REG_DWORD
lea rcx, [rbp - 0x50]
call fcn.1401e9310
test al, al
je 0x1401a8300
cmp dword [rsp + 0x6c], 0
je 0x1401a8300
mov rbx, qword [rsp + 0x60]
mov r8d, 0xa
lea rdx, [rbp + 0x98]
mov rcx, rbx
call fcn.14029b2ec
mov rdx, qword [rbp + 0x98]
sub rdx, rbx
sar rdx, 1
movsxd rcx, dword [rsp + 0x6c]
cmp rdx, rcx
jne 0x1401a8300
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 0x1401a82f5
lea r15d, [rbx - 1]
jmp 0x1401a8305
cmp byte [r13 + 8], 0
cmove r15d, ebx
jmp 0x1401a8305
mov ebx, 2
mov r8d, 1
lea rdx, str.REG_QWORD
lea rcx, [rbp - 0x50]
call fcn.1401e9310
test al, al
je 0x1401a83b2
cmp dword [rsp + 0x6c], 0
je 0x1401a84df
mov rbx, qword [rsp + 0x60]
mov r8d, 0xa
lea rdx, [rbp]
mov rcx, rbx
call fcn.14029c624
mov rdx, qword [rbp]
sub rdx, rbx
sar rdx, 1
movsxd rcx, dword [rsp + 0x6c]
cmp rdx, rcx
jne 0x1401a84df
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 0x1401a839c
lea r15d, [rax + 1]
jmp 0x1401a84df
cmp byte [r13 + 8], 0
jne 0x1401a84df
mov r15d, 2
jmp 0x1401a84df
mov r8d, 1
lea rdx, str.REG_BINARY
lea rcx, [rbp - 0x50]
call fcn.1401e9310
test al, al
je 0x1401a845b
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.1400eb560
mov rbx, qword [rbp - 0x60]
test al, al
je 0x1401a843e
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 0x1401a8430
lea r15d, [rax + 1]
jmp 0x1401a843e
cmp byte [r13 + 8], 0
mov eax, 2
cmove r15d, eax
test rbx, rbx
je 0x1401a84df
mov r8, rbx
xor edx, edx
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1401a84df
mov r8d, 1
lea rdx, [0x14033ba70]
lea rcx, [rbp - 0x50]
call fcn.1401e8ee0
test al, al
je 0x1401a84df
mov r8d, 1
lea rdx, str.REG_MULTI_SZ
lea rcx, [rbp - 0x50]
call fcn.1401e9310
test al, al
je 0x1401a8497
mov r9d, 7
jmp 0x1401a84b9
mov r8d, 1
lea rdx, str.REG_EXPAND_SZ
lea rcx, [rbp - 0x50]
call fcn.1401e9310
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.1401a1a70
test al, al
je 0x1401a84d6
mov r15d, 1
jmp 0x1401a84df
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 0x1401a84fd
mov rcx, qword [rbp - 0x80]
call fcn.140298600
nop
cmp dword [rsp + 0x48], 0
jle 0x1401a850e
mov rcx, qword [rsp + 0x40]
call fcn.140298600
mov edi, dword [rbp + 0x88]
cmp dword [rsp + 0x68], 0
jle 0x1401a8526
mov rcx, qword [rsp + 0x60]
call fcn.140298600
nop
cmp dword [rbp - 0x48], 0
jle 0x1401a8630
mov rcx, qword [rbp - 0x50]
call fcn.140298600
jmp 0x1401a8630
mov rax, qword [r12 + 0x10]
lea r8, str.encodedvalue
lea rdx, [rbp - 0x10]
mov rcx, qword [rax + rsi*8]
call fcn.1401edd30
nop
cmp dword [rbp - 4], 0
jle 0x1401a8574
mov r9b, 1
lea r8, [rbp - 0x10]
lea rdx, [rsp + 0x30]
call fcn.1401a9c10
jmp 0x1401a8619
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 0x1401a8603
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.1401e9310
test al, al
je 0x1401a8598
mov rax, qword [r12 + 0x10]
lea r8, str.value
lea rdx, [rbp + 8]
mov rcx, qword [rax + rsi*8]
call fcn.1401edd30
nop
xor r9d, r9d
lea r8, [rbp + 8]
lea rdx, [rsp + 0x30]
call fcn.1401a9c10
mov r15d, eax
cmp dword [rbp + 0x10], 0
jle 0x1401a861c
mov rcx, qword [rbp + 8]
call fcn.140298600
jmp 0x1401a861c
mov rax, qword [r12 + 0x10]
mov r8, qword [rax + rsi*8]
lea rdx, [rsp + 0x30]
mov rcx, r13
call fcn.1401a86f0
mov r15d, eax
cmp dword [rbp - 8], 0
jle 0x1401a8630
mov rcx, qword [rbp - 0x10]
call fcn.140298600
jmp 0x1401a8630
xor r14d, r14d
cmp r15d, 1
jne 0x1401a8656
xor r8d, r8d
lea rdx, str.HKLMBCD0
lea rcx, [rsp + 0x30]
call fcn.1401eb700
test al, al
je 0x1401a8668
mov eax, 2
mov r15d, eax
cmp byte [r13 + 8], 0
jne 0x1401a8668
cmp r15d, 2
jne 0x1401a8668
mov byte [r13 + 0x11], 1
lea rdx, [r13 + 0x40]
mov r9d, r15d
lea r8, [rsp + 0x30]
call fcn.1401a9ed0
nop
cmp dword [rbp - 0x28], 0
jle 0x1401a868a
mov rcx, qword [rbp - 0x30]
call fcn.140298600
nop
cmp dword [rbp - 0x38], 0
jle 0x1401a869a
mov rcx, qword [rbp - 0x40]
call fcn.140298600
nop
cmp dword [rsp + 0x38], 0
jle 0x1401a86ab
mov rcx, qword [rsp + 0x30]
call fcn.140298600
lea rbx, [0x140323de0]
inc edi
mov dword [rbp + 0x88], edi
inc rsi
mov qword [rbp + 0x90], rsi
cmp edi, dword [r12 + 8]
jl 0x1401a7d60
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