Function at 0x140186fb0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x4f]
sub rsp, 0x90
mov qword [rbp - 0x41], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov r12, r9
mov rsi, r8
mov rbx, rdx
mov r14, rcx
xor ecx, ecx
mov dword [rbp - 0x49], ecx
mov dword [r9], ecx
mov r13, qword [rbp + 0x77]
mov dword [r13], ecx
mov r15, qword [rbp + 0x7f]
mov qword [r15], rcx
mov qword [rbp - 0x21], 7
mov qword [rbp - 0x29], rcx
mov word [rbp - 0x39], cx
add r14, 0x38
lea rdx, [rbp - 0x11]
mov rcx, r14
call fcn.14019e9f0
mov rdi, rax
lea rax, [rbp - 0x39]
cmp rax, rdi
je 0x140187098
cmp qword [rbp - 0x21], 8
jb 0x14018703c
mov rcx, qword [rbp - 0x39]
call fcn.140224608
mov qword [rbp - 0x21], 7
xor ecx, ecx
mov qword [rbp - 0x29], rcx
mov word [rbp - 0x39], cx
cmp qword [rdi + 0x18], 8
jae 0x14018706f
mov r8, qword [rdi + 0x10]
inc r8
add r8, r8
mov rdx, rdi
lea rcx, [rbp - 0x39]
call fcn.14035fcd0
xor ecx, ecx
jmp 0x140187079
mov rax, qword [rdi]
mov qword [rbp - 0x39], rax
mov qword [rdi], rcx
mov rax, qword [rdi + 0x10]
mov qword [rbp - 0x29], rax
mov rax, qword [rdi + 0x18]
mov qword [rbp - 0x21], rax
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rcx
mov word [rdi], cx
cmp qword [rbp + 7], 8
jb 0x1401870a8
mov rcx, qword [rbp - 0x11]
call fcn.140224608
mov qword [rbp + 7], 7
xor edi, edi
mov qword [rbp - 1], rdi
mov word [rbp - 0x11], di
cmp qword [rbp - 0x29], rdi
je 0x1401871b6
mov qword [rbp + 7], 7
mov qword [rbp - 1], rdi
mov word [rbp - 0x11], di
lea r8d, [rdi + 0x17]
lea rdx, str.CRegistryW::GetValue:
lea rcx, [rbp - 0x11]
call fcn.140002220
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 0x11]
call fcn.140009350
lea r8d, [rdi + 0xa]
lea rdx, str._for_key:
lea rcx, [rbp - 0x11]
call fcn.1400091f0
mov rdx, qword [rbp + 0x57]
add rdx, 0x10
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 0x11]
call fcn.140009350
lea r8d, [rdi + 0x14]
lea rdx, str.__converted_key_is:
lea rcx, [rbp - 0x11]
call fcn.1400091f0
mov rcx, r14
call fcn.140048570
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp - 0x11]
call fcn.140009350
lea r8d, [rdi + 9]
lea rdx, str.__value:
lea rcx, [rbp - 0x11]
call fcn.1400091f0
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rsi
lea rcx, [rbp - 0x11]
call fcn.140009350
lea rdx, [rbp - 0x11]
mov rcx, rbx
call fcn.14019e1c0
mov dword [rbp - 0x49], 1
cmp qword [rbp + 7], 8
jb 0x1401871a1
mov rcx, qword [rbp - 0x11]
call fcn.140224608
mov qword [rbp + 7], 7
mov qword [rbp - 1], rdi
mov word [rbp - 0x11], di
jmp 0x1401873ec
mov dword [rbp + 0x77], edi
cmp qword [rsi + 0x18], 8
jb 0x1401871c5
mov rdi, qword [rsi]
jmp 0x1401871c8
mov rdi, rsi
mov rcx, r14
call fcn.14005c830
mov rcx, rax
lea rax, [rbp + 0x77]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x7f]
xor r8d, r8d
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
je 0x1401872ed
mov qword [rbp + 7], 7
xor r12d, r12d
mov qword [rbp - 1], r12
mov word [rbp - 0x11], r12w
lea r8d, [r12 + 0x3f]
lea rdx, str.CRegistryW::GetValue:_Failed_to_call_RegQueryValueExW_for_key:
lea rcx, [rbp - 0x11]
call fcn.140002220
mov rdx, qword [rbp + 0x57]
add rdx, 0x10
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 0x11]
call fcn.140009350
lea r8d, [r12 + 0x14]
lea rdx, str.__converted_key_is:
lea rcx, [rbp - 0x11]
call fcn.1400091f0
mov rcx, r14
call fcn.140048570
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp - 0x11]
call fcn.140009350
lea r8d, [r12 + 9]
lea rdx, str.__value:
lea rcx, [rbp - 0x11]
call fcn.1400091f0
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rsi
lea rcx, [rbp - 0x11]
call fcn.140009350
mov r8d, edi
lea rdx, [rbp - 0x11]
mov rcx, rbx
call fcn.14019e810
mov dword [rbp - 0x49], 1
cmp qword [rbp + 7], 8
jb 0x1401872be
mov rcx, qword [rbp - 0x11]
call fcn.140224608
mov qword [rbp + 7], 7
mov qword [rbp - 1], r12
mov word [rbp - 0x11], r12w
cmp qword [rbp - 0x21], 8
jb 0x1401872df
mov rcx, qword [rbp - 0x39]
call fcn.140224608
mov qword [rbp - 0x29], r12
mov word [rbp - 0x39], r12w
jmp 0x140187404
mov eax, dword [rbp + 0x77]
test eax, eax
je 0x1401873b7
mov ecx, eax
call fcn.140224600
mov rdi, rax
cmp qword [rsi + 0x18], 8
jb 0x14018730c
mov rsi, qword [rsi]
mov rcx, r14
call fcn.14005c830
mov rcx, rax
lea rax, [rbp + 0x77]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rbp + 0x7f]
xor r8d, r8d
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test eax, eax
je 0x1401873a2
mov rcx, rdi
call fcn.140224608
mov qword [rbp + 7], 7
xor edi, edi
mov qword [rbp - 1], rdi
mov word [rbp - 0x11], di
lea r8d, [rdi + 0x35]
lea rdx, str.CRegistryW::GetValue:_Failed_to_call_RegQueryValueExW
lea rcx, [rbp - 0x11]
call fcn.140002220
nop
mov r8d, esi
lea rdx, [rbp - 0x11]
mov rcx, rbx
call fcn.14019e810
mov dword [rbp - 0x49], 1
cmp qword [rbp + 7], 8
jb 0x140187390
mov rcx, qword [rbp - 0x11]
call fcn.140224608
mov qword [rbp + 7], 7
mov qword [rbp - 1], rdi
mov word [rbp - 0x11], di
jmp 0x1401873ec
mov eax, dword [rbp + 0x77]
mov dword [r13], eax
mov eax, dword [rbp + 0x7f]
mov dword [r12], eax
mov qword [r15], rdi
xor edi, edi
jmp 0x1401873c4
xor edi, edi
mov dword [r13], edi
mov eax, dword [rbp + 0x7f]
mov dword [r12], eax
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rdi
mov word [rbx], di
xor r8d, r8d
lea rdx, [0x1405369f8]
mov rcx, rbx
call fcn.140002220
mov dword [rbp - 0x49], 1
cmp qword [rbp - 0x21], 8
jb 0x1401873fc
mov rcx, qword [rbp - 0x39]
call fcn.140224608
mov word [rbp - 0x39], di
mov qword [rbp - 0x29], rdi
mov qword [rbp - 0x21], 7
mov rax, rbx
mov rbx, qword [rsp + 0xe0]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret