Function at 0x14005d870
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x9df0]
mov eax, 0x9ef0
call fcn.1400c8a20
sub rsp, rax
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov rax, qword [0x1401a1e90]
xor rax, rsp
mov qword [rbp + 0x9de0], rax
mov rdi, r8
mov rsi, rcx
lea r8, str._ver
lea rcx, [rsp + 0x50]
call fcn.140019610
nop
xor r14d, r14d
mov dword [rsp + 0x30], r14d
mov byte [rsp + 0x70], r14b
xor edx, edx
mov r8d, 0xfff
lea rcx, [rsp + 0x71]
call fcn.1400c8db0
mov dword [rsp + 0x38], 0x1000
mov dword [rsp + 0x34], 0xffffffff
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
or rbx, 0xffffffffffffffff
test eax, eax
jne 0x14005d9e8
cmp dword [rsp + 0x34], 3
jne 0x14005d9e8
cmp dword [rsp + 0x38], 0x1000
je 0x14005d9e8
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9d, [r14 + 3]
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x14005d9e0
lea rcx, [0x1401a19a8]
mov rax, qword [0x1401a19a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
lea rdx, str.error_writing_ver
test rdx, 0xffffffffffff0000
jne 0x14005d9bc
movzx edi, dx
mov ecx, edi
call fcn.1400019f0
test rax, rax
je 0x14005d9c7
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140002530
jmp 0x14005d9c7
lea rcx, [rsp + 0x40]
call fcn.140003150
nop
lea rdx, [rsp + 0x40]
mov rcx, qword [rsi + 0x40]
call fcn.140053e90
nop
mov rdx, qword [rsp + 0x40]
jmp 0x14005db70
mov dil, 1
jmp 0x14005db8b
mov eax, dword [0x1401a9d80]
mov ecx, eax
imul ecx, eax
imul ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
shl eax, 3
sub ecx, eax
cmp ecx, 0xc
jne 0x14005daa3
mov word [rbp + 0xf70], r14w
xor edx, edx
mov r8d, 0x8e60
lea rcx, [rbp + 0xf72]
call fcn.1400c8db0
mov r10, r14
mov r9, rbx
nop word [rax + rax]
mov rax, r14
test r10, r10
je 0x14005da78
test rax, rax
je 0x14005da78
lea rdx, [r9 + rax]
lea rcx, [r9 + rax]
movzx r8d, word [rbp + rdx*2 + 0xe64]
inc r8w
add r8w, word [rbp + rcx*2 + 0xf70]
lea rcx, [r9 + rax]
mov word [rbp + rcx*2 + 0xf72], r8w
inc rax
cmp rax, 0x87
jl 0x14005da43
inc r10
add r9, 0x87
cmp r9, 0x4730
jl 0x14005da40
movsx eax, word [rbp + 0x9dd0]
mov dword [0x1401a9d80], eax
lea rcx, [0x1401a19a8]
mov rax, qword [0x1401a19a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x48], rax
lea rdx, str.error_reading_ver
test rdx, 0xffffffffffff0000
jne 0x14005daee
movzx edi, dx
mov ecx, edi
call fcn.1400019f0
test rax, rax
je 0x14005daf9
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140002530
jmp 0x14005daf9
lea rcx, [rsp + 0x48]
call fcn.140003150
nop
mov rdi, qword [rsi + 0x40]
call fcn.14004baf0
mov r8, rax
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x60]
call fcn.140019610
nop
lea r8, [rdi + 0x190]
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.14000ee60
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14005db43
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rdx, [rsp + 0x58]
mov rcx, rdi
call fcn.140013f70
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14005db6b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x14005db88
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor dil, dil
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14005dba5
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
movzx eax, dil
mov rcx, qword [rbp + 0x9de0]
xor rcx, rsp
call fcn.1400c3970
add rsp, 0x9ef0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret