Function at 0x140020850
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 - 0x48]
sub rsp, 0x120
mov rax, qword [0x14003c618]
xor rax, rsp
mov qword [rbp + 0x10], rax
lea rdi, [rcx + 0x1288]
mov rsi, rcx
mov rdx, rcx
mov rcx, rdi
call fcn.14000bd04
mov rax, qword [rsi + 0x8c8]
mov rdx, rsi
mov rcx, rdi
mov ebx, dword [rax + 0x10]
call fcn.14000fc30
mov rcx, qword [rsi + 0x68]
lea r9, [rsp + 0x48]
and qword [rsp + 0x48], 0
mov eax, 2
mov r8d, eax
mov dword [rsp + 0x50], ebx
mov edx, eax
call qword [sym.imp.ntoskrnl.exe_IoOpenDeviceRegistryKey]
mov ecx, 0xc0000000
and eax, ecx
cmp eax, ecx
je 0x14002090e
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov r9d, 4
lea rdx, [0x14003c5d0]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
xor edi, edi
lea r15, [rsi + 0x1298]
lea rbx, [rsi + 0x272]
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 + 0x38], r12d
call fcn.14000bd04
mov r14b, byte [rbx - 0xf]
test r14b, r14b
je 0x140020967
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 + 0x38], eax
mov byte [rbx - 0xf], 0
mov rdx, rsi
mov rcx, r15
call fcn.14000fc30
test r14b, r14b
je 0x140020ad1
lock inc qword [0x140042b28]
movups xmm0, xmmword [0x140030f30]
lea rcx, [rbp - 0x58]
and qword [rsp + 0x40], 0
movsd xmm1, qword [0x140030f40]
xor edx, edx
movaps xmmword [rbp - 0x70], xmm0
movsd qword [rbp - 0x60], xmm1
lea r8d, [rdx + 0x60]
call fcn.14002e640
cmp edi, 8
jae 0x140020ac6
mov rcx, qword [rsi + 0x68]
lea r9, [rsp + 0x40]
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 0x140020ac6
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov eax, 0x14
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x58]
mov word [rsp + 0x6a], ax
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov eax, 0x78
lea r8, [rsp + 0x68]
xor edx, edx
mov word [rsp + 0x5a], ax
mov ecx, edi
call qword [sym.imp.ntoskrnl.exe_RtlIntegerToUnicodeString]
test eax, eax
jne 0x140020ac6
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeStringToString]
test eax, eax
jne 0x140020ac6
mov r8, qword [str.Flags]
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x40]
mov r9d, r12d
call fcn.140020d60
mov r8, qword [str.Width]
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x40]
mov r9d, r13d
call fcn.140020d60
mov r9d, dword [rsp + 0x30]
lea rdx, [rsp + 0x58]
mov r8, qword [str.Height]
mov rcx, qword [rsp + 0x40]
call fcn.140020d60
mov r9d, dword [rsp + 0x34]
lea rdx, [rsp + 0x58]
mov r8, qword [0x14003c5f8]
mov rcx, qword [rsp + 0x40]
call fcn.140020d60
mov r9d, dword [rsp + 0x38]
lea rdx, [rsp + 0x58]
mov r8, qword [0x14003c600]
mov rcx, qword [rsp + 0x40]
call fcn.140020d60
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
inc edi
add rbx, 0xd8
cmp edi, 8
jb 0x14002091e
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.140021240
lea r11, [rsp + 0x120]
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