Function at 0x14009db80
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x3c8]
sub rsp, 0x4a0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140132280]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov r15d, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14009dbda
call fcn.14009bc70
mov r15d, eax
cmp eax, 0xffffffff
jne 0x14009dbda
xor al, al
jmp 0x14009de2c
xor r12d, r12d
mov qword [rsp + 0x30], r12
lea rdx, [rbx + 0xb0]
cmp qword [rdx + 0x18], 0x10
jb 0x14009dbf3
mov rdx, qword [rdx]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rcx, qword [rbx + 0x88]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rdi, qword [rsp + 0x30]
test eax, eax
je 0x14009dc36
test rdi, rdi
je 0x14009de2a
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, r12
mov qword [rsp + 0x30], r12
test rdi, rdi
je 0x14009de2a
mov esi, 1
mov ebx, esi
cmp r15d, ebx
jl 0x14009de21
nop
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp - 0x70]
call fcn.140065dd0
mov dword [rsp + 0x38], 0x3ff
mov edx, ebx
lea rcx, [rsp + 0x48]
call fcn.1400a4a70
nop
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae rdx, qword [rsp + 0x48]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14009dd92
cmp esi, ebx
je 0x14009dd90
mov edx, esi
lea rcx, [rsp + 0x68]
call fcn.1400a4a70
mov rdx, rax
cmp qword [rax + 0x18], 0x10
jb 0x14009dcd2
mov rdx, qword [rax]
lea rcx, [rbp - 0x70]
or rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x14009dce0
inc eax
mov dword [rsp + 0x28], eax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
sete r14b
mov rax, qword [rbp - 0x80]
cmp rax, 0x10
jb 0x14009dd5f
inc rax
mov rcx, qword [rsp + 0x68]
cmp rax, 0x1000
jb 0x14009dd5a
test cl, 0x1f
jne 0x14009de03
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x14009ddfd
sub rcx, rax
cmp rcx, 8
jb 0x14009ddf7
cmp rcx, 0x27
ja 0x14009ddf1
mov rcx, rax
call fcn.1400369b0
mov qword [rbp - 0x80], 0xf
mov qword [rsp + 0x78], r12
mov byte [rsp + 0x68], 0
test r14b, r14b
je 0x14009dd90
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae rdx, qword [rsp + 0x48]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
inc esi
mov rax, qword [rsp + 0x60]
cmp rax, 0x10
jb 0x14009ddd2
mov rcx, qword [rsp + 0x48]
inc rax
cmp rax, 0x1000
jb 0x14009ddcd
test cl, 0x1f
jne 0x14009de1b
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x14009de15
sub rcx, rax
cmp rcx, 8
jb 0x14009de0f
cmp rcx, 0x27
ja 0x14009de09
mov rcx, rax
call fcn.1400369b0
mov qword [rsp + 0x60], 0xf
mov qword [rsp + 0x58], r12
mov byte [rsp + 0x48], 0
inc ebx
cmp ebx, r15d
jg 0x14009de21
jmp 0x14009dc50
call fcn.14006ef04
int3
call fcn.14006ef04
int3
call fcn.14006ef04
int3
call fcn.14006ef04
nop
call fcn.14006ef04
int3
call fcn.14006ef04
int3
call fcn.14006ef04
int3
call fcn.14006ef04
int3
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.140063ed0
lea r11, [rsp + 0x4a0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret