Function at 0x14000184e
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push r15
push r14
mov rax, 0xc
sub rsp, 8
mov qword [rsp], 0
dec rax
jne 0x14000186d
sub rsp, 0x28
mov rdx, qword [rsp + 0xa8]
lea rcx, [rsp + 0x28]
sub rsp, 0x10
call fcn.140002d70
add rsp, 0x10
mov rdx, qword [rsp + 0xb0]
lea rcx, [rsp + 0x30]
sub rsp, 0x10
call fcn.140002d70
add rsp, 0x10
mov rdx, qword [rsp + 0xb8]
lea rcx, [rsp + 0x38]
sub rsp, 0x10
call fcn.140002d70
add rsp, 0x10
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x60], 0
mov dword [rsp + 0x68], 0
lea rax, [rsp + 0x40]
push rax
push qword [rsp + 0x30]
movsxd rax, dword [rsp + 0xb0]
mov rcx, rax
pop rdx
pop r8
call sub.ADVAPI32.dll_RegCreateKeyW
mov r15, rax
and r15, r15
jne 0x140001c51
mov dword [rsp + 0x48], 1
movsx r15, byte [rsp + 0xc0]
mov rax, r15
push rax
mov r15, 4
cmp r15d, dword [rsp]
jne 0x1400019ad
sub rsp, 8
mov rcx, qword [rsp + 0x48]
sub rsp, 0x20
call fcn.140002330
add rsp, 0x28
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x68], 4
sub rsp, 8
movsxd rax, dword [rsp + 0x70]
push rax
push qword [rsp + 0x50]
movsx rax, byte [rsp + 0xe0]
push rax
push 0
push qword [rsp + 0x60]
movsxd rax, dword [rsp + 0x78]
mov rcx, rax
pop rdx
pop r8
pop r9
sub rsp, 0x20
call sub.ADVAPI32.dll_RegSetValueExW
add rsp, 0x38
mov r15, rax
and r15, r15
jne 0x1400019a8
mov dword [rsp + 0x50], 2
jmp 0x140001c43
mov r15, 0xb
cmp r15d, dword [rsp]
jne 0x140001a2d
sub rsp, 8
mov rcx, qword [rsp + 0x48]
sub rsp, 0x20
call fcn.140002330
add rsp, 0x28
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x68], 8
sub rsp, 8
movsxd rax, dword [rsp + 0x70]
push rax
push qword [rsp + 0x50]
movsx rax, byte [rsp + 0xe0]
push rax
push 0
push qword [rsp + 0x60]
movsxd rax, dword [rsp + 0x78]
mov rcx, rax
pop rdx
pop r8
pop r9
sub rsp, 0x20
call sub.ADVAPI32.dll_RegSetValueExW
add rsp, 0x38
mov r15, rax
and r15, r15
jne 0x140001a28
mov dword [rsp + 0x50], 2
jmp 0x140001c43
mov r15, 1
cmp r15d, dword [rsp]
jne 0x140001aa6
sub rsp, 8
mov rcx, qword [rsp + 0x48]
sub rsp, 0x20
call fcn.140002460
add rsp, 0x28
mov dword [rsp + 0x68], eax
sub rsp, 8
movsxd rax, dword [rsp + 0x70]
push rax
mov rax, qword [rsp + 0x50]
push rax
movsx rax, byte [rsp + 0xe0]
push rax
push 0
push qword [rsp + 0x60]
movsxd rax, dword [rsp + 0x78]
mov rcx, rax
pop rdx
pop r8
pop r9
sub rsp, 0x20
call sub.ADVAPI32.dll_RegSetValueExW
add rsp, 0x38
mov r15, rax
and r15, r15
jne 0x140001aa1
mov dword [rsp + 0x50], 2
jmp 0x140001c43
mov r15, 7
cmp r15d, dword [rsp]
jne 0x140001c43
sub rsp, 8
mov rax, qword [rsp + 0x48]
mov rcx, rax
sub rsp, 0x20
call fcn.1400029b0
add rsp, 0x28
mov r15, rax
add r15, 2
add r15, r15
mov rax, r15
mov dword [rsp + 0x68], eax
sub rsp, 8
movsxd rax, dword [rsp + 0x70]
mov rcx, rax
sub rsp, 0x20
call fcn.1400029d0
add rsp, 0x28
mov qword [rsp + 0x78], rax
sub rsp, 8
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x80]
sub rsp, 0x20
call fcn.1400029f0
add rsp, 0x28
mov dword [rsp + 0x70], 1
jmp 0x140001b27
sub rsp, 8
movabs rax, 0x14000603e
mov rdx, rax
mov rcx, qword [rsp + 0x48]
sub rsp, 0x20
call fcn.140002490
add rsp, 0x28
cmp eax, dword [rsp + 0x70]
jl 0x140001bcc
sub rsp, 8
movsxd r15, dword [rsp + 0x88]
inc r15
mov rax, r15
push rax
movabs rax, 0x14000603e
mov rdx, rax
mov rcx, qword [rsp + 0x50]
pop r8
sub rsp, 0x20
call fcn.140002570
add rsp, 0x28
mov dword [rsp + 0x80], eax
sub rsp, 8
push 0
mov r15, qword [rsp + 0x88]
movsxd r14, dword [rsp + 0x90]
add r14, r14
add r15, r14
add r15, 0xfffffffffffffffe
mov rax, r15
mov rcx, rax
pop rdx
sub rsp, 0x20
call fcn.140002a30
add rsp, 0x28
inc dword [rsp + 0x70]
jno 0x140001b27
sub rsp, 8
mov rcx, qword [rsp + 0x80]
sub rsp, 0x20
call fcn.140002a40
add rsp, 0x20
push rax
push qword [rsp + 0x88]
movsx rax, byte [rsp + 0xe0]
push rax
push 0
push qword [rsp + 0x60]
movsxd rax, dword [rsp + 0x78]
mov rcx, rax
pop rdx
pop r8
pop r9
sub rsp, 0x20
call sub.ADVAPI32.dll_RegSetValueExW
add rsp, 0x38
mov r15, rax
and r15, r15
jne 0x140001c2a
mov dword [rsp + 0x50], 2
sub rsp, 8
mov rcx, qword [rsp + 0x80]
sub rsp, 0x20
call fcn.140002a60
add rsp, 0x28
pop rax
movsxd rax, dword [rsp + 0x40]
mov rcx, rax
call sub.ADVAPI32.dll_RegCloseKey
movsxd rax, dword [rsp + 0x48]
movsxd rax, eax
jmp 0x140001c5e
push rax
mov rcx, qword [rsp + 0x40]
sub rsp, 0x28
call fcn.140002c50
add rsp, 0x28
mov rcx, qword [rsp + 0x38]
sub rsp, 0x28
call fcn.140002c50
add rsp, 0x28
mov rcx, qword [rsp + 0x30]
sub rsp, 0x28
call fcn.140002c50
add rsp, 0x28
pop rax
add rsp, 0x88
pop r14
pop r15
ret