Function at 0x40e510
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.0040c060
mov r13, rax
test rax, rax
jne 0x40e5fe
mov qword [rsi + 8], rbx
mov dword [rsi + 0x10], ebx
lea r12, [0x00453650]
mov qword [rsi], r12
mov dword [rsi + 0x18], ebx
xor edx, edx
mov rcx, rsi
call qword [0x00453658]
nop
lea r15, [0x00453688]
mov qword [rsi], r15
test rbp, rbp
je 0x40e5ac
cmp byte [rbp], r13b
je 0x40e5ac
mov rax, rbp
inc ebx
inc rax
cmp byte [rax], 0
jne 0x40e5a2
movsxd rdi, dword [rsi + 0x10]
lea edx, [rdi + rbx]
mov rcx, rsi
call qword [0x00453690]
cmp edi, edi
jge 0x40e5d9
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.0042a950
movsxd r8, ebx
mov rcx, rdi
add rcx, qword [rsi + 8]
mov rdx, rbp
call fcn.0042a950
nop
lea r14, [0x00453718]
mov qword [rsi], r14
mov rax, rsi
jmp 0x40e7e8
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x58], ebx
lea r12, [0x00453650]
mov qword [rsp + 0x48], r12
mov dword [rsp + 0x60], ebx
xor edx, edx
lea rcx, [rsp + 0x48]
call qword [0x00453658]
nop
lea r15, [0x00453688]
mov qword [rsp + 0x48], r15
movsxd rdi, dword [rsp + 0x58]
mov edx, edi
lea rcx, [rsp + 0x48]
call qword [0x00453690]
cmp edi, edi
jge 0x40e65f
mov rcx, qword [rsp + 0x50]
add rcx, rdi
mov eax, edi
sub eax, edi
movsxd r8, eax
mov rdx, rcx
call fcn.0042a950
nop
lea r14, [0x00453718]
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 0x40e717
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 0x40e7b8
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 [0x00453658]
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 [0x00453690]
cmp edi, edi
jge 0x40e77c
mov rdx, rdi
add rdx, qword [rsi + 8]
lea rcx, [rdx + rbp]
mov eax, edi
sub eax, edi
movsxd r8, eax
call fcn.0042a950
mov r8, rbp
mov rcx, rdi
add rcx, qword [rsi + 8]
mov rdx, r13
call fcn.0042a950
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 0x40e7b3
call fcn.0042a7a0
mov rax, rsi
jmp 0x40e7e8
mov rdx, rbp
mov rcx, rsi
call fcn.00402510
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 0x40e7e5
call fcn.0042a7a0
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