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

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x208]
sub rsp, 0x300
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x18012c3a8]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
mov rbx, rcx
xor edx, edx
mov r8d, 0x80
lea rcx, [rsp + 0x60]
call fcn.1800abaa0
mov r8d, 0x80
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.18005ec90
mov edx, 0x104
mov r8d, edx
lea rcx, [rbp - 0x20]
lea rax, [rbp - 0x20]
mov r9, rbx
sub r9, rax
nop word [rax + rax]
lea rax, [r8 + 0x7ffffefa]
test rax, rax
je 0x180060000
movzx eax, byte [r9 + rcx]
test al, al
je 0x180060000
mov byte [rcx], al
inc rcx
sub r8, 1
jne 0x18005ffe0
lea rax, [rcx - 1]
test r8, r8
cmovne rax, rcx
mov byte [rax], 0
mov rcx, rdx
lea rax, [rbp - 0x20]
cmp byte [rax], 0
je 0x180060023
inc rax
sub rcx, 1
jne 0x180060015
mov rax, rdx
sub rax, rcx
xor r8d, r8d
test rcx, rcx
cmovne r8, rax
je 0x180060080
sub rdx, r8
lea rcx, [rbp - 0x20]
lea rcx, [rcx + r8]
je 0x180060072
lea rax, [r8 + 0x7ffffefb]
add rax, rdx
lea r9, [rsp + 0x60]
sub r9, rcx
test rax, rax
je 0x180060072
movzx r8d, byte [r9 + rcx]
test r8b, r8b
je 0x180060072
mov byte [rcx], r8b
inc rcx
dec rax
sub rdx, 1
jne 0x180060054
lea rax, [rcx - 1]
test rdx, rdx
cmovne rax, rcx
mov byte [rax], 0
mov dword [rsp + 0x34], 1
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp + 0xf0]
call fcn.1800abaa0
mov dword [rsp + 0x30], 0x100
lea rcx, [rsp + 0x38]
call fcn.18005dbb0
nop
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0xf0]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x34]
lea r8, str.mid64
mov rdx, qword [rax]
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov esi, eax
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov rdi, 0xffffffffffffffff
mov ecx, edi
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x180060108
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
test esi, esi
jne 0x1800601a2
lea rax, [rbp + 0xf0]
sub rbx, rax
nop word [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + rbx]
sub edx, ecx
jne 0x180060132
inc rax
test ecx, ecx
jne 0x180060120
test edx, edx
je 0x1800601a2
lea rcx, [rsp + 0x40]
call fcn.18005dbb0
nop
mov rdx, qword [rax]
lea rcx, [rbp + 0xf0]
mov rax, rdi
nop
inc rax
cmp byte [rcx + rax], 0
jne 0x180060150
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0xf0]
mov qword [rsp + 0x20], rax
mov r9d, 1
lea r8, str.mid64_old
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHSetValueA]
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1800601a2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea rcx, [rsp + 0x48]
call fcn.18005dbb0
nop
mov rdx, qword [rax]
lea r10, [rbp - 0x20]
mov rax, rdi
nop word [rax + rax]
inc rax
cmp byte [r10 + rax], 0
jne 0x1800601c0
mov dword [rsp + 0x28], eax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
mov r9d, 1
lea r8, str.mid64
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHSetValueA]
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x18006020e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.18008f850
lea r11, [rsp + 0x300]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret