Function at 0x4099e0
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.004063e0
mov r13, rax
test rax, rax
jne 0x409ace
mov qword [rsi + 8], rbx
mov dword [rsi + 0x10], ebx
lea r12, [0x0043d608]
mov qword [rsi], r12
mov dword [rsi + 0x18], ebx
xor edx, edx
mov rcx, rsi
call qword [0x0043d610]
nop
lea r15, [0x0043d648]
mov qword [rsi], r15
test rbp, rbp
je 0x409a7c
cmp byte [rbp], r13b
je 0x409a7c
mov rax, rbp
inc ebx
inc rax
cmp byte [rax], 0
jne 0x409a72
movsxd rdi, dword [rsi + 0x10]
lea edx, [rdi + rbx]
mov rcx, rsi
call qword [0x0043d650]
cmp edi, edi
jge 0x409aa9
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.004254c0
movsxd r8, ebx
mov rcx, rdi
add rcx, qword [rsi + 8]
mov rdx, rbp
call fcn.004254c0
nop
lea r14, [0x0043d698]
mov qword [rsi], r14
mov rax, rsi
jmp 0x409cb8
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x58], ebx
lea r12, [0x0043d608]
mov qword [rsp + 0x48], r12
mov dword [rsp + 0x60], ebx
xor edx, edx
lea rcx, [rsp + 0x48]
call qword [0x0043d610]
nop
lea r15, [0x0043d648]
mov qword [rsp + 0x48], r15
movsxd rdi, dword [rsp + 0x58]
mov edx, edi
lea rcx, [rsp + 0x48]
call qword [0x0043d650]
cmp edi, edi
jge 0x409b2f
mov rcx, qword [rsp + 0x50]
add rcx, rdi
mov eax, edi
sub eax, edi
movsxd r8, eax
mov rdx, rcx
call fcn.004254c0
nop
lea r14, [0x0043d698]
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 0x409be7
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 0x409c88
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 [0x0043d610]
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 [0x0043d650]
cmp edi, edi
jge 0x409c4c
mov rdx, rdi
add rdx, qword [rsi + 8]
lea rcx, [rdx + rbp]
mov eax, edi
sub eax, edi
movsxd r8, eax
call fcn.004254c0
mov r8, rbp
mov rcx, rdi
add rcx, qword [rsi + 8]
mov rdx, r13
call fcn.004254c0
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 0x409c83
call fcn.00425490
mov rax, rsi
jmp 0x409cb8
mov rdx, rbp
mov rcx, rsi
call fcn.00403060
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 0x409cb5
call fcn.00425490
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