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

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0xf80]
mov eax, 0x1080
call fcn.1400ccc90
sub rsp, rax
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x10b8], rbx
mov rax, qword [0x1401ace90]
xor rax, rsp
mov qword [rbp + 0xf70], rax
mov rdi, r8
mov rsi, rcx
lea r8, str._ver
lea rcx, [rsp + 0x50]
call fcn.140019ad0
nop
mov dword [rsp + 0x38], 0
mov byte [rsp + 0x70], 0
xor edx, edx
mov r8d, 0xfff
lea rcx, [rsp + 0x71]
call fcn.1400cd020
mov dword [rsp + 0x30], 0x1000
mov dword [rsp + 0x34], 0xffffffff
lea rax, [rsp + 0x30]
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 0x140061cbb
cmp dword [rsp + 0x34], 3
jne 0x140061cbb
cmp dword [rsp + 0x30], 0x1000
je 0x140061cbb
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9d, [rbx + 4]
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x140061cb3
mov r8d, dword [0x1401b4d80]
lea ecx, [r8 + 1]
imul ecx, r8d
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xf
sub ecx, edx
cmp ecx, 0xe
jne 0x140061c44
mov eax, 0x51eb851f
imul r8d
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul edx, edx, 0x64
sub r8d, edx
add r8d, 0x141
movsxd rcx, r8d
mov eax, 4
mul rcx
cmovo rax, rbx
mov rcx, rax
call fcn.1400c7228
mov rcx, rax
call fcn.1400c8c8c
lea rcx, str._k_f_
mov rax, qword [str._k_f_]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x48], rax
lea rdx, str.error_writing_ver
test rdx, 0xffffffffffff0000
jne 0x140061c8f
movzx edi, dx
mov ecx, edi
call fcn.1400019e0
test rax, rax
je 0x140061c9a
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400026c0
jmp 0x140061c9a
lea rcx, [rsp + 0x48]
call fcn.140003500
nop
lea rdx, [rsp + 0x48]
mov rcx, qword [rsi + 0x40]
call fcn.140057a30
nop
mov rdx, qword [rsp + 0x48]
jmp 0x140061d88
mov dil, 1
jmp 0x140061da3
lea rcx, str._k_f_
mov rax, qword [str._k_f_]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
lea rdx, str.error_reading_ver
test rdx, 0xffffffffffff0000
jne 0x140061d06
movzx edi, dx
mov ecx, edi
call fcn.1400019e0
test rax, rax
je 0x140061d11
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1400026c0
jmp 0x140061d11
lea rcx, [rsp + 0x40]
call fcn.140003500
nop
mov rdi, qword [rsi + 0x40]
call fcn.14004e940
mov r8, rax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.140019ad0
nop
lea r8, [rdi + 0x190]
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.14000f640
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140061d5b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rdx, [rsp + 0x58]
mov rcx, rdi
call fcn.1400146d0
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140061d83
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x140061da0
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 0x140061dbd
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
movzx eax, dil
mov rcx, qword [rbp + 0xf70]
xor rcx, rsp
call fcn.1400c7be0
mov rbx, qword [rsp + 0x10b8]
add rsp, 0x1080
pop rdi
pop rsi
pop rbp
ret