Function at 0x140019510
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov dword [rsp + 0x44], 0
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax]
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
je 0x140019558
cmp dword [rsp + 0x58], 1
je 0x1400195ec
jmp 0x140019946
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0xd0]
mov r8, qword [rsp + 0xc8]
mov edx, dword [rsp + 0xc0]
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jne 0x1400195c6
mov dword [rsp + 0x5c], 1
jmp 0x1400195ce
mov dword [rsp + 0x5c], 0
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x1400195e7
mov ecx, dword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140019946
cmp qword [rsp + 0xb8], 0
je 0x140019606
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x78], rax
jmp 0x14001961b
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 8]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
movzx eax, word [rax + 4]
cmp eax, 0x6b6e
jne 0x140019946
mov rax, qword [rsp + 0x70]
cmp dword [rax + 0x28], 0
je 0x140019946
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x28]
cmp dword [rsp + 0xc0], eax
jae 0x140019946
mov rax, qword [rsp + 0x70]
cmp dword [rax + 0x2c], 0xffffffff
je 0x140019946
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 8]
mov rcx, qword [rsp + 0x70]
movsxd rcx, dword [rcx + 0x2c]
add rcx, qword [rax + 0x10]
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 8]
mov ecx, dword [rsp + 0xc0]
mov rdx, qword [rsp + 0x88]
movsxd rcx, dword [rdx + rcx*4 + 4]
add rcx, qword [rax + 0x10]
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
movzx eax, word [rax + 4]
cmp eax, 0x6b76
jne 0x140019946
cmp qword [rsp + 0xc8], 0
je 0x140019946
cmp qword [rsp + 0xd0], 0
je 0x140019946
mov rax, qword [rsp + 0x48]
movzx eax, word [rax + 6]
test eax, eax
je 0x140019814
mov rax, qword [rsp + 0x48]
movzx eax, word [rax + 0x14]
and eax, 1
test eax, eax
je 0x14001973e
mov rax, qword [rsp + 0x48]
movzx eax, word [rax + 6]
inc eax
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x48]
movzx eax, word [rax + 6]
mov rcx, qword [rsp + 0x48]
add rcx, 0x18
mov edx, eax
call fcn.1400201a0
mov qword [rsp + 0x50], rax
jmp 0x1400197a2
mov rax, qword [rsp + 0x48]
movzx eax, word [rax + 6]
xor edx, edx
mov ecx, 2
div rcx
inc rax
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x48]
movzx eax, word [rax + 6]
add rax, 2
mov rdx, rax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1400197a2
mov rax, qword [rsp + 0x48]
movzx eax, word [rax + 6]
mov rcx, qword [rsp + 0x48]
add rcx, 0x18
mov r8d, eax
mov rdx, rcx
mov rcx, qword [rsp + 0x50]
call fcn.140161160
cmp qword [rsp + 0x50], 0
je 0x140019812
mov rax, qword [rsp + 0xd0]
mov ecx, dword [rsp + 0x40]
cmp dword [rax], ecx
jb 0x1400197c4
mov dword [rsp + 0x64], 1
jmp 0x1400197cc
mov dword [rsp + 0x64], 0
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
je 0x140019807
mov eax, dword [rsp + 0x40]
shl rax, 1
mov r8, rax
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0xc8]
call fcn.140161160
mov eax, dword [rsp + 0x40]
dec eax
mov rcx, qword [rsp + 0xd0]
mov dword [rcx], eax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14001983b
mov rax, qword [rsp + 0x48]
movzx eax, word [rax + 6]
test eax, eax
jne 0x14001983b
mov qword [rsp + 0xc8], 0
mov rax, qword [rsp + 0xd0]
mov dword [rax], 0
cmp dword [rsp + 0x44], 0
je 0x140019946
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 8]
btr eax, 0x1f
mov dword [rsp + 0x40], eax
cmp qword [rsp + 0xe0], 0
je 0x140019873
mov rax, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0x48]
mov ecx, dword [rcx + 0x10]
mov dword [rax], ecx
cmp qword [rsp + 0xf0], 0
je 0x140019946
cmp qword [rsp + 0xe8], 0
je 0x140019938
mov rax, qword [rsp + 0xf0]
mov ecx, dword [rsp + 0x40]
cmp dword [rax], ecx
jb 0x1400198ab
mov dword [rsp + 0x68], 1
jmp 0x1400198b3
mov dword [rsp + 0x68], 0
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
je 0x140019938
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 8]
and eax, 0x80000000
test eax, eax
je 0x1400198e6
mov rax, qword [rsp + 0x48]
add rax, 0xc
mov qword [rsp + 0x80], rax
jmp 0x14001990c
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 8]
mov rcx, qword [rsp + 0x48]
movsxd rcx, dword [rcx + 0xc]
mov rax, qword [rax + 0x10]
lea rax, [rax + rcx + 4]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x90], rax
mov eax, dword [rsp + 0x40]
mov r8d, eax
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0xe8]
call fcn.140161160
mov rax, qword [rsp + 0xf0]
mov ecx, dword [rsp + 0x40]
mov dword [rax], ecx
mov eax, dword [rsp + 0x44]
add rsp, 0xa8
ret