Function at 0x140002168
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x1fa0]
mov eax, 0x20a0
call fcn.14000e150
sub rsp, rax
mov rax, qword [0x140012aa8]
xor rax, rsp
mov qword [rbp + 0x1f90], rax
lea rax, [rsp + 0x50]
mov qword [rbp - 0x80], rdx
mov qword [rsp + 0x38], rax
xor edi, edi
lea rax, [rbp + 0xf90]
mov rbx, r8
mov qword [rsp + 0x30], rax
mov rsi, rcx
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], rdi
xor edx, edx
jmp 0x140002267
mov eax, dword [rsp + 0x50]
lea rdx, [rbp + 0x790]
mov r9d, dword [rsp + 0x68]
xor r8d, r8d
mov rcx, qword [rbp - 0x80]
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0xf90]
mov qword [rsp + 0x20], rax
call sub.ADVAPI32.dll_RegSetValueExW
test eax, eax
jne 0x1400023ff
test rbx, rbx
je 0x14000223a
mov eax, dword [rsp + 0x50]
lea rdx, [rbp + 0x790]
mov r9d, dword [rsp + 0x68]
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov rcx, rbx
lea rax, [rbp + 0xf90]
mov qword [rsp + 0x20], rax
call sub.ADVAPI32.dll_RegSetValueExW
test eax, eax
jne 0x1400023ff
lea rax, [rsp + 0x50]
inc edi
mov qword [rsp + 0x38], rax
mov edx, edi
lea rax, [rbp + 0xf90]
mov rcx, rsi
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x6c]
mov dword [rsp + 0x6c], 0x400
lea r8, [rbp + 0x790]
mov dword [rsp + 0x50], 0x1000
call fcn.14000c648
test eax, eax
je 0x1400021ce
xor edi, edi
xor edx, edx
jmp 0x1400023a5
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x40], rax
lea rdx, [rbp - 0x70]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], rcx
xor r8d, r8d
mov qword [rsp + 0x58], rcx
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], ecx
mov rcx, qword [rbp - 0x80]
call fcn.14000c590
test eax, eax
jne 0x1400023c3
test rbx, rbx
je 0x14000232e
lea rax, [rsp + 0x78]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rdx, [rbp - 0x70]
lea rax, [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov rcx, rbx
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2001f
and dword [rsp + 0x20], 0
call fcn.14000c590
test eax, eax
jne 0x1400023c3
lea rax, [rsp + 0x58]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x70]
mov rcx, rsi
call fcn.14000c684
mov rcx, qword [rsp + 0x58]
test eax, eax
jne 0x1400023c8
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x70]
call fcn.140002168
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140002375
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x58], 0
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14000238b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x60], 0
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400023a1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc edi
mov edx, edi
mov r9d, 0x400
lea r8, [rbp - 0x70]
mov rcx, rsi
call fcn.14000c618
xor ecx, ecx
test eax, eax
je 0x140002299
jmp 0x1400023ff
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400023d3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x58], 0
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400023e9
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x60], 0
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400023ff
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x1f90]
xor rcx, rsp
call fcn.14000db20
mov rbx, qword [rsp + 0x20d8]
add rsp, 0x20a0
pop rdi
pop rsi
pop rbp
ret