Function at 0x487a06
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xe8
mov rax, r8
mov rbx, rdx
mov rsi, rcx
lea rdi, [rsp + 0xa0]
mov r8d, 0xb
mov rcx, rdi
mov rdx, rax
call fcn.0047173c
lea r9, [rsp + 0x34]
and dword [r9], 0
lea r13, [rsp + 0x30]
and dword [r13], 0
mov rdi, qword [rdi + 8]
mov qword [rsp + 0x28], r13
and qword [rsp + 0x20], 0
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
call sub.advapi32.dll_RegQueryValueExW
mov ecx, eax
call fcn.004fe5ed
test eax, eax
je 0x487aa9
and qword [rsi + 8], 0
mov dword [rsi + 0x10], eax
mov dword [rsi], 6
mov rcx, qword [rsp + 0xa0]
mov rdx, rdi
call fcn.004b0233
nop
add rsp, 0xe8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov eax, dword [rsp + 0x34]
dec eax
cmp eax, 0xa
ja case.0x487ac6.5
lea rcx, [0x00487eec]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
mov edx, dword [rsp + 0x30]
shr rdx, 1
lea r14, [rsp + 0x58]
mov rcx, r14
call fcn.004fe549
mov r14, qword [r14 + 8]
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r14
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
xor r9d, r9d
call sub.advapi32.dll_RegQueryValueExW
mov ecx, eax
call fcn.004fe5ed
test eax, eax
je 0x487c7a
and qword [rsi + 8], 0
mov dword [rsi + 0x10], eax
mov dword [rsi], 6
jmp 0x487cdc
mov r14d, dword [rsp + 0x30]
mov rcx, r14
mov dl, 1
call fcn.00429bcd
mov r12, rax
mov r15, rdx
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rdx
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
xor r9d, r9d
call sub.advapi32.dll_RegQueryValueExW
mov ecx, eax
call fcn.004fe5ed
test eax, eax
je 0x487ce6
and qword [rsi + 8], 0
mov dword [rsi + 0x10], eax
mov dword [rsi], 6
mov rcx, r12
mov rdx, r15
call fcn.0045ae63
jmp 0x487a84
cmp dword [rsp + 0x30], 4
jne case.0x487ac6.5
lea rax, [rsp + 0x38]
and dword [rax], 0
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rax
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
xor r9d, r9d
call sub.advapi32.dll_RegQueryValueExW
mov ecx, eax
call fcn.004fe5ed
test eax, eax
jne 0x487a76
mov eax, dword [rsp + 0x38]
and dword [rsi], 0
mov dword [rsi + 4], eax
jmp 0x487a84
mov edx, dword [rsp + 0x30]
shr rdx, 1
lea r14, [rsp + 0x70]
mov rcx, r14
call fcn.004fe549
mov r14, qword [r14 + 8]
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r14
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
xor r9d, r9d
call sub.advapi32.dll_RegQueryValueExW
mov ecx, eax
call fcn.004fe5ed
test eax, eax
je 0x487cfd
and qword [rsi + 8], 0
mov dword [rsi + 0x10], eax
mov dword [rsi], 6
jmp 0x487ebc
cmp dword [rsp + 0x30], 8
jne case.0x487ac6.5
lea rax, [rsp + 0x38]
and qword [rax], 0
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rax
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
xor r9d, r9d
call sub.advapi32.dll_RegQueryValueExW
mov ecx, eax
call fcn.004fe5ed
test eax, eax
jne 0x487a76
mov rax, qword [rsp + 0x38]
mov dword [rsi], 1
mov qword [rsi + 8], rax
jmp 0x487a84
and qword [rsi + 8], 0
mov dword [rsi + 0x10], 0x8007000d
jmp 0x487a7e
mov rdx, qword [rsp + 0x68]
mov rcx, r14
call fcn.004fe5ca
lea rcx, [rax + rdx*2]
lea rbx, [rsp + 0x38]
mov qword [rbx], rcx
mov qword [rbx + 8], rax
and word [rbx + 0x10], 0
lea r15, [rsp + 0x88]
mov rcx, r15
mov rdx, rbx
call fcn.004fe761
movups xmm0, xmmword [r15]
movups xmmword [rbx + 4], xmm0
mov rax, qword [r15 + 0x10]
mov qword [rbx + 0x14], rax
mov dword [rsi], 2
movups xmm0, xmmword [rbx]
mov rax, qword [rbx + 0xc]
mov qword [rsi + 0x10], rax
mov rax, qword [rbx + 0x14]
mov qword [rsi + 0x18], rax
movups xmmword [rsi + 4], xmm0
mov rcx, qword [rsp + 0x58]
jmp 0x487ec1
mov dword [rsi], 3
mov qword [rsi + 8], r12
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r14
jmp 0x487a84
mov rdx, qword [rsp + 0x80]
mov rcx, r14
call fcn.004fe5ca
lea r8, [rsp + 0xb8]
mov qword [r8], rax
mov qword [r8 + 8], rdx
mov byte [r8 + 0x10], 0
lea rbx, [rsp + 0x38]
mov rcx, rbx
mov rdx, r8
call fcn.004a407d
cmp qword [rbx + 8], 0
je 0x487e9f
mov ecx, 0x60
mov edx, 8
call fcn.00403370
test rax, rax
je 0x487eda
mov rbx, rax
lea rcx, [rsp + 0x38]
mov rax, qword [rcx + 0x10]
mov qword [rbx + 0x10], rax
movups xmm0, xmmword [rcx]
movups xmmword [rbx], xmm0
mov rax, qword [rsp + 0xc8]
lea r14, [rsp + 0xd0]
mov qword [r14 + 0x10], rax
movups xmm0, xmmword [rsp + 0xb8]
movaps xmmword [r14], xmm0
mov r13d, 1
mov r12d, 4
mov edi, 0x18
lea r15, [rsp + 0x58]
mov rcx, r15
mov rdx, r14
call fcn.004a407d
cmp qword [rsp + 0x60], 0
je 0x487e90
cmp r13, r12
jne 0x487e71
cmp byte [rsp + 0xe0], 1
mov ebp, 0
adc rbp, 1
add rbp, r12
jb 0x487ed3
lea rax, [r12 + r12]
cmp rax, rbp
cmova rbp, rax
cmp rbp, 5
jae 0x487df0
mov ebp, 4
xor r8d, r8d
movabs rax, 0x555555555555556
cmp rbp, rax
setb r8b
imul rdx, rbp, 0x18
shl r8, 3
test r12, r12
je 0x487e26
imul rax, r12, 0x18
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rax
mov eax, 8
jmp 0x487e28
xor eax, eax
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x88]
lea r9, [rsp + 0x38]
call fcn.004fe62b
cmp qword [rsp + 0x88], 0
mov rcx, qword [rsp + 0x90]
je 0x487e6b
mov rdx, qword [rsp + 0x98]
movabs rax, 0x8000000000000001
cmp rdx, rax
je 0x487e71
jmp 0x487ece
mov r12, rbp
mov rbx, rcx
mov rax, qword [rsp + 0x68]
mov qword [rbx + rdi + 0x10], rax
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rbx + rdi], xmm0
inc r13
add rdi, 0x18
jmp 0x487da0
mov r14, qword [rsp + 0x78]
mov rdi, qword [rsp + 0xa8]
jmp 0x487eaa
mov ebx, 8
xor r13d, r13d
xor r12d, r12d
mov dword [rsi], 4
mov qword [rsi + 8], r12
mov qword [rsi + 0x10], rbx
mov qword [rsi + 0x18], r13
mov rcx, qword [rsp + 0x70]
mov rdx, r14
call fcn.004b0233
jmp 0x487a84
test rdx, rdx
jne 0x487ee4
call fcn.00403940
ud2
mov ecx, 0x60
mov edx, 8
call fcn.004043b0
ud2