Function at 0x140046ff0
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x2f]
sub rsp, 0xa0
mov rax, qword [0x1400fc3f8]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov rsi, r9
mov rax, r8
mov r10, rdx
mov rdi, qword [rbp + 0x7f]
cmp qword [rdi + 0x38], 0
jne 0x14004702f
mov eax, 0x57
jmp 0x140047263
xor r14d, r14d
mov qword [rbp - 0x21], r14
lea rcx, [rbp - 0x21]
mov qword [rbp - 0x11], rcx
mov byte [rbp - 9], r14b
cmp qword [r8 + 0x18], 8
jb 0x14004704c
mov rax, qword [r8]
mov qword [rsp + 0x40], r14
lea rcx, [rbp - 0x21]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, r10
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test eax, eax
jne 0x140047252
mov rax, qword [rdi + 0x38]
and rax, 0xfffffffffffffffc
lea rbx, vtable.type_info.0
mov rcx, rbx
cmovne rcx, rax
add rcx, 8
lea rdx, [0x1400fd528]
call fcn.14008d024
mov rcx, qword [rdi + 0x38]
and rcx, 0xfffffffffffffffc
test eax, eax
jne 0x1400471da
test rcx, rcx
je 0x140047289
add rcx, 8
lea rdx, [0x1400fd528]
call fcn.14008d024
test eax, eax
jne 0x140047289
mov qword [rbp - 1], r14
mov qword [rbp + 0xf], r14
mov qword [rbp + 0x17], r14
mov r14, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 8
jb 0x1400470f9
mov rdi, qword [rdi]
cmp r14, 8
jae 0x140047114
movups xmm0, xmmword [rdi]
movups xmmword [rbp - 1], xmm0
mov qword [rbp + 0x17], 7
lea rax, [rbp - 1]
jmp 0x140047161
mov rbx, r14
or rbx, 7
movabs rax, 0x7ffffffffffffffe
cmp rbx, rax
cmova rbx, rax
lea rdx, [rbx + 1]
lea rcx, [rbp - 1]
call fcn.140003f80
mov qword [rbp - 1], rax
lea r8, [r14*2 + 2]
mov rdx, rdi
mov rcx, rax
call fcn.14008c5a0
mov qword [rbp + 0x17], rbx
lea rax, [rbp - 1]
cmp rbx, 8
cmovae rax, qword [rbp - 1]
lea ecx, [r14 + r14]
mov qword [rbp + 0xf], r14
cmp qword [rsi + 0x18], 8
jb 0x140047173
mov rsi, qword [rsi]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov rdx, qword [rbp + 0x17]
cmp rdx, 8
jb 0x140047252
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400471d3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140047283
call fcn.140089ca0
jmp 0x140047252
test rcx, rcx
cmovne rbx, rcx
lea rcx, [rbx + 8]
lea rdx, [0x1400fd598]
call fcn.14008d024
test eax, eax
jne 0x14004724d
mov rcx, qword [rdi + 0x38]
and rcx, 0xfffffffffffffffc
je 0x14004727d
add rcx, 8
lea rdx, [0x1400fd598]
call fcn.14008d024
test eax, eax
jne 0x14004727d
mov eax, dword [rdi]
mov dword [rbp - 0x19], eax
cmp qword [rsi + 0x18], 8
jb 0x140047222
mov rsi, qword [rsi]
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
jmp 0x140047252
mov ebx, 1
mov rcx, qword [rbp - 0x21]
test rcx, rcx
je 0x140047261
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.14008a6c0
add rsp, 0xa0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.140033d50
nop
call fcn.1400916c4
int3
call fcn.140033d50
int3