Function at 0x140012b50
Capabilities:
Delete registry value
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x60
mov eax, dword [rcx + 4]
xor esi, esi
mov dword [0x140042df4], eax
mov eax, dword [rcx]
mov rcx, qword [0x140042e10]
mov dword [rbp + 0x48], esi
mov dword [rbp + 0x40], esi
mov dword [rbp + 0x38], esi
mov dword [rbp + 0x30], esi
mov qword [rbp - 0x10], rsi
mov edi, esi
mov dword [0x140042df0], eax
test rcx, rcx
je 0x140012d8c
mov rax, qword [rcx + 0x40]
test rax, rax
je 0x140012d8c
mov rdx, qword [rax + 0x18]
test rdx, rdx
je 0x140012d8c
cmp qword [rax + 0x20], rsi
je 0x140012d8c
mov rax, qword [0x140042df0]
movabs r8, 0xc92a69c000
sub rax, qword [rdx + 0x10]
xor edx, edx
div r8
mov rbx, rax
test eax, eax
js 0x140012d8c
mov rax, qword [rcx + 0x18]
lea r9, [rbp + 0x30]
lea r8, [rbp + 0x38]
mov ecx, dword [rax + 0x58]
lea rdx, [rbp + 0x40]
mov dword [rsp + 0x20], ecx
lea rcx, [rbp + 0x48]
call fcn.1400129f4
test eax, eax
je 0x140012d8c
mov ecx, dword [rbp + 0x48]
test ecx, ecx
je 0x140012d8c
imul eax, dword [rbp + 0x40], 0x64
xor edx, edx
mov qword [rsp + 0x40], rsi
xor r9d, r9d
xor r8d, r8d
div ecx
xor edx, edx
mov dword [rbp + 0x40], eax
imul eax, dword [rbp + 0x38], 0x64
div ecx
xor edx, edx
mov dword [rbp + 0x38], eax
imul eax, dword [rbp + 0x30], 0x64
div ecx
shr ecx, 0x14
lea rdx, [0x140009040]
mov dword [rbp + 0x30], eax
lea rax, [rbp - 0x10]
mov dword [rbp + 0x48], ecx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0x20007
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140012d7d
mov rcx, qword [rbp - 0x10]
lea r14d, [rsi + 4]
lea rax, [rbp + 0x48]
lea rdx, [0x1400090a0]
mov r9d, r14d
xor r8d, r8d
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140012d7d
mov rcx, qword [rbp - 0x10]
lea rdx, [0x1400090c0]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rbp - 0x10]
lea rdx, [0x1400090e8]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rbp - 0x10]
lea rdx, [0x140009118]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp dword [rbp + 0x30], esi
jbe 0x140012d78
cmp ebx, 0xf
jl 0x140012d12
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x30]
lea rdx, [0x140009118]
mov r9d, r14d
xor r8d, r8d
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140012d7d
cmp dword [rbp + 0x38], esi
jbe 0x140012d78
cmp ebx, 0xa
jl 0x140012d45
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x38]
lea rdx, [0x1400090e8]
mov r9d, r14d
xor r8d, r8d
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140012d7d
cmp dword [rbp + 0x40], esi
jbe 0x140012d78
cmp ebx, 5
jl 0x140012d78
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x40]
lea rdx, [0x1400090c0]
mov r9d, r14d
xor r8d, r8d
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140012d7d
mov edi, 1
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x140012d8c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
add rsp, 0x60
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret