Function at 0x140059b24
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 [0x1402ee230]
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 0x140059df9
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 0x140059df9
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.14005a624
mov r13, rax
mov ecx, dword [rbp - 0x59]
call fcn.14005a624
mov rdi, rax
mov r8d, dword [rbp - 0x55]
add r8, r8
xor edx, edx
mov rcx, r13
call fcn.1401bf0f0
mov r8d, dword [rbp - 0x59]
xor edx, edx
mov rcx, rdi
call fcn.1401bf0f0
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 0x140059daa
cmp dword [rbp - 0x4d], 1
jne 0x140059d96
lea rdx, str.73BCA54E_6AEB_4597_8F27_E1284FF12722
mov rcx, rdi
call fcn.1401bf680
test eax, eax
jne 0x140059c7d
mov dword [rbx], 1
lea rdx, [rbp - 1]
mov rcx, rdi
call fcn.140056290
test eax, eax
je 0x140059d77
mov qword [rbp - 0x39], r12
lea rax, [rbp - 0x39]
mov qword [rsp + 0x20], rax
lea r9, [0x140223b78]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [rbp - 1]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x140059d68
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.14005a624
mov r12, rax
lea r8, [rbx + rbx]
xor edx, edx
mov rcx, rax
call fcn.1401bf0f0
mov r8, rbx
mov rdx, rdi
mov rcx, r12
call fcn.1401c1ba4
mov qword [rbp - 0x29], r12
mov rcx, qword [rbp - 0x39]
mov qword [rbp - 0x21], rcx
test rcx, rcx
je 0x140059d19
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rdx, [rbp - 0x29]
mov rcx, r15
call fcn.140057fb4
mov r8, rax
xor r9d, r9d
lea rdx, [rbp - 0x11]
mov rcx, r15
call fcn.140058000
cmp byte [rbp - 9], 0
sete bl
mov rcx, qword [rbp - 0x21]
test rcx, rcx
je 0x140059d4d
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
test bl, bl
je 0x140059d5b
mov rcx, r12
call fcn.14005a61c
jmp 0x140059d61
mov r14d, 1
xor r12d, r12d
mov rbx, qword [rbp - 0x31]
mov rcx, qword [rbp - 0x39]
test rcx, rcx
je 0x140059d77
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.1401bf0f0
mov r8d, dword [rbp - 0x59]
xor edx, edx
mov rcx, rdi
call fcn.1401bf0f0
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 0x140059c5a
mov rcx, r13
call fcn.14005a61c
mov rcx, rdi
call fcn.14005a61c
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.1401be9b0
add rsp, 0xd8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret