Function at 0x180035830
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov qword [rsp + 0x70], 0
mov dword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x78], 0
mov rax, qword [rsp + 0xb0]
mov r9d, dword [rax + 0x210]
or r9d, 9
mov rdx, qword [rsp + 0xb0]
add rdx, 8
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, qword [rsp + 0xb0]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1800358b3
jmp 0x180035ac2
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x18003591e
jmp 0x180035ac2
cmp dword [rsp + 0x60], 0
jbe 0x18003592c
cmp dword [rsp + 0x78], 0
ja 0x180035936
jmp 0x180035ac2
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, dword [rsp + 0x60]
imul eax, dword [rsp + 0x78]
mov ecx, eax
mov eax, 2
mul rcx
mov rcx, rax
mov rax, 0xffffffffffffffff
cmovo rcx, rax
call fcn.18003c750
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x18003598e
jmp 0x180035ac2
mov eax, dword [rsp + 0x60]
imul eax, dword [rsp + 0x78]
mov r8d, eax
shl r8, 1
xor edx, edx
mov rcx, qword [rsp + 0x68]
call fcn.18003bb80
mov dword [rsp + 0x7c], 0
jmp 0x1800359be
mov eax, dword [rsp + 0x7c]
add eax, 1
mov dword [rsp + 0x7c], eax
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x7c], eax
jae 0x180035a24
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x80], eax
mov eax, dword [rsp + 0x7c]
imul eax, dword [rsp + 0x78]
mov ecx, eax
mov rax, qword [rsp + 0x68]
lea r8, [rax + rcx*2]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
mov edx, dword [rsp + 0x7c]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x1800359b3
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x70], 0
mov dword [rsp + 0x84], 0
jmp 0x180035a56
mov eax, dword [rsp + 0x84]
add eax, 1
mov dword [rsp + 0x84], eax
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x84], eax
jae 0x180035ac2
mov byte [rsp + 0x88], 0
cmp qword [rsp + 0xb8], 0
je 0x180035ab2
mov eax, dword [rsp + 0x84]
imul eax, dword [rsp + 0x78]
mov ecx, eax
mov rax, qword [rsp + 0x68]
lea rdx, [rax + rcx*2]
mov r9, qword [rsp + 0xc0]
mov r8, qword [rsp + 0xb0]
mov ecx, dword [rsp + 0x84]
call qword [rsp + VarDecFix]
mov byte [rsp + 0x88], al
movzx eax, byte [rsp + 0x88]
test eax, eax
jne 0x180035ac0
jmp 0x180035ac2
jmp 0x180035a45
cmp qword [rsp + 0x70], 0
je 0x180035ade
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x70], 0
cmp qword [rsp + 0x68], 0
je 0x180035b09
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x98], rax
mov rcx, qword [rsp + 0x98]
call fcn.18003c748
mov qword [rsp + 0x68], 0
mov eax, dword [rsp + 0x60]
add rsp, 0xa8
ret