Function at 0x140013718
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x438]
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 [0x1400363c0]
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 r12d, r12d
mov ebx, r12d
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsi + 0x20]
mov rcx, qword [rsi + 0x70]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov r14d, eax
mov r15d, 0x80070000
test eax, eax
je 0x140013879
movdqa xmm0, xmmword [0x14002b0f0]
movdqu xmmword [rbp - 0x40], xmm0
mov word [rbp - 0x50], r12w
lea rdx, str.Failed_to_open_settings_key
lea rcx, [rbp - 0x50]
call fcn.140009b18
nop
mov rdx, qword [rsi + 0x20]
lea rcx, [rbp - 0x50]
call fcn.14000e7e4
lea rdx, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rdx, qword [rbp - 0x50]
movzx edi, r14w
or edi, r15d
test r14d, r14d
cmovle edi, r14d
mov ecx, edi
call fcn.14000dde0
mov ebx, eax
test eax, eax
jns 0x140013866
mov ecx, eax
call fcn.14000e70c
nop
lea rcx, [rbp - 0x50]
call fcn.140009aa4
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14001382d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov qword [rsp + 0x68], r12
mov ecx, ebx
call fcn.14000e728
mov eax, ebx
mov rcx, qword [rbp + 0x400]
xor rcx, rsp
call fcn.14001f340
lea r11, [rsp + 0x510]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov ebx, edi
test edi, edi
je 0x140013870
mov ecx, ebx
jmp 0x140013809
lea rcx, [rbp - 0x50]
call fcn.140009aa4
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
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]
mov r14d, eax
test eax, eax
je 0x140013940
movdqa xmm0, xmmword [0x14002b0f0]
movdqu xmmword [rbp - 0x40], xmm0
mov word [rbp - 0x50], r12w
lea rdx, str.Failed_to_examine_key
lea rcx, [rbp - 0x50]
call fcn.140009b18
nop
mov rdx, qword [rsi + 0x20]
lea rcx, [rbp - 0x50]
call fcn.14000e7e4
lea rdx, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rdx, qword [rbp - 0x50]
movzx edi, r14w
or edi, r15d
test r14d, r14d
cmovle edi, r14d
mov ecx, edi
call fcn.14000dde0
mov ebx, eax
test eax, eax
jns 0x14001392d
mov ecx, eax
call fcn.14000e70c
nop
jmp 0x14001380f
mov ebx, edi
test edi, edi
je 0x140013937
mov ecx, ebx
jmp 0x140013922
lea rcx, [rbp - 0x50]
call fcn.140009aa4
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x140013818
mov edi, r12d
mov r13d, 7
mov dword [rsp + 0x74], 0xff
mov word [rbp - 0x10], r12w
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
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]
mov ebx, eax
test eax, eax
je 0x140013a14
mov qword [rbp - 0x40], r12
mov qword [rbp - 0x38], r13
mov word [rbp - 0x50], r12w
lea rdx, str.Failed_to_enumerate_key
lea rcx, [rbp - 0x50]
call fcn.140009b18
nop
mov rdx, qword [rsi + 0x20]
lea rcx, [rbp - 0x50]
call fcn.14000e7e4
lea rdx, [0x140027a74]
lea rcx, [rbp - 0x50]
call fcn.14000e7e4
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x50]
call fcn.14000e7e4
lea rdx, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rdx, qword [rbp - 0x50]
movzx ecx, bx
or ecx, r15d
test ebx, ebx
cmovle ecx, ebx
call fcn.14000dde0
mov ebx, eax
test eax, eax
js 0x140013ba0
lea rcx, [rbp - 0x50]
call fcn.140009aa4
jmp 0x140013b8f
mov qword [rsp + 0x78], r12
mov qword [rbp - 0x40], r12
mov qword [rbp - 0x38], r13
mov word [rbp - 0x50], r12w
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x50]
call fcn.140009b18
nop
lea rdx, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rdx, qword [rbp - 0x50]
lea r8, [rsp + 0x78]
mov rcx, rsi
call fcn.1400118e4
test eax, eax
jne 0x140013b5b
mov qword [rbp - 0x20], r12
mov qword [rbp - 0x18], r13
mov word [rbp - 0x30], r12w
mov rdx, qword [rsp + 0x78]
lea rcx, [rbp - 0x30]
call fcn.140009b18
nop
lea rbx, [rsi + 0xa0]
lea r8, [rbp - 0x50]
lea rdx, [rbp - 0x78]
mov rcx, rbx
call fcn.140014030
mov r14, qword [rbx + 8]
mov rax, qword [rbp - 0x78]
cmp rax, r14
jne 0x140013b07
lea rax, [rbp - 0x50]
mov qword [rbp - 0x70], rax
mov r14, qword [r14]
mov r15, qword [r14 + 8]
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
mov r8, r15
mov rdx, r14
call fcn.14001545c
mov rcx, qword [rbx + 0x10]
movabs rdx, 0x333333333333332
sub rdx, rcx
cmp rdx, 1
jb 0x140013bad
lea rdx, [rcx + 1]
mov qword [rbx + 0x10], rdx
mov qword [r14 + 8], rax
mov qword [r15], rax
mov r9, qword [rbx + 8]
mov r9, qword [r9]
lea r8, [r9 + 0x10]
lea rdx, [rbp - 0x68]
mov rcx, rbx
call fcn.140015184
mov rax, qword [rbp - 0x68]
mov r15d, 0x80070000
jmp 0x140013b0f
mov qword [rbp - 0x68], rax
mov byte [rbp - 0x60], r12b
lea rcx, [rax + 0x30]
lea rax, [rbp - 0x30]
cmp rcx, rax
je 0x140013b25
lea rdx, [rbp - 0x30]
call fcn.140014360
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, [0x140027a78]
xor ecx, ecx
call fcn.14000dff8
nop
lea rcx, [rbp - 0x30]
call fcn.140009aa4
jmp 0x140013b77
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.14000dff8
mov ebx, r12d
lea rcx, [rbp - 0x50]
call fcn.140009aa4
nop
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
inc edi
cmp edi, dword [rsp + 0x60]
jae 0x140013818
jmp 0x140013955
mov ecx, eax
call fcn.14000e70c
nop
jmp 0x14001380f
lea rcx, str.list_T__too_long
call fcn.140010038
int3