Function at 0x1400153b8
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x428]
sub rsp, 0x510
mov qword [rbp - 0x58], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140055910]
xor rax, rsp
mov qword [rbp + 0x400], rax
mov rsi, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1f0]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov dword [rsp + 0x70], 0x104
xor r15d, r15d
mov ebx, r15d
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsi + 0x20]
mov rcx, qword [rsi + 0x78]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov r14d, eax
test eax, eax
je 0x1400154b0
lea rdx, str.Failed_to_open_settings_key
lea rcx, [rbp - 0x50]
call fcn.14000ba10
nop
mov rdx, qword [rsi + 0x20]
lea rcx, [rbp - 0x50]
call fcn.14000b908
lea rdx, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rdx, qword [rbp - 0x50]
movzx edi, r14w
or edi, 0x80070000
test r14d, r14d
cmovle edi, r14d
mov ecx, edi
call fcn.14000afb0
mov ebx, eax
test eax, eax
jns 0x14001549d
mov ecx, eax
call fcn.14000b750
nop
jmp 0x14001577a
mov ebx, edi
test edi, edi
je 0x1400154a7
mov ecx, ebx
jmp 0x140015492
lea rcx, [rbp - 0x50]
call fcn.14000b9a0
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], r15
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
xor r9d, r9d
lea r8, [rsp + 0x70]
lea rdx, [rbp + 0x1f0]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryInfoKeyW]
nop dword [rax + rax]
mov r14d, eax
test eax, eax
je 0x14001556e
lea rdx, str.Failed_to_examine_key
lea rcx, [rbp - 0x50]
call fcn.14000ba10
nop
mov rdx, qword [rsi + 0x20]
lea rcx, [rbp - 0x50]
call fcn.14000b908
lea rdx, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rdx, qword [rbp - 0x50]
movzx edi, r14w
or edi, 0x80070000
test r14d, r14d
cmovle edi, r14d
mov ecx, edi
call fcn.14000afb0
mov ebx, eax
test eax, eax
jns 0x14001555b
mov ecx, eax
call fcn.14000b750
nop
jmp 0x14001577a
mov ebx, edi
test edi, edi
je 0x140015565
mov ecx, ebx
jmp 0x140015550
lea rcx, [rbp - 0x50]
call fcn.14000b9a0
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x140015783
mov edi, r15d
mov dword [rsp + 0x74], 0xff
mov word [rbp - 0x10], r15w
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x74]
lea r8, [rbp - 0x10]
mov edx, edi
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumValueW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x140015638
lea rdx, str.Failed_to_enumerate_key
lea rcx, [rbp - 0x50]
call fcn.14000ba10
nop
mov rdx, qword [rsi + 0x20]
lea rcx, [rbp - 0x50]
call fcn.14000b908
lea rdx, [0x14003b8ac]
lea rcx, [rbp - 0x50]
call fcn.14000b908
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x50]
call fcn.14000b908
lea rdx, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rdx, qword [rbp - 0x50]
movzx ecx, bx
or ecx, 0x80070000
test ebx, ebx
cmovle ecx, ebx
call fcn.14000afb0
mov ebx, eax
test eax, eax
js 0x140015772
lea rcx, [rbp - 0x50]
call fcn.14000b9a0
jmp 0x140015765
mov qword [rsp + 0x78], r15
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x50]
call fcn.14000ba10
nop
lea rdx, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rdx, qword [rbp - 0x50]
lea r8, [rsp + 0x78]
mov rcx, rsi
call fcn.140014610
test eax, eax
jne 0x14001572b
mov rdx, qword [rsp + 0x78]
lea rcx, [rbp - 0x30]
call fcn.14000ba10
nop
lea rbx, [rsi + 0xb0]
lea r8, [rbp - 0x50]
lea rdx, [rbp - 0x78]
mov rcx, rbx
call fcn.140015cd0
lea r14, [rbx + 8]
mov rdx, qword [r14]
mov rax, qword [rbp - 0x78]
cmp rax, rdx
jne 0x1400156d7
lea rax, [rbp - 0x50]
mov qword [rbp - 0x70], rax
lea r9, [rbp - 0x70]
mov rdx, qword [rdx]
mov rcx, r14
call fcn.140016578
mov rax, qword [r14]
mov r9, qword [rax]
lea r8, [r9 + 0x10]
lea rdx, [rbp - 0x68]
mov rcx, rbx
call fcn.14001671c
mov rax, qword [rbp - 0x68]
jmp 0x1400156df
mov qword [rbp - 0x68], rax
mov byte [rbp - 0x60], r15b
lea rcx, [rax + 0x30]
lea rax, [rbp - 0x30]
cmp rcx, rax
je 0x1400156f5
lea rdx, [rbp - 0x30]
call fcn.1400160c0
lea r9, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae r9, qword [rbp - 0x30]
lea r8, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae r8, qword [rbp - 0x50]
lea rdx, [0x14003b8b0]
xor ecx, ecx
call fcn.14000b12c
nop
lea rcx, [rbp - 0x30]
call fcn.14000b9a0
jmp 0x140015747
lea r8, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae r8, qword [rbp - 0x50]
lea rdx, str.OneSettings:__s_failed_to_read_value
mov ecx, eax
call fcn.14000b12c
mov ebx, r15d
lea rcx, [rbp - 0x50]
call fcn.14000b9a0
nop
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
nop dword [rax + rax]
inc edi
cmp edi, dword [rsp + 0x60]
jae 0x140015783
jmp 0x14001557d
mov ecx, eax
call fcn.14000b750
nop
lea rcx, [rbp - 0x50]
call fcn.14000b9a0
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14001579e
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov qword [rsp + 0x68], r15
mov ecx, ebx
call fcn.14000b770
mov eax, ebx
mov rcx, qword [rbp + 0x400]
xor rcx, rsp
call fcn.14002fd10
lea r11, [rsp + 0x510]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret