Function at 0x140007058
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 0x140007077
sub rsp, 0x28
mov rdx, qword [rsp + 0xa8]
lea rcx, [rsp + 0x28]
sub rsp, 0x10
call fcn.1400182f0
add rsp, 0x10
mov rdx, qword [rsp + 0xb0]
lea rcx, [rsp + 0x30]
sub rsp, 0x10
call fcn.1400182f0
add rsp, 0x10
mov rdx, qword [rsp + 0xb8]
lea rcx, [rsp + 0x38]
sub rsp, 0x10
call fcn.1400182f0
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 0x14000745b
mov dword [rsp + 0x48], 1
movsx r15, byte [rsp + 0xc0]
mov rax, r15
push rax
mov r15, 4
cmp r15d, dword [rsp]
jne 0x1400071b7
sub rsp, 8
mov rcx, qword [rsp + 0x48]
sub rsp, 0x20
call fcn.140014030
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 0x1400071b2
mov dword [rsp + 0x50], 2
jmp 0x14000744d
mov r15, 0xb
cmp r15d, dword [rsp]
jne 0x140007237
sub rsp, 8
mov rcx, qword [rsp + 0x48]
sub rsp, 0x20
call fcn.140014030
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 0x140007232
mov dword [rsp + 0x50], 2
jmp 0x14000744d
mov r15, 1
cmp r15d, dword [rsp]
jne 0x1400072b0
sub rsp, 8
mov rcx, qword [rsp + 0x48]
sub rsp, 0x20
call fcn.140014160
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 0x1400072ab
mov dword [rsp + 0x50], 2
jmp 0x14000744d
mov r15, 7
cmp r15d, dword [rsp]
jne 0x14000744d
sub rsp, 8
mov rax, qword [rsp + 0x48]
mov rcx, rax
sub rsp, 0x20
call fcn.140017110
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.140017130
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.140017180
add rsp, 0x28
mov dword [rsp + 0x70], 1
jmp 0x140007331
sub rsp, 8
movabs rax, 0x14001e05a
mov rdx, rax
mov rcx, qword [rsp + 0x48]
sub rsp, 0x20
call fcn.140014190
add rsp, 0x28
cmp eax, dword [rsp + 0x70]
jl 0x1400073d6
sub rsp, 8
movsxd r15, dword [rsp + 0x88]
inc r15
mov rax, r15
push rax
movabs rax, 0x14001e05a
mov rdx, rax
mov rcx, qword [rsp + 0x50]
pop r8
sub rsp, 0x20
call fcn.140014270
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.1400171c0
add rsp, 0x28
inc dword [rsp + 0x70]
jno 0x140007331
sub rsp, 8
mov rcx, qword [rsp + 0x80]
sub rsp, 0x20
call fcn.1400171d0
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 0x140007434
mov dword [rsp + 0x50], 2
sub rsp, 8
mov rcx, qword [rsp + 0x80]
sub rsp, 0x20
call fcn.1400171f0
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 0x140007468
push rax
mov rcx, qword [rsp + 0x40]
sub rsp, 0x28
call fcn.1400182c0
add rsp, 0x28
mov rcx, qword [rsp + 0x38]
sub rsp, 0x28
call fcn.1400182c0
add rsp, 0x28
mov rcx, qword [rsp + 0x30]
sub rsp, 0x28
call fcn.1400182c0
add rsp, 0x28
pop rax
add rsp, 0x88
pop r14
pop r15
ret