Function at 0x408a50
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
mov rax, rsp
sub rsp, 0xa8
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov qword [rax - 8], rbp
mov qword [rax - 0x10], rsi
mov qword [rax - 0x18], rdi
mov qword [rax - 0x20], r12
mov qword [rax - 0x28], r13
mov qword [rax - 0x30], r14
mov qword [rax - 0x38], r15
mov rbp, r8
mov rsi, rcx
xor ebx, ebx
mov dword [rsp + 0x38], ebx
call fcn.00405520
mov r13, rax
test rax, rax
jne 0x408b3e
mov qword [rsi + 8], rbx
mov dword [rsi + 0x10], ebx
lea r12, [0x004366a8]
mov qword [rsi], r12
mov dword [rsi + 0x18], ebx
xor edx, edx
mov rcx, rsi
call qword [0x004366b0]
nop
lea r15, [0x004366e8]
mov qword [rsi], r15
test rbp, rbp
je 0x408aec
cmp byte [rbp], r13b
je 0x408aec
mov rax, rbp
inc ebx
inc rax
cmp byte [rax], 0
jne 0x408ae2
movsxd rdi, dword [rsi + 0x10]
lea edx, [rdi + rbx]
mov rcx, rsi
call qword [0x004366f0]
cmp edi, edi
jge 0x408b19
mov rdx, rdi
add rdx, qword [rsi + 8]
movsxd rcx, ebx
add rcx, rdx
mov eax, edi
sub eax, edi
movsxd r8, eax
call fcn.00421230
movsxd r8, ebx
mov rcx, rdi
add rcx, qword [rsi + 8]
mov rdx, rbp
call fcn.00421230
nop
lea r14, [0x00436768]
mov qword [rsi], r14
mov rax, rsi
jmp 0x408d28
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x58], ebx
lea r12, [0x004366a8]
mov qword [rsp + 0x48], r12
mov dword [rsp + 0x60], ebx
xor edx, edx
lea rcx, [rsp + 0x48]
call qword [0x004366b0]
nop
lea r15, [0x004366e8]
mov qword [rsp + 0x48], r15
movsxd rdi, dword [rsp + 0x58]
mov edx, edi
lea rcx, [rsp + 0x48]
call qword [0x004366f0]
cmp edi, edi
jge 0x408b9f
mov rcx, qword [rsp + 0x50]
add rcx, rdi
mov eax, edi
sub eax, edi
movsxd r8, eax
mov rdx, rcx
call fcn.00421230
nop
lea r14, [0x00436768]
mov qword [rsp + 0x48], r14
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rdi, qword [rsp + 0xb8]
mov rdx, rdi
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [rsp + 0x34], eax
test eax, eax
jne 0x408c57
mov edx, dword [rsp + 0x30]
lea rcx, [rsp + 0x48]
mov rax, qword [rsp + 0x48]
call qword [rax + 8]
mov edx, dword [rsp + 0x58]
lea rcx, [rsp + 0x48]
mov rax, qword [rsp + 0x48]
call qword [rax + 8]
lea r11, [rsp + 0x30]
mov qword [rsp + 0x28], r11
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rdx, rdi
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [rsp + 0x34], eax
mov edx, dword [rsp + 0x58]
lea rcx, [rsp + 0x48]
mov rax, qword [rsp + 0x48]
call qword [rax + 8]
xor eax, eax
mov rcx, 0xffffffffffffffff
mov rdi, qword [rsp + 0x50]
repne scasb al, byte [rdi]
not rcx
dec rcx
mov dword [rsp + 0x58], ecx
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x34], 0
jne 0x408cf8
mov qword [rsi + 8], rbx
mov dword [rsi + 0x10], ebx
mov qword [rsi], r12
mov dword [rsi + 0x18], ebx
xor edx, edx
mov rcx, rsi
call qword [0x004366b0]
nop
mov qword [rsi], r15
movsxd rbp, dword [rsp + 0x58]
mov r13, qword [rsp + 0x50]
movsxd rdi, dword [rsi + 0x10]
lea edx, [rdi + rbp]
mov rcx, rsi
call qword [0x004366f0]
cmp edi, edi
jge 0x408cbc
mov rdx, rdi
add rdx, qword [rsi + 8]
lea rcx, [rdx + rbp]
mov eax, edi
sub eax, edi
movsxd r8, eax
call fcn.00421230
mov r8, rbp
mov rcx, rdi
add rcx, qword [rsi + 8]
mov rdx, r13
call fcn.00421230
nop
mov qword [rsi], r14
mov qword [rsp + 0x48], r12
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x58], ebx
mov dword [rsp + 0x60], ebx
test rcx, rcx
je 0x408cf3
call fcn.00421200
mov rax, rsi
jmp 0x408d28
mov rdx, rbp
mov rcx, rsi
call fcn.004021a0
nop
mov qword [rsp + 0x48], r12
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x58], ebx
mov dword [rsp + 0x60], ebx
test rcx, rcx
je 0x408d25
call fcn.00421200
mov rax, rsi
mov rbx, qword [rsp + 0xc8]
mov rbp, qword [rsp + 0xa0]
mov rsi, qword [rsp + 0x98]
mov rdi, qword [rsp + 0x90]
mov r12, qword [rsp + 0x88]
mov r13, qword [rsp + 0x80]
mov r14, qword [rsp + 0x78]
mov r15, qword [rsp + 0x70]
add rsp, 0xa8
ret