Function at 0x140021eb8
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x38]
sub rsp, 0x110
mov rax, qword [0x14003d3a8]
xor rax, rsp
mov qword [rbp], rax
lea rdi, [rcx + 0x1640]
mov rsi, rcx
mov rdx, rcx
mov rcx, rdi
call fcn.14000bae8
mov rax, qword [rsi + 0x200]
mov rdx, rsi
mov rcx, rdi
mov ebx, dword [rax + 0x10]
call fcn.140011540
mov rcx, qword [rsi + 0x80]
lea r9, [rsp + 0x38]
and qword [rsp + 0x38], 0
mov eax, 2
mov r8d, eax
mov dword [rsp + 0x40], ebx
mov edx, eax
call qword [sym.imp.ntoskrnl.exe_IoOpenDeviceRegistryKey]
mov ecx, 0xc0000000
and eax, ecx
cmp eax, ecx
je 0x140021f79
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
mov r9d, 4
lea rdx, [0x14003d370]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
xor edi, edi
lea r15, [rsi + 0x1650]
lea rbx, [rsi + 0x70a]
xor r12d, r12d
mov rdx, rsi
and dword [rsp + 0x30], r12d
mov rcx, r15
and dword [rsp + 0x34], r12d
xor r13d, r13d
and dword [rsp + 0x40], r12d
call fcn.14000bae8
mov r14b, byte [rbx - 0xf]
test r14b, r14b
je 0x140021fd2
mov eax, dword [rbx + 4]
mov r12d, dword [rbx - 4]
mov r13d, dword [rbx]
mov dword [rsp + 0x30], eax
mov eax, dword [rbx + 8]
mov dword [rsp + 0x34], eax
mov eax, dword [rbx + 0xc]
mov dword [rsp + 0x40], eax
mov byte [rbx - 0xf], 0
mov rdx, rsi
mov rcx, r15
call fcn.140011540
test r14b, r14b
je 0x140022137
movups xmm0, xmmword [0x1400326e0]
lea rcx, [rbp - 0x68]
and qword [rsp + 0x38], 0
movsd xmm1, qword [0x1400326f0]
xor edx, edx
movaps xmmword [rbp - 0x80], xmm0
movsd qword [rbp - 0x70], xmm1
lea r8d, [rdx + 0x60]
call fcn.14002dd40
cmp edi, 8
jae 0x14002212c
mov rcx, qword [rsi + 0x80]
lea r9, [rsp + 0x38]
mov eax, 2
mov r8d, eax
mov edx, eax
call qword [sym.imp.ntoskrnl.exe_IoOpenDeviceRegistryKey]
mov ecx, 0xc0000000
and eax, ecx
cmp eax, ecx
je 0x14002212c
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov eax, 0x14
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x48]
mov word [rsp + 0x5a], ax
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov eax, 0x78
lea r8, [rsp + 0x58]
xor edx, edx
mov word [rsp + 0x4a], ax
mov ecx, edi
call qword [sym.imp.ntoskrnl.exe_RtlIntegerToUnicodeString]
test eax, eax
jne 0x14002212c
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeStringToString]
test eax, eax
jne 0x14002212c
mov r8, qword [str.Flags]
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
mov r9d, r12d
call fcn.140022560
mov r8, qword [str.Width]
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
mov r9d, r13d
call fcn.140022560
mov r9d, dword [rsp + 0x30]
lea rdx, [rsp + 0x48]
mov r8, qword [str.Height]
mov rcx, qword [rsp + 0x38]
call fcn.140022560
mov r9d, dword [rsp + 0x34]
lea rdx, [rsp + 0x48]
mov r8, qword [0x14003d398]
mov rcx, qword [rsp + 0x38]
call fcn.140022560
mov r9d, dword [rsp + 0x40]
lea rdx, [rsp + 0x48]
mov r8, qword [0x14003d3a0]
mov rcx, qword [rsp + 0x38]
call fcn.140022560
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
inc edi
add rbx, 0xa8
cmp edi, 8
jb 0x140021f89
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.1400229d0
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret