Function at 0x140021d60
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
push r12
push r14
push r15
sub rsp, 0x80
mov qword [r11 - 0x58], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
mov rax, qword [0x14003e010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov r15, rcx
mov qword [r11 - 0x60], 0
lea rax, [r11 - 0x68]
mov qword [r11 - 0x28], rax
call fcn.140001540
mov rcx, rax
test rax, rax
je 0x140021fe7
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x140027f5e.0]
add rax, 0x18
mov qword [rsp + 0x30], rax
lea rbx, [0x140030b90]
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.14000ae00
mov r14, 0xffffffffffffffff
test al, al
jne 0x140021e0e
mov rax, r14
inc rax
cmp word [rbx + rax*2], 0
jne 0x140021df3
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.14000b2f0
nop
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.140022ed0
test al, al
je 0x140021fad
call fcn.140001540
mov rcx, rax
test rax, rax
je 0x140021fdc
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x140027f5e.0]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x70], rdi
mov rax, qword [r15]
mov rbx, qword [rax]
mov r12, qword [rsp + 0x38]
cmp rbx, rax
je 0x140021f83
lea rdx, [rbx + 0x40]
cmp qword [rdx + 0x18], 0x10
jb 0x140021e6e
mov rdx, qword [rdx]
lea rcx, [rsp + 0x70]
call fcn.14000af20
lea rdx, [rbx + 0x20]
lea rcx, [rsp + 0x50]
call fcn.140018bb0
mov rsi, rax
mov rdi, qword [rsp + 0x70]
mov ebp, dword [rdi - 0x10]
cmp dword [rdi - 8], 1
jle 0x140021ea8
mov edx, ebp
lea rcx, [rsp + 0x70]
call fcn.14000b660
mov rdi, qword [rsp + 0x70]
cmp qword [rsi + 0x18], 8
jb 0x140021eb2
mov rsi, qword [rsi]
lea eax, [rbp*2 + 1]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
mov r9d, 1
xor r8d, r8d
mov rdx, rsi
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x140021f16
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140021f11
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140021f7c
call fcn.140027c70
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
je 0x140021f53
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x140021f43
nop word [rax + rax]
cmp rbx, qword [rax + 0x10]
jne 0x140021f43
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x140021f30
mov rbx, rax
mov rax, qword [r15]
mov qword [rsp + 0x48], rax
jmp 0x140021e57
mov rbx, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x19], 0
jne 0x140021f6f
nop
mov rbx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x140021f60
mov rax, qword [r15]
mov qword [rsp + 0x48], rax
jmp 0x140021e57
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], r14d
sub r14d, 1
jg 0x140021fad
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140027f5e.0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140027890
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
mov ecx, 0x80004005
call fcn.140001280
int3
mov ecx, 0x80004005
call fcn.140001280
int3