Function at 0x14005a73c
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xd8
mov qword [rbp - 0x19], 0xfffffffffffffffe
mov rax, qword [0x1402f2208]
xor rax, rsp
mov qword [rbp + 0xf], rax
mov rbx, r9
mov qword [rbp - 0x31], rbx
mov r10, r8
mov rax, rdx
mov r15, rcx
mov qword [rbp - 0x41], rdx
xor r12d, r12d
mov r14d, r12d
mov dword [rbp - 0x55], r12d
mov dword [rbp - 0x59], r12d
mov dword [rbp - 0x49], r12d
mov dword [rbp - 0x51], r12d
mov dword [rbp - 0x4d], r12d
lea rcx, [rbp - 0x41]
mov qword [rsp + 0x20], rcx
lea r9d, [r12 + 1]
xor r8d, r8d
mov rdx, r10
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14005aa11
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], r12
lea rax, [rbp - 0x59]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x55]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x14005aa11
mov eax, dword [rbp - 0x55]
inc eax
mov dword [rbp - 0x55], eax
add dword [rbp - 0x59], 2
mov ecx, eax
lea eax, [r12 + 2]
mul rcx
lea rcx, [r12 - 1]
cmovo rax, rcx
mov rcx, rax
call fcn.14005ce84
mov r13, rax
mov ecx, dword [rbp - 0x59]
call fcn.14005ce84
mov rdi, rax
mov r8d, dword [rbp - 0x55]
add r8, r8
xor edx, edx
mov rcx, r13
call fcn.1401c1930
mov r8d, dword [rbp - 0x59]
xor edx, edx
mov rcx, rdi
call fcn.1401c1930
mov esi, r12d
mov ecx, dword [rbp - 0x55]
mov dword [rbp - 0x49], ecx
mov ecx, dword [rbp - 0x59]
mov dword [rbp - 0x51], ecx
xor edx, edx
jmp 0x14005a9c2
cmp dword [rbp - 0x4d], 1
jne 0x14005a9ae
lea rdx, str.73BCA54E_6AEB_4597_8F27_E1284FF12722
mov rcx, rdi
call fcn.1401c1ec0
test eax, eax
jne 0x14005a895
mov dword [rbx], 1
lea rdx, [rbp - 1]
mov rcx, rdi
call fcn.140056b4c
test eax, eax
je 0x14005a98f
mov qword [rbp - 0x39], r12
lea rax, [rbp - 0x39]
mov qword [rsp + 0x20], rax
lea r9, [0x140226f88]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [rbp - 1]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x14005a980
mov eax, dword [rbp - 0x51]
shr eax, 1
inc eax
movsxd rbx, eax
mov eax, 2
mul rbx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14005ce84
mov r12, rax
lea r8, [rbx + rbx]
xor edx, edx
mov rcx, rax
call fcn.1401c1930
mov r8, rbx
mov rdx, rdi
mov rcx, r12
call fcn.1401c43e4
mov qword [rbp - 0x29], r12
mov rcx, qword [rbp - 0x39]
mov qword [rbp - 0x21], rcx
test rcx, rcx
je 0x14005a931
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rdx, [rbp - 0x29]
mov rcx, r15
call fcn.140058d04
mov r8, rax
xor r9d, r9d
lea rdx, [rbp - 0x11]
mov rcx, r15
call fcn.140058d50
cmp byte [rbp - 9], 0
sete bl
mov rcx, qword [rbp - 0x21]
test rcx, rcx
je 0x14005a965
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
test bl, bl
je 0x14005a973
mov rcx, r12
call fcn.14005ce7c
jmp 0x14005a979
mov r14d, 1
xor r12d, r12d
mov rbx, qword [rbp - 0x31]
mov rcx, qword [rbp - 0x39]
test rcx, rcx
je 0x14005a98f
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov r8d, dword [rbp - 0x55]
add r8, r8
xor edx, edx
mov rcx, r13
call fcn.1401c1930
mov r8d, dword [rbp - 0x59]
xor edx, edx
mov rcx, rdi
call fcn.1401c1930
mov eax, dword [rbp - 0x55]
mov dword [rbp - 0x49], eax
mov eax, dword [rbp - 0x59]
inc esi
mov dword [rbp - 0x51], eax
mov dword [rbp - 0x4d], r12d
mov edx, esi
lea rax, [rbp - 0x51]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
lea rax, [rbp - 0x4d]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x49]
mov r8, r13
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x14005a872
mov rcx, r13
call fcn.14005ce7c
mov rcx, rdi
call fcn.14005ce7c
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, r14d
mov rcx, qword [rbp + 0xf]
xor rcx, rsp
call fcn.1401c0410
add rsp, 0xd8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret