Function at 0x1401ecaf4
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x350]
sub rsp, 0x450
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x1403c9cb8]
xor rax, rsp
mov qword [rbp + 0x340], rax
mov rdi, r8
mov rsi, rdx
mov r14, rcx
and dword [rsp + 0x40], 0
mov rdx, r8
test r9b, r9b
je 0x1401ecb4a
lea rcx, [rbp - 0x70]
call fcn.140069654
nop
mov ebx, 1
jmp 0x1401ecb68
and qword [rbp - 0x80], 0
and qword [rbp - 0x78], 0
lea rcx, [rsp + 0x70]
call fcn.14000c6c4
lea rax, [rsp + 0x70]
mov ebx, 2
mov dword [rsp + 0x40], ebx
and qword [rsp + 0x60], 0
and qword [rsp + 0x68], 0
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.14000c6c4
nop
test bl, 2
je 0x1401ecb99
and ebx, 0xfffffffd
lea rcx, [rsp + 0x70]
call fcn.14000c764
nop
test bl, 1
je 0x1401ecba7
lea rcx, [rbp - 0x70]
call fcn.14000c764
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x1401ecbb4
mov rcx, qword [rdi]
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rdx, qword [rsp + 0x50]
mov r9, qword [rdi + 0x10]
mov r8, qword [rsp + 0x60]
cmp r8, r9
jne 0x1401ecc03
test r8, r8
je 0x1401ecbf9
movzx eax, word [rcx]
cmp word [rdx], ax
jne 0x1401ecbf0
add rdx, 2
add rcx, 2
sub r8, 1
jne 0x1401ecbd8
jmp 0x1401ecbf9
sbb eax, eax
and eax, 0xfffffffe
inc eax
jmp 0x1401ecbfb
xor eax, eax
test eax, eax
jne 0x1401ecc03
mov al, 1
jmp 0x1401ecc05
xor al, al
test al, al
sete bl
cmp qword [r14 + 0x30], 0
jne 0x1401ecc55
lea rcx, str.EXPAND_SZ
lea rax, [0x140304d44]
test bl, bl
cmovne rax, rcx
mov qword [rsp + 0x40], rax
lea r9, [rsp + 0x40]
lea r8, str.ORegistryKey.SetValue_failure:_Cannot_set___s__string._The_registry_key_is_closed_or_not_set
mov edx, 0x3a
lea rcx, [rbp - 0x50]
call fcn.1401eba18
lea rdx, [0x140320d70]
lea rcx, [rbp - 0x50]
call fcn.14021017c
int3
cmp qword [rsi + 0x10], 0x3fff
jbe 0x1401eccac
lea rcx, str.EXPAND_SZ
lea rax, [0x140304d44]
test bl, bl
cmovne rax, rcx
mov qword [rsp + 0x40], rax
lea rax, [r14 + 0x10]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
lea r8, str.ORegistryKey.SetValue_failure:_Cannot_set___s__string_into_registry_key__s._The_value_name_is_too_long
mov edx, 0x1d
lea rcx, [rbp - 0x50]
call fcn.1401ebc64
lea rdx, [0x140320d70]
lea rcx, [rbp - 0x50]
call fcn.14021017c
int3
test r9, r9
jne 0x1401eccba
lea rcx, [0x140304ee0]
jmp 0x1401eccc7
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x1401eccc7
mov rcx, qword [rdi]
mov eax, 0xffffffff
cmp r9, rax
jbe 0x1401eccd7
call fcn.14000c2cc
int3
mov rdx, rsi
cmp qword [rsi + 0x18], 8
jb 0x1401ecce4
mov rdx, qword [rsi]
lea r8d, [r9*2 + 2]
mov al, bl
neg al
sbb r9d, r9d
neg r9d
inc r9d
mov dword [rsp + 0x28], r8d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, qword [r14 + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r8d, eax
test eax, eax
je 0x1401ecd73
lea rcx, str.EXPAND_SZ
lea rax, [0x140304d44]
test bl, bl
cmovne rax, rcx
mov qword [rsp + 0x40], rax
lea rcx, [r14 + 0x10]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rsi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, str.ORegistryKey.SetValue_failure:_Cannot_set___s__string_name___s__value___s__into_registry_key__s.
mov edx, 0xf
lea rcx, [rbp - 0x50]
call fcn.1401ebb40
lea rdx, [0x140320d70]
lea rcx, [rbp - 0x50]
call fcn.14021017c
nop
lea rcx, [rsp + 0x50]
call fcn.14000c764
mov rcx, qword [rbp + 0x340]
xor rcx, rsp
call fcn.14020ed60
add rsp, 0x450
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret