Function at 0x14004fb20
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x10], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov r13, r9
mov r14, r8
mov r15, rdx
mov dword [rbp - 0x50], 0x1fffff
lea rcx, [0x1401d59a8]
mov rax, qword [0x1401d59a8]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x48], rbx
mov r12, qword [rbp + 0x50]
mov rax, qword [r12]
or rdi, 0xffffffffffffffff
cmp dword [rax - 0x10], 0
je 0x14004fc06
lea r8, [0x140163d74]
mov rdx, r12
lea rcx, [rbp - 0x18]
call fcn.14001c2d0
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x14004fbee
cmp dword [rbx + 0x10], 0
jl 0x14004fbe0
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x14004fbe0
call fcn.1400028c0
mov rsi, rax
lock add dword [rbx + 0x10], edi
jg 0x14004fbd6
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rsi + 0x18]
mov qword [rbp - 0x48], rax
jmp 0x14004fbee
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x48]
call fcn.140002770
nop
mov rdx, qword [rbp - 0x18]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004fc06
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rcx, [0x1401d59a8]
mov rax, qword [0x1401d59a8]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x38], rbx
xor r8d, r8d
mov rdx, r14
lea rcx, [rbp - 0x28]
call fcn.14004f1a0
nop
mov r8, rax
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x30]
call fcn.1400109e0
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x14004fc92
cmp dword [rbx + 0x10], 0
jl 0x14004fc84
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x14004fc84
call fcn.1400028c0
mov rsi, rax
lock add dword [rbx + 0x10], 0xffffffff
jg 0x14004fc7a
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rsi + 0x18]
mov qword [rbp - 0x38], rax
jmp 0x14004fc92
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x38]
call fcn.140002770
nop
mov rdx, qword [rbp - 0x30]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004fcab
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x28]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004fcc3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rbx, qword [rbp - 0x38]
mov rdx, rbx
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14004fd99
mov eax, dword [0x1401ddd80]
lea ecx, [rax + 1]
imul ecx, eax
and ecx, 0x80000007
jge 0x14004fd08
dec ecx
or ecx, 0xfffffff8
inc ecx
cmp ecx, 5
jne 0x14004fd48
movabs rax, 0x39634653527641
mov qword [rbp - 0x20], rax
lea rax, [rbp - 0x20]
mov rcx, rdi
inc rcx
cmp byte [rax + rcx], 0
jne 0x14004fd22
mov eax, 4
mul rcx
cmovo rax, rdi
mov rcx, rax
call fcn.1400d68e8
mov rcx, rax
call fcn.1400d834c
nop
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004fd5d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x48]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x14004fd7a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r12]
sub rdx, 0x18
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004fd92
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor al, al
jmp 0x14004fed0
lea rax, [rbp - 0x50]
mov qword [rsp + 0x28], rax
xor r14d, r14d
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x4c]
xor r8d, r8d
mov rdx, qword [r15]
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14004fdc7
mov ecx, dword [rbp - 0x50]
jmp 0x14004fdd1
mov eax, dword [rbp - 0x50]
inc eax
mov dword [rbp - 0x50], eax
mov ecx, eax
mov eax, 2
mul rcx
cmovo rax, rdi
mov rcx, rax
call fcn.1400d68e8
mov rsi, rax
mov r8d, dword [rbp - 0x50]
add r8, r8
xor edx, edx
mov rcx, rax
call fcn.1400dc6e0
mov eax, dword [rbp - 0x50]
add eax, eax
mov dword [rbp - 0x50], eax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rbp - 0x4c]
xor r8d, r8d
mov rdx, qword [r15]
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r15d, eax
test eax, eax
jne 0x14004fe5c
mov ecx, dword [rbp - 0x50]
mov word [rsi + rcx*2], r14w
test rsi, rsi
je 0x14004fe4d
mov rax, rdi
nop word [rax + rax]
inc rax
cmp word [rsi + rax*2], r14w
jne 0x14004fe40
mov r14d, eax
mov r8d, r14d
mov rdx, rsi
mov rcx, qword [rbp + 0x30]
call fcn.140002770
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rsi
call fcn.1400d834c
test r15d, r15d
jne 0x14004fe7e
cmp dword [rbp - 0x4c], 1
jne 0x14004fe7e
mov sil, 1
jmp 0x14004fe81
xor sil, sil
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004fe96
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x48]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x14004feb3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r12]
sub rdx, 0x18
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004fecc
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
movzx eax, sil
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret