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

Disassembly:
push rbp
push rbx
push r12
lea rbp, [rsp - 0x47]
sub rsp, 0xd0
mov rax, qword [0x1401737a8]
xor rax, rsp
mov qword [rbp + 0x1f], rax
xor eax, eax
lea r12, [rcx + 8]
mov qword [rsp + 0x40], rax
mov rbx, rdx
mov rdx, qword [rcx]
xor r9d, r9d
mov qword [rsp + 0x38], r12
xor r8d, r8d
mov qword [rsp + 0x30], rax
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], eax
mov qword [rbp - 9], r12
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14005df59
cmp qword [rbx], 0
je 0x14005df4f
mov qword [rsp + 0x100], rsi
lea rdx, [0x140000000]
mov qword [rsp + 0xc8], rdi
mov edi, 0xffff8001
mov qword [rsp + 0xc0], r13
mov r13d, 0x7fff
mov qword [rsp + 0xb8], r14
mov qword [rsp + 0xb0], r15
lea r15, [rbx + 0x10]
nop dword [rax]
movsxd rsi, dword [r15 - 8]
cmp esi, 9
ja case.default.0x14005dbc7
mov ecx, dword [rdx + rsi*4 + 0x5df74]
add rcx, rdx
jmp rcx
mov rax, qword [r15]
mov r9d, 4
mov dword [rsp + 0x28], 4
mov ecx, dword [rax]
lea rax, [rbp - 0x29]
mov dword [rbp - 0x29], ecx
jmp 0x14005def6
mov rax, qword [r15]
mov r9d, 4
mov dword [rsp + 0x28], 4
movzx ecx, byte [rax]
lea rax, [rbp - 0x21]
mov dword [rbp - 0x21], ecx
jmp 0x14005def6
mov rax, qword [r15]
mov dword [rsp + 0x28], 8
movsd xmm0, qword [rax]
lea rax, [rbp - 0x11]
movsd qword [rbp - 0x11], xmm0
jmp 0x14005def0
mov rax, qword [r15]
mov rbx, qword [r15 - 0x10]
movsx ecx, word [rax]
cmp esi, 3
jne 0x14005dc57
mov r8d, dword [0x1401794e8]
lea edx, [rsi + 0x5d]
call qword [sym.imp.KERNEL32.dll_MulDiv]
cmp eax, edi
jge 0x14005dc4d
movzx eax, di
jmp 0x14005dc5a
cmp eax, r13d
cmovg ax, r13w
jmp 0x14005dc5a
movzx eax, cx
cwde
mov r9d, 4
mov dword [rbp - 0x1d], eax
mov rdx, rbx
lea rax, [rbp - 0x1d]
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
jmp 0x14005deff
mov rcx, qword [r15]
mov rax, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x14005dc90
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
jmp 0x14005defb
mov esi, dword [r15 - 4]
lea rax, [rbp - 0x19]
mov rdx, qword [r15 - 0x10]
xor ebx, ebx
mov rcx, qword [r12]
xor r9d, r9d
mov r14, qword [r15]
xor r8d, r8d
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], ebx
shr esi, 2
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14005df0c
test esi, esi
je 0x14005dd68
mov rdi, r14
nop word [rax + rax]
mov r8d, ebx
lea rdx, [0x1401270bc]
lea rcx, [rbp - 1]
call fcn.1400557d0
cmp dword [rdi], 0
lea rdx, [rbp - 1]
je 0x14005dd54
mov eax, ebx
mov r9d, 4
mov dword [rsp + 0x28], 4
xor r8d, r8d
lea rcx, [r14 + rax*4]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x14005dd5e
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
inc ebx
add rdi, 4
cmp ebx, esi
jb 0x14005dd10
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14005df0c
mov r14d, dword [r15 - 4]
lea rax, [rbp - 0x31]
mov rdx, qword [r15 - 0x10]
xor edi, edi
mov rcx, qword [r12]
xor r9d, r9d
mov rbx, qword [r15]
xor r8d, r8d
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], edi
shr r14d, 1
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14005df0c
test r14d, r14d
je 0x14005ded9
cmp esi, 7
jne 0x14005de80
mov r12d, 0xffff8001
nop word [rax + rax]
mov r8d, edi
lea rdx, [0x1401270bc]
lea rcx, [rbp - 1]
call fcn.1400557d0
movsx eax, word [rbx]
test ax, ax
je 0x14005de50
mov r8d, dword [0x1401794e8]
mov ecx, eax
mov edx, 0x60
call qword [sym.imp.KERNEL32.dll_MulDiv]
cmp eax, r12d
jge 0x14005de1a
movzx eax, r12w
jmp 0x14005de22
cmp eax, r13d
jle 0x14005de22
mov eax, r13d
mov rcx, qword [rbp - 0x31]
lea rdx, [rbp - 1]
cwde
mov r9d, 4
mov dword [rbp - 0x39], eax
xor r8d, r8d
lea rax, [rbp - 0x39]
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x14005de5e
mov rcx, qword [rbp - 0x31]
lea rdx, [rbp - 1]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
inc edi
add rbx, 2
cmp edi, r14d
jb 0x14005dde0
mov rcx, qword [rbp - 0x31]
mov r12, qword [rbp - 9]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14005df0c
mov r8d, edi
lea rdx, [0x1401270bc]
lea rcx, [rbp - 1]
call fcn.1400557d0
movsx eax, word [rbx]
lea rdx, [rbp - 1]
mov rcx, qword [rbp - 0x31]
test ax, ax
je 0x14005dec8
mov dword [rbp - 0x39], eax
mov r9d, 4
lea rax, [rbp - 0x39]
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x14005dece
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
inc edi
add rbx, 2
cmp edi, r14d
jb 0x14005de80
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14005df0c
mov eax, dword [r15 - 4]
mov dword [rsp + 0x28], eax
mov rax, qword [r15]
mov r9d, 3
mov qword [rsp + 0x20], rax
mov rdx, qword [r15 - 0x10]
mov rcx, qword [r12]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea rdx, [0x140000000]
add r15, 0x20
mov edi, 0xffff8001
cmp qword [r15 - 0x10], 0
jne 0x14005dbb0
mov r15, qword [rsp + 0xb0]
mov r14, qword [rsp + 0xb8]
mov r13, qword [rsp + 0xc0]
mov rdi, qword [rsp + 0xc8]
mov rsi, qword [rsp + 0x100]
mov rcx, qword [r12]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.1400e17a0
add rsp, 0xd0
pop r12
pop rbx
pop rbp
ret